diff --git a/.changelog/333116af382249808019a826b0f16312.json b/.changelog/333116af382249808019a826b0f16312.json new file mode 100644 index 00000000000..5ea00fb89b3 --- /dev/null +++ b/.changelog/333116af382249808019a826b0f16312.json @@ -0,0 +1,346 @@ +{ + "id": "333116af-3822-4980-8019-a826b0f16312", + "type": "feature", + "description": "Add `ErrorCodeOverride` field to all error structs (aws/smithy-go#401).", + "modules": [ + "internal/protocoltest/awsrestjson", + "internal/protocoltest/ec2query", + "internal/protocoltest/jsonrpc", + "internal/protocoltest/jsonrpc10", + "internal/protocoltest/query", + "internal/protocoltest/restxml", + "service/accessanalyzer", + "service/account", + "service/acm", + "service/acmpca", + "service/alexaforbusiness", + "service/amp", + "service/amplify", + "service/amplifybackend", + "service/amplifyuibuilder", + "service/apigateway", + "service/apigatewaymanagementapi", + "service/apigatewayv2", + "service/appconfig", + "service/appconfigdata", + "service/appflow", + "service/appintegrations", + "service/applicationautoscaling", + "service/applicationcostprofiler", + "service/applicationdiscoveryservice", + "service/applicationinsights", + "service/appmesh", + "service/apprunner", + "service/appstream", + "service/appsync", + "service/arczonalshift", + "service/athena", + "service/auditmanager", + "service/autoscaling", + "service/autoscalingplans", + "service/backup", + "service/backupgateway", + "service/backupstorage", + "service/batch", + "service/billingconductor", + "service/braket", + "service/budgets", + "service/chime", + "service/chimesdkidentity", + "service/chimesdkmediapipelines", + "service/chimesdkmeetings", + "service/chimesdkmessaging", + "service/chimesdkvoice", + "service/cloud9", + "service/cloudcontrol", + "service/clouddirectory", + "service/cloudformation", + "service/cloudfront", + "service/cloudhsm", + "service/cloudhsmv2", + "service/cloudsearch", + "service/cloudsearchdomain", + "service/cloudtrail", + "service/cloudwatch", + "service/cloudwatchevents", + "service/cloudwatchlogs", + "service/codeartifact", + "service/codebuild", + "service/codecatalyst", + "service/codecommit", + "service/codedeploy", + "service/codeguruprofiler", + "service/codegurureviewer", + "service/codepipeline", + "service/codestar", + "service/codestarconnections", + "service/codestarnotifications", + "service/cognitoidentity", + "service/cognitoidentityprovider", + "service/cognitosync", + "service/comprehend", + "service/comprehendmedical", + "service/computeoptimizer", + "service/configservice", + "service/connect", + "service/connectcampaigns", + "service/connectcases", + "service/connectcontactlens", + "service/connectparticipant", + "service/controltower", + "service/costandusagereportservice", + "service/costexplorer", + "service/customerprofiles", + "service/databasemigrationservice", + "service/databrew", + "service/dataexchange", + "service/datapipeline", + "service/datasync", + "service/dax", + "service/detective", + "service/devicefarm", + "service/devopsguru", + "service/directconnect", + "service/directoryservice", + "service/dlm", + "service/docdb", + "service/docdbelastic", + "service/drs", + "service/dynamodb", + "service/dynamodbstreams", + "service/ebs", + "service/ec2instanceconnect", + "service/ecr", + "service/ecrpublic", + "service/ecs", + "service/efs", + "service/eks", + "service/elasticache", + "service/elasticbeanstalk", + "service/elasticinference", + "service/elasticloadbalancing", + "service/elasticloadbalancingv2", + "service/elasticsearchservice", + "service/elastictranscoder", + "service/emr", + "service/emrcontainers", + "service/emrserverless", + "service/eventbridge", + "service/evidently", + "service/finspace", + "service/finspacedata", + "service/firehose", + "service/fis", + "service/fms", + "service/forecast", + "service/forecastquery", + "service/frauddetector", + "service/fsx", + "service/gamelift", + "service/gamesparks", + "service/glacier", + "service/globalaccelerator", + "service/glue", + "service/grafana", + "service/greengrass", + "service/greengrassv2", + "service/groundstation", + "service/guardduty", + "service/health", + "service/healthlake", + "service/honeycode", + "service/iam", + "service/identitystore", + "service/imagebuilder", + "service/inspector", + "service/inspector2", + "service/iot", + "service/iot1clickdevicesservice", + "service/iot1clickprojects", + "service/iotanalytics", + "service/iotdataplane", + "service/iotdeviceadvisor", + "service/iotevents", + "service/ioteventsdata", + "service/iotfleethub", + "service/iotfleetwise", + "service/iotjobsdataplane", + "service/iotroborunner", + "service/iotsecuretunneling", + "service/iotsitewise", + "service/iotthingsgraph", + "service/iottwinmaker", + "service/iotwireless", + "service/ivs", + "service/ivschat", + "service/kafka", + "service/kafkaconnect", + "service/kendra", + "service/keyspaces", + "service/kinesis", + "service/kinesisanalytics", + "service/kinesisanalyticsv2", + "service/kinesisvideo", + "service/kinesisvideoarchivedmedia", + "service/kinesisvideomedia", + "service/kinesisvideosignaling", + "service/kinesisvideowebrtcstorage", + "service/kms", + "service/lakeformation", + "service/lambda", + "service/lexmodelbuildingservice", + "service/lexmodelsv2", + "service/lexruntimeservice", + "service/lexruntimev2", + "service/licensemanager", + "service/licensemanagerlinuxsubscriptions", + "service/licensemanagerusersubscriptions", + "service/lightsail", + "service/location", + "service/lookoutequipment", + "service/lookoutmetrics", + "service/lookoutvision", + "service/m2", + "service/machinelearning", + "service/macie", + "service/macie2", + "service/managedblockchain", + "service/marketplacecatalog", + "service/marketplacecommerceanalytics", + "service/marketplaceentitlementservice", + "service/marketplacemetering", + "service/mediaconnect", + "service/mediaconvert", + "service/medialive", + "service/mediapackage", + "service/mediapackagevod", + "service/mediastore", + "service/mediastoredata", + "service/mediatailor", + "service/memorydb", + "service/mgn", + "service/migrationhub", + "service/migrationhubconfig", + "service/migrationhuborchestrator", + "service/migrationhubrefactorspaces", + "service/migrationhubstrategy", + "service/mobile", + "service/mq", + "service/mturk", + "service/mwaa", + "service/neptune", + "service/networkfirewall", + "service/networkmanager", + "service/nimble", + "service/oam", + "service/omics", + "service/opensearch", + "service/opensearchserverless", + "service/opsworks", + "service/opsworkscm", + "service/organizations", + "service/outposts", + "service/panorama", + "service/personalize", + "service/personalizeevents", + "service/personalizeruntime", + "service/pi", + "service/pinpoint", + "service/pinpointemail", + "service/pinpointsmsvoice", + "service/pinpointsmsvoicev2", + "service/pipes", + "service/polly", + "service/pricing", + "service/privatenetworks", + "service/proton", + "service/qldb", + "service/qldbsession", + "service/quicksight", + "service/ram", + "service/rbin", + "service/rds", + "service/rdsdata", + "service/redshift", + "service/redshiftdata", + "service/redshiftserverless", + "service/rekognition", + "service/resiliencehub", + "service/resourceexplorer2", + "service/resourcegroups", + "service/resourcegroupstaggingapi", + "service/robomaker", + "service/rolesanywhere", + "service/route53", + "service/route53domains", + "service/route53recoverycluster", + "service/route53recoverycontrolconfig", + "service/route53recoveryreadiness", + "service/route53resolver", + "service/rum", + "service/s3", + "service/s3control", + "service/s3outposts", + "service/sagemaker", + "service/sagemakera2iruntime", + "service/sagemakeredge", + "service/sagemakerfeaturestoreruntime", + "service/sagemakergeospatial", + "service/sagemakerruntime", + "service/savingsplans", + "service/scheduler", + "service/schemas", + "service/secretsmanager", + "service/securityhub", + "service/securitylake", + "service/serverlessapplicationrepository", + "service/servicecatalog", + "service/servicecatalogappregistry", + "service/servicediscovery", + "service/servicequotas", + "service/ses", + "service/sesv2", + "service/sfn", + "service/shield", + "service/signer", + "service/simspaceweaver", + "service/sms", + "service/snowball", + "service/snowdevicemanagement", + "service/sns", + "service/sqs", + "service/ssm", + "service/ssmcontacts", + "service/ssmincidents", + "service/ssmsap", + "service/sso", + "service/ssoadmin", + "service/ssooidc", + "service/storagegateway", + "service/sts", + "service/support", + "service/supportapp", + "service/swf", + "service/synthetics", + "service/textract", + "service/timestreamquery", + "service/timestreamwrite", + "service/transcribe", + "service/transcribestreaming", + "service/transfer", + "service/translate", + "service/voiceid", + "service/waf", + "service/wafregional", + "service/wafv2", + "service/wellarchitected", + "service/wisdom", + "service/workdocs", + "service/worklink", + "service/workmail", + "service/workmailmessageflow", + "service/workspaces", + "service/workspacesweb", + "service/xray" + ] +} diff --git a/internal/protocoltest/awsrestjson/types/errors.go b/internal/protocoltest/awsrestjson/types/errors.go index fab1a9bd31a..6cd88ab32b9 100644 --- a/internal/protocoltest/awsrestjson/types/errors.go +++ b/internal/protocoltest/awsrestjson/types/errors.go @@ -11,6 +11,8 @@ import ( type ComplexError struct { Message *string + ErrorCodeOverride *string + Header *string TopLevel *string Nested *ComplexNestedErrorData @@ -27,7 +29,12 @@ func (e *ComplexError) ErrorMessage() string { } return *e.Message } -func (e *ComplexError) ErrorCode() string { return "ComplexError" } +func (e *ComplexError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ComplexError" + } + return *e.ErrorCodeOverride +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error has test cases that test some of the dark corners of Amazon service @@ -35,6 +42,8 @@ func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type FooError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,13 +56,20 @@ func (e *FooError) ErrorMessage() string { } return *e.Message } -func (e *FooError) ErrorCode() string { return "FooError" } +func (e *FooError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FooError" + } + return *e.ErrorCodeOverride +} func (e *FooError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This error is thrown when an invalid greeting value is provided. type InvalidGreeting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,5 +82,10 @@ func (e *InvalidGreeting) ErrorMessage() string { } return *e.Message } -func (e *InvalidGreeting) ErrorCode() string { return "InvalidGreeting" } +func (e *InvalidGreeting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGreeting" + } + return *e.ErrorCodeOverride +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/ec2query/types/errors.go b/internal/protocoltest/ec2query/types/errors.go index ed1d31c9f61..c6bbc63725e 100644 --- a/internal/protocoltest/ec2query/types/errors.go +++ b/internal/protocoltest/ec2query/types/errors.go @@ -11,6 +11,8 @@ import ( type ComplexError struct { Message *string + ErrorCodeOverride *string + TopLevel *string Nested *ComplexNestedErrorData @@ -26,13 +28,20 @@ func (e *ComplexError) ErrorMessage() string { } return *e.Message } -func (e *ComplexError) ErrorCode() string { return "ComplexError" } +func (e *ComplexError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ComplexError" + } + return *e.ErrorCodeOverride +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error is thrown when an invalid greeting value is provided. type InvalidGreeting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,5 +54,10 @@ func (e *InvalidGreeting) ErrorMessage() string { } return *e.Message } -func (e *InvalidGreeting) ErrorCode() string { return "InvalidGreeting" } +func (e *InvalidGreeting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGreeting" + } + return *e.ErrorCodeOverride +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/jsonrpc/types/errors.go b/internal/protocoltest/jsonrpc/types/errors.go index b21fef9a637..8ab90b2ea04 100644 --- a/internal/protocoltest/jsonrpc/types/errors.go +++ b/internal/protocoltest/jsonrpc/types/errors.go @@ -11,6 +11,8 @@ import ( type ComplexError struct { Message *string + ErrorCodeOverride *string + TopLevel *string Nested *ComplexNestedErrorData @@ -26,12 +28,19 @@ func (e *ComplexError) ErrorMessage() string { } return *e.Message } -func (e *ComplexError) ErrorCode() string { return "ComplexError" } +func (e *ComplexError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ComplexError" + } + return *e.ErrorCodeOverride +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ErrorWithMembers struct { Message *string + ErrorCodeOverride *string + Code *string ComplexData *KitchenSink IntegerField *int32 @@ -51,12 +60,19 @@ func (e *ErrorWithMembers) ErrorMessage() string { } return *e.Message } -func (e *ErrorWithMembers) ErrorCode() string { return "ErrorWithMembers" } +func (e *ErrorWithMembers) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ErrorWithMembers" + } + return *e.ErrorCodeOverride +} func (e *ErrorWithMembers) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ErrorWithoutMembers struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -69,7 +85,12 @@ func (e *ErrorWithoutMembers) ErrorMessage() string { } return *e.Message } -func (e *ErrorWithoutMembers) ErrorCode() string { return "ErrorWithoutMembers" } +func (e *ErrorWithoutMembers) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ErrorWithoutMembers" + } + return *e.ErrorCodeOverride +} func (e *ErrorWithoutMembers) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This error has test cases that test some of the dark corners of Amazon service @@ -77,6 +98,8 @@ func (e *ErrorWithoutMembers) ErrorFault() smithy.ErrorFault { return smithy.Fau type FooError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -89,13 +112,20 @@ func (e *FooError) ErrorMessage() string { } return *e.Message } -func (e *FooError) ErrorCode() string { return "FooError" } +func (e *FooError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FooError" + } + return *e.ErrorCodeOverride +} func (e *FooError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This error is thrown when an invalid greeting value is provided. type InvalidGreeting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,5 +138,10 @@ func (e *InvalidGreeting) ErrorMessage() string { } return *e.Message } -func (e *InvalidGreeting) ErrorCode() string { return "InvalidGreeting" } +func (e *InvalidGreeting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGreeting" + } + return *e.ErrorCodeOverride +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/jsonrpc10/types/errors.go b/internal/protocoltest/jsonrpc10/types/errors.go index f2314c704f7..ad5a769bd5e 100644 --- a/internal/protocoltest/jsonrpc10/types/errors.go +++ b/internal/protocoltest/jsonrpc10/types/errors.go @@ -11,6 +11,8 @@ import ( type ComplexError struct { Message *string + ErrorCodeOverride *string + TopLevel *string Nested *ComplexNestedErrorData @@ -26,7 +28,12 @@ func (e *ComplexError) ErrorMessage() string { } return *e.Message } -func (e *ComplexError) ErrorCode() string { return "ComplexError" } +func (e *ComplexError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ComplexError" + } + return *e.ErrorCodeOverride +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error has test cases that test some of the dark corners of Amazon service @@ -34,6 +41,8 @@ func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type FooError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,13 +55,20 @@ func (e *FooError) ErrorMessage() string { } return *e.Message } -func (e *FooError) ErrorCode() string { return "FooError" } +func (e *FooError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FooError" + } + return *e.ErrorCodeOverride +} func (e *FooError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This error is thrown when an invalid greeting value is provided. type InvalidGreeting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,5 +81,10 @@ func (e *InvalidGreeting) ErrorMessage() string { } return *e.Message } -func (e *InvalidGreeting) ErrorCode() string { return "InvalidGreeting" } +func (e *InvalidGreeting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGreeting" + } + return *e.ErrorCodeOverride +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/query/types/errors.go b/internal/protocoltest/query/types/errors.go index 0d1d921d1a2..7b41a08334f 100644 --- a/internal/protocoltest/query/types/errors.go +++ b/internal/protocoltest/query/types/errors.go @@ -11,6 +11,8 @@ import ( type ComplexError struct { Message *string + ErrorCodeOverride *string + TopLevel *string Nested *ComplexNestedErrorData @@ -26,12 +28,19 @@ func (e *ComplexError) ErrorMessage() string { } return *e.Message } -func (e *ComplexError) ErrorCode() string { return "ComplexError" } +func (e *ComplexError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ComplexError" + } + return *e.ErrorCodeOverride +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type CustomCodeError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *CustomCodeError) ErrorMessage() string { } return *e.Message } -func (e *CustomCodeError) ErrorCode() string { return "Customized" } +func (e *CustomCodeError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "Customized" + } + return *e.ErrorCodeOverride +} func (e *CustomCodeError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error is thrown when an invalid greeting value is provided. type InvalidGreeting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,5 +79,10 @@ func (e *InvalidGreeting) ErrorMessage() string { } return *e.Message } -func (e *InvalidGreeting) ErrorCode() string { return "InvalidGreeting" } +func (e *InvalidGreeting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGreeting" + } + return *e.ErrorCodeOverride +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/restxml/types/errors.go b/internal/protocoltest/restxml/types/errors.go index 675a7772e43..f02dd6e8686 100644 --- a/internal/protocoltest/restxml/types/errors.go +++ b/internal/protocoltest/restxml/types/errors.go @@ -11,6 +11,8 @@ import ( type ComplexError struct { Message *string + ErrorCodeOverride *string + Header *string TopLevel *string Nested *ComplexNestedErrorData @@ -27,13 +29,20 @@ func (e *ComplexError) ErrorMessage() string { } return *e.Message } -func (e *ComplexError) ErrorCode() string { return "ComplexError" } +func (e *ComplexError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ComplexError" + } + return *e.ErrorCodeOverride +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error is thrown when an invalid greeting value is provided. type InvalidGreeting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,5 +55,10 @@ func (e *InvalidGreeting) ErrorMessage() string { } return *e.Message } -func (e *InvalidGreeting) ErrorCode() string { return "InvalidGreeting" } +func (e *InvalidGreeting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGreeting" + } + return *e.ErrorCodeOverride +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/accessanalyzer/types/errors.go b/service/accessanalyzer/types/errors.go index 0bde3293a49..d89368b19c1 100644 --- a/service/accessanalyzer/types/errors.go +++ b/service/accessanalyzer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict exception error. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal server error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -88,13 +111,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Service quote met error. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -110,13 +140,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Throttling limit exceeded error. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -131,13 +168,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Validation exception error. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -153,5 +197,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/account/types/errors.go b/service/account/types/errors.go index 1a5df49a862..c7fb7c98cfe 100644 --- a/service/account/types/errors.go +++ b/service/account/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because of an error internal to Amazon Web Services. Try @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation failed because it specified a resource that can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because it was called too frequently and exceeded a @@ -71,6 +92,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because one of the input parameters was invalid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,5 +132,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/acm/types/errors.go b/service/acm/types/errors.go index 5351dba8312..576de9cb9fe 100644 --- a/service/acm/types/errors.go +++ b/service/acm/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are trying to update a resource or configuration that is already being @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of of request parameters specified is not valid. type InvalidArgsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InvalidArgsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgsException) ErrorCode() string { return "InvalidArgsException" } +func (e *InvalidArgsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested Amazon Resource Name (ARN) does not refer to an existing resource. type InvalidArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *InvalidArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArnException) ErrorCode() string { return "InvalidArnException" } +func (e *InvalidArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more values in the DomainValidationOption structure is incorrect. type InvalidDomainValidationOptionsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,7 +131,10 @@ func (e *InvalidDomainValidationOptionsException) ErrorMessage() string { return *e.Message } func (e *InvalidDomainValidationOptionsException) ErrorCode() string { - return "InvalidDomainValidationOptionsException" + if e.ErrorCodeOverride == nil { + return "InvalidDomainValidationOptionsException" + } + return *e.ErrorCodeOverride } func (e *InvalidDomainValidationOptionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -111,6 +144,8 @@ func (e *InvalidDomainValidationOptionsException) ErrorFault() smithy.ErrorFault type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,13 +158,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Processing has reached an invalid state. type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,7 +184,12 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or both of the values that make up the key-value pair is not valid. For @@ -150,6 +197,8 @@ func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -162,13 +211,20 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An ACM quota has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -181,7 +237,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate request is in process and the certificate in your account has @@ -189,6 +250,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type RequestInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -201,7 +264,12 @@ func (e *RequestInProgressException) ErrorMessage() string { } return *e.Message } -func (e *RequestInProgressException) ErrorCode() string { return "RequestInProgressException" } +func (e *RequestInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestInProgressException" + } + return *e.ErrorCodeOverride +} func (e *RequestInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate is in use by another Amazon Web Services service in the caller's @@ -209,6 +277,8 @@ func (e *RequestInProgressException) ErrorFault() smithy.ErrorFault { return smi type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -221,7 +291,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified certificate cannot be found in the caller's account or the @@ -229,6 +304,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -241,13 +318,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified tag did not comply with an existing tag policy and was rejected. type TagPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -260,13 +344,20 @@ func (e *TagPolicyException) ErrorMessage() string { } return *e.Message } -func (e *TagPolicyException) ErrorCode() string { return "TagPolicyException" } +func (e *TagPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagPolicyException" + } + return *e.ErrorCodeOverride +} func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because it exceeded a quota. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -279,13 +370,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains too many tags. Try the request again with fewer tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -298,7 +396,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied input failed to satisfy constraints of an Amazon Web Services @@ -306,6 +409,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -318,5 +423,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/acmpca/types/errors.go b/service/acmpca/types/errors.go index fd18855c191..288bc8e406b 100644 --- a/service/acmpca/types/errors.go +++ b/service/acmpca/types/errors.go @@ -12,6 +12,8 @@ import ( type CertificateMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *CertificateMismatchException) ErrorMessage() string { } return *e.Message } -func (e *CertificateMismatchException) ErrorCode() string { return "CertificateMismatchException" } +func (e *CertificateMismatchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateMismatchException" + } + return *e.ErrorCodeOverride +} func (e *CertificateMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A previous update to your private CA is still ongoing. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -52,6 +64,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type InvalidArgsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +78,20 @@ func (e *InvalidArgsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgsException) ErrorCode() string { return "InvalidArgsException" } +func (e *InvalidArgsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested Amazon Resource Name (ARN) does not refer to an existing resource. type InvalidArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +104,12 @@ func (e *InvalidArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArnException) ErrorCode() string { return "InvalidArnException" } +func (e *InvalidArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token specified in the NextToken argument is not valid. Use the token @@ -92,6 +118,8 @@ func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +132,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource policy is invalid or is missing a required statement. For general @@ -114,6 +147,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +161,20 @@ func (e *InvalidPolicyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPolicyException) ErrorCode() string { return "InvalidPolicyException" } +func (e *InvalidPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPolicyException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request action cannot be performed or is prohibited. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,13 +187,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the private CA does not allow this action to occur. type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,7 +213,12 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag associated with the CA is not valid. The invalid argument is contained @@ -172,6 +226,8 @@ func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,7 +240,12 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An ACM Private CA quota has been exceeded. See the exception message returned to @@ -192,6 +253,8 @@ func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.Fau type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -204,7 +267,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The current action was prevented because it would lock the caller out from @@ -213,6 +281,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type LockoutPreventedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -225,13 +295,20 @@ func (e *LockoutPreventedException) ErrorMessage() string { } return *e.Message } -func (e *LockoutPreventedException) ErrorCode() string { return "LockoutPreventedException" } +func (e *LockoutPreventedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LockoutPreventedException" + } + return *e.ErrorCodeOverride +} func (e *LockoutPreventedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more fields in the certificate are invalid. type MalformedCertificateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -244,13 +321,20 @@ func (e *MalformedCertificateException) ErrorMessage() string { } return *e.Message } -func (e *MalformedCertificateException) ErrorCode() string { return "MalformedCertificateException" } +func (e *MalformedCertificateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedCertificateException" + } + return *e.ErrorCodeOverride +} func (e *MalformedCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate signing request is invalid. type MalformedCSRException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -263,13 +347,20 @@ func (e *MalformedCSRException) ErrorMessage() string { } return *e.Message } -func (e *MalformedCSRException) ErrorCode() string { return "MalformedCSRException" } +func (e *MalformedCSRException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedCSRException" + } + return *e.ErrorCodeOverride +} func (e *MalformedCSRException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated permission has already been given to the user. type PermissionAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -283,7 +374,10 @@ func (e *PermissionAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *PermissionAlreadyExistsException) ErrorCode() string { - return "PermissionAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "PermissionAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *PermissionAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -291,6 +385,8 @@ func (e *PermissionAlreadyExistsException) ErrorFault() smithy.ErrorFault { retu type RequestAlreadyProcessedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -304,7 +400,10 @@ func (e *RequestAlreadyProcessedException) ErrorMessage() string { return *e.Message } func (e *RequestAlreadyProcessedException) ErrorCode() string { - return "RequestAlreadyProcessedException" + if e.ErrorCodeOverride == nil { + return "RequestAlreadyProcessedException" + } + return *e.ErrorCodeOverride } func (e *RequestAlreadyProcessedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -312,6 +411,8 @@ func (e *RequestAlreadyProcessedException) ErrorFault() smithy.ErrorFault { retu type RequestFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -324,13 +425,20 @@ func (e *RequestFailedException) ErrorMessage() string { } return *e.Message } -func (e *RequestFailedException) ErrorCode() string { return "RequestFailedException" } +func (e *RequestFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestFailedException" + } + return *e.ErrorCodeOverride +} func (e *RequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request is already in progress. type RequestInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -343,7 +451,12 @@ func (e *RequestInProgressException) ErrorMessage() string { } return *e.Message } -func (e *RequestInProgressException) ErrorCode() string { return "RequestInProgressException" } +func (e *RequestInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestInProgressException" + } + return *e.ErrorCodeOverride +} func (e *RequestInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource such as a private CA, S3 bucket, certificate, audit report, or policy @@ -351,6 +464,8 @@ func (e *RequestInProgressException) ErrorFault() smithy.ErrorFault { return smi type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -363,7 +478,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can associate up to 50 tags with a private CA. Exception information is @@ -371,6 +491,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -383,5 +505,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/alexaforbusiness/types/errors.go b/service/alexaforbusiness/types/errors.go index c6786cfcfc8..4f00723b21b 100644 --- a/service/alexaforbusiness/types/errors.go +++ b/service/alexaforbusiness/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a concurrent modification of resources. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -52,6 +64,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type DeviceNotRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +78,20 @@ func (e *DeviceNotRegisteredException) ErrorMessage() string { } return *e.Message } -func (e *DeviceNotRegisteredException) ErrorCode() string { return "DeviceNotRegisteredException" } +func (e *DeviceNotRegisteredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeviceNotRegisteredException" + } + return *e.ErrorCodeOverride +} func (e *DeviceNotRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Certificate Authority can't issue or revoke a certificate. type InvalidCertificateAuthorityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +105,10 @@ func (e *InvalidCertificateAuthorityException) ErrorMessage() string { return *e.Message } func (e *InvalidCertificateAuthorityException) ErrorCode() string { - return "InvalidCertificateAuthorityException" + if e.ErrorCodeOverride == nil { + return "InvalidCertificateAuthorityException" + } + return *e.ErrorCodeOverride } func (e *InvalidCertificateAuthorityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -94,6 +118,8 @@ func (e *InvalidCertificateAuthorityException) ErrorFault() smithy.ErrorFault { type InvalidDeviceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,13 +132,20 @@ func (e *InvalidDeviceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidDeviceException) ErrorCode() string { return "InvalidDeviceException" } +func (e *InvalidDeviceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDeviceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidDeviceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A password in SecretsManager is in an invalid state. type InvalidSecretsManagerResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,7 +159,10 @@ func (e *InvalidSecretsManagerResourceException) ErrorMessage() string { return *e.Message } func (e *InvalidSecretsManagerResourceException) ErrorCode() string { - return "InvalidSecretsManagerResourceException" + if e.ErrorCodeOverride == nil { + return "InvalidSecretsManagerResourceException" + } + return *e.ErrorCodeOverride } func (e *InvalidSecretsManagerResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -136,6 +172,8 @@ func (e *InvalidSecretsManagerResourceException) ErrorFault() smithy.ErrorFault type InvalidServiceLinkedRoleStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -149,7 +187,10 @@ func (e *InvalidServiceLinkedRoleStateException) ErrorMessage() string { return *e.Message } func (e *InvalidServiceLinkedRoleStateException) ErrorCode() string { - return "InvalidServiceLinkedRoleStateException" + if e.ErrorCodeOverride == nil { + return "InvalidServiceLinkedRoleStateException" + } + return *e.ErrorCodeOverride } func (e *InvalidServiceLinkedRoleStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -159,6 +200,8 @@ func (e *InvalidServiceLinkedRoleStateException) ErrorFault() smithy.ErrorFault type InvalidUserStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -171,13 +214,20 @@ func (e *InvalidUserStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidUserStatusException) ErrorCode() string { return "InvalidUserStatusException" } +func (e *InvalidUserStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUserStatusException" + } + return *e.ErrorCodeOverride +} func (e *InvalidUserStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are performing an action that would put you beyond your account's limits. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,13 +240,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name sent in the request is already in use. type NameInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,13 +266,20 @@ func (e *NameInUseException) ErrorMessage() string { } return *e.Message } -func (e *NameInUseException) ErrorCode() string { return "NameInUseException" } +func (e *NameInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NameInUseException" + } + return *e.ErrorCodeOverride +} func (e *NameInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is not found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,13 +292,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Another resource is associated with the resource in the request. type ResourceAssociatedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -247,13 +318,20 @@ func (e *ResourceAssociatedException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAssociatedException) ErrorCode() string { return "ResourceAssociatedException" } +func (e *ResourceAssociatedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAssociatedException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource in the request is already in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + ClientRequestToken *string noSmithyDocumentSerde @@ -268,13 +346,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The skill must be linked to a third-party account. type SkillNotLinkedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -287,7 +372,12 @@ func (e *SkillNotLinkedException) ErrorMessage() string { } return *e.Message } -func (e *SkillNotLinkedException) ErrorCode() string { return "SkillNotLinkedException" } +func (e *SkillNotLinkedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SkillNotLinkedException" + } + return *e.ErrorCodeOverride +} func (e *SkillNotLinkedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller has no permissions to operate on the resource involved in the API @@ -295,6 +385,8 @@ func (e *SkillNotLinkedException) ErrorFault() smithy.ErrorFault { return smithy type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -307,5 +399,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/amp/types/errors.go b/service/amp/types/errors.go index f3cd1fdf448..48fd209c757 100644 --- a/service/amp/types/errors.go +++ b/service/amp/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error during processing of request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource which does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -88,13 +111,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ServiceCode *string @@ -112,13 +142,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *int32 @@ -135,13 +172,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -157,5 +201,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/amplify/types/errors.go b/service/amplify/types/errors.go index 1fb51245b20..57fcff854a6 100644 --- a/service/amplify/types/errors.go +++ b/service/amplify/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation failed because a dependent service threw an exception. type DependentServiceFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *DependentServiceFailureException) ErrorMessage() string { return *e.Message } func (e *DependentServiceFailureException) ErrorCode() string { - return "DependentServiceFailureException" + if e.ErrorCodeOverride == nil { + return "DependentServiceFailureException" + } + return *e.ErrorCodeOverride } func (e *DependentServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -51,6 +63,8 @@ func (e *DependentServiceFailureException) ErrorFault() smithy.ErrorFault { retu type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +77,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A resource could not be created because service quotas were exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +103,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity was not found during an operation. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +129,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation failed due to a non-existent resource. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -122,13 +157,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation failed due to a lack of access. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,5 +183,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/amplifybackend/types/errors.go b/service/amplifybackend/types/errors.go index 2242f078e29..7a122fd6411 100644 --- a/service/amplifybackend/types/errors.go +++ b/service/amplifybackend/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error returned if there's a temporary issue with the service. type GatewayTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *GatewayTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *GatewayTimeoutException) ErrorCode() string { return "GatewayTimeoutException" } +func (e *GatewayTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GatewayTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *GatewayTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An error returned when a specific resource type is not found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -63,13 +79,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error that is returned when a limit of a specific type has been exceeded. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + LimitType *string noSmithyDocumentSerde @@ -84,5 +107,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/amplifyuibuilder/types/errors.go b/service/amplifyuibuilder/types/errors.go index 05998bc6ec0..c898aea6d28 100644 --- a/service/amplifyuibuilder/types/errors.go +++ b/service/amplifyuibuilder/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An invalid or out-of-range value was supplied for the input parameter. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request conflicts with an existing resource. type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource does not exist, or access was denied. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded your service quota. Service quotas, also referred to as limits, are @@ -89,6 +117,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +131,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have permission to perform this operation. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,5 +157,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/apigateway/types/errors.go b/service/apigateway/types/errors.go index 9129fea88ab..1709f433456 100644 --- a/service/apigateway/types/errors.go +++ b/service/apigateway/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request configuration has conflicts. For details, see the accompanying error @@ -32,6 +39,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeded the rate limit. Retry after the specified time period. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -65,13 +81,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource is not found. Make sure that the request URI is correct. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +107,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested service is not available. For details see the accompanying error @@ -92,6 +120,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -106,7 +136,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request has reached its throttling limit. Retry after the specified time @@ -114,6 +149,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -128,13 +165,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is denied because the caller has insufficient permissions. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,5 +191,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/apigatewaymanagementapi/types/errors.go b/service/apigatewaymanagementapi/types/errors.go index 7235476715c..8fc693d81f2 100644 --- a/service/apigatewaymanagementapi/types/errors.go +++ b/service/apigatewaymanagementapi/types/errors.go @@ -11,6 +11,8 @@ import ( type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The connection with the provided id no longer exists. type GoneException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *GoneException) ErrorMessage() string { } return *e.Message } -func (e *GoneException) ErrorCode() string { return "GoneException" } +func (e *GoneException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GoneException" + } + return *e.ErrorCodeOverride +} func (e *GoneException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is sending more than the allowed number of requests per unit of time @@ -50,6 +64,8 @@ func (e *GoneException) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The data has exceeded the maximum size allowed. type PayloadTooLargeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,5 +104,10 @@ func (e *PayloadTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *PayloadTooLargeException) ErrorCode() string { return "PayloadTooLargeException" } +func (e *PayloadTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PayloadTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *PayloadTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/apigatewayv2/types/errors.go b/service/apigatewayv2/types/errors.go index d4d15949c0e..bded1880d05 100644 --- a/service/apigatewayv2/types/errors.go +++ b/service/apigatewayv2/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,7 +24,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not valid, for example, the input is incomplete or incorrect. See @@ -30,6 +37,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation would cause a conflict with the current state of a @@ -51,6 +65,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request was not found. See the message field for @@ -71,6 +92,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type NotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -85,13 +108,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit has been exceeded. See the accompanying error message for details. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + LimitType *string noSmithyDocumentSerde @@ -106,5 +136,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appconfig/types/errors.go b/service/appconfig/types/errors.go index 2c4d211d0e4..52a154c1ca7 100644 --- a/service/appconfig/types/errors.go +++ b/service/appconfig/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Reason BadRequestReason Details BadRequestDetails @@ -27,7 +29,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -35,6 +42,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,13 +56,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal failure in the AppConfig service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The configuration size is too large. type PayloadTooLargeException struct { Message *string + ErrorCodeOverride *string + Measure BytesMeasure Limit float32 Size float32 @@ -89,13 +112,20 @@ func (e *PayloadTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *PayloadTooLargeException) ErrorCode() string { return "PayloadTooLargeException" } +func (e *PayloadTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PayloadTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *PayloadTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -110,7 +140,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of hosted configuration versions exceeds the limit for the AppConfig @@ -118,6 +153,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,5 +167,10 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appconfigdata/types/errors.go b/service/appconfigdata/types/errors.go index bd9d988117b..30269cd96d9 100644 --- a/service/appconfigdata/types/errors.go +++ b/service/appconfigdata/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Reason BadRequestReason Details BadRequestDetails @@ -26,13 +28,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal failure in the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,13 +54,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType ResourceType ReferencedBy map[string]string @@ -67,13 +83,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,5 +109,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appflow/types/errors.go b/service/appflow/types/errors.go index ec37ced86f1..da11b1cfe77 100644 --- a/service/appflow/types/errors.go +++ b/service/appflow/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict when processing the request (for example, a flow with the @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred when authenticating with the connector endpoint. type ConnectorAuthenticationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ConnectorAuthenticationException) ErrorMessage() string { return *e.Message } func (e *ConnectorAuthenticationException) ErrorCode() string { - return "ConnectorAuthenticationException" + if e.ErrorCodeOverride == nil { + return "ConnectorAuthenticationException" + } + return *e.ErrorCodeOverride } func (e *ConnectorAuthenticationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -72,6 +91,8 @@ func (e *ConnectorAuthenticationException) ErrorFault() smithy.ErrorFault { retu type ConnectorServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +105,12 @@ func (e *ConnectorServerException) ErrorMessage() string { } return *e.Message } -func (e *ConnectorServerException) ErrorCode() string { return "ConnectorServerException" } +func (e *ConnectorServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConnectorServerException" + } + return *e.ErrorCodeOverride +} func (e *ConnectorServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred during the processing of your request. Try @@ -92,6 +118,8 @@ func (e *ConnectorServerException) ErrorFault() smithy.ErrorFault { return smith type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +132,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource specified in the request (such as the source or destination @@ -112,6 +145,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +159,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota (such as the number of flows) to be @@ -132,6 +172,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,7 +186,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // API calls have exceeded the maximum allowed API request rate per account and per @@ -152,6 +199,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,13 +213,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not supported for the current flow. type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -183,13 +239,20 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has invalid or missing parameters. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -202,5 +265,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appintegrations/types/errors.go b/service/appintegrations/types/errors.go index 123c10a7214..95f902b30ef 100644 --- a/service/appintegrations/types/errors.go +++ b/service/appintegrations/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified name already exists. type DuplicateResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *DuplicateResourceException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateResourceException) ErrorCode() string { return "DuplicateResourceException" } +func (e *DuplicateResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateResourceException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request processing failed due to an error or failure with the service. type InternalServiceError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServiceError) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceError) ErrorCode() string { return "InternalServiceError" } +func (e *InternalServiceError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceError" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The allowed quota for the resource has been exceeded. type ResourceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *ResourceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceQuotaExceededException) ErrorCode() string { return "ResourceQuotaExceededException" } +func (e *ResourceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling limit has been exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,5 +181,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/applicationautoscaling/types/errors.go b/service/applicationautoscaling/types/errors.go index af45df15a35..7751227f32c 100644 --- a/service/applicationautoscaling/types/errors.go +++ b/service/applicationautoscaling/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentUpdateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *ConcurrentUpdateException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentUpdateException) ErrorCode() string { return "ConcurrentUpdateException" } +func (e *ConcurrentUpdateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentUpdateException" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Failed access to resources caused an exception. This exception is thrown when @@ -36,6 +43,8 @@ func (e *ConcurrentUpdateException) ErrorFault() smithy.ErrorFault { return smit type FailedResourceAccessException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -48,13 +57,20 @@ func (e *FailedResourceAccessException) ErrorMessage() string { } return *e.Message } -func (e *FailedResourceAccessException) ErrorCode() string { return "FailedResourceAccessException" } +func (e *FailedResourceAccessException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FailedResourceAccessException" + } + return *e.ErrorCodeOverride +} func (e *FailedResourceAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an internal error. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +83,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The next token supplied was invalid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +109,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A per-account resource limit is exceeded. For more information, see Application @@ -95,6 +123,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +137,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified object could not be found. For any operation that depends on the @@ -118,6 +153,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ObjectNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,7 +167,12 @@ func (e *ObjectNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ObjectNotFoundException) ErrorCode() string { return "ObjectNotFoundException" } +func (e *ObjectNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ObjectNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ObjectNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception was thrown for a validation issue. Review the available parameters @@ -138,6 +180,8 @@ func (e *ObjectNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,5 +194,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/applicationcostprofiler/types/errors.go b/service/applicationcostprofiler/types/errors.go index c3c97a1cbd7..ae5b1108faa 100644 --- a/service/applicationcostprofiler/types/errors.go +++ b/service/applicationcostprofiler/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal server error occurred. Retry your request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Your request exceeds one or more of the service quotas. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The calls to AWS Application Cost Profiler API are throttled. The request was @@ -69,6 +90,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints for the API. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,5 +130,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/applicationdiscoveryservice/types/errors.go b/service/applicationdiscoveryservice/types/errors.go index 288327e00af..a48b8cfc6ae 100644 --- a/service/applicationdiscoveryservice/types/errors.go +++ b/service/applicationdiscoveryservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AuthorizationErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,12 +26,19 @@ func (e *AuthorizationErrorException) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationErrorException) ErrorCode() string { return "AuthorizationErrorException" } +func (e *AuthorizationErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationErrorException" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictErrorException) ErrorMessage() string { } return *e.Message } -func (e *ConflictErrorException) ErrorCode() string { return "ConflictErrorException" } +func (e *ConflictErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictErrorException" + } + return *e.ErrorCodeOverride +} func (e *ConflictErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The home region is not set. Set the home region to continue. type HomeRegionNotSetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *HomeRegionNotSetException) ErrorMessage() string { } return *e.Message } -func (e *HomeRegionNotSetException) ErrorCode() string { return "HomeRegionNotSetException" } +func (e *HomeRegionNotSetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HomeRegionNotSetException" + } + return *e.ErrorCodeOverride +} func (e *HomeRegionNotSetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters are not valid. Verify the parameters and try again. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of one or more parameters are either invalid or out of range. Verify @@ -88,6 +116,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not permitted. type OperationNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,7 +156,12 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermittedException" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermittedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This issue occurs when the same clientRequestToken is used with the @@ -130,6 +172,8 @@ func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,7 +186,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration ID was not located. Verify the configuration ID and @@ -150,6 +199,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -162,13 +213,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server experienced an internal error. Try again. type ServerInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -181,5 +239,10 @@ func (e *ServerInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *ServerInternalErrorException) ErrorCode() string { return "ServerInternalErrorException" } +func (e *ServerInternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerInternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *ServerInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/applicationinsights/types/errors.go b/service/applicationinsights/types/errors.go index 2253d068db5..dfd904e1507 100644 --- a/service/applicationinsights/types/errors.go +++ b/service/applicationinsights/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not understood by the server. type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server encountered an internal error and is unable to complete the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource is already created or in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource does not exist in the customer account. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Tags are already registered for the specified application ARN. type TagsAlreadyExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,7 +155,12 @@ func (e *TagsAlreadyExistException) ErrorMessage() string { } return *e.Message } -func (e *TagsAlreadyExistException) ErrorCode() string { return "TagsAlreadyExistException" } +func (e *TagsAlreadyExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagsAlreadyExistException" + } + return *e.ErrorCodeOverride +} func (e *TagsAlreadyExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of the provided tags is beyond the limit, or the number of total tags @@ -126,6 +168,8 @@ func (e *TagsAlreadyExistException) ErrorFault() smithy.ErrorFault { return smit type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -140,13 +184,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -159,5 +210,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appmesh/types/errors.go b/service/appmesh/types/errors.go index 4c0d8c7bb92..aec44a1a930 100644 --- a/service/appmesh/types/errors.go +++ b/service/appmesh/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains a client token that was used for a previous update resource @@ -32,6 +39,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have permissions to perform this action. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception, or @@ -71,6 +92,8 @@ func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.Faul type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +106,12 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // You have exceeded a service limit for your account. For more information, see @@ -93,6 +121,8 @@ func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return s type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +135,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. Check your request syntax and try again. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +161,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't delete the specified resource because it's in use or required by @@ -132,6 +174,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,13 +188,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed due to a temporary failure of the service. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,7 +214,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The maximum request rate permitted by the App Mesh APIs has been exceeded for @@ -172,6 +228,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,7 +242,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the maximum allowed number of tags allowed per resource. The @@ -193,6 +256,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -205,5 +270,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/apprunner/types/errors.go b/service/apprunner/types/errors.go index 19c6db7a757..257cadaaf6c 100644 --- a/service/apprunner/types/errors.go +++ b/service/apprunner/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One or more input parameters aren't valid. Refer to the API action's document @@ -31,6 +38,8 @@ func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't perform this action when the resource is in its current state. type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,12 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource doesn't exist for the specified Amazon Resource Name (ARN) in your @@ -70,6 +91,8 @@ func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.F type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // App Runner can't create this resource. You've reached your account quota for @@ -92,6 +120,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,5 +134,10 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appstream/types/errors.go b/service/appstream/types/errors.go index 296ce6907a3..27be3cb7d44 100644 --- a/service/appstream/types/errors.go +++ b/service/appstream/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -32,6 +37,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type EntitlementAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +52,10 @@ func (e *EntitlementAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EntitlementAlreadyExistsException) ErrorCode() string { - return "EntitlementAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "EntitlementAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *EntitlementAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -53,6 +63,8 @@ func (e *EntitlementAlreadyExistsException) ErrorFault() smithy.ErrorFault { ret type EntitlementNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +77,20 @@ func (e *EntitlementNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EntitlementNotFoundException) ErrorCode() string { return "EntitlementNotFoundException" } +func (e *EntitlementNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntitlementNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EntitlementNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The image can't be updated because it's not compatible for updates. type IncompatibleImageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +103,12 @@ func (e *IncompatibleImageException) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleImageException) ErrorCode() string { return "IncompatibleImageException" } +func (e *IncompatibleImageException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleImageException" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleImageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource cannot be created because your AWS account is suspended. For @@ -92,6 +116,8 @@ func (e *IncompatibleImageException) ErrorFault() smithy.ErrorFault { return smi type InvalidAccountStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,13 +130,20 @@ func (e *InvalidAccountStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAccountStatusException) ErrorCode() string { return "InvalidAccountStatusException" } +func (e *InvalidAccountStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAccountStatusException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAccountStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates an incorrect combination of parameters, or a missing parameter. type InvalidParameterCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +157,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidParameterCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -134,6 +170,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidRoleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,13 +184,20 @@ func (e *InvalidRoleException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRoleException) ErrorCode() string { return "InvalidRoleException" } +func (e *InvalidRoleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRoleException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested limit exceeds the permitted limit for an account. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,13 +210,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The attempted operation is not permitted. type OperationNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,7 +236,12 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermittedException" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermittedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AppStream 2.0 can’t process the request right now because the Describe calls @@ -192,6 +249,8 @@ func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return type RequestLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -204,13 +263,20 @@ func (e *RequestLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *RequestLimitExceededException) ErrorCode() string { return "RequestLimitExceededException" } +func (e *RequestLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *RequestLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -223,13 +289,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -242,13 +315,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource exists and is not in use, but isn't available. type ResourceNotAvailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -261,13 +341,20 @@ func (e *ResourceNotAvailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotAvailableException) ErrorCode() string { return "ResourceNotAvailableException" } +func (e *ResourceNotAvailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotAvailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -280,5 +367,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appsync/types/errors.go b/service/appsync/types/errors.go index 6cac8a65d2d..ecdb2840507 100644 --- a/service/appsync/types/errors.go +++ b/service/appsync/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The API key exceeded a limit. Try your request again. type ApiKeyLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *ApiKeyLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ApiKeyLimitExceededException) ErrorCode() string { return "ApiKeyLimitExceededException" } +func (e *ApiKeyLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ApiKeyLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ApiKeyLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The API key expiration must be set to a value between 1 and 365 days from @@ -50,6 +64,8 @@ func (e *ApiKeyLimitExceededException) ErrorFault() smithy.ErrorFault { return s type ApiKeyValidityOutOfBoundsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *ApiKeyValidityOutOfBoundsException) ErrorMessage() string { return *e.Message } func (e *ApiKeyValidityOutOfBoundsException) ErrorCode() string { - return "ApiKeyValidityOutOfBoundsException" + if e.ErrorCodeOverride == nil { + return "ApiKeyValidityOutOfBoundsException" + } + return *e.ErrorCodeOverride } func (e *ApiKeyValidityOutOfBoundsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -73,6 +92,8 @@ func (e *ApiKeyValidityOutOfBoundsException) ErrorFault() smithy.ErrorFault { type ApiLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +106,12 @@ func (e *ApiLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ApiLimitExceededException) ErrorCode() string { return "ApiLimitExceededException" } +func (e *ApiLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ApiLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ApiLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not well formed. For example, a value is invalid or a required @@ -93,6 +119,8 @@ func (e *ApiLimitExceededException) ErrorFault() smithy.ErrorFault { return smit type BadRequestException struct { Message *string + ErrorCodeOverride *string + Reason BadRequestReason Detail *BadRequestDetail @@ -108,7 +136,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Another modification is in progress at this time and it must complete before you @@ -116,6 +149,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,7 +164,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -137,6 +175,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type GraphQLSchemaException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -149,13 +189,20 @@ func (e *GraphQLSchemaException) ErrorMessage() string { } return *e.Message } -func (e *GraphQLSchemaException) ErrorCode() string { return "GraphQLSchemaException" } +func (e *GraphQLSchemaException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GraphQLSchemaException" + } + return *e.ErrorCodeOverride +} func (e *GraphQLSchemaException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal AppSync error occurred. Try your request again. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -168,13 +215,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request exceeded a limit. Try your request again. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,7 +241,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request was not found. Check the resource, and @@ -195,6 +254,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -207,13 +268,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You aren't authorized to perform this operation. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -226,5 +294,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/arczonalshift/types/errors.go b/service/arczonalshift/types/errors.go index 0ab20588b16..0550abfb150 100644 --- a/service/arczonalshift/types/errors.go +++ b/service/arczonalshift/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + Reason ConflictExceptionReason ZonalShiftId *string @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal server error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +81,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input requested a resource that was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,13 +107,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +133,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason noSmithyDocumentSerde @@ -124,5 +161,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/athena/types/errors.go b/service/athena/types/errors.go index d3d7aca84ef..90205ef88e5 100644 --- a/service/athena/types/errors.go +++ b/service/athena/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that something is wrong with the input to the request. For example, a @@ -31,6 +38,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + AthenaErrorCode *string noSmithyDocumentSerde @@ -45,7 +54,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception that Athena received when it called a custom metastore. Occurs if @@ -56,6 +70,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type MetadataException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -68,13 +84,20 @@ func (e *MetadataException) ErrorMessage() string { } return *e.Message } -func (e *MetadataException) ErrorCode() string { return "MetadataException" } +func (e *MetadataException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MetadataException" + } + return *e.ErrorCodeOverride +} func (e *MetadataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource, such as a workgroup, was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -89,13 +112,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified session already exists. type SessionAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,13 +138,20 @@ func (e *SessionAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *SessionAlreadyExistsException) ErrorCode() string { return "SessionAlreadyExistsException" } +func (e *SessionAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SessionAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *SessionAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the request was throttled. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + Reason ThrottleReason noSmithyDocumentSerde @@ -129,5 +166,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/auditmanager/types/errors.go b/service/auditmanager/types/errors.go index ea723b822bd..5f68c0228c0 100644 --- a/service/auditmanager/types/errors.go +++ b/service/auditmanager/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred during the processing of your request. Try @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource that's specified in the request can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -66,7 +82,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached your account quota for this resource type. To perform the @@ -78,6 +99,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -90,13 +113,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -109,13 +139,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has invalid or missing parameters. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -131,5 +168,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/autoscaling/types/errors.go b/service/autoscaling/types/errors.go index 1a68972d375..3f4b00bc0ba 100644 --- a/service/autoscaling/types/errors.go +++ b/service/autoscaling/types/errors.go @@ -12,6 +12,8 @@ import ( type ActiveInstanceRefreshNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ActiveInstanceRefreshNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ActiveInstanceRefreshNotFoundFault) ErrorCode() string { - return "ActiveInstanceRefreshNotFound" + if e.ErrorCodeOverride == nil { + return "ActiveInstanceRefreshNotFound" + } + return *e.ErrorCodeOverride } func (e *ActiveInstanceRefreshNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -35,6 +40,8 @@ func (e *ActiveInstanceRefreshNotFoundFault) ErrorFault() smithy.ErrorFault { type AlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,7 +54,12 @@ func (e *AlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsFault) ErrorCode() string { return "AlreadyExists" } +func (e *AlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because an active instance refresh operation already exists @@ -55,6 +67,8 @@ func (e *AlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.Faul type InstanceRefreshInProgressFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +81,20 @@ func (e *InstanceRefreshInProgressFault) ErrorMessage() string { } return *e.Message } -func (e *InstanceRefreshInProgressFault) ErrorCode() string { return "InstanceRefreshInProgress" } +func (e *InstanceRefreshInProgressFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceRefreshInProgress" + } + return *e.ErrorCodeOverride +} func (e *InstanceRefreshInProgressFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The NextToken value is not valid. type InvalidNextToken struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +107,12 @@ func (e *InvalidNextToken) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextToken) ErrorCode() string { return "InvalidNextToken" } +func (e *InvalidNextToken) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextToken" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have already reached a limit for your Amazon EC2 Auto Scaling resources (for @@ -97,6 +123,8 @@ func (e *InvalidNextToken) ErrorFault() smithy.ErrorFault { return smithy.FaultC type LimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -109,7 +137,12 @@ func (e *LimitExceededFault) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededFault) ErrorCode() string { return "LimitExceeded" } +func (e *LimitExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a pending update to an Amazon EC2 Auto Scaling resource (for @@ -117,6 +150,8 @@ func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.Faul type ResourceContentionFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,13 +164,20 @@ func (e *ResourceContentionFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceContentionFault) ErrorCode() string { return "ResourceContention" } +func (e *ResourceContentionFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceContention" + } + return *e.ErrorCodeOverride +} func (e *ResourceContentionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation can't be performed because the resource is in use. type ResourceInUseFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,7 +190,12 @@ func (e *ResourceInUseFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseFault) ErrorCode() string { return "ResourceInUse" } +func (e *ResourceInUseFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUse" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation can't be performed because there are scaling activities in @@ -156,6 +203,8 @@ func (e *ResourceInUseFault) ErrorFault() smithy.ErrorFault { return smithy.Faul type ScalingActivityInProgressFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -168,13 +217,20 @@ func (e *ScalingActivityInProgressFault) ErrorMessage() string { } return *e.Message } -func (e *ScalingActivityInProgressFault) ErrorCode() string { return "ScalingActivityInProgress" } +func (e *ScalingActivityInProgressFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ScalingActivityInProgress" + } + return *e.ErrorCodeOverride +} func (e *ScalingActivityInProgressFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service-linked role is not yet ready for use. type ServiceLinkedRoleFailure struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,5 +243,10 @@ func (e *ServiceLinkedRoleFailure) ErrorMessage() string { } return *e.Message } -func (e *ServiceLinkedRoleFailure) ErrorCode() string { return "ServiceLinkedRoleFailure" } +func (e *ServiceLinkedRoleFailure) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLinkedRoleFailure" + } + return *e.ErrorCodeOverride +} func (e *ServiceLinkedRoleFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/autoscalingplans/types/errors.go b/service/autoscalingplans/types/errors.go index ff7c4288b0d..2cfedc28e3f 100644 --- a/service/autoscalingplans/types/errors.go +++ b/service/autoscalingplans/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentUpdateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *ConcurrentUpdateException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentUpdateException) ErrorCode() string { return "ConcurrentUpdateException" } +func (e *ConcurrentUpdateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentUpdateException" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service encountered an internal error. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The token provided is not valid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your account exceeded a limit. This exception is thrown when a per-account @@ -70,6 +91,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified object could not be found. type ObjectNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +131,20 @@ func (e *ObjectNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ObjectNotFoundException) ErrorCode() string { return "ObjectNotFoundException" } +func (e *ObjectNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ObjectNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ObjectNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception was thrown for a validation issue. Review the parameters provided. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,5 +157,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/backup/types/errors.go b/service/backup/types/errors.go index 42cb8a79733..9e25255bb21 100644 --- a/service/backup/types/errors.go +++ b/service/backup/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + Code *string CreatorRequestId *string Arn *string @@ -29,7 +31,12 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Backup can't perform the action that you requested until it finishes performing @@ -37,6 +44,8 @@ func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy. type ConflictException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -53,7 +62,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A dependent Amazon Web Services service or resource returned an error to the @@ -61,6 +75,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DependencyFailureException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -77,7 +93,12 @@ func (e *DependencyFailureException) ErrorMessage() string { } return *e.Message } -func (e *DependencyFailureException) ErrorCode() string { return "DependencyFailureException" } +func (e *DependencyFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyFailureException" + } + return *e.ErrorCodeOverride +} func (e *DependencyFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that something is wrong with a parameter's value. For example, the @@ -85,6 +106,8 @@ func (e *DependencyFailureException) ErrorFault() smithy.ErrorFault { return smi type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -101,7 +124,12 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that something is wrong with the input to the request. For example, a @@ -109,6 +137,8 @@ func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -125,7 +155,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Backup is already performing an action on this recovery point. It can't perform @@ -133,6 +168,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type InvalidResourceStateException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -149,7 +186,12 @@ func (e *InvalidResourceStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceStateException) ErrorCode() string { return "InvalidResourceStateException" } +func (e *InvalidResourceStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit in the request has been exceeded; for example, a maximum number of items @@ -157,6 +199,8 @@ func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -173,13 +217,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a required parameter is missing. type MissingParameterValueException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -196,13 +247,20 @@ func (e *MissingParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *MissingParameterValueException) ErrorCode() string { return "MissingParameterValueException" } +func (e *MissingParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *MissingParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource that is required for the action doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -219,13 +277,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed due to a temporary failure of the server. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code *string Type *string Context *string @@ -242,5 +307,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/backupgateway/types/errors.go b/service/backupgateway/types/errors.go index c9963d6e422..afd96bf6919 100644 --- a/service/backupgateway/types/errors.go +++ b/service/backupgateway/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation cannot proceed because it is not supported. type ConflictException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -46,7 +55,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because an internal error occurred. Try again @@ -54,6 +68,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -68,13 +84,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A resource that is required for the action wasn't found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -89,7 +112,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // TPS has been limited to protect against intentional or unintentional high @@ -97,6 +125,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -111,13 +141,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because a validation error occurred. type ValidationException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -132,5 +169,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/backupstorage/types/errors.go b/service/backupstorage/types/errors.go index f9dc0b5c5ef..bf212173dd9 100644 --- a/service/backupstorage/types/errors.go +++ b/service/backupstorage/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,7 +24,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Non-retryable exception. Attempted to create already existing object or chunk. @@ -30,6 +37,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type DataAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + Checksum *string ChecksumAlgorithm *string @@ -45,7 +54,12 @@ func (e *DataAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *DataAlreadyExistsException) ErrorCode() string { return "DataAlreadyExistsException" } +func (e *DataAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DataAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *DataAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Non-retryable exception, indicates client error (wrong argument passed to API). @@ -53,6 +67,8 @@ func (e *DataAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smi type IllegalArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *IllegalArgumentException) ErrorMessage() string { } return *e.Message } -func (e *IllegalArgumentException) ErrorCode() string { return "IllegalArgumentException" } +func (e *IllegalArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalArgumentException" + } + return *e.ErrorCodeOverride +} func (e *IllegalArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Non-retryable exception. Indicates the KMS key usage is incorrect. See exception @@ -73,6 +94,8 @@ func (e *IllegalArgumentException) ErrorFault() smithy.ErrorFault { return smith type KMSInvalidKeyUsageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +108,12 @@ func (e *KMSInvalidKeyUsageException) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidKeyUsageException) ErrorCode() string { return "KMSInvalidKeyUsageException" } +func (e *KMSInvalidKeyUsageException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidKeyUsageException" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidKeyUsageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Retryalble exception. Indicated issues while reading an input stream due to the @@ -93,6 +121,8 @@ func (e *KMSInvalidKeyUsageException) ErrorFault() smithy.ErrorFault { return sm type NotReadableInputStreamException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,7 +136,10 @@ func (e *NotReadableInputStreamException) ErrorMessage() string { return *e.Message } func (e *NotReadableInputStreamException) ErrorCode() string { - return "NotReadableInputStreamException" + if e.ErrorCodeOverride == nil { + return "NotReadableInputStreamException" + } + return *e.ErrorCodeOverride } func (e *NotReadableInputStreamException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -115,6 +148,8 @@ func (e *NotReadableInputStreamException) ErrorFault() smithy.ErrorFault { retur type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,7 +162,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Retryable exception. In general indicates internal failure that can be fixed by @@ -135,6 +175,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type RetryableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,13 +189,20 @@ func (e *RetryableException) ErrorMessage() string { } return *e.Message } -func (e *RetryableException) ErrorCode() string { return "RetryableException" } +func (e *RetryableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RetryableException" + } + return *e.ErrorCodeOverride +} func (e *RetryableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Deprecated. To be removed from the model. type ServiceInternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -166,13 +215,20 @@ func (e *ServiceInternalException) ErrorMessage() string { } return *e.Message } -func (e *ServiceInternalException) ErrorCode() string { return "ServiceInternalException" } +func (e *ServiceInternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceInternalException" + } + return *e.ErrorCodeOverride +} func (e *ServiceInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Retryable exception, indicates internal server error. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -185,13 +241,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Increased rate over throttling limits. Can be retried with exponential backoff. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -204,5 +267,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/batch/types/errors.go b/service/batch/types/errors.go index 3d81a9368b6..a3159ebe6f2 100644 --- a/service/batch/types/errors.go +++ b/service/batch/types/errors.go @@ -14,6 +14,8 @@ import ( type ClientException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -26,13 +28,20 @@ func (e *ClientException) ErrorMessage() string { } return *e.Message } -func (e *ClientException) ErrorCode() string { return "ClientException" } +func (e *ClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientException" + } + return *e.ErrorCodeOverride +} func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a server issue. type ServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,5 +54,10 @@ func (e *ServerException) ErrorMessage() string { } return *e.Message } -func (e *ServerException) ErrorCode() string { return "ServerException" } +func (e *ServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerException" + } + return *e.ErrorCodeOverride +} func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/billingconductor/types/errors.go b/service/billingconductor/types/errors.go index fe4a5c92f6a..022fb064ac3 100644 --- a/service/billingconductor/types/errors.go +++ b/service/billingconductor/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can cause an inconsistent state by updating or deleting a resource. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string Reason ConflictExceptionReason @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing a request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -89,13 +112,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service limit to exceed. type ServiceLimitExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string LimitCode *string @@ -113,13 +143,20 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceLimitExceededException) ErrorCode() string { return "ServiceLimitExceededException" } +func (e *ServiceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -134,7 +171,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input doesn't match with the constraints specified by Amazon Web Services @@ -142,6 +184,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -157,5 +201,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/braket/types/errors.go b/service/braket/types/errors.go index fee920598cd..1702d698370 100644 --- a/service/braket/types/errors.go +++ b/service/braket/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred due to a conflict. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified device is currently offline. type DeviceOfflineException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *DeviceOfflineException) ErrorMessage() string { } return *e.Message } -func (e *DeviceOfflineException) ErrorCode() string { return "DeviceOfflineException" } +func (e *DeviceOfflineException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeviceOfflineException" + } + return *e.ErrorCodeOverride +} func (e *DeviceOfflineException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified device has been retired. type DeviceRetiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *DeviceRetiredException) ErrorMessage() string { } return *e.Message } -func (e *DeviceRetiredException) ErrorCode() string { return "DeviceRetiredException" } +func (e *DeviceRetiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeviceRetiredException" + } + return *e.ErrorCodeOverride +} func (e *DeviceRetiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception, or @@ -88,6 +116,8 @@ func (e *DeviceRetiredException) ErrorFault() smithy.ErrorFault { return smithy. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,13 +156,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because a service quota is exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,13 +182,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling rate limit is met. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -157,13 +208,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -176,5 +234,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/budgets/types/errors.go b/service/budgets/types/errors.go index 243d6ec8040..8cb0a8ff194 100644 --- a/service/budgets/types/errors.go +++ b/service/budgets/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've exceeded the notification or subscriber limit. type CreationLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *CreationLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *CreationLimitExceededException) ErrorCode() string { return "CreationLimitExceededException" } +func (e *CreationLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CreationLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *CreationLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The budget name already exists. Budget names must be unique within an account. type DuplicateRecordException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *DuplicateRecordException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateRecordException) ErrorCode() string { return "DuplicateRecordException" } +func (e *DuplicateRecordException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateRecordException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateRecordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pagination token expired. type ExpiredNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *ExpiredNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredNextTokenException) ErrorCode() string { return "ExpiredNextTokenException" } +func (e *ExpiredNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error on the server occurred during the processing of your request. Try again @@ -88,6 +116,8 @@ func (e *ExpiredNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The pagination token is invalid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,13 +156,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error on the client occurred. Typically, the cause is an invalid input value. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,13 +182,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can’t locate the resource that you specified. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -157,7 +208,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was received and recognized by the server, but the server rejected @@ -165,6 +221,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ResourceLockedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -177,7 +235,12 @@ func (e *ResourceLockedException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLockedException) ErrorCode() string { return "ResourceLockedException" } +func (e *ResourceLockedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLockedException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLockedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of API requests has exceeded the maximum allowed API request @@ -185,6 +248,8 @@ func (e *ResourceLockedException) ErrorFault() smithy.ErrorFault { return smithy type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -197,5 +262,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chime/types/errors.go b/service/chime/types/errors.go index 6587ab9b402..85d32e888b5 100644 --- a/service/chime/types/errors.go +++ b/service/chime/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input parameters don't match the service's restrictions. type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -46,7 +55,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -54,6 +68,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -68,13 +84,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -89,13 +112,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the resources in the request does not exist in the system. type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -110,13 +140,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -131,13 +168,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -152,13 +196,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailureException" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -173,13 +224,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -194,13 +252,20 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledClientException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -215,7 +280,12 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedClientException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was well-formed but was unable to be followed due to semantic @@ -223,6 +293,8 @@ func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return sm type UnprocessableEntityException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -237,5 +309,10 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnprocessableEntityException" + } + return *e.ErrorCodeOverride +} func (e *UnprocessableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chimesdkidentity/types/errors.go b/service/chimesdkidentity/types/errors.go index 479d24197d3..508cfd1f8fd 100644 --- a/service/chimesdkidentity/types/errors.go +++ b/service/chimesdkidentity/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -33,6 +40,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -47,13 +56,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -68,13 +84,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -89,13 +112,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -110,13 +140,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailureException" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -131,13 +168,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -152,13 +196,20 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledClientException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -173,5 +224,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedClientException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chimesdkmediapipelines/types/errors.go b/service/chimesdkmediapipelines/types/errors.go index 1bc5d78f3e2..b36fed8f6e4 100644 --- a/service/chimesdkmediapipelines/types/errors.go +++ b/service/chimesdkmediapipelines/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -26,13 +28,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -48,13 +57,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the resources in the request does not exist in the system. type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -70,13 +86,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -92,13 +115,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -114,13 +144,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailureException" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -136,13 +173,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -158,13 +202,20 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledClientException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode RequestId *string @@ -180,5 +231,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedClientException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chimesdkmeetings/types/errors.go b/service/chimesdkmeetings/types/errors.go index 474eae2b52e..8986475618d 100644 --- a/service/chimesdkmeetings/types/errors.go +++ b/service/chimesdkmeetings/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -26,13 +28,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Multiple instances of the same request have been made simultaneously. type ConflictException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -48,13 +57,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -70,13 +86,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -92,13 +115,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the resources in the request does not exist in the system. type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -114,13 +144,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you want to tag couldn't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string ResourceName *string @@ -137,13 +174,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -159,13 +203,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailureException" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string RetryAfterSeconds *string @@ -182,13 +233,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The number of customer requests exceeds the request rate limit. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -204,13 +262,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many tags were added to the specified resource. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string ResourceName *string @@ -227,13 +292,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user isn't authorized to request a resource. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -249,7 +321,12 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was well-formed but was unable to be followed due to semantic @@ -257,6 +334,8 @@ func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.F type UnprocessableEntityException struct { Message *string + ErrorCodeOverride *string + Code *string RequestId *string @@ -272,5 +351,10 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnprocessableEntityException" + } + return *e.ErrorCodeOverride +} func (e *UnprocessableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chimesdkmessaging/types/errors.go b/service/chimesdkmessaging/types/errors.go index a1ca259f61e..bd23c94cf38 100644 --- a/service/chimesdkmessaging/types/errors.go +++ b/service/chimesdkmessaging/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -33,6 +40,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -47,13 +56,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -68,13 +84,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the resources in the request does not exist in the system. type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -89,13 +112,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -110,13 +140,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -131,13 +168,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailureException" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -152,13 +196,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -173,13 +224,20 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledClientException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -194,5 +252,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedClientException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chimesdkvoice/types/errors.go b/service/chimesdkvoice/types/errors.go index 70461f3ab75..e67d3979b4e 100644 --- a/service/chimesdkvoice/types/errors.go +++ b/service/chimesdkvoice/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -24,12 +26,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -44,12 +53,19 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -64,12 +80,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -84,12 +107,19 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -104,12 +134,19 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -124,12 +161,19 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -144,12 +188,19 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailureException" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -164,12 +215,19 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ThrottledClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -184,12 +242,19 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledClientException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type UnauthorizedClientException struct { Message *string + ErrorCodeOverride *string + Code ErrorCode noSmithyDocumentSerde @@ -204,5 +269,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedClientException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloud9/types/errors.go b/service/cloud9/types/errors.go index a2fad158c6c..1d1c7d071a1 100644 --- a/service/cloud9/types/errors.go +++ b/service/cloud9/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -26,13 +28,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A concurrent access issue occurred. type ConcurrentAccessException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -48,13 +57,20 @@ func (e *ConcurrentAccessException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentAccessException) ErrorCode() string { return "ConcurrentAccessException" } +func (e *ConcurrentAccessException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentAccessException" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict occurred. type ConflictException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -70,13 +86,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An access permissions issue occurred. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -92,13 +115,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal server error occurred. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -114,13 +144,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A service limit was exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -136,13 +173,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target resource cannot be found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -158,13 +202,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many service requests were made over the given time period. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + ClassName *string Code int32 @@ -180,5 +231,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudcontrol/types/errors.go b/service/cloudcontrol/types/errors.go index b735d61690a..3e3f99969e4 100644 --- a/service/cloudcontrol/types/errors.go +++ b/service/cloudcontrol/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified client token has already been used in another resource request. @@ -32,6 +39,8 @@ func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy. type ClientTokenConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ClientTokenConflictException) ErrorMessage() string { } return *e.Message } -func (e *ClientTokenConflictException) ErrorCode() string { return "ClientTokenConflictException" } +func (e *ClientTokenConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientTokenConflictException" + } + return *e.ErrorCodeOverride +} func (e *ClientTokenConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is currently being modified by another operation. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -72,6 +91,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConcurrentOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +105,12 @@ func (e *ConcurrentOperationException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentOperationException) ErrorCode() string { return "ConcurrentOperationException" } +func (e *ConcurrentOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentOperationException" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource handler has returned that the downstream service generated an error @@ -92,6 +118,8 @@ func (e *ConcurrentOperationException) ErrorFault() smithy.ErrorFault { return s type GeneralServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +132,12 @@ func (e *GeneralServiceException) ErrorMessage() string { } return *e.Message } -func (e *GeneralServiceException) ErrorCode() string { return "GeneralServiceException" } +func (e *GeneralServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GeneralServiceException" + } + return *e.ErrorCodeOverride +} func (e *GeneralServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource handler has failed without a returning a more specific error code. @@ -112,6 +145,8 @@ func (e *GeneralServiceException) ErrorFault() smithy.ErrorFault { return smithy type HandlerFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +159,12 @@ func (e *HandlerFailureException) ErrorMessage() string { } return *e.Message } -func (e *HandlerFailureException) ErrorCode() string { return "HandlerFailureException" } +func (e *HandlerFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HandlerFailureException" + } + return *e.ErrorCodeOverride +} func (e *HandlerFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource handler has returned that an unexpected error occurred within the @@ -132,6 +172,8 @@ func (e *HandlerFailureException) ErrorFault() smithy.ErrorFault { return smithy type HandlerInternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,7 +187,10 @@ func (e *HandlerInternalFailureException) ErrorMessage() string { return *e.Message } func (e *HandlerInternalFailureException) ErrorCode() string { - return "HandlerInternalFailureException" + if e.ErrorCodeOverride == nil { + return "HandlerInternalFailureException" + } + return *e.ErrorCodeOverride } func (e *HandlerInternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -154,6 +199,8 @@ func (e *HandlerInternalFailureException) ErrorFault() smithy.ErrorFault { retur type InvalidCredentialsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -166,7 +213,12 @@ func (e *InvalidCredentialsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCredentialsException) ErrorCode() string { return "InvalidCredentialsException" } +func (e *InvalidCredentialsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCredentialsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCredentialsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource handler has returned that invalid input from the user has generated @@ -174,6 +226,8 @@ func (e *InvalidCredentialsException) ErrorFault() smithy.ErrorFault { return sm type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -186,7 +240,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource handler has returned that the request couldn't be completed due to @@ -194,6 +253,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type NetworkFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,7 +267,12 @@ func (e *NetworkFailureException) ErrorMessage() string { } return *e.Message } -func (e *NetworkFailureException) ErrorCode() string { return "NetworkFailureException" } +func (e *NetworkFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NetworkFailureException" + } + return *e.ErrorCodeOverride +} func (e *NetworkFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource handler has returned that the downstream resource failed to @@ -214,6 +280,8 @@ func (e *NetworkFailureException) ErrorFault() smithy.ErrorFault { return smithy type NotStabilizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -226,7 +294,12 @@ func (e *NotStabilizedException) ErrorMessage() string { } return *e.Message } -func (e *NotStabilizedException) ErrorCode() string { return "NotStabilizedException" } +func (e *NotStabilizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotStabilizedException" + } + return *e.ErrorCodeOverride +} func (e *NotStabilizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more properties included in this resource operation are defined as @@ -234,6 +307,8 @@ func (e *NotStabilizedException) ErrorFault() smithy.ErrorFault { return smithy. type NotUpdatableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -246,7 +321,12 @@ func (e *NotUpdatableException) ErrorMessage() string { } return *e.Message } -func (e *NotUpdatableException) ErrorCode() string { return "NotUpdatableException" } +func (e *NotUpdatableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotUpdatableException" + } + return *e.ErrorCodeOverride +} func (e *NotUpdatableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cloud Control API hasn't received a valid response from the resource handler, @@ -255,6 +335,8 @@ func (e *NotUpdatableException) ErrorFault() smithy.ErrorFault { return smithy.F type PrivateTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -267,13 +349,20 @@ func (e *PrivateTypeException) ErrorMessage() string { } return *e.Message } -func (e *PrivateTypeException) ErrorCode() string { return "PrivateTypeException" } +func (e *PrivateTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PrivateTypeException" + } + return *e.ErrorCodeOverride +} func (e *PrivateTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource operation with the specified request token can't be found. type RequestTokenNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -286,7 +375,12 @@ func (e *RequestTokenNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *RequestTokenNotFoundException) ErrorCode() string { return "RequestTokenNotFoundException" } +func (e *RequestTokenNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestTokenNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *RequestTokenNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is temporarily unavailable to be acted upon. For example, if the @@ -295,6 +389,8 @@ func (e *RequestTokenNotFoundException) ErrorFault() smithy.ErrorFault { return type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -307,13 +403,20 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified identifier can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -326,7 +429,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource handler has returned that the downstream service returned an @@ -334,6 +442,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -346,7 +456,12 @@ func (e *ServiceInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *ServiceInternalErrorException) ErrorCode() string { return "ServiceInternalErrorException" } +func (e *ServiceInternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceInternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *ServiceInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource handler has returned that a non-transient resource limit was @@ -354,6 +469,8 @@ func (e *ServiceInternalErrorException) ErrorFault() smithy.ErrorFault { return type ServiceLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -366,13 +483,20 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceLimitExceededException) ErrorCode() string { return "ServiceLimitExceededException" } +func (e *ServiceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -385,13 +509,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified extension doesn't exist in the CloudFormation registry. type TypeNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -404,13 +535,20 @@ func (e *TypeNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TypeNotFoundException) ErrorCode() string { return "TypeNotFoundException" } +func (e *TypeNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TypeNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't support this resource operation. type UnsupportedActionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -423,5 +561,10 @@ func (e *UnsupportedActionException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedActionException) ErrorCode() string { return "UnsupportedActionException" } +func (e *UnsupportedActionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedActionException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedActionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/clouddirectory/types/errors.go b/service/clouddirectory/types/errors.go index fb0c18f1365..de50f67cf0c 100644 --- a/service/clouddirectory/types/errors.go +++ b/service/clouddirectory/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A BatchWrite exception has occurred. type BatchWriteException struct { Message *string + ErrorCodeOverride *string + Index int32 Type BatchWriteExceptionType @@ -47,13 +56,20 @@ func (e *BatchWriteException) ErrorMessage() string { } return *e.Message } -func (e *BatchWriteException) ErrorCode() string { return "BatchWriteException" } +func (e *BatchWriteException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BatchWriteException" + } + return *e.ErrorCodeOverride +} func (e *BatchWriteException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot list the parents of a Directory root. type CannotListParentOfRootException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +83,10 @@ func (e *CannotListParentOfRootException) ErrorMessage() string { return *e.Message } func (e *CannotListParentOfRootException) ErrorCode() string { - return "CannotListParentOfRootException" + if e.ErrorCodeOverride == nil { + return "CannotListParentOfRootException" + } + return *e.ErrorCodeOverride } func (e *CannotListParentOfRootException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -76,6 +95,8 @@ func (e *CannotListParentOfRootException) ErrorFault() smithy.ErrorFault { retur type DirectoryAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -89,7 +110,10 @@ func (e *DirectoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DirectoryAlreadyExistsException) ErrorCode() string { - return "DirectoryAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "DirectoryAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *DirectoryAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -98,6 +122,8 @@ func (e *DirectoryAlreadyExistsException) ErrorFault() smithy.ErrorFault { retur type DirectoryDeletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -110,13 +136,20 @@ func (e *DirectoryDeletedException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryDeletedException) ErrorCode() string { return "DirectoryDeletedException" } +func (e *DirectoryDeletedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryDeletedException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryDeletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation can only operate on a disabled directory. type DirectoryNotDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,13 +162,20 @@ func (e *DirectoryNotDisabledException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryNotDisabledException) ErrorCode() string { return "DirectoryNotDisabledException" } +func (e *DirectoryNotDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryNotDisabledException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryNotDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Operations are only permitted on enabled directories. type DirectoryNotEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,13 +188,20 @@ func (e *DirectoryNotEnabledException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryNotEnabledException) ErrorCode() string { return "DirectoryNotEnabledException" } +func (e *DirectoryNotEnabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryNotEnabledException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A facet with the same name already exists. type FacetAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,7 +214,12 @@ func (e *FacetAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *FacetAlreadyExistsException) ErrorCode() string { return "FacetAlreadyExistsException" } +func (e *FacetAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FacetAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *FacetAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs when deleting a facet that contains an attribute that is a target to an @@ -175,6 +227,8 @@ func (e *FacetAlreadyExistsException) ErrorFault() smithy.ErrorFault { return sm type FacetInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,13 +241,20 @@ func (e *FacetInUseException) ErrorMessage() string { } return *e.Message } -func (e *FacetInUseException) ErrorCode() string { return "FacetInUseException" } +func (e *FacetInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FacetInUseException" + } + return *e.ErrorCodeOverride +} func (e *FacetInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Facet could not be found. type FacetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,7 +267,12 @@ func (e *FacetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *FacetNotFoundException) ErrorCode() string { return "FacetNotFoundException" } +func (e *FacetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FacetNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *FacetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Facet that you provided was not well formed or could not be validated with @@ -214,6 +280,8 @@ func (e *FacetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type FacetValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -226,7 +294,12 @@ func (e *FacetValidationException) ErrorMessage() string { } return *e.Message } -func (e *FacetValidationException) ErrorCode() string { return "FacetValidationException" } +func (e *FacetValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FacetValidationException" + } + return *e.ErrorCodeOverride +} func (e *FacetValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates a failure occurred while performing a check for backward compatibility @@ -235,6 +308,8 @@ func (e *FacetValidationException) ErrorFault() smithy.ErrorFault { return smith type IncompatibleSchemaException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -247,7 +322,12 @@ func (e *IncompatibleSchemaException) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleSchemaException) ErrorCode() string { return "IncompatibleSchemaException" } +func (e *IncompatibleSchemaException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleSchemaException" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleSchemaException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An object has been attempted to be attached to an object that does not have the @@ -255,6 +335,8 @@ func (e *IncompatibleSchemaException) ErrorFault() smithy.ErrorFault { return sm type IndexedAttributeMissingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -268,7 +350,10 @@ func (e *IndexedAttributeMissingException) ErrorMessage() string { return *e.Message } func (e *IndexedAttributeMissingException) ErrorCode() string { - return "IndexedAttributeMissingException" + if e.ErrorCodeOverride == nil { + return "IndexedAttributeMissingException" + } + return *e.ErrorCodeOverride } func (e *IndexedAttributeMissingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -280,6 +365,8 @@ func (e *IndexedAttributeMissingException) ErrorFault() smithy.ErrorFault { retu type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -292,13 +379,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that the provided ARN value is not valid. type InvalidArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -311,7 +405,12 @@ func (e *InvalidArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArnException) ErrorCode() string { return "InvalidArnException" } +func (e *InvalidArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that an attempt to make an attachment was invalid. For example, @@ -320,6 +419,8 @@ func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidAttachmentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -332,13 +433,20 @@ func (e *InvalidAttachmentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAttachmentException) ErrorCode() string { return "InvalidAttachmentException" } +func (e *InvalidAttachmentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAttachmentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAttachmentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An attempt to modify a Facet resulted in an invalid schema exception. type InvalidFacetUpdateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -351,13 +459,20 @@ func (e *InvalidFacetUpdateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFacetUpdateException) ErrorCode() string { return "InvalidFacetUpdateException" } +func (e *InvalidFacetUpdateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFacetUpdateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidFacetUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the NextToken value is not valid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -370,13 +485,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs when any of the rule parameter keys or values are invalid. type InvalidRuleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -389,13 +511,20 @@ func (e *InvalidRuleException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRuleException) ErrorCode() string { return "InvalidRuleException" } +func (e *InvalidRuleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRuleException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the provided SchemaDoc value is not valid. type InvalidSchemaDocException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -408,7 +537,12 @@ func (e *InvalidSchemaDocException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSchemaDocException) ErrorCode() string { return "InvalidSchemaDocException" } +func (e *InvalidSchemaDocException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSchemaDocException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSchemaDocException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Can occur for multiple reasons such as when you tag a resource that doesn’t @@ -417,6 +551,8 @@ func (e *InvalidSchemaDocException) ErrorFault() smithy.ErrorFault { return smit type InvalidTaggingRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -429,7 +565,12 @@ func (e *InvalidTaggingRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTaggingRequestException) ErrorCode() string { return "InvalidTaggingRequestException" } +func (e *InvalidTaggingRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTaggingRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTaggingRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that limits are exceeded. See Limits @@ -438,6 +579,8 @@ func (e *InvalidTaggingRequestException) ErrorFault() smithy.ErrorFault { return type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -450,7 +593,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a link could not be created due to a naming conflict. Choose a @@ -458,6 +606,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type LinkNameAlreadyInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -470,13 +620,20 @@ func (e *LinkNameAlreadyInUseException) ErrorMessage() string { } return *e.Message } -func (e *LinkNameAlreadyInUseException) ErrorCode() string { return "LinkNameAlreadyInUseException" } +func (e *LinkNameAlreadyInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LinkNameAlreadyInUseException" + } + return *e.ErrorCodeOverride +} func (e *LinkNameAlreadyInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the requested operation can only operate on index objects. type NotIndexException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -489,7 +646,12 @@ func (e *NotIndexException) ErrorMessage() string { } return *e.Message } -func (e *NotIndexException) ErrorCode() string { return "NotIndexException" } +func (e *NotIndexException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotIndexException" + } + return *e.ErrorCodeOverride +} func (e *NotIndexException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs when any invalid operations are performed on an object that is not a @@ -497,6 +659,8 @@ func (e *NotIndexException) ErrorFault() smithy.ErrorFault { return smithy.Fault type NotNodeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -509,13 +673,20 @@ func (e *NotNodeException) ErrorMessage() string { } return *e.Message } -func (e *NotNodeException) ErrorCode() string { return "NotNodeException" } +func (e *NotNodeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotNodeException" + } + return *e.ErrorCodeOverride +} func (e *NotNodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the requested operation can only operate on policy objects. type NotPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -528,13 +699,20 @@ func (e *NotPolicyException) ErrorMessage() string { } return *e.Message } -func (e *NotPolicyException) ErrorCode() string { return "NotPolicyException" } +func (e *NotPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotPolicyException" + } + return *e.ErrorCodeOverride +} func (e *NotPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the object is not attached to the index. type ObjectAlreadyDetachedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -547,7 +725,12 @@ func (e *ObjectAlreadyDetachedException) ErrorMessage() string { } return *e.Message } -func (e *ObjectAlreadyDetachedException) ErrorCode() string { return "ObjectAlreadyDetachedException" } +func (e *ObjectAlreadyDetachedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ObjectAlreadyDetachedException" + } + return *e.ErrorCodeOverride +} func (e *ObjectAlreadyDetachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the requested operation cannot be completed because the object @@ -555,6 +738,8 @@ func (e *ObjectAlreadyDetachedException) ErrorFault() smithy.ErrorFault { return type ObjectNotDetachedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -567,13 +752,20 @@ func (e *ObjectNotDetachedException) ErrorMessage() string { } return *e.Message } -func (e *ObjectNotDetachedException) ErrorCode() string { return "ObjectNotDetachedException" } +func (e *ObjectNotDetachedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ObjectNotDetachedException" + } + return *e.ErrorCodeOverride +} func (e *ObjectNotDetachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -586,7 +778,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs when a conflict with a previous successful write is detected. For @@ -598,6 +795,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type RetryableConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -610,7 +809,12 @@ func (e *RetryableConflictException) ErrorMessage() string { } return *e.Message } -func (e *RetryableConflictException) ErrorCode() string { return "RetryableConflictException" } +func (e *RetryableConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RetryableConflictException" + } + return *e.ErrorCodeOverride +} func (e *RetryableConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a schema could not be created due to a naming conflict. Please @@ -618,6 +822,8 @@ func (e *RetryableConflictException) ErrorFault() smithy.ErrorFault { return smi type SchemaAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -630,13 +836,20 @@ func (e *SchemaAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *SchemaAlreadyExistsException) ErrorCode() string { return "SchemaAlreadyExistsException" } +func (e *SchemaAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SchemaAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *SchemaAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a schema is already published. type SchemaAlreadyPublishedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -650,7 +863,10 @@ func (e *SchemaAlreadyPublishedException) ErrorMessage() string { return *e.Message } func (e *SchemaAlreadyPublishedException) ErrorCode() string { - return "SchemaAlreadyPublishedException" + if e.ErrorCodeOverride == nil { + return "SchemaAlreadyPublishedException" + } + return *e.ErrorCodeOverride } func (e *SchemaAlreadyPublishedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -659,6 +875,8 @@ func (e *SchemaAlreadyPublishedException) ErrorFault() smithy.ErrorFault { retur type StillContainsLinksException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -671,13 +889,20 @@ func (e *StillContainsLinksException) ErrorMessage() string { } return *e.Message } -func (e *StillContainsLinksException) ErrorCode() string { return "StillContainsLinksException" } +func (e *StillContainsLinksException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StillContainsLinksException" + } + return *e.ErrorCodeOverride +} func (e *StillContainsLinksException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the requested index type is not supported. type UnsupportedIndexTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -690,7 +915,12 @@ func (e *UnsupportedIndexTypeException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedIndexTypeException) ErrorCode() string { return "UnsupportedIndexTypeException" } +func (e *UnsupportedIndexTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedIndexTypeException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedIndexTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that your request is malformed in some manner. See the exception @@ -698,6 +928,8 @@ func (e *UnsupportedIndexTypeException) ErrorFault() smithy.ErrorFault { return type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -710,5 +942,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudformation/types/errors.go b/service/cloudformation/types/errors.go index 8f73076e5a3..1ee2bb1b49d 100644 --- a/service/cloudformation/types/errors.go +++ b/service/cloudformation/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred during a CloudFormation registry operation. type CFNRegistryException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *CFNRegistryException) ErrorMessage() string { } return *e.Message } -func (e *CFNRegistryException) ErrorCode() string { return "CFNRegistryException" } +func (e *CFNRegistryException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CFNRegistryException" + } + return *e.ErrorCodeOverride +} func (e *CFNRegistryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified change set name or ID doesn't exit. To view valid change sets for @@ -50,6 +64,8 @@ func (e *CFNRegistryException) ErrorFault() smithy.ErrorFault { return smithy.Fa type ChangeSetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *ChangeSetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ChangeSetNotFoundException) ErrorCode() string { return "ChangeSetNotFound" } +func (e *ChangeSetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ChangeSetNotFound" + } + return *e.ErrorCodeOverride +} func (e *ChangeSetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource exists, but has been changed. type CreatedButModifiedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,7 +104,12 @@ func (e *CreatedButModifiedException) ErrorMessage() string { } return *e.Message } -func (e *CreatedButModifiedException) ErrorCode() string { return "CreatedButModifiedException" } +func (e *CreatedButModifiedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CreatedButModifiedException" + } + return *e.ErrorCodeOverride +} func (e *CreatedButModifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The template contains resources with capabilities that weren't specified in the @@ -89,6 +117,8 @@ func (e *CreatedButModifiedException) ErrorFault() smithy.ErrorFault { return sm type InsufficientCapabilitiesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *InsufficientCapabilitiesException) ErrorMessage() string { return *e.Message } func (e *InsufficientCapabilitiesException) ErrorCode() string { - return "InsufficientCapabilitiesException" + if e.ErrorCodeOverride == nil { + return "InsufficientCapabilitiesException" + } + return *e.ErrorCodeOverride } func (e *InsufficientCapabilitiesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -112,6 +145,8 @@ func (e *InsufficientCapabilitiesException) ErrorFault() smithy.ErrorFault { ret type InvalidChangeSetStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,13 +159,20 @@ func (e *InvalidChangeSetStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidChangeSetStatusException) ErrorCode() string { return "InvalidChangeSetStatus" } +func (e *InvalidChangeSetStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidChangeSetStatus" + } + return *e.ErrorCodeOverride +} func (e *InvalidChangeSetStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified operation isn't valid. type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -143,7 +185,12 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Error reserved for use by the CloudFormation CLI @@ -152,6 +199,8 @@ func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smit type InvalidStateTransitionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,7 +213,12 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateTransitionException) ErrorCode() string { return "InvalidStateTransition" } +func (e *InvalidStateTransitionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateTransition" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for the resource has already been reached. For information about @@ -174,6 +228,8 @@ func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { retur type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -186,13 +242,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified name is already in use. type NameAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -205,13 +268,20 @@ func (e *NameAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *NameAlreadyExistsException) ErrorCode() string { return "NameAlreadyExistsException" } +func (e *NameAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NameAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *NameAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified operation ID already exists. type OperationIdAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -225,7 +295,10 @@ func (e *OperationIdAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OperationIdAlreadyExistsException) ErrorCode() string { - return "OperationIdAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "OperationIdAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *OperationIdAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -234,6 +307,8 @@ func (e *OperationIdAlreadyExistsException) ErrorFault() smithy.ErrorFault { ret type OperationInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -246,13 +321,20 @@ func (e *OperationInProgressException) ErrorMessage() string { } return *e.Message } -func (e *OperationInProgressException) ErrorCode() string { return "OperationInProgressException" } +func (e *OperationInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationInProgressException" + } + return *e.ErrorCodeOverride +} func (e *OperationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ID refers to an operation that doesn't exist. type OperationNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -265,7 +347,12 @@ func (e *OperationNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotFoundException) ErrorCode() string { return "OperationNotFoundException" } +func (e *OperationNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Error reserved for use by the CloudFormation CLI @@ -274,6 +361,8 @@ func (e *OperationNotFoundException) ErrorFault() smithy.ErrorFault { return smi type OperationStatusCheckFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -286,7 +375,12 @@ func (e *OperationStatusCheckFailedException) ErrorMessage() string { } return *e.Message } -func (e *OperationStatusCheckFailedException) ErrorCode() string { return "ConditionalCheckFailed" } +func (e *OperationStatusCheckFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConditionalCheckFailed" + } + return *e.ErrorCodeOverride +} func (e *OperationStatusCheckFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -295,6 +389,8 @@ func (e *OperationStatusCheckFailedException) ErrorFault() smithy.ErrorFault { type StackInstanceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -307,7 +403,12 @@ func (e *StackInstanceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *StackInstanceNotFoundException) ErrorCode() string { return "StackInstanceNotFoundException" } +func (e *StackInstanceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StackInstanceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *StackInstanceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified stack ARN doesn't exist or stack doesn't exist corresponding to @@ -315,6 +416,8 @@ func (e *StackInstanceNotFoundException) ErrorFault() smithy.ErrorFault { return type StackNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -327,7 +430,12 @@ func (e *StackNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *StackNotFoundException) ErrorCode() string { return "StackNotFoundException" } +func (e *StackNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StackNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *StackNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't yet delete this stack set, because it still contains one or more stack @@ -336,6 +444,8 @@ func (e *StackNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type StackSetNotEmptyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -348,13 +458,20 @@ func (e *StackSetNotEmptyException) ErrorMessage() string { } return *e.Message } -func (e *StackSetNotEmptyException) ErrorCode() string { return "StackSetNotEmptyException" } +func (e *StackSetNotEmptyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StackSetNotEmptyException" + } + return *e.ErrorCodeOverride +} func (e *StackSetNotEmptyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified stack set doesn't exist. type StackSetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -367,7 +484,12 @@ func (e *StackSetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *StackSetNotFoundException) ErrorCode() string { return "StackSetNotFoundException" } +func (e *StackSetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StackSetNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *StackSetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Another operation has been performed on this stack set since the specified @@ -375,6 +497,8 @@ func (e *StackSetNotFoundException) ErrorFault() smithy.ErrorFault { return smit type StaleRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -387,13 +511,20 @@ func (e *StaleRequestException) ErrorMessage() string { } return *e.Message } -func (e *StaleRequestException) ErrorCode() string { return "StaleRequestException" } +func (e *StaleRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StaleRequestException" + } + return *e.ErrorCodeOverride +} func (e *StaleRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A client request token already exists. type TokenAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -406,13 +537,20 @@ func (e *TokenAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *TokenAlreadyExistsException) ErrorCode() string { return "TokenAlreadyExistsException" } +func (e *TokenAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TokenAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *TokenAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified extension configuration can't be found. type TypeConfigurationNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -426,7 +564,10 @@ func (e *TypeConfigurationNotFoundException) ErrorMessage() string { return *e.Message } func (e *TypeConfigurationNotFoundException) ErrorCode() string { - return "TypeConfigurationNotFoundException" + if e.ErrorCodeOverride == nil { + return "TypeConfigurationNotFoundException" + } + return *e.ErrorCodeOverride } func (e *TypeConfigurationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -436,6 +577,8 @@ func (e *TypeConfigurationNotFoundException) ErrorFault() smithy.ErrorFault { type TypeNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -448,5 +591,10 @@ func (e *TypeNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TypeNotFoundException) ErrorCode() string { return "TypeNotFoundException" } +func (e *TypeNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TypeNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudfront/types/errors.go b/service/cloudfront/types/errors.go index c65892353b5..12e462f84bd 100644 --- a/service/cloudfront/types/errors.go +++ b/service/cloudfront/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDenied struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDenied) ErrorMessage() string { } return *e.Message } -func (e *AccessDenied) ErrorCode() string { return "AccessDenied" } +func (e *AccessDenied) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDenied" + } + return *e.ErrorCodeOverride +} func (e *AccessDenied) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalidation batch specified is too large. type BatchTooLarge struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *BatchTooLarge) ErrorMessage() string { } return *e.Message } -func (e *BatchTooLarge) ErrorCode() string { return "BatchTooLarge" } +func (e *BatchTooLarge) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BatchTooLarge" + } + return *e.ErrorCodeOverride +} func (e *BatchTooLarge) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cache policy with this name already exists. You must provide a unique name. To @@ -50,6 +64,8 @@ func (e *BatchTooLarge) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type CachePolicyAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,12 @@ func (e *CachePolicyAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *CachePolicyAlreadyExists) ErrorCode() string { return "CachePolicyAlreadyExists" } +func (e *CachePolicyAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CachePolicyAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *CachePolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot delete the cache policy because it is attached to one or more cache @@ -70,6 +91,8 @@ func (e *CachePolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smith type CachePolicyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *CachePolicyInUse) ErrorMessage() string { } return *e.Message } -func (e *CachePolicyInUse) ErrorCode() string { return "CachePolicyInUse" } +func (e *CachePolicyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CachePolicyInUse" + } + return *e.ErrorCodeOverride +} func (e *CachePolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't change the value of a public key. type CannotChangeImmutablePublicKeyFields struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *CannotChangeImmutablePublicKeyFields) ErrorMessage() string { return *e.Message } func (e *CannotChangeImmutablePublicKeyFields) ErrorCode() string { - return "CannotChangeImmutablePublicKeyFields" + if e.ErrorCodeOverride == nil { + return "CannotChangeImmutablePublicKeyFields" + } + return *e.ErrorCodeOverride } func (e *CannotChangeImmutablePublicKeyFields) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -115,6 +148,8 @@ func (e *CannotChangeImmutablePublicKeyFields) ErrorFault() smithy.ErrorFault { type CloudFrontOriginAccessIdentityAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,7 +163,10 @@ func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorMessage() string { return *e.Message } func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorCode() string { - return "CloudFrontOriginAccessIdentityAlreadyExists" + if e.ErrorCodeOverride == nil { + return "CloudFrontOriginAccessIdentityAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -138,6 +176,8 @@ func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault() smithy.ErrorF type CloudFrontOriginAccessIdentityInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -151,7 +191,10 @@ func (e *CloudFrontOriginAccessIdentityInUse) ErrorMessage() string { return *e.Message } func (e *CloudFrontOriginAccessIdentityInUse) ErrorCode() string { - return "CloudFrontOriginAccessIdentityInUse" + if e.ErrorCodeOverride == nil { + return "CloudFrontOriginAccessIdentityInUse" + } + return *e.ErrorCodeOverride } func (e *CloudFrontOriginAccessIdentityInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -161,6 +204,8 @@ func (e *CloudFrontOriginAccessIdentityInUse) ErrorFault() smithy.ErrorFault { type CNAMEAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,13 +218,20 @@ func (e *CNAMEAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *CNAMEAlreadyExists) ErrorCode() string { return "CNAMEAlreadyExists" } +func (e *CNAMEAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CNAMEAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *CNAMEAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A continuous deployment policy with this configuration already exists. type ContinuousDeploymentPolicyAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -193,7 +245,10 @@ func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorCode() string { - return "ContinuousDeploymentPolicyAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ContinuousDeploymentPolicyAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -204,6 +259,8 @@ func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorFault() smithy.ErrorFault type ContinuousDeploymentPolicyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -217,7 +274,10 @@ func (e *ContinuousDeploymentPolicyInUse) ErrorMessage() string { return *e.Message } func (e *ContinuousDeploymentPolicyInUse) ErrorCode() string { - return "ContinuousDeploymentPolicyInUse" + if e.ErrorCodeOverride == nil { + return "ContinuousDeploymentPolicyInUse" + } + return *e.ErrorCodeOverride } func (e *ContinuousDeploymentPolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -226,6 +286,8 @@ func (e *ContinuousDeploymentPolicyInUse) ErrorFault() smithy.ErrorFault { retur type DistributionAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -238,7 +300,12 @@ func (e *DistributionAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *DistributionAlreadyExists) ErrorCode() string { return "DistributionAlreadyExists" } +func (e *DistributionAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DistributionAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DistributionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified CloudFront distribution is not disabled. You must disable the @@ -246,6 +313,8 @@ func (e *DistributionAlreadyExists) ErrorFault() smithy.ErrorFault { return smit type DistributionNotDisabled struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -258,13 +327,20 @@ func (e *DistributionNotDisabled) ErrorMessage() string { } return *e.Message } -func (e *DistributionNotDisabled) ErrorCode() string { return "DistributionNotDisabled" } +func (e *DistributionNotDisabled) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DistributionNotDisabled" + } + return *e.ErrorCodeOverride +} func (e *DistributionNotDisabled) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration for field-level encryption already exists. type FieldLevelEncryptionConfigAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -278,7 +354,10 @@ func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorCode() string { - return "FieldLevelEncryptionConfigAlreadyExists" + if e.ErrorCodeOverride == nil { + return "FieldLevelEncryptionConfigAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -288,6 +367,8 @@ func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorFault() smithy.ErrorFault type FieldLevelEncryptionConfigInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -301,7 +382,10 @@ func (e *FieldLevelEncryptionConfigInUse) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionConfigInUse) ErrorCode() string { - return "FieldLevelEncryptionConfigInUse" + if e.ErrorCodeOverride == nil { + return "FieldLevelEncryptionConfigInUse" + } + return *e.ErrorCodeOverride } func (e *FieldLevelEncryptionConfigInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -309,6 +393,8 @@ func (e *FieldLevelEncryptionConfigInUse) ErrorFault() smithy.ErrorFault { retur type FieldLevelEncryptionProfileAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -322,7 +408,10 @@ func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorCode() string { - return "FieldLevelEncryptionProfileAlreadyExists" + if e.ErrorCodeOverride == nil { + return "FieldLevelEncryptionProfileAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -332,6 +421,8 @@ func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorFault() smithy.ErrorFaul type FieldLevelEncryptionProfileInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -345,7 +436,10 @@ func (e *FieldLevelEncryptionProfileInUse) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileInUse) ErrorCode() string { - return "FieldLevelEncryptionProfileInUse" + if e.ErrorCodeOverride == nil { + return "FieldLevelEncryptionProfileInUse" + } + return *e.ErrorCodeOverride } func (e *FieldLevelEncryptionProfileInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -353,6 +447,8 @@ func (e *FieldLevelEncryptionProfileInUse) ErrorFault() smithy.ErrorFault { retu type FieldLevelEncryptionProfileSizeExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -366,7 +462,10 @@ func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorCode() string { - return "FieldLevelEncryptionProfileSizeExceeded" + if e.ErrorCodeOverride == nil { + return "FieldLevelEncryptionProfileSizeExceeded" + } + return *e.ErrorCodeOverride } func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -378,6 +477,8 @@ func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorFault() smithy.ErrorFault type FunctionAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -390,13 +491,20 @@ func (e *FunctionAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *FunctionAlreadyExists) ErrorCode() string { return "FunctionAlreadyExists" } +func (e *FunctionAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FunctionAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *FunctionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot delete the function because it's attached to one or more cache behaviors. type FunctionInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -409,7 +517,12 @@ func (e *FunctionInUse) ErrorMessage() string { } return *e.Message } -func (e *FunctionInUse) ErrorCode() string { return "FunctionInUse" } +func (e *FunctionInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FunctionInUse" + } + return *e.ErrorCodeOverride +} func (e *FunctionInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The function is too large. For more information, see Quotas @@ -418,6 +531,8 @@ func (e *FunctionInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type FunctionSizeLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -430,13 +545,20 @@ func (e *FunctionSizeLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *FunctionSizeLimitExceeded) ErrorCode() string { return "FunctionSizeLimitExceeded" } +func (e *FunctionSizeLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FunctionSizeLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *FunctionSizeLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot delete a managed policy. type IllegalDelete struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -449,7 +571,12 @@ func (e *IllegalDelete) ErrorMessage() string { } return *e.Message } -func (e *IllegalDelete) ErrorCode() string { return "IllegalDelete" } +func (e *IllegalDelete) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalDelete" + } + return *e.ErrorCodeOverride +} func (e *IllegalDelete) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration for field-level encryption can't be associated with @@ -457,6 +584,8 @@ func (e *IllegalDelete) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -470,7 +599,10 @@ func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorMes return *e.Message } func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorCode() string { - return "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" + if e.ErrorCodeOverride == nil { + return "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" + } + return *e.ErrorCodeOverride } func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -481,6 +613,8 @@ func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFau type IllegalOriginAccessConfiguration struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -494,7 +628,10 @@ func (e *IllegalOriginAccessConfiguration) ErrorMessage() string { return *e.Message } func (e *IllegalOriginAccessConfiguration) ErrorCode() string { - return "IllegalOriginAccessConfiguration" + if e.ErrorCodeOverride == nil { + return "IllegalOriginAccessConfiguration" + } + return *e.ErrorCodeOverride } func (e *IllegalOriginAccessConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -502,6 +639,8 @@ func (e *IllegalOriginAccessConfiguration) ErrorFault() smithy.ErrorFault { retu type IllegalUpdate struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -514,13 +653,20 @@ func (e *IllegalUpdate) ErrorMessage() string { } return *e.Message } -func (e *IllegalUpdate) ErrorCode() string { return "IllegalUpdate" } +func (e *IllegalUpdate) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalUpdate" + } + return *e.ErrorCodeOverride +} func (e *IllegalUpdate) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of Quantity and the size of Items don't match. type InconsistentQuantities struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -533,13 +679,20 @@ func (e *InconsistentQuantities) ErrorMessage() string { } return *e.Message } -func (e *InconsistentQuantities) ErrorCode() string { return "InconsistentQuantities" } +func (e *InconsistentQuantities) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InconsistentQuantities" + } + return *e.ErrorCodeOverride +} func (e *InconsistentQuantities) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An argument is invalid. type InvalidArgument struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -552,13 +705,20 @@ func (e *InvalidArgument) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgument) ErrorCode() string { return "InvalidArgument" } +func (e *InvalidArgument) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgument" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The default root object file name is too big or contains an invalid character. type InvalidDefaultRootObject struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -571,7 +731,12 @@ func (e *InvalidDefaultRootObject) ErrorMessage() string { } return *e.Message } -func (e *InvalidDefaultRootObject) ErrorCode() string { return "InvalidDefaultRootObject" } +func (e *InvalidDefaultRootObject) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDefaultRootObject" + } + return *e.ErrorCodeOverride +} func (e *InvalidDefaultRootObject) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An origin access control is associated with an origin whose domain name is not @@ -579,6 +744,8 @@ func (e *InvalidDefaultRootObject) ErrorFault() smithy.ErrorFault { return smith type InvalidDomainNameForOriginAccessControl struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -592,7 +759,10 @@ func (e *InvalidDomainNameForOriginAccessControl) ErrorMessage() string { return *e.Message } func (e *InvalidDomainNameForOriginAccessControl) ErrorCode() string { - return "InvalidDomainNameForOriginAccessControl" + if e.ErrorCodeOverride == nil { + return "InvalidDomainNameForOriginAccessControl" + } + return *e.ErrorCodeOverride } func (e *InvalidDomainNameForOriginAccessControl) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -602,6 +772,8 @@ func (e *InvalidDomainNameForOriginAccessControl) ErrorFault() smithy.ErrorFault type InvalidErrorCode struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -614,7 +786,12 @@ func (e *InvalidErrorCode) ErrorMessage() string { } return *e.Message } -func (e *InvalidErrorCode) ErrorCode() string { return "InvalidErrorCode" } +func (e *InvalidErrorCode) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidErrorCode" + } + return *e.ErrorCodeOverride +} func (e *InvalidErrorCode) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains forward cookies option which doesn't match with the @@ -624,6 +801,8 @@ func (e *InvalidErrorCode) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InvalidForwardCookies struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -636,13 +815,20 @@ func (e *InvalidForwardCookies) ErrorMessage() string { } return *e.Message } -func (e *InvalidForwardCookies) ErrorCode() string { return "InvalidForwardCookies" } +func (e *InvalidForwardCookies) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidForwardCookies" + } + return *e.ErrorCodeOverride +} func (e *InvalidForwardCookies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A CloudFront function association is invalid. type InvalidFunctionAssociation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -655,13 +841,20 @@ func (e *InvalidFunctionAssociation) ErrorMessage() string { } return *e.Message } -func (e *InvalidFunctionAssociation) ErrorCode() string { return "InvalidFunctionAssociation" } +func (e *InvalidFunctionAssociation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFunctionAssociation" + } + return *e.ErrorCodeOverride +} func (e *InvalidFunctionAssociation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified geo restriction parameter is not valid. type InvalidGeoRestrictionParameter struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -674,13 +867,20 @@ func (e *InvalidGeoRestrictionParameter) ErrorMessage() string { } return *e.Message } -func (e *InvalidGeoRestrictionParameter) ErrorCode() string { return "InvalidGeoRestrictionParameter" } +func (e *InvalidGeoRestrictionParameter) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGeoRestrictionParameter" + } + return *e.ErrorCodeOverride +} func (e *InvalidGeoRestrictionParameter) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The headers specified are not valid for an Amazon S3 origin. type InvalidHeadersForS3Origin struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -693,13 +893,20 @@ func (e *InvalidHeadersForS3Origin) ErrorMessage() string { } return *e.Message } -func (e *InvalidHeadersForS3Origin) ErrorCode() string { return "InvalidHeadersForS3Origin" } +func (e *InvalidHeadersForS3Origin) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidHeadersForS3Origin" + } + return *e.ErrorCodeOverride +} func (e *InvalidHeadersForS3Origin) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The If-Match version is missing or not valid. type InvalidIfMatchVersion struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -712,13 +919,20 @@ func (e *InvalidIfMatchVersion) ErrorMessage() string { } return *e.Message } -func (e *InvalidIfMatchVersion) ErrorCode() string { return "InvalidIfMatchVersion" } +func (e *InvalidIfMatchVersion) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidIfMatchVersion" + } + return *e.ErrorCodeOverride +} func (e *InvalidIfMatchVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Lambda@Edge function association is invalid. type InvalidLambdaFunctionAssociation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -732,7 +946,10 @@ func (e *InvalidLambdaFunctionAssociation) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaFunctionAssociation) ErrorCode() string { - return "InvalidLambdaFunctionAssociation" + if e.ErrorCodeOverride == nil { + return "InvalidLambdaFunctionAssociation" + } + return *e.ErrorCodeOverride } func (e *InvalidLambdaFunctionAssociation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -740,6 +957,8 @@ func (e *InvalidLambdaFunctionAssociation) ErrorFault() smithy.ErrorFault { retu type InvalidLocationCode struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -752,13 +971,20 @@ func (e *InvalidLocationCode) ErrorMessage() string { } return *e.Message } -func (e *InvalidLocationCode) ErrorCode() string { return "InvalidLocationCode" } +func (e *InvalidLocationCode) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLocationCode" + } + return *e.ErrorCodeOverride +} func (e *InvalidLocationCode) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The minimum protocol version specified is not valid. type InvalidMinimumProtocolVersion struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -771,7 +997,12 @@ func (e *InvalidMinimumProtocolVersion) ErrorMessage() string { } return *e.Message } -func (e *InvalidMinimumProtocolVersion) ErrorCode() string { return "InvalidMinimumProtocolVersion" } +func (e *InvalidMinimumProtocolVersion) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMinimumProtocolVersion" + } + return *e.ErrorCodeOverride +} func (e *InvalidMinimumProtocolVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon S3 origin server specified does not refer to a valid Amazon S3 @@ -779,6 +1010,8 @@ func (e *InvalidMinimumProtocolVersion) ErrorFault() smithy.ErrorFault { return type InvalidOrigin struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -791,13 +1024,20 @@ func (e *InvalidOrigin) ErrorMessage() string { } return *e.Message } -func (e *InvalidOrigin) ErrorCode() string { return "InvalidOrigin" } +func (e *InvalidOrigin) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOrigin" + } + return *e.ErrorCodeOverride +} func (e *InvalidOrigin) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The origin access control is not valid. type InvalidOriginAccessControl struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -810,13 +1050,20 @@ func (e *InvalidOriginAccessControl) ErrorMessage() string { } return *e.Message } -func (e *InvalidOriginAccessControl) ErrorCode() string { return "InvalidOriginAccessControl" } +func (e *InvalidOriginAccessControl) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOriginAccessControl" + } + return *e.ErrorCodeOverride +} func (e *InvalidOriginAccessControl) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The origin access identity is not valid or doesn't exist. type InvalidOriginAccessIdentity struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -829,13 +1076,20 @@ func (e *InvalidOriginAccessIdentity) ErrorMessage() string { } return *e.Message } -func (e *InvalidOriginAccessIdentity) ErrorCode() string { return "InvalidOriginAccessIdentity" } +func (e *InvalidOriginAccessIdentity) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOriginAccessIdentity" + } + return *e.ErrorCodeOverride +} func (e *InvalidOriginAccessIdentity) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The keep alive timeout specified for the origin is not valid. type InvalidOriginKeepaliveTimeout struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -848,13 +1102,20 @@ func (e *InvalidOriginKeepaliveTimeout) ErrorMessage() string { } return *e.Message } -func (e *InvalidOriginKeepaliveTimeout) ErrorCode() string { return "InvalidOriginKeepaliveTimeout" } +func (e *InvalidOriginKeepaliveTimeout) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOriginKeepaliveTimeout" + } + return *e.ErrorCodeOverride +} func (e *InvalidOriginKeepaliveTimeout) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The read timeout specified for the origin is not valid. type InvalidOriginReadTimeout struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -867,7 +1128,12 @@ func (e *InvalidOriginReadTimeout) ErrorMessage() string { } return *e.Message } -func (e *InvalidOriginReadTimeout) ErrorCode() string { return "InvalidOriginReadTimeout" } +func (e *InvalidOriginReadTimeout) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOriginReadTimeout" + } + return *e.ErrorCodeOverride +} func (e *InvalidOriginReadTimeout) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot specify SSLv3 as the minimum protocol version if you only want to @@ -875,6 +1141,8 @@ func (e *InvalidOriginReadTimeout) ErrorFault() smithy.ErrorFault { return smith type InvalidProtocolSettings struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -887,13 +1155,20 @@ func (e *InvalidProtocolSettings) ErrorMessage() string { } return *e.Message } -func (e *InvalidProtocolSettings) ErrorCode() string { return "InvalidProtocolSettings" } +func (e *InvalidProtocolSettings) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidProtocolSettings" + } + return *e.ErrorCodeOverride +} func (e *InvalidProtocolSettings) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query string parameters specified are not valid. type InvalidQueryStringParameters struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -906,7 +1181,12 @@ func (e *InvalidQueryStringParameters) ErrorMessage() string { } return *e.Message } -func (e *InvalidQueryStringParameters) ErrorCode() string { return "InvalidQueryStringParameters" } +func (e *InvalidQueryStringParameters) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidQueryStringParameters" + } + return *e.ErrorCodeOverride +} func (e *InvalidQueryStringParameters) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The relative path is too big, is not URL-encoded, or does not begin with a slash @@ -914,6 +1194,8 @@ func (e *InvalidQueryStringParameters) ErrorFault() smithy.ErrorFault { return s type InvalidRelativePath struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -926,7 +1208,12 @@ func (e *InvalidRelativePath) ErrorMessage() string { } return *e.Message } -func (e *InvalidRelativePath) ErrorCode() string { return "InvalidRelativePath" } +func (e *InvalidRelativePath) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRelativePath" + } + return *e.ErrorCodeOverride +} func (e *InvalidRelativePath) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation requires the HTTPS protocol. Ensure that you specify the HTTPS @@ -935,6 +1222,8 @@ func (e *InvalidRelativePath) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidRequiredProtocol struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -947,13 +1236,20 @@ func (e *InvalidRequiredProtocol) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequiredProtocol) ErrorCode() string { return "InvalidRequiredProtocol" } +func (e *InvalidRequiredProtocol) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequiredProtocol" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequiredProtocol) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A response code is not valid. type InvalidResponseCode struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -966,13 +1262,20 @@ func (e *InvalidResponseCode) ErrorMessage() string { } return *e.Message } -func (e *InvalidResponseCode) ErrorCode() string { return "InvalidResponseCode" } +func (e *InvalidResponseCode) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResponseCode" + } + return *e.ErrorCodeOverride +} func (e *InvalidResponseCode) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tagging specified is not valid. type InvalidTagging struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -985,13 +1288,20 @@ func (e *InvalidTagging) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagging) ErrorCode() string { return "InvalidTagging" } +func (e *InvalidTagging) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagging" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagging) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The TTL order specified is not valid. type InvalidTTLOrder struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1004,13 +1314,20 @@ func (e *InvalidTTLOrder) ErrorMessage() string { } return *e.Message } -func (e *InvalidTTLOrder) ErrorCode() string { return "InvalidTTLOrder" } +func (e *InvalidTTLOrder) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTTLOrder" + } + return *e.ErrorCodeOverride +} func (e *InvalidTTLOrder) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A viewer certificate specified is not valid. type InvalidViewerCertificate struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1023,7 +1340,12 @@ func (e *InvalidViewerCertificate) ErrorMessage() string { } return *e.Message } -func (e *InvalidViewerCertificate) ErrorCode() string { return "InvalidViewerCertificate" } +func (e *InvalidViewerCertificate) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidViewerCertificate" + } + return *e.ErrorCodeOverride +} func (e *InvalidViewerCertificate) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A web ACL ID specified is not valid. To specify a web ACL created using the @@ -1034,6 +1356,8 @@ func (e *InvalidViewerCertificate) ErrorFault() smithy.ErrorFault { return smith type InvalidWebACLId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1046,7 +1370,12 @@ func (e *InvalidWebACLId) ErrorMessage() string { } return *e.Message } -func (e *InvalidWebACLId) ErrorCode() string { return "InvalidWebACLId" } +func (e *InvalidWebACLId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidWebACLId" + } + return *e.ErrorCodeOverride +} func (e *InvalidWebACLId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A key group with this name already exists. You must provide a unique name. To @@ -1054,6 +1383,8 @@ func (e *InvalidWebACLId) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type KeyGroupAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1066,7 +1397,12 @@ func (e *KeyGroupAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *KeyGroupAlreadyExists) ErrorCode() string { return "KeyGroupAlreadyExists" } +func (e *KeyGroupAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KeyGroupAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *KeyGroupAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation requires a body. Ensure that the body is present and the @@ -1074,6 +1410,8 @@ func (e *KeyGroupAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.F type MissingBody struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1086,13 +1424,20 @@ func (e *MissingBody) ErrorMessage() string { } return *e.Message } -func (e *MissingBody) ErrorCode() string { return "MissingBody" } +func (e *MissingBody) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingBody" + } + return *e.ErrorCodeOverride +} func (e *MissingBody) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A monitoring subscription already exists for the specified distribution. type MonitoringSubscriptionAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1106,7 +1451,10 @@ func (e *MonitoringSubscriptionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *MonitoringSubscriptionAlreadyExists) ErrorCode() string { - return "MonitoringSubscriptionAlreadyExists" + if e.ErrorCodeOverride == nil { + return "MonitoringSubscriptionAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *MonitoringSubscriptionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1116,6 +1464,8 @@ func (e *MonitoringSubscriptionAlreadyExists) ErrorFault() smithy.ErrorFault { type NoSuchCachePolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1128,13 +1478,20 @@ func (e *NoSuchCachePolicy) ErrorMessage() string { } return *e.Message } -func (e *NoSuchCachePolicy) ErrorCode() string { return "NoSuchCachePolicy" } +func (e *NoSuchCachePolicy) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchCachePolicy" + } + return *e.ErrorCodeOverride +} func (e *NoSuchCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified origin access identity does not exist. type NoSuchCloudFrontOriginAccessIdentity struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1148,7 +1505,10 @@ func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorMessage() string { return *e.Message } func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorCode() string { - return "NoSuchCloudFrontOriginAccessIdentity" + if e.ErrorCodeOverride == nil { + return "NoSuchCloudFrontOriginAccessIdentity" + } + return *e.ErrorCodeOverride } func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1158,6 +1518,8 @@ func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorFault() smithy.ErrorFault { type NoSuchContinuousDeploymentPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1171,7 +1533,10 @@ func (e *NoSuchContinuousDeploymentPolicy) ErrorMessage() string { return *e.Message } func (e *NoSuchContinuousDeploymentPolicy) ErrorCode() string { - return "NoSuchContinuousDeploymentPolicy" + if e.ErrorCodeOverride == nil { + return "NoSuchContinuousDeploymentPolicy" + } + return *e.ErrorCodeOverride } func (e *NoSuchContinuousDeploymentPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1179,6 +1544,8 @@ func (e *NoSuchContinuousDeploymentPolicy) ErrorFault() smithy.ErrorFault { retu type NoSuchDistribution struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1191,13 +1558,20 @@ func (e *NoSuchDistribution) ErrorMessage() string { } return *e.Message } -func (e *NoSuchDistribution) ErrorCode() string { return "NoSuchDistribution" } +func (e *NoSuchDistribution) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchDistribution" + } + return *e.ErrorCodeOverride +} func (e *NoSuchDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration for field-level encryption doesn't exist. type NoSuchFieldLevelEncryptionConfig struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1211,7 +1585,10 @@ func (e *NoSuchFieldLevelEncryptionConfig) ErrorMessage() string { return *e.Message } func (e *NoSuchFieldLevelEncryptionConfig) ErrorCode() string { - return "NoSuchFieldLevelEncryptionConfig" + if e.ErrorCodeOverride == nil { + return "NoSuchFieldLevelEncryptionConfig" + } + return *e.ErrorCodeOverride } func (e *NoSuchFieldLevelEncryptionConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1219,6 +1596,8 @@ func (e *NoSuchFieldLevelEncryptionConfig) ErrorFault() smithy.ErrorFault { retu type NoSuchFieldLevelEncryptionProfile struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1232,7 +1611,10 @@ func (e *NoSuchFieldLevelEncryptionProfile) ErrorMessage() string { return *e.Message } func (e *NoSuchFieldLevelEncryptionProfile) ErrorCode() string { - return "NoSuchFieldLevelEncryptionProfile" + if e.ErrorCodeOverride == nil { + return "NoSuchFieldLevelEncryptionProfile" + } + return *e.ErrorCodeOverride } func (e *NoSuchFieldLevelEncryptionProfile) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1240,6 +1622,8 @@ func (e *NoSuchFieldLevelEncryptionProfile) ErrorFault() smithy.ErrorFault { ret type NoSuchFunctionExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1252,13 +1636,20 @@ func (e *NoSuchFunctionExists) ErrorMessage() string { } return *e.Message } -func (e *NoSuchFunctionExists) ErrorCode() string { return "NoSuchFunctionExists" } +func (e *NoSuchFunctionExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchFunctionExists" + } + return *e.ErrorCodeOverride +} func (e *NoSuchFunctionExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified invalidation does not exist. type NoSuchInvalidation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1271,13 +1662,20 @@ func (e *NoSuchInvalidation) ErrorMessage() string { } return *e.Message } -func (e *NoSuchInvalidation) ErrorCode() string { return "NoSuchInvalidation" } +func (e *NoSuchInvalidation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchInvalidation" + } + return *e.ErrorCodeOverride +} func (e *NoSuchInvalidation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A monitoring subscription does not exist for the specified distribution. type NoSuchMonitoringSubscription struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1290,13 +1688,20 @@ func (e *NoSuchMonitoringSubscription) ErrorMessage() string { } return *e.Message } -func (e *NoSuchMonitoringSubscription) ErrorCode() string { return "NoSuchMonitoringSubscription" } +func (e *NoSuchMonitoringSubscription) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchMonitoringSubscription" + } + return *e.ErrorCodeOverride +} func (e *NoSuchMonitoringSubscription) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No origin exists with the specified Origin Id. type NoSuchOrigin struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1309,13 +1714,20 @@ func (e *NoSuchOrigin) ErrorMessage() string { } return *e.Message } -func (e *NoSuchOrigin) ErrorCode() string { return "NoSuchOrigin" } +func (e *NoSuchOrigin) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchOrigin" + } + return *e.ErrorCodeOverride +} func (e *NoSuchOrigin) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The origin access control does not exist. type NoSuchOriginAccessControl struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1328,13 +1740,20 @@ func (e *NoSuchOriginAccessControl) ErrorMessage() string { } return *e.Message } -func (e *NoSuchOriginAccessControl) ErrorCode() string { return "NoSuchOriginAccessControl" } +func (e *NoSuchOriginAccessControl) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchOriginAccessControl" + } + return *e.ErrorCodeOverride +} func (e *NoSuchOriginAccessControl) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The origin request policy does not exist. type NoSuchOriginRequestPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1347,13 +1766,20 @@ func (e *NoSuchOriginRequestPolicy) ErrorMessage() string { } return *e.Message } -func (e *NoSuchOriginRequestPolicy) ErrorCode() string { return "NoSuchOriginRequestPolicy" } +func (e *NoSuchOriginRequestPolicy) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchOriginRequestPolicy" + } + return *e.ErrorCodeOverride +} func (e *NoSuchOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified public key doesn't exist. type NoSuchPublicKey struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1366,13 +1792,20 @@ func (e *NoSuchPublicKey) ErrorMessage() string { } return *e.Message } -func (e *NoSuchPublicKey) ErrorCode() string { return "NoSuchPublicKey" } +func (e *NoSuchPublicKey) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchPublicKey" + } + return *e.ErrorCodeOverride +} func (e *NoSuchPublicKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The real-time log configuration does not exist. type NoSuchRealtimeLogConfig struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1385,13 +1818,20 @@ func (e *NoSuchRealtimeLogConfig) ErrorMessage() string { } return *e.Message } -func (e *NoSuchRealtimeLogConfig) ErrorCode() string { return "NoSuchRealtimeLogConfig" } +func (e *NoSuchRealtimeLogConfig) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchRealtimeLogConfig" + } + return *e.ErrorCodeOverride +} func (e *NoSuchRealtimeLogConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource that was specified is not valid. type NoSuchResource struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1404,13 +1844,20 @@ func (e *NoSuchResource) ErrorMessage() string { } return *e.Message } -func (e *NoSuchResource) ErrorCode() string { return "NoSuchResource" } +func (e *NoSuchResource) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchResource" + } + return *e.ErrorCodeOverride +} func (e *NoSuchResource) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The response headers policy does not exist. type NoSuchResponseHeadersPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1423,13 +1870,20 @@ func (e *NoSuchResponseHeadersPolicy) ErrorMessage() string { } return *e.Message } -func (e *NoSuchResponseHeadersPolicy) ErrorCode() string { return "NoSuchResponseHeadersPolicy" } +func (e *NoSuchResponseHeadersPolicy) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchResponseHeadersPolicy" + } + return *e.ErrorCodeOverride +} func (e *NoSuchResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified streaming distribution does not exist. type NoSuchStreamingDistribution struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1442,13 +1896,20 @@ func (e *NoSuchStreamingDistribution) ErrorMessage() string { } return *e.Message } -func (e *NoSuchStreamingDistribution) ErrorCode() string { return "NoSuchStreamingDistribution" } +func (e *NoSuchStreamingDistribution) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchStreamingDistribution" + } + return *e.ErrorCodeOverride +} func (e *NoSuchStreamingDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An origin access control with the specified parameters already exists. type OriginAccessControlAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1462,7 +1923,10 @@ func (e *OriginAccessControlAlreadyExists) ErrorMessage() string { return *e.Message } func (e *OriginAccessControlAlreadyExists) ErrorCode() string { - return "OriginAccessControlAlreadyExists" + if e.ErrorCodeOverride == nil { + return "OriginAccessControlAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *OriginAccessControlAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1471,6 +1935,8 @@ func (e *OriginAccessControlAlreadyExists) ErrorFault() smithy.ErrorFault { retu type OriginAccessControlInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1483,7 +1949,12 @@ func (e *OriginAccessControlInUse) ErrorMessage() string { } return *e.Message } -func (e *OriginAccessControlInUse) ErrorCode() string { return "OriginAccessControlInUse" } +func (e *OriginAccessControlInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OriginAccessControlInUse" + } + return *e.ErrorCodeOverride +} func (e *OriginAccessControlInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An origin request policy with this name already exists. You must provide a @@ -1492,6 +1963,8 @@ func (e *OriginAccessControlInUse) ErrorFault() smithy.ErrorFault { return smith type OriginRequestPolicyAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1505,7 +1978,10 @@ func (e *OriginRequestPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *OriginRequestPolicyAlreadyExists) ErrorCode() string { - return "OriginRequestPolicyAlreadyExists" + if e.ErrorCodeOverride == nil { + return "OriginRequestPolicyAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *OriginRequestPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1514,6 +1990,8 @@ func (e *OriginRequestPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { retu type OriginRequestPolicyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1526,13 +2004,20 @@ func (e *OriginRequestPolicyInUse) ErrorMessage() string { } return *e.Message } -func (e *OriginRequestPolicyInUse) ErrorCode() string { return "OriginRequestPolicyInUse" } +func (e *OriginRequestPolicyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OriginRequestPolicyInUse" + } + return *e.ErrorCodeOverride +} func (e *OriginRequestPolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The precondition in one or more of the request fields evaluated to false. type PreconditionFailed struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1545,13 +2030,20 @@ func (e *PreconditionFailed) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailed) ErrorCode() string { return "PreconditionFailed" } +func (e *PreconditionFailed) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionFailed" + } + return *e.ErrorCodeOverride +} func (e *PreconditionFailed) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified public key already exists. type PublicKeyAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1564,13 +2056,20 @@ func (e *PublicKeyAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *PublicKeyAlreadyExists) ErrorCode() string { return "PublicKeyAlreadyExists" } +func (e *PublicKeyAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PublicKeyAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *PublicKeyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified public key is in use. type PublicKeyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1583,13 +2082,20 @@ func (e *PublicKeyInUse) ErrorMessage() string { } return *e.Message } -func (e *PublicKeyInUse) ErrorCode() string { return "PublicKeyInUse" } +func (e *PublicKeyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PublicKeyInUse" + } + return *e.ErrorCodeOverride +} func (e *PublicKeyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No profile specified for the field-level encryption query argument. type QueryArgProfileEmpty struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1602,7 +2108,12 @@ func (e *QueryArgProfileEmpty) ErrorMessage() string { } return *e.Message } -func (e *QueryArgProfileEmpty) ErrorCode() string { return "QueryArgProfileEmpty" } +func (e *QueryArgProfileEmpty) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "QueryArgProfileEmpty" + } + return *e.ErrorCodeOverride +} func (e *QueryArgProfileEmpty) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A real-time log configuration with this name already exists. You must provide a @@ -1611,6 +2122,8 @@ func (e *QueryArgProfileEmpty) ErrorFault() smithy.ErrorFault { return smithy.Fa type RealtimeLogConfigAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1623,7 +2136,12 @@ func (e *RealtimeLogConfigAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *RealtimeLogConfigAlreadyExists) ErrorCode() string { return "RealtimeLogConfigAlreadyExists" } +func (e *RealtimeLogConfigAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RealtimeLogConfigAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *RealtimeLogConfigAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot delete the real-time log configuration because it is attached to one or @@ -1631,6 +2149,8 @@ func (e *RealtimeLogConfigAlreadyExists) ErrorFault() smithy.ErrorFault { return type RealtimeLogConfigInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1643,7 +2163,12 @@ func (e *RealtimeLogConfigInUse) ErrorMessage() string { } return *e.Message } -func (e *RealtimeLogConfigInUse) ErrorCode() string { return "RealtimeLogConfigInUse" } +func (e *RealtimeLogConfigInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RealtimeLogConfigInUse" + } + return *e.ErrorCodeOverride +} func (e *RealtimeLogConfigInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified real-time log configuration belongs to a different Amazon Web @@ -1651,6 +2176,8 @@ func (e *RealtimeLogConfigInUse) ErrorFault() smithy.ErrorFault { return smithy. type RealtimeLogConfigOwnerMismatch struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1663,13 +2190,20 @@ func (e *RealtimeLogConfigOwnerMismatch) ErrorMessage() string { } return *e.Message } -func (e *RealtimeLogConfigOwnerMismatch) ErrorCode() string { return "RealtimeLogConfigOwnerMismatch" } +func (e *RealtimeLogConfigOwnerMismatch) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RealtimeLogConfigOwnerMismatch" + } + return *e.ErrorCodeOverride +} func (e *RealtimeLogConfigOwnerMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot delete this resource because it is in use. type ResourceInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1682,7 +2216,12 @@ func (e *ResourceInUse) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUse) ErrorCode() string { return "ResourceInUse" } +func (e *ResourceInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUse" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A response headers policy with this name already exists. You must provide a @@ -1691,6 +2230,8 @@ func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type ResponseHeadersPolicyAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1704,7 +2245,10 @@ func (e *ResponseHeadersPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ResponseHeadersPolicyAlreadyExists) ErrorCode() string { - return "ResponseHeadersPolicyAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ResponseHeadersPolicyAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ResponseHeadersPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1715,6 +2259,8 @@ func (e *ResponseHeadersPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { type ResponseHeadersPolicyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1727,13 +2273,20 @@ func (e *ResponseHeadersPolicyInUse) ErrorMessage() string { } return *e.Message } -func (e *ResponseHeadersPolicyInUse) ErrorCode() string { return "ResponseHeadersPolicyInUse" } +func (e *ResponseHeadersPolicyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResponseHeadersPolicyInUse" + } + return *e.ErrorCodeOverride +} func (e *ResponseHeadersPolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A continuous deployment policy for this staging distribution already exists. type StagingDistributionInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1746,7 +2299,12 @@ func (e *StagingDistributionInUse) ErrorMessage() string { } return *e.Message } -func (e *StagingDistributionInUse) ErrorCode() string { return "StagingDistributionInUse" } +func (e *StagingDistributionInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StagingDistributionInUse" + } + return *e.ErrorCodeOverride +} func (e *StagingDistributionInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller reference you attempted to create the streaming distribution with is @@ -1754,6 +2312,8 @@ func (e *StagingDistributionInUse) ErrorFault() smithy.ErrorFault { return smith type StreamingDistributionAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1767,7 +2327,10 @@ func (e *StreamingDistributionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *StreamingDistributionAlreadyExists) ErrorCode() string { - return "StreamingDistributionAlreadyExists" + if e.ErrorCodeOverride == nil { + return "StreamingDistributionAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *StreamingDistributionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1778,6 +2341,8 @@ func (e *StreamingDistributionAlreadyExists) ErrorFault() smithy.ErrorFault { type StreamingDistributionNotDisabled struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1791,7 +2356,10 @@ func (e *StreamingDistributionNotDisabled) ErrorMessage() string { return *e.Message } func (e *StreamingDistributionNotDisabled) ErrorCode() string { - return "StreamingDistributionNotDisabled" + if e.ErrorCodeOverride == nil { + return "StreamingDistributionNotDisabled" + } + return *e.ErrorCodeOverride } func (e *StreamingDistributionNotDisabled) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1799,6 +2367,8 @@ func (e *StreamingDistributionNotDisabled) ErrorFault() smithy.ErrorFault { retu type TestFunctionFailed struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1811,7 +2381,12 @@ func (e *TestFunctionFailed) ErrorMessage() string { } return *e.Message } -func (e *TestFunctionFailed) ErrorCode() string { return "TestFunctionFailed" } +func (e *TestFunctionFailed) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TestFunctionFailed" + } + return *e.ErrorCodeOverride +} func (e *TestFunctionFailed) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The length of the Content-Security-Policy header value in the response headers @@ -1821,6 +2396,8 @@ func (e *TestFunctionFailed) ErrorFault() smithy.ErrorFault { return smithy.Faul type TooLongCSPInResponseHeadersPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1834,7 +2411,10 @@ func (e *TooLongCSPInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooLongCSPInResponseHeadersPolicy) ErrorCode() string { - return "TooLongCSPInResponseHeadersPolicy" + if e.ErrorCodeOverride == nil { + return "TooLongCSPInResponseHeadersPolicy" + } + return *e.ErrorCodeOverride } func (e *TooLongCSPInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1842,6 +2422,8 @@ func (e *TooLongCSPInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { ret type TooManyCacheBehaviors struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1854,7 +2436,12 @@ func (e *TooManyCacheBehaviors) ErrorMessage() string { } return *e.Message } -func (e *TooManyCacheBehaviors) ErrorCode() string { return "TooManyCacheBehaviors" } +func (e *TooManyCacheBehaviors) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyCacheBehaviors" + } + return *e.ErrorCodeOverride +} func (e *TooManyCacheBehaviors) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of cache policies for this Amazon Web @@ -1864,6 +2451,8 @@ func (e *TooManyCacheBehaviors) ErrorFault() smithy.ErrorFault { return smithy.F type TooManyCachePolicies struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1876,13 +2465,20 @@ func (e *TooManyCachePolicies) ErrorMessage() string { } return *e.Message } -func (e *TooManyCachePolicies) ErrorCode() string { return "TooManyCachePolicies" } +func (e *TooManyCachePolicies) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyCachePolicies" + } + return *e.ErrorCodeOverride +} func (e *TooManyCachePolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot create anymore custom SSL/TLS certificates. type TooManyCertificates struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1895,7 +2491,12 @@ func (e *TooManyCertificates) ErrorMessage() string { } return *e.Message } -func (e *TooManyCertificates) ErrorCode() string { return "TooManyCertificates" } +func (e *TooManyCertificates) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyCertificates" + } + return *e.ErrorCodeOverride +} func (e *TooManyCertificates) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Processing your request would cause you to exceed the maximum number of origin @@ -1903,6 +2504,8 @@ func (e *TooManyCertificates) ErrorFault() smithy.ErrorFault { return smithy.Fau type TooManyCloudFrontOriginAccessIdentities struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1916,7 +2519,10 @@ func (e *TooManyCloudFrontOriginAccessIdentities) ErrorMessage() string { return *e.Message } func (e *TooManyCloudFrontOriginAccessIdentities) ErrorCode() string { - return "TooManyCloudFrontOriginAccessIdentities" + if e.ErrorCodeOverride == nil { + return "TooManyCloudFrontOriginAccessIdentities" + } + return *e.ErrorCodeOverride } func (e *TooManyCloudFrontOriginAccessIdentities) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1927,6 +2533,8 @@ func (e *TooManyCloudFrontOriginAccessIdentities) ErrorFault() smithy.ErrorFault type TooManyContinuousDeploymentPolicies struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1940,7 +2548,10 @@ func (e *TooManyContinuousDeploymentPolicies) ErrorMessage() string { return *e.Message } func (e *TooManyContinuousDeploymentPolicies) ErrorCode() string { - return "TooManyContinuousDeploymentPolicies" + if e.ErrorCodeOverride == nil { + return "TooManyContinuousDeploymentPolicies" + } + return *e.ErrorCodeOverride } func (e *TooManyContinuousDeploymentPolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1951,6 +2562,8 @@ func (e *TooManyContinuousDeploymentPolicies) ErrorFault() smithy.ErrorFault { type TooManyCookieNamesInWhiteList struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1963,7 +2576,12 @@ func (e *TooManyCookieNamesInWhiteList) ErrorMessage() string { } return *e.Message } -func (e *TooManyCookieNamesInWhiteList) ErrorCode() string { return "TooManyCookieNamesInWhiteList" } +func (e *TooManyCookieNamesInWhiteList) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyCookieNamesInWhiteList" + } + return *e.ErrorCodeOverride +} func (e *TooManyCookieNamesInWhiteList) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of cookies in the cache policy exceeds the maximum. For more @@ -1973,6 +2591,8 @@ func (e *TooManyCookieNamesInWhiteList) ErrorFault() smithy.ErrorFault { return type TooManyCookiesInCachePolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1985,7 +2605,12 @@ func (e *TooManyCookiesInCachePolicy) ErrorMessage() string { } return *e.Message } -func (e *TooManyCookiesInCachePolicy) ErrorCode() string { return "TooManyCookiesInCachePolicy" } +func (e *TooManyCookiesInCachePolicy) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyCookiesInCachePolicy" + } + return *e.ErrorCodeOverride +} func (e *TooManyCookiesInCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of cookies in the origin request policy exceeds the maximum. For more @@ -1995,6 +2620,8 @@ func (e *TooManyCookiesInCachePolicy) ErrorFault() smithy.ErrorFault { return sm type TooManyCookiesInOriginRequestPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2008,7 +2635,10 @@ func (e *TooManyCookiesInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyCookiesInOriginRequestPolicy) ErrorCode() string { - return "TooManyCookiesInOriginRequestPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyCookiesInOriginRequestPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyCookiesInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2021,6 +2651,8 @@ func (e *TooManyCookiesInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { type TooManyCustomHeadersInResponseHeadersPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2034,7 +2666,10 @@ func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorCode() string { - return "TooManyCustomHeadersInResponseHeadersPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyCustomHeadersInResponseHeadersPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2044,6 +2679,8 @@ func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorF type TooManyDistributionCNAMEs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2056,7 +2693,12 @@ func (e *TooManyDistributionCNAMEs) ErrorMessage() string { } return *e.Message } -func (e *TooManyDistributionCNAMEs) ErrorCode() string { return "TooManyDistributionCNAMEs" } +func (e *TooManyDistributionCNAMEs) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyDistributionCNAMEs" + } + return *e.ErrorCodeOverride +} func (e *TooManyDistributionCNAMEs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Processing your request would cause you to exceed the maximum number of @@ -2064,6 +2706,8 @@ func (e *TooManyDistributionCNAMEs) ErrorFault() smithy.ErrorFault { return smit type TooManyDistributions struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2076,7 +2720,12 @@ func (e *TooManyDistributions) ErrorMessage() string { } return *e.Message } -func (e *TooManyDistributions) ErrorCode() string { return "TooManyDistributions" } +func (e *TooManyDistributions) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyDistributions" + } + return *e.ErrorCodeOverride +} func (e *TooManyDistributions) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of distributions have been associated with the specified @@ -2086,6 +2735,8 @@ func (e *TooManyDistributions) ErrorFault() smithy.ErrorFault { return smithy.Fa type TooManyDistributionsAssociatedToCachePolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2099,7 +2750,10 @@ func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorCode() string { - return "TooManyDistributionsAssociatedToCachePolicy" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsAssociatedToCachePolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2110,6 +2764,8 @@ func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorFault() smithy.ErrorF type TooManyDistributionsAssociatedToFieldLevelEncryptionConfig struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2123,7 +2779,10 @@ func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorMessag return *e.Message } func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorCode() string { - return "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2136,6 +2795,8 @@ func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault( type TooManyDistributionsAssociatedToKeyGroup struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2149,7 +2810,10 @@ func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorCode() string { - return "TooManyDistributionsAssociatedToKeyGroup" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsAssociatedToKeyGroup" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2162,6 +2826,8 @@ func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorFault() smithy.ErrorFaul type TooManyDistributionsAssociatedToOriginAccessControl struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2175,7 +2841,10 @@ func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorMessage() str return *e.Message } func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorCode() string { - return "TooManyDistributionsAssociatedToOriginAccessControl" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsAssociatedToOriginAccessControl" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2188,6 +2857,8 @@ func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorFault() smith type TooManyDistributionsAssociatedToOriginRequestPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2201,7 +2872,10 @@ func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorMessage() str return *e.Message } func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorCode() string { - return "TooManyDistributionsAssociatedToOriginRequestPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsAssociatedToOriginRequestPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2214,6 +2888,8 @@ func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault() smith type TooManyDistributionsAssociatedToResponseHeadersPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2227,7 +2903,10 @@ func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorMessage() s return *e.Message } func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorCode() string { - return "TooManyDistributionsAssociatedToResponseHeadersPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsAssociatedToResponseHeadersPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2240,6 +2919,8 @@ func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorFault() smi type TooManyDistributionsWithFunctionAssociations struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2253,7 +2934,10 @@ func (e *TooManyDistributionsWithFunctionAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithFunctionAssociations) ErrorCode() string { - return "TooManyDistributionsWithFunctionAssociations" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsWithFunctionAssociations" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsWithFunctionAssociations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2264,6 +2948,8 @@ func (e *TooManyDistributionsWithFunctionAssociations) ErrorFault() smithy.Error type TooManyDistributionsWithLambdaAssociations struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2277,7 +2963,10 @@ func (e *TooManyDistributionsWithLambdaAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithLambdaAssociations) ErrorCode() string { - return "TooManyDistributionsWithLambdaAssociations" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsWithLambdaAssociations" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsWithLambdaAssociations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2288,6 +2977,8 @@ func (e *TooManyDistributionsWithLambdaAssociations) ErrorFault() smithy.ErrorFa type TooManyDistributionsWithSingleFunctionARN struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2301,7 +2992,10 @@ func (e *TooManyDistributionsWithSingleFunctionARN) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithSingleFunctionARN) ErrorCode() string { - return "TooManyDistributionsWithSingleFunctionARN" + if e.ErrorCodeOverride == nil { + return "TooManyDistributionsWithSingleFunctionARN" + } + return *e.ErrorCodeOverride } func (e *TooManyDistributionsWithSingleFunctionARN) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2312,6 +3006,8 @@ func (e *TooManyDistributionsWithSingleFunctionARN) ErrorFault() smithy.ErrorFau type TooManyFieldLevelEncryptionConfigs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2325,7 +3021,10 @@ func (e *TooManyFieldLevelEncryptionConfigs) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionConfigs) ErrorCode() string { - return "TooManyFieldLevelEncryptionConfigs" + if e.ErrorCodeOverride == nil { + return "TooManyFieldLevelEncryptionConfigs" + } + return *e.ErrorCodeOverride } func (e *TooManyFieldLevelEncryptionConfigs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2336,6 +3035,8 @@ func (e *TooManyFieldLevelEncryptionConfigs) ErrorFault() smithy.ErrorFault { type TooManyFieldLevelEncryptionContentTypeProfiles struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2349,7 +3050,10 @@ func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorCode() string { - return "TooManyFieldLevelEncryptionContentTypeProfiles" + if e.ErrorCodeOverride == nil { + return "TooManyFieldLevelEncryptionContentTypeProfiles" + } + return *e.ErrorCodeOverride } func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2360,6 +3064,8 @@ func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault() smithy.Err type TooManyFieldLevelEncryptionEncryptionEntities struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2373,7 +3079,10 @@ func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorCode() string { - return "TooManyFieldLevelEncryptionEncryptionEntities" + if e.ErrorCodeOverride == nil { + return "TooManyFieldLevelEncryptionEncryptionEntities" + } + return *e.ErrorCodeOverride } func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2384,6 +3093,8 @@ func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault() smithy.Erro type TooManyFieldLevelEncryptionFieldPatterns struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2397,7 +3108,10 @@ func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorCode() string { - return "TooManyFieldLevelEncryptionFieldPatterns" + if e.ErrorCodeOverride == nil { + return "TooManyFieldLevelEncryptionFieldPatterns" + } + return *e.ErrorCodeOverride } func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2407,6 +3121,8 @@ func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorFault() smithy.ErrorFaul type TooManyFieldLevelEncryptionProfiles struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2420,7 +3136,10 @@ func (e *TooManyFieldLevelEncryptionProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionProfiles) ErrorCode() string { - return "TooManyFieldLevelEncryptionProfiles" + if e.ErrorCodeOverride == nil { + return "TooManyFieldLevelEncryptionProfiles" + } + return *e.ErrorCodeOverride } func (e *TooManyFieldLevelEncryptionProfiles) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2431,6 +3150,8 @@ func (e *TooManyFieldLevelEncryptionProfiles) ErrorFault() smithy.ErrorFault { type TooManyFieldLevelEncryptionQueryArgProfiles struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2444,7 +3165,10 @@ func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorCode() string { - return "TooManyFieldLevelEncryptionQueryArgProfiles" + if e.ErrorCodeOverride == nil { + return "TooManyFieldLevelEncryptionQueryArgProfiles" + } + return *e.ErrorCodeOverride } func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2457,6 +3181,8 @@ func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault() smithy.ErrorF type TooManyFunctionAssociations struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2469,7 +3195,12 @@ func (e *TooManyFunctionAssociations) ErrorMessage() string { } return *e.Message } -func (e *TooManyFunctionAssociations) ErrorCode() string { return "TooManyFunctionAssociations" } +func (e *TooManyFunctionAssociations) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyFunctionAssociations" + } + return *e.ErrorCodeOverride +} func (e *TooManyFunctionAssociations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of CloudFront functions for this Amazon Web @@ -2479,6 +3210,8 @@ func (e *TooManyFunctionAssociations) ErrorFault() smithy.ErrorFault { return sm type TooManyFunctions struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2491,7 +3224,12 @@ func (e *TooManyFunctions) ErrorMessage() string { } return *e.Message } -func (e *TooManyFunctions) ErrorCode() string { return "TooManyFunctions" } +func (e *TooManyFunctions) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyFunctions" + } + return *e.ErrorCodeOverride +} func (e *TooManyFunctions) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of headers in the cache policy exceeds the maximum. For more @@ -2501,6 +3239,8 @@ func (e *TooManyFunctions) ErrorFault() smithy.ErrorFault { return smithy.FaultC type TooManyHeadersInCachePolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2513,13 +3253,20 @@ func (e *TooManyHeadersInCachePolicy) ErrorMessage() string { } return *e.Message } -func (e *TooManyHeadersInCachePolicy) ErrorCode() string { return "TooManyHeadersInCachePolicy" } +func (e *TooManyHeadersInCachePolicy) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyHeadersInCachePolicy" + } + return *e.ErrorCodeOverride +} func (e *TooManyHeadersInCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains too many headers in forwarded values. type TooManyHeadersInForwardedValues struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2533,7 +3280,10 @@ func (e *TooManyHeadersInForwardedValues) ErrorMessage() string { return *e.Message } func (e *TooManyHeadersInForwardedValues) ErrorCode() string { - return "TooManyHeadersInForwardedValues" + if e.ErrorCodeOverride == nil { + return "TooManyHeadersInForwardedValues" + } + return *e.ErrorCodeOverride } func (e *TooManyHeadersInForwardedValues) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2544,6 +3294,8 @@ func (e *TooManyHeadersInForwardedValues) ErrorFault() smithy.ErrorFault { retur type TooManyHeadersInOriginRequestPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2557,7 +3309,10 @@ func (e *TooManyHeadersInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyHeadersInOriginRequestPolicy) ErrorCode() string { - return "TooManyHeadersInOriginRequestPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyHeadersInOriginRequestPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyHeadersInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2568,6 +3323,8 @@ func (e *TooManyHeadersInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { type TooManyInvalidationsInProgress struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2580,7 +3337,12 @@ func (e *TooManyInvalidationsInProgress) ErrorMessage() string { } return *e.Message } -func (e *TooManyInvalidationsInProgress) ErrorCode() string { return "TooManyInvalidationsInProgress" } +func (e *TooManyInvalidationsInProgress) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyInvalidationsInProgress" + } + return *e.ErrorCodeOverride +} func (e *TooManyInvalidationsInProgress) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of key groups for this Amazon Web Services @@ -2590,6 +3352,8 @@ func (e *TooManyInvalidationsInProgress) ErrorFault() smithy.ErrorFault { return type TooManyKeyGroups struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2602,7 +3366,12 @@ func (e *TooManyKeyGroups) ErrorMessage() string { } return *e.Message } -func (e *TooManyKeyGroups) ErrorCode() string { return "TooManyKeyGroups" } +func (e *TooManyKeyGroups) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyKeyGroups" + } + return *e.ErrorCodeOverride +} func (e *TooManyKeyGroups) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of key groups referenced by this distribution is more than the @@ -2612,6 +3381,8 @@ func (e *TooManyKeyGroups) ErrorFault() smithy.ErrorFault { return smithy.FaultC type TooManyKeyGroupsAssociatedToDistribution struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2625,7 +3396,10 @@ func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorMessage() string { return *e.Message } func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorCode() string { - return "TooManyKeyGroupsAssociatedToDistribution" + if e.ErrorCodeOverride == nil { + return "TooManyKeyGroupsAssociatedToDistribution" + } + return *e.ErrorCodeOverride } func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2636,6 +3410,8 @@ func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorFault() smithy.ErrorFaul type TooManyLambdaFunctionAssociations struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2649,7 +3425,10 @@ func (e *TooManyLambdaFunctionAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyLambdaFunctionAssociations) ErrorCode() string { - return "TooManyLambdaFunctionAssociations" + if e.ErrorCodeOverride == nil { + return "TooManyLambdaFunctionAssociations" + } + return *e.ErrorCodeOverride } func (e *TooManyLambdaFunctionAssociations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2660,6 +3439,8 @@ func (e *TooManyLambdaFunctionAssociations) ErrorFault() smithy.ErrorFault { ret type TooManyOriginAccessControls struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2672,13 +3453,20 @@ func (e *TooManyOriginAccessControls) ErrorMessage() string { } return *e.Message } -func (e *TooManyOriginAccessControls) ErrorCode() string { return "TooManyOriginAccessControls" } +func (e *TooManyOriginAccessControls) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyOriginAccessControls" + } + return *e.ErrorCodeOverride +} func (e *TooManyOriginAccessControls) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains too many origin custom headers. type TooManyOriginCustomHeaders struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2691,7 +3479,12 @@ func (e *TooManyOriginCustomHeaders) ErrorMessage() string { } return *e.Message } -func (e *TooManyOriginCustomHeaders) ErrorCode() string { return "TooManyOriginCustomHeaders" } +func (e *TooManyOriginCustomHeaders) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyOriginCustomHeaders" + } + return *e.ErrorCodeOverride +} func (e *TooManyOriginCustomHeaders) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Processing your request would cause you to exceed the maximum number of origin @@ -2699,6 +3492,8 @@ func (e *TooManyOriginCustomHeaders) ErrorFault() smithy.ErrorFault { return smi type TooManyOriginGroupsPerDistribution struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2712,7 +3507,10 @@ func (e *TooManyOriginGroupsPerDistribution) ErrorMessage() string { return *e.Message } func (e *TooManyOriginGroupsPerDistribution) ErrorCode() string { - return "TooManyOriginGroupsPerDistribution" + if e.ErrorCodeOverride == nil { + return "TooManyOriginGroupsPerDistribution" + } + return *e.ErrorCodeOverride } func (e *TooManyOriginGroupsPerDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2725,6 +3523,8 @@ func (e *TooManyOriginGroupsPerDistribution) ErrorFault() smithy.ErrorFault { type TooManyOriginRequestPolicies struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2737,13 +3537,20 @@ func (e *TooManyOriginRequestPolicies) ErrorMessage() string { } return *e.Message } -func (e *TooManyOriginRequestPolicies) ErrorCode() string { return "TooManyOriginRequestPolicies" } +func (e *TooManyOriginRequestPolicies) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyOriginRequestPolicies" + } + return *e.ErrorCodeOverride +} func (e *TooManyOriginRequestPolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot create more origins for the distribution. type TooManyOrigins struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2756,7 +3563,12 @@ func (e *TooManyOrigins) ErrorMessage() string { } return *e.Message } -func (e *TooManyOrigins) ErrorCode() string { return "TooManyOrigins" } +func (e *TooManyOrigins) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyOrigins" + } + return *e.ErrorCodeOverride +} func (e *TooManyOrigins) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of public keys for field-level encryption have been created. @@ -2764,6 +3576,8 @@ func (e *TooManyOrigins) ErrorFault() smithy.ErrorFault { return smithy.FaultCli type TooManyPublicKeys struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2776,7 +3590,12 @@ func (e *TooManyPublicKeys) ErrorMessage() string { } return *e.Message } -func (e *TooManyPublicKeys) ErrorCode() string { return "TooManyPublicKeys" } +func (e *TooManyPublicKeys) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyPublicKeys" + } + return *e.ErrorCodeOverride +} func (e *TooManyPublicKeys) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of public keys in this key group is more than the maximum allowed. @@ -2786,6 +3605,8 @@ func (e *TooManyPublicKeys) ErrorFault() smithy.ErrorFault { return smithy.Fault type TooManyPublicKeysInKeyGroup struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2798,13 +3619,20 @@ func (e *TooManyPublicKeysInKeyGroup) ErrorMessage() string { } return *e.Message } -func (e *TooManyPublicKeysInKeyGroup) ErrorCode() string { return "TooManyPublicKeysInKeyGroup" } +func (e *TooManyPublicKeysInKeyGroup) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyPublicKeysInKeyGroup" + } + return *e.ErrorCodeOverride +} func (e *TooManyPublicKeysInKeyGroup) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains too many query string parameters. type TooManyQueryStringParameters struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2817,7 +3645,12 @@ func (e *TooManyQueryStringParameters) ErrorMessage() string { } return *e.Message } -func (e *TooManyQueryStringParameters) ErrorCode() string { return "TooManyQueryStringParameters" } +func (e *TooManyQueryStringParameters) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyQueryStringParameters" + } + return *e.ErrorCodeOverride +} func (e *TooManyQueryStringParameters) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of query strings in the cache policy exceeds the maximum. For more @@ -2827,6 +3660,8 @@ func (e *TooManyQueryStringParameters) ErrorFault() smithy.ErrorFault { return s type TooManyQueryStringsInCachePolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2840,7 +3675,10 @@ func (e *TooManyQueryStringsInCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyQueryStringsInCachePolicy) ErrorCode() string { - return "TooManyQueryStringsInCachePolicy" + if e.ErrorCodeOverride == nil { + return "TooManyQueryStringsInCachePolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyQueryStringsInCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2851,6 +3689,8 @@ func (e *TooManyQueryStringsInCachePolicy) ErrorFault() smithy.ErrorFault { retu type TooManyQueryStringsInOriginRequestPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2864,7 +3704,10 @@ func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorCode() string { - return "TooManyQueryStringsInOriginRequestPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyQueryStringsInOriginRequestPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2877,6 +3720,8 @@ func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorFault() smithy.ErrorFaul type TooManyRealtimeLogConfigs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2889,7 +3734,12 @@ func (e *TooManyRealtimeLogConfigs) ErrorMessage() string { } return *e.Message } -func (e *TooManyRealtimeLogConfigs) ErrorCode() string { return "TooManyRealtimeLogConfigs" } +func (e *TooManyRealtimeLogConfigs) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRealtimeLogConfigs" + } + return *e.ErrorCodeOverride +} func (e *TooManyRealtimeLogConfigs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of headers in RemoveHeadersConfig in the response headers policy @@ -2899,6 +3749,8 @@ func (e *TooManyRealtimeLogConfigs) ErrorFault() smithy.ErrorFault { return smit type TooManyRemoveHeadersInResponseHeadersPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2912,7 +3764,10 @@ func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorCode() string { - return "TooManyRemoveHeadersInResponseHeadersPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyRemoveHeadersInResponseHeadersPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2925,6 +3780,8 @@ func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorF type TooManyResponseHeadersPolicies struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2937,13 +3794,20 @@ func (e *TooManyResponseHeadersPolicies) ErrorMessage() string { } return *e.Message } -func (e *TooManyResponseHeadersPolicies) ErrorCode() string { return "TooManyResponseHeadersPolicies" } +func (e *TooManyResponseHeadersPolicies) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyResponseHeadersPolicies" + } + return *e.ErrorCodeOverride +} func (e *TooManyResponseHeadersPolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains more CNAMEs than are allowed per distribution. type TooManyStreamingDistributionCNAMEs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2957,7 +3821,10 @@ func (e *TooManyStreamingDistributionCNAMEs) ErrorMessage() string { return *e.Message } func (e *TooManyStreamingDistributionCNAMEs) ErrorCode() string { - return "TooManyStreamingDistributionCNAMEs" + if e.ErrorCodeOverride == nil { + return "TooManyStreamingDistributionCNAMEs" + } + return *e.ErrorCodeOverride } func (e *TooManyStreamingDistributionCNAMEs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2968,6 +3835,8 @@ func (e *TooManyStreamingDistributionCNAMEs) ErrorFault() smithy.ErrorFault { type TooManyStreamingDistributions struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2980,13 +3849,20 @@ func (e *TooManyStreamingDistributions) ErrorMessage() string { } return *e.Message } -func (e *TooManyStreamingDistributions) ErrorCode() string { return "TooManyStreamingDistributions" } +func (e *TooManyStreamingDistributions) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyStreamingDistributions" + } + return *e.ErrorCodeOverride +} func (e *TooManyStreamingDistributions) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains more trusted signers than are allowed per distribution. type TooManyTrustedSigners struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2999,13 +3875,20 @@ func (e *TooManyTrustedSigners) ErrorMessage() string { } return *e.Message } -func (e *TooManyTrustedSigners) ErrorCode() string { return "TooManyTrustedSigners" } +func (e *TooManyTrustedSigners) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTrustedSigners" + } + return *e.ErrorCodeOverride +} func (e *TooManyTrustedSigners) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key group does not exist. type TrustedKeyGroupDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3018,13 +3901,20 @@ func (e *TrustedKeyGroupDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *TrustedKeyGroupDoesNotExist) ErrorCode() string { return "TrustedKeyGroupDoesNotExist" } +func (e *TrustedKeyGroupDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrustedKeyGroupDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *TrustedKeyGroupDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of your trusted signers don't exist. type TrustedSignerDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3037,13 +3927,20 @@ func (e *TrustedSignerDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *TrustedSignerDoesNotExist) ErrorCode() string { return "TrustedSignerDoesNotExist" } +func (e *TrustedSignerDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrustedSignerDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *TrustedSignerDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not supported in this region. type UnsupportedOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3056,5 +3953,10 @@ func (e *UnsupportedOperation) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperation) ErrorCode() string { return "UnsupportedOperation" } +func (e *UnsupportedOperation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperation" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudhsm/types/errors.go b/service/cloudhsm/types/errors.go index de4925c65e6..cb61524321a 100644 --- a/service/cloudhsm/types/errors.go +++ b/service/cloudhsm/types/errors.go @@ -11,6 +11,8 @@ import ( type CloudHsmInternalException struct { Message *string + ErrorCodeOverride *string + Retryable bool noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *CloudHsmInternalException) ErrorMessage() string { } return *e.Message } -func (e *CloudHsmInternalException) ErrorCode() string { return "CloudHsmInternalException" } +func (e *CloudHsmInternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CloudHsmInternalException" + } + return *e.ErrorCodeOverride +} func (e *CloudHsmInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that an exception occurred in the AWS CloudHSM service. type CloudHsmServiceException struct { Message *string + ErrorCodeOverride *string + Retryable bool noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *CloudHsmServiceException) ErrorMessage() string { } return *e.Message } -func (e *CloudHsmServiceException) ErrorCode() string { return "CloudHsmServiceException" } +func (e *CloudHsmServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CloudHsmServiceException" + } + return *e.ErrorCodeOverride +} func (e *CloudHsmServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that one or more of the request parameters are not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + Retryable bool noSmithyDocumentSerde @@ -67,5 +83,10 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudhsmv2/types/errors.go b/service/cloudhsmv2/types/errors.go index 133997270f4..60fb2492f96 100644 --- a/service/cloudhsmv2/types/errors.go +++ b/service/cloudhsmv2/types/errors.go @@ -12,6 +12,8 @@ import ( type CloudHsmAccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *CloudHsmAccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *CloudHsmAccessDeniedException) ErrorCode() string { return "CloudHsmAccessDeniedException" } +func (e *CloudHsmAccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CloudHsmAccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *CloudHsmAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because of an AWS CloudHSM internal failure. The @@ -32,6 +39,8 @@ func (e *CloudHsmAccessDeniedException) ErrorFault() smithy.ErrorFault { return type CloudHsmInternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *CloudHsmInternalFailureException) ErrorMessage() string { return *e.Message } func (e *CloudHsmInternalFailureException) ErrorCode() string { - return "CloudHsmInternalFailureException" + if e.ErrorCodeOverride == nil { + return "CloudHsmInternalFailureException" + } + return *e.ErrorCodeOverride } func (e *CloudHsmInternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -53,6 +65,8 @@ func (e *CloudHsmInternalFailureException) ErrorFault() smithy.ErrorFault { retu type CloudHsmInvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +80,10 @@ func (e *CloudHsmInvalidRequestException) ErrorMessage() string { return *e.Message } func (e *CloudHsmInvalidRequestException) ErrorCode() string { - return "CloudHsmInvalidRequestException" + if e.ErrorCodeOverride == nil { + return "CloudHsmInvalidRequestException" + } + return *e.ErrorCodeOverride } func (e *CloudHsmInvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -74,6 +91,8 @@ func (e *CloudHsmInvalidRequestException) ErrorFault() smithy.ErrorFault { retur type CloudHsmResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +106,10 @@ func (e *CloudHsmResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *CloudHsmResourceNotFoundException) ErrorCode() string { - return "CloudHsmResourceNotFoundException" + if e.ErrorCodeOverride == nil { + return "CloudHsmResourceNotFoundException" + } + return *e.ErrorCodeOverride } func (e *CloudHsmResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -95,6 +117,8 @@ func (e *CloudHsmResourceNotFoundException) ErrorFault() smithy.ErrorFault { ret type CloudHsmServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +131,12 @@ func (e *CloudHsmServiceException) ErrorMessage() string { } return *e.Message } -func (e *CloudHsmServiceException) ErrorCode() string { return "CloudHsmServiceException" } +func (e *CloudHsmServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CloudHsmServiceException" + } + return *e.ErrorCodeOverride +} func (e *CloudHsmServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because of a tagging failure. Verify the tag conditions @@ -115,6 +144,8 @@ func (e *CloudHsmServiceException) ErrorFault() smithy.ErrorFault { return smith type CloudHsmTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,5 +158,10 @@ func (e *CloudHsmTagException) ErrorMessage() string { } return *e.Message } -func (e *CloudHsmTagException) ErrorCode() string { return "CloudHsmTagException" } +func (e *CloudHsmTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CloudHsmTagException" + } + return *e.ErrorCodeOverride +} func (e *CloudHsmTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudsearch/types/errors.go b/service/cloudsearch/types/errors.go index 3b1dbdc5f64..b2bb1025778 100644 --- a/service/cloudsearch/types/errors.go +++ b/service/cloudsearch/types/errors.go @@ -11,6 +11,8 @@ import ( type BaseException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *BaseException) ErrorMessage() string { } return *e.Message } -func (e *BaseException) ErrorCode() string { return "BaseException" } +func (e *BaseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BaseException" + } + return *e.ErrorCodeOverride +} func (e *BaseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted an operation which is not enabled. type DisabledOperationException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -46,7 +55,12 @@ func (e *DisabledOperationException) ErrorMessage() string { } return *e.Message } -func (e *DisabledOperationException) ErrorCode() string { return "DisabledAction" } +func (e *DisabledOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DisabledAction" + } + return *e.ErrorCodeOverride +} func (e *DisabledOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred while processing the request. If this problem @@ -55,6 +69,8 @@ func (e *DisabledOperationException) ErrorFault() smithy.ErrorFault { return smi type InternalException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -69,13 +85,20 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was rejected because it specified an invalid type definition. type InvalidTypeException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -90,13 +113,20 @@ func (e *InvalidTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTypeException) ErrorCode() string { return "InvalidType" } +func (e *InvalidTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidType" + } + return *e.ErrorCodeOverride +} func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because a resource limit has already been met. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -111,7 +141,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceeded" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create a resource that already @@ -119,6 +154,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -133,7 +170,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExists" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to reference a resource that does @@ -141,6 +183,8 @@ func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -155,13 +199,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it has invalid parameters. type ValidationException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -176,5 +227,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudsearchdomain/types/errors.go b/service/cloudsearchdomain/types/errors.go index 3816f185d8f..11af8e740aa 100644 --- a/service/cloudsearchdomain/types/errors.go +++ b/service/cloudsearchdomain/types/errors.go @@ -11,6 +11,8 @@ import ( type DocumentServiceException struct { Message *string + ErrorCodeOverride *string + Status *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *DocumentServiceException) ErrorMessage() string { } return *e.Message } -func (e *DocumentServiceException) ErrorCode() string { return "DocumentServiceException" } +func (e *DocumentServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DocumentServiceException" + } + return *e.ErrorCodeOverride +} func (e *DocumentServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Information about any problems encountered while processing a search request. type SearchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,5 +53,10 @@ func (e *SearchException) ErrorMessage() string { } return *e.Message } -func (e *SearchException) ErrorCode() string { return "SearchException" } +func (e *SearchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SearchException" + } + return *e.ErrorCodeOverride +} func (e *SearchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudtrail/types/errors.go b/service/cloudtrail/types/errors.go index 5574bed2d90..b5240ebcb42 100644 --- a/service/cloudtrail/types/errors.go +++ b/service/cloudtrail/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountHasOngoingImportException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *AccountHasOngoingImportException) ErrorMessage() string { return *e.Message } func (e *AccountHasOngoingImportException) ErrorCode() string { - return "AccountHasOngoingImportException" + if e.ErrorCodeOverride == nil { + return "AccountHasOngoingImportException" + } + return *e.ErrorCodeOverride } func (e *AccountHasOngoingImportException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -34,6 +39,8 @@ func (e *AccountHasOngoingImportException) ErrorFault() smithy.ErrorFault { retu type AccountNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +53,12 @@ func (e *AccountNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *AccountNotFoundException) ErrorCode() string { return "AccountNotFoundException" } +func (e *AccountNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *AccountNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified account is not registered as the @@ -54,6 +66,8 @@ func (e *AccountNotFoundException) ErrorFault() smithy.ErrorFault { return smith type AccountNotRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +80,12 @@ func (e *AccountNotRegisteredException) ErrorMessage() string { } return *e.Message } -func (e *AccountNotRegisteredException) ErrorCode() string { return "AccountNotRegisteredException" } +func (e *AccountNotRegisteredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountNotRegisteredException" + } + return *e.ErrorCodeOverride +} func (e *AccountNotRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the account is already registered as the @@ -74,6 +93,8 @@ func (e *AccountNotRegisteredException) ErrorFault() smithy.ErrorFault { return type AccountRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +107,12 @@ func (e *AccountRegisteredException) ErrorMessage() string { } return *e.Message } -func (e *AccountRegisteredException) ErrorCode() string { return "AccountRegisteredException" } +func (e *AccountRegisteredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountRegisteredException" + } + return *e.ErrorCodeOverride +} func (e *AccountRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the management account of an organization is @@ -94,6 +120,8 @@ func (e *AccountRegisteredException) ErrorFault() smithy.ErrorFault { return smi type CannotDelegateManagementAccountException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +135,10 @@ func (e *CannotDelegateManagementAccountException) ErrorMessage() string { return *e.Message } func (e *CannotDelegateManagementAccountException) ErrorCode() string { - return "CannotDelegateManagementAccountException" + if e.ErrorCodeOverride == nil { + return "CannotDelegateManagementAccountException" + } + return *e.ErrorCodeOverride } func (e *CannotDelegateManagementAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -117,6 +148,8 @@ func (e *CannotDelegateManagementAccountException) ErrorFault() smithy.ErrorFaul type ChannelARNInvalidException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,13 +162,20 @@ func (e *ChannelARNInvalidException) ErrorMessage() string { } return *e.Message } -func (e *ChannelARNInvalidException) ErrorCode() string { return "ChannelARNInvalidException" } +func (e *ChannelARNInvalidException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ChannelARNInvalidException" + } + return *e.ErrorCodeOverride +} func (e *ChannelARNInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified channel was not found. type ChannelNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,7 +188,12 @@ func (e *ChannelNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ChannelNotFoundException) ErrorCode() string { return "ChannelNotFoundException" } +func (e *ChannelNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ChannelNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ChannelNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when trusted access has not been enabled between @@ -160,6 +205,8 @@ func (e *ChannelNotFoundException) ErrorFault() smithy.ErrorFault { return smith type CloudTrailAccessNotEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +220,10 @@ func (e *CloudTrailAccessNotEnabledException) ErrorMessage() string { return *e.Message } func (e *CloudTrailAccessNotEnabledException) ErrorCode() string { - return "CloudTrailAccessNotEnabledException" + if e.ErrorCodeOverride == nil { + return "CloudTrailAccessNotEnabledException" + } + return *e.ErrorCodeOverride } func (e *CloudTrailAccessNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -185,6 +235,8 @@ func (e *CloudTrailAccessNotEnabledException) ErrorFault() smithy.ErrorFault { type CloudTrailARNInvalidException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -197,7 +249,12 @@ func (e *CloudTrailARNInvalidException) ErrorMessage() string { } return *e.Message } -func (e *CloudTrailARNInvalidException) ErrorCode() string { return "CloudTrailARNInvalidException" } +func (e *CloudTrailARNInvalidException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CloudTrailARNInvalidException" + } + return *e.ErrorCodeOverride +} func (e *CloudTrailARNInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a call results in the InvalidClientTokenId error @@ -207,6 +264,8 @@ func (e *CloudTrailARNInvalidException) ErrorFault() smithy.ErrorFault { return type CloudTrailInvalidClientTokenIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -220,7 +279,10 @@ func (e *CloudTrailInvalidClientTokenIdException) ErrorMessage() string { return *e.Message } func (e *CloudTrailInvalidClientTokenIdException) ErrorCode() string { - return "CloudTrailInvalidClientTokenIdException" + if e.ErrorCodeOverride == nil { + return "CloudTrailInvalidClientTokenIdException" + } + return *e.ErrorCodeOverride } func (e *CloudTrailInvalidClientTokenIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -230,6 +292,8 @@ func (e *CloudTrailInvalidClientTokenIdException) ErrorFault() smithy.ErrorFault type CloudWatchLogsDeliveryUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -243,7 +307,10 @@ func (e *CloudWatchLogsDeliveryUnavailableException) ErrorMessage() string { return *e.Message } func (e *CloudWatchLogsDeliveryUnavailableException) ErrorCode() string { - return "CloudWatchLogsDeliveryUnavailableException" + if e.ErrorCodeOverride == nil { + return "CloudWatchLogsDeliveryUnavailableException" + } + return *e.ErrorCodeOverride } func (e *CloudWatchLogsDeliveryUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -256,6 +323,8 @@ func (e *CloudWatchLogsDeliveryUnavailableException) ErrorFault() smithy.ErrorFa type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -268,7 +337,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the maximum number of CloudTrail delegated @@ -276,6 +350,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DelegatedAdminAccountLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -289,7 +365,10 @@ func (e *DelegatedAdminAccountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DelegatedAdminAccountLimitExceededException) ErrorCode() string { - return "DelegatedAdminAccountLimitExceededException" + if e.ErrorCodeOverride == nil { + return "DelegatedAdminAccountLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *DelegatedAdminAccountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -299,6 +378,8 @@ func (e *DelegatedAdminAccountLimitExceededException) ErrorFault() smithy.ErrorF type EventDataStoreAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -312,7 +393,10 @@ func (e *EventDataStoreAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreAlreadyExistsException) ErrorCode() string { - return "EventDataStoreAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "EventDataStoreAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *EventDataStoreAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -323,6 +407,8 @@ func (e *EventDataStoreAlreadyExistsException) ErrorFault() smithy.ErrorFault { type EventDataStoreARNInvalidException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -336,7 +422,10 @@ func (e *EventDataStoreARNInvalidException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreARNInvalidException) ErrorCode() string { - return "EventDataStoreARNInvalidException" + if e.ErrorCodeOverride == nil { + return "EventDataStoreARNInvalidException" + } + return *e.ErrorCodeOverride } func (e *EventDataStoreARNInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -345,6 +434,8 @@ func (e *EventDataStoreARNInvalidException) ErrorFault() smithy.ErrorFault { ret type EventDataStoreHasOngoingImportException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -358,7 +449,10 @@ func (e *EventDataStoreHasOngoingImportException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreHasOngoingImportException) ErrorCode() string { - return "EventDataStoreHasOngoingImportException" + if e.ErrorCodeOverride == nil { + return "EventDataStoreHasOngoingImportException" + } + return *e.ErrorCodeOverride } func (e *EventDataStoreHasOngoingImportException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -368,6 +462,8 @@ func (e *EventDataStoreHasOngoingImportException) ErrorFault() smithy.ErrorFault type EventDataStoreMaxLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -381,7 +477,10 @@ func (e *EventDataStoreMaxLimitExceededException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreMaxLimitExceededException) ErrorCode() string { - return "EventDataStoreMaxLimitExceededException" + if e.ErrorCodeOverride == nil { + return "EventDataStoreMaxLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *EventDataStoreMaxLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -391,6 +490,8 @@ func (e *EventDataStoreMaxLimitExceededException) ErrorFault() smithy.ErrorFault type EventDataStoreNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -404,7 +505,10 @@ func (e *EventDataStoreNotFoundException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreNotFoundException) ErrorCode() string { - return "EventDataStoreNotFoundException" + if e.ErrorCodeOverride == nil { + return "EventDataStoreNotFoundException" + } + return *e.ErrorCodeOverride } func (e *EventDataStoreNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -413,6 +517,8 @@ func (e *EventDataStoreNotFoundException) ErrorFault() smithy.ErrorFault { retur type EventDataStoreTerminationProtectedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -426,7 +532,10 @@ func (e *EventDataStoreTerminationProtectedException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreTerminationProtectedException) ErrorCode() string { - return "EventDataStoreTerminationProtectedException" + if e.ErrorCodeOverride == nil { + return "EventDataStoreTerminationProtectedException" + } + return *e.ErrorCodeOverride } func (e *EventDataStoreTerminationProtectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -436,6 +545,8 @@ func (e *EventDataStoreTerminationProtectedException) ErrorFault() smithy.ErrorF type ImportNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -448,13 +559,20 @@ func (e *ImportNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ImportNotFoundException) ErrorCode() string { return "ImportNotFoundException" } +func (e *ImportNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImportNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ImportNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The event data store is inactive. type InactiveEventDataStoreException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -468,7 +586,10 @@ func (e *InactiveEventDataStoreException) ErrorMessage() string { return *e.Message } func (e *InactiveEventDataStoreException) ErrorCode() string { - return "InactiveEventDataStoreException" + if e.ErrorCodeOverride == nil { + return "InactiveEventDataStoreException" + } + return *e.ErrorCodeOverride } func (e *InactiveEventDataStoreException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -477,6 +598,8 @@ func (e *InactiveEventDataStoreException) ErrorFault() smithy.ErrorFault { retur type InactiveQueryException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -489,7 +612,12 @@ func (e *InactiveQueryException) ErrorMessage() string { } return *e.Message } -func (e *InactiveQueryException) ErrorCode() string { return "InactiveQueryException" } +func (e *InactiveQueryException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InactiveQueryException" + } + return *e.ErrorCodeOverride +} func (e *InactiveQueryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // If you run GetInsightSelectors on a trail that does not have Insights events @@ -497,6 +625,8 @@ func (e *InactiveQueryException) ErrorFault() smithy.ErrorFault { return smithy. type InsightNotEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -509,7 +639,12 @@ func (e *InsightNotEnabledException) ErrorMessage() string { } return *e.Message } -func (e *InsightNotEnabledException) ErrorCode() string { return "InsightNotEnabledException" } +func (e *InsightNotEnabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InsightNotEnabledException" + } + return *e.ErrorCodeOverride +} func (e *InsightNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the IAM user or role that is used to create the @@ -518,6 +653,8 @@ func (e *InsightNotEnabledException) ErrorFault() smithy.ErrorFault { return smi type InsufficientDependencyServiceAccessPermissionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -531,7 +668,10 @@ func (e *InsufficientDependencyServiceAccessPermissionException) ErrorMessage() return *e.Message } func (e *InsufficientDependencyServiceAccessPermissionException) ErrorCode() string { - return "InsufficientDependencyServiceAccessPermissionException" + if e.ErrorCodeOverride == nil { + return "InsufficientDependencyServiceAccessPermissionException" + } + return *e.ErrorCodeOverride } func (e *InsufficientDependencyServiceAccessPermissionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -542,6 +682,8 @@ func (e *InsufficientDependencyServiceAccessPermissionException) ErrorFault() sm type InsufficientEncryptionPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -555,7 +697,10 @@ func (e *InsufficientEncryptionPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientEncryptionPolicyException) ErrorCode() string { - return "InsufficientEncryptionPolicyException" + if e.ErrorCodeOverride == nil { + return "InsufficientEncryptionPolicyException" + } + return *e.ErrorCodeOverride } func (e *InsufficientEncryptionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -565,6 +710,8 @@ func (e *InsufficientEncryptionPolicyException) ErrorFault() smithy.ErrorFault { type InsufficientS3BucketPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -578,7 +725,10 @@ func (e *InsufficientS3BucketPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientS3BucketPolicyException) ErrorCode() string { - return "InsufficientS3BucketPolicyException" + if e.ErrorCodeOverride == nil { + return "InsufficientS3BucketPolicyException" + } + return *e.ErrorCodeOverride } func (e *InsufficientS3BucketPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -589,6 +739,8 @@ func (e *InsufficientS3BucketPolicyException) ErrorFault() smithy.ErrorFault { type InsufficientSnsTopicPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -602,7 +754,10 @@ func (e *InsufficientSnsTopicPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientSnsTopicPolicyException) ErrorCode() string { - return "InsufficientSnsTopicPolicyException" + if e.ErrorCodeOverride == nil { + return "InsufficientSnsTopicPolicyException" + } + return *e.ErrorCodeOverride } func (e *InsufficientSnsTopicPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -613,6 +768,8 @@ func (e *InsufficientSnsTopicPolicyException) ErrorFault() smithy.ErrorFault { type InvalidCloudWatchLogsLogGroupArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -626,7 +783,10 @@ func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorCode() string { - return "InvalidCloudWatchLogsLogGroupArnException" + if e.ErrorCodeOverride == nil { + return "InvalidCloudWatchLogsLogGroupArnException" + } + return *e.ErrorCodeOverride } func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -636,6 +796,8 @@ func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorFault() smithy.ErrorFau type InvalidCloudWatchLogsRoleArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -649,7 +811,10 @@ func (e *InvalidCloudWatchLogsRoleArnException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchLogsRoleArnException) ErrorCode() string { - return "InvalidCloudWatchLogsRoleArnException" + if e.ErrorCodeOverride == nil { + return "InvalidCloudWatchLogsRoleArnException" + } + return *e.ErrorCodeOverride } func (e *InvalidCloudWatchLogsRoleArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -663,6 +828,8 @@ func (e *InvalidCloudWatchLogsRoleArnException) ErrorFault() smithy.ErrorFault { type InvalidDateRangeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -675,7 +842,12 @@ func (e *InvalidDateRangeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidDateRangeException) ErrorCode() string { return "InvalidDateRangeException" } +func (e *InvalidDateRangeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDateRangeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidDateRangeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs if an event category that is not valid is specified as a value of @@ -683,6 +855,8 @@ func (e *InvalidDateRangeException) ErrorFault() smithy.ErrorFault { return smit type InvalidEventCategoryException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -695,7 +869,12 @@ func (e *InvalidEventCategoryException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEventCategoryException) ErrorCode() string { return "InvalidEventCategoryException" } +func (e *InvalidEventCategoryException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEventCategoryException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEventCategoryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when event categories of specified event data stores @@ -703,6 +882,8 @@ func (e *InvalidEventCategoryException) ErrorFault() smithy.ErrorFault { return type InvalidEventDataStoreCategoryException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -716,7 +897,10 @@ func (e *InvalidEventDataStoreCategoryException) ErrorMessage() string { return *e.Message } func (e *InvalidEventDataStoreCategoryException) ErrorCode() string { - return "InvalidEventDataStoreCategoryException" + if e.ErrorCodeOverride == nil { + return "InvalidEventDataStoreCategoryException" + } + return *e.ErrorCodeOverride } func (e *InvalidEventDataStoreCategoryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -726,6 +910,8 @@ func (e *InvalidEventDataStoreCategoryException) ErrorFault() smithy.ErrorFault type InvalidEventDataStoreStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -739,7 +925,10 @@ func (e *InvalidEventDataStoreStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidEventDataStoreStatusException) ErrorCode() string { - return "InvalidEventDataStoreStatusException" + if e.ErrorCodeOverride == nil { + return "InvalidEventDataStoreStatusException" + } + return *e.ErrorCodeOverride } func (e *InvalidEventDataStoreStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -772,6 +961,8 @@ func (e *InvalidEventDataStoreStatusException) ErrorFault() smithy.ErrorFault { type InvalidEventSelectorsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -784,7 +975,12 @@ func (e *InvalidEventSelectorsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEventSelectorsException) ErrorCode() string { return "InvalidEventSelectorsException" } +func (e *InvalidEventSelectorsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEventSelectorsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEventSelectorsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when an operation is called on a trail from a region @@ -792,6 +988,8 @@ func (e *InvalidEventSelectorsException) ErrorFault() smithy.ErrorFault { return type InvalidHomeRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -804,7 +1002,12 @@ func (e *InvalidHomeRegionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidHomeRegionException) ErrorCode() string { return "InvalidHomeRegionException" } +func (e *InvalidHomeRegionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidHomeRegionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidHomeRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the provided source S3 bucket is not valid for @@ -812,6 +1015,8 @@ func (e *InvalidHomeRegionException) ErrorFault() smithy.ErrorFault { return smi type InvalidImportSourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -824,7 +1029,12 @@ func (e *InvalidImportSourceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidImportSourceException) ErrorCode() string { return "InvalidImportSourceException" } +func (e *InvalidImportSourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidImportSourceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidImportSourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The formatting or syntax of the InsightSelectors JSON statement in your @@ -834,6 +1044,8 @@ func (e *InvalidImportSourceException) ErrorFault() smithy.ErrorFault { return s type InvalidInsightSelectorsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -847,7 +1059,10 @@ func (e *InvalidInsightSelectorsException) ErrorMessage() string { return *e.Message } func (e *InvalidInsightSelectorsException) ErrorCode() string { - return "InvalidInsightSelectorsException" + if e.ErrorCodeOverride == nil { + return "InvalidInsightSelectorsException" + } + return *e.ErrorCodeOverride } func (e *InvalidInsightSelectorsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -855,6 +1070,8 @@ func (e *InvalidInsightSelectorsException) ErrorFault() smithy.ErrorFault { retu type InvalidKmsKeyIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -867,13 +1084,20 @@ func (e *InvalidKmsKeyIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidKmsKeyIdException) ErrorCode() string { return "InvalidKmsKeyIdException" } +func (e *InvalidKmsKeyIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKmsKeyIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidKmsKeyIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs when a lookup attribute is specified that is not valid. type InvalidLookupAttributesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -887,7 +1111,10 @@ func (e *InvalidLookupAttributesException) ErrorMessage() string { return *e.Message } func (e *InvalidLookupAttributesException) ErrorCode() string { - return "InvalidLookupAttributesException" + if e.ErrorCodeOverride == nil { + return "InvalidLookupAttributesException" + } + return *e.ErrorCodeOverride } func (e *InvalidLookupAttributesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -895,6 +1122,8 @@ func (e *InvalidLookupAttributesException) ErrorFault() smithy.ErrorFault { retu type InvalidMaxResultsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -907,7 +1136,12 @@ func (e *InvalidMaxResultsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidMaxResultsException) ErrorCode() string { return "InvalidMaxResultsException" } +func (e *InvalidMaxResultsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMaxResultsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidMaxResultsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A token that is not valid, or a token that was previously used in a request with @@ -915,6 +1149,8 @@ func (e *InvalidMaxResultsException) ErrorFault() smithy.ErrorFault { return smi type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -927,7 +1163,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the combination of parameters provided is not @@ -935,6 +1176,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -948,7 +1191,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidParameterCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -958,6 +1204,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -970,7 +1218,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query that was submitted has validation errors, or uses incorrect syntax or @@ -981,6 +1234,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidQueryStatementException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -993,13 +1248,20 @@ func (e *InvalidQueryStatementException) ErrorMessage() string { } return *e.Message } -func (e *InvalidQueryStatementException) ErrorCode() string { return "InvalidQueryStatementException" } +func (e *InvalidQueryStatementException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidQueryStatementException" + } + return *e.ErrorCodeOverride +} func (e *InvalidQueryStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query status is not valid for the operation. type InvalidQueryStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1012,13 +1274,20 @@ func (e *InvalidQueryStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidQueryStatusException) ErrorCode() string { return "InvalidQueryStatusException" } +func (e *InvalidQueryStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidQueryStatusException" + } + return *e.ErrorCodeOverride +} func (e *InvalidQueryStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the provided S3 bucket name is not valid. type InvalidS3BucketNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1031,13 +1300,20 @@ func (e *InvalidS3BucketNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3BucketNameException) ErrorCode() string { return "InvalidS3BucketNameException" } +func (e *InvalidS3BucketNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3BucketNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3BucketNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the provided S3 prefix is not valid. type InvalidS3PrefixException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1050,13 +1326,20 @@ func (e *InvalidS3PrefixException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3PrefixException) ErrorCode() string { return "InvalidS3PrefixException" } +func (e *InvalidS3PrefixException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3PrefixException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3PrefixException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the provided SNS topic name is not valid. type InvalidSnsTopicNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1069,7 +1352,12 @@ func (e *InvalidSnsTopicNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSnsTopicNameException) ErrorCode() string { return "InvalidSnsTopicNameException" } +func (e *InvalidSnsTopicNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSnsTopicNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSnsTopicNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified tag key or values are not valid. It @@ -1077,6 +1365,8 @@ func (e *InvalidSnsTopicNameException) ErrorFault() smithy.ErrorFault { return s type InvalidTagParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1089,7 +1379,12 @@ func (e *InvalidTagParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagParameterException) ErrorCode() string { return "InvalidTagParameterException" } +func (e *InvalidTagParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs if the timestamp values are not valid. Either the start time occurs after @@ -1097,6 +1392,8 @@ func (e *InvalidTagParameterException) ErrorFault() smithy.ErrorFault { return s type InvalidTimeRangeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1109,13 +1406,20 @@ func (e *InvalidTimeRangeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTimeRangeException) ErrorCode() string { return "InvalidTimeRangeException" } +func (e *InvalidTimeRangeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTimeRangeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTimeRangeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Reserved for future use. type InvalidTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1128,7 +1432,12 @@ func (e *InvalidTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTokenException) ErrorCode() string { return "InvalidTokenException" } +func (e *InvalidTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the provided trail name is not valid. Trail names @@ -1151,6 +1460,8 @@ func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidTrailNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1163,7 +1474,12 @@ func (e *InvalidTrailNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTrailNameException) ErrorCode() string { return "InvalidTrailNameException" } +func (e *InvalidTrailNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTrailNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTrailNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when there is an issue with the specified KMS key and @@ -1171,6 +1487,8 @@ func (e *InvalidTrailNameException) ErrorFault() smithy.ErrorFault { return smit type KmsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1183,13 +1501,20 @@ func (e *KmsException) ErrorMessage() string { } return *e.Message } -func (e *KmsException) ErrorCode() string { return "KmsException" } +func (e *KmsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KmsException" + } + return *e.ErrorCodeOverride +} func (e *KmsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is no longer in use. type KmsKeyDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1202,7 +1527,12 @@ func (e *KmsKeyDisabledException) ErrorMessage() string { } return *e.Message } -func (e *KmsKeyDisabledException) ErrorCode() string { return "KmsKeyDisabledException" } +func (e *KmsKeyDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KmsKeyDisabledException" + } + return *e.ErrorCodeOverride +} func (e *KmsKeyDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the KMS key does not exist, when the S3 bucket and @@ -1211,6 +1541,8 @@ func (e *KmsKeyDisabledException) ErrorFault() smithy.ErrorFault { return smithy type KmsKeyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1223,7 +1555,12 @@ func (e *KmsKeyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *KmsKeyNotFoundException) ErrorCode() string { return "KmsKeyNotFoundException" } +func (e *KmsKeyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KmsKeyNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *KmsKeyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are already running the maximum number of concurrent queries. Wait a minute @@ -1231,6 +1568,8 @@ func (e *KmsKeyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type MaxConcurrentQueriesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1243,13 +1582,20 @@ func (e *MaxConcurrentQueriesException) ErrorMessage() string { } return *e.Message } -func (e *MaxConcurrentQueriesException) ErrorCode() string { return "MaxConcurrentQueriesException" } +func (e *MaxConcurrentQueriesException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MaxConcurrentQueriesException" + } + return *e.ErrorCodeOverride +} func (e *MaxConcurrentQueriesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the maximum number of trails is reached. type MaximumNumberOfTrailsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1263,7 +1609,10 @@ func (e *MaximumNumberOfTrailsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumNumberOfTrailsExceededException) ErrorCode() string { - return "MaximumNumberOfTrailsExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumNumberOfTrailsExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumNumberOfTrailsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1274,6 +1623,8 @@ func (e *MaximumNumberOfTrailsExceededException) ErrorFault() smithy.ErrorFault type NoManagementAccountSLRExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1287,7 +1638,10 @@ func (e *NoManagementAccountSLRExistsException) ErrorMessage() string { return *e.Message } func (e *NoManagementAccountSLRExistsException) ErrorCode() string { - return "NoManagementAccountSLRExistsException" + if e.ErrorCodeOverride == nil { + return "NoManagementAccountSLRExistsException" + } + return *e.ErrorCodeOverride } func (e *NoManagementAccountSLRExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1298,6 +1652,8 @@ func (e *NoManagementAccountSLRExistsException) ErrorFault() smithy.ErrorFault { type NotOrganizationManagementAccountException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1311,7 +1667,10 @@ func (e *NotOrganizationManagementAccountException) ErrorMessage() string { return *e.Message } func (e *NotOrganizationManagementAccountException) ErrorCode() string { - return "NotOrganizationManagementAccountException" + if e.ErrorCodeOverride == nil { + return "NotOrganizationManagementAccountException" + } + return *e.ErrorCodeOverride } func (e *NotOrganizationManagementAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1327,6 +1686,8 @@ func (e *NotOrganizationManagementAccountException) ErrorFault() smithy.ErrorFau type NotOrganizationMasterAccountException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1340,7 +1701,10 @@ func (e *NotOrganizationMasterAccountException) ErrorMessage() string { return *e.Message } func (e *NotOrganizationMasterAccountException) ErrorCode() string { - return "NotOrganizationMasterAccountException" + if e.ErrorCodeOverride == nil { + return "NotOrganizationMasterAccountException" + } + return *e.ErrorCodeOverride } func (e *NotOrganizationMasterAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1350,6 +1714,8 @@ func (e *NotOrganizationMasterAccountException) ErrorFault() smithy.ErrorFault { type OperationNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1362,7 +1728,12 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermittedException" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermittedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when Organizations is not configured to support all @@ -1371,6 +1742,8 @@ func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return type OrganizationNotInAllFeaturesModeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1384,7 +1757,10 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotInAllFeaturesModeException) ErrorCode() string { - return "OrganizationNotInAllFeaturesModeException" + if e.ErrorCodeOverride == nil { + return "OrganizationNotInAllFeaturesModeException" + } + return *e.ErrorCodeOverride } func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1396,6 +1772,8 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFau type OrganizationsNotInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1408,13 +1786,20 @@ func (e *OrganizationsNotInUseException) ErrorMessage() string { } return *e.Message } -func (e *OrganizationsNotInUseException) ErrorCode() string { return "OrganizationsNotInUseException" } +func (e *OrganizationsNotInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OrganizationsNotInUseException" + } + return *e.ErrorCodeOverride +} func (e *OrganizationsNotInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query ID does not exist or does not map to a query. type QueryIdNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1427,13 +1812,20 @@ func (e *QueryIdNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *QueryIdNotFoundException) ErrorCode() string { return "QueryIdNotFoundException" } +func (e *QueryIdNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "QueryIdNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *QueryIdNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified resource is not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1446,7 +1838,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified resource type is not supported by @@ -1454,6 +1851,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceTypeNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1467,7 +1866,10 @@ func (e *ResourceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ResourceTypeNotSupportedException) ErrorCode() string { - return "ResourceTypeNotSupportedException" + if e.ErrorCodeOverride == nil { + return "ResourceTypeNotSupportedException" + } + return *e.ErrorCodeOverride } func (e *ResourceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1475,6 +1877,8 @@ func (e *ResourceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { ret type S3BucketDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1487,7 +1891,12 @@ func (e *S3BucketDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *S3BucketDoesNotExistException) ErrorCode() string { return "S3BucketDoesNotExistException" } +func (e *S3BucketDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "S3BucketDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *S3BucketDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of tags per trail has exceeded the permitted amount. Currently, the @@ -1495,6 +1904,8 @@ func (e *S3BucketDoesNotExistException) ErrorFault() smithy.ErrorFault { return type TagsLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1507,13 +1918,20 @@ func (e *TagsLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TagsLimitExceededException) ErrorCode() string { return "TagsLimitExceededException" } +func (e *TagsLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagsLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TagsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified trail already exists. type TrailAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1526,13 +1944,20 @@ func (e *TrailAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *TrailAlreadyExistsException) ErrorCode() string { return "TrailAlreadyExistsException" } +func (e *TrailAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrailAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *TrailAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the trail with the given name is not found. type TrailNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1545,13 +1970,20 @@ func (e *TrailNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TrailNotFoundException) ErrorCode() string { return "TrailNotFoundException" } +func (e *TrailNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrailNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TrailNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is no longer in use. type TrailNotProvidedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1564,13 +1996,20 @@ func (e *TrailNotProvidedException) ErrorMessage() string { } return *e.Message } -func (e *TrailNotProvidedException) ErrorCode() string { return "TrailNotProvidedException" } +func (e *TrailNotProvidedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrailNotProvidedException" + } + return *e.ErrorCodeOverride +} func (e *TrailNotProvidedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the requested operation is not supported. type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1583,5 +2022,10 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudwatch/types/errors.go b/service/cloudwatch/types/errors.go index c3a8a550c52..fea1839a616 100644 --- a/service/cloudwatch/types/errors.go +++ b/service/cloudwatch/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -32,6 +37,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type DashboardInvalidInputError struct { Message *string + ErrorCodeOverride *string + DashboardValidationMessages []DashboardValidationMessage noSmithyDocumentSerde @@ -46,13 +53,20 @@ func (e *DashboardInvalidInputError) ErrorMessage() string { } return *e.Message } -func (e *DashboardInvalidInputError) ErrorCode() string { return "InvalidParameterInput" } +func (e *DashboardInvalidInputError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterInput" + } + return *e.ErrorCodeOverride +} func (e *DashboardInvalidInputError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified dashboard does not exist. type DashboardNotFoundError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +79,20 @@ func (e *DashboardNotFoundError) ErrorMessage() string { } return *e.Message } -func (e *DashboardNotFoundError) ErrorCode() string { return "ResourceNotFound" } +func (e *DashboardNotFoundError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *DashboardNotFoundError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request processing has failed due to some unknown error, exception, or failure. type InternalServiceFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,13 +105,20 @@ func (e *InternalServiceFault) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceFault) ErrorCode() string { return "InternalServiceError" } +func (e *InternalServiceFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceError" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Data was not syntactically valid JSON. type InvalidFormatFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +131,20 @@ func (e *InvalidFormatFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidFormatFault) ErrorCode() string { return "InvalidFormat" } +func (e *InvalidFormatFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFormat" + } + return *e.ErrorCodeOverride +} func (e *InvalidFormatFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The next token specified is invalid. type InvalidNextToken struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,13 +157,20 @@ func (e *InvalidNextToken) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextToken) ErrorCode() string { return "InvalidNextToken" } +func (e *InvalidNextToken) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextToken" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Parameters were used together that cannot be used together. type InvalidParameterCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,7 +184,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombination" + if e.ErrorCodeOverride == nil { + return "InvalidParameterCombination" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -152,6 +197,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,13 +211,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValue" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValue" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation exceeded one or more limits. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -183,13 +237,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for alarms for this customer has already been reached. type LimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -202,13 +263,20 @@ func (e *LimitExceededFault) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededFault) ErrorCode() string { return "LimitExceeded" } +func (e *LimitExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An input parameter that is required is missing. type MissingRequiredParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -221,13 +289,20 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { } return *e.Message } -func (e *MissingRequiredParameterException) ErrorCode() string { return "MissingParameter" } +func (e *MissingRequiredParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingParameter" + } + return *e.ErrorCodeOverride +} func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The named resource does not exist. type ResourceNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -240,13 +315,20 @@ func (e *ResourceNotFound) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFound) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The named resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType *string ResourceId *string @@ -262,5 +344,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudwatchevents/types/errors.go b/service/cloudwatchevents/types/errors.go index 27b7248226c..427c4c046b4 100644 --- a/service/cloudwatchevents/types/errors.go +++ b/service/cloudwatchevents/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -33,6 +38,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type IllegalStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,13 +52,20 @@ func (e *IllegalStatusException) ErrorMessage() string { } return *e.Message } -func (e *IllegalStatusException) ErrorCode() string { return "IllegalStatusException" } +func (e *IllegalStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalStatusException" + } + return *e.ErrorCodeOverride +} func (e *IllegalStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs due to unexpected causes. type InternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +78,20 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The event pattern is not valid. type InvalidEventPatternException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +104,20 @@ func (e *InvalidEventPatternException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEventPatternException) ErrorCode() string { return "InvalidEventPatternException" } +func (e *InvalidEventPatternException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEventPatternException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEventPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified state is not a valid state for an event source. type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +130,12 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it attempted to create resource beyond the allowed @@ -110,6 +143,8 @@ func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.F type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +157,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This rule was created by an Amazon Web Services service on behalf of your @@ -134,6 +174,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ManagedRuleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,13 +188,20 @@ func (e *ManagedRuleException) ErrorMessage() string { } return *e.Message } -func (e *ManagedRuleException) ErrorCode() string { return "ManagedRuleException" } +func (e *ManagedRuleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ManagedRuleException" + } + return *e.ErrorCodeOverride +} func (e *ManagedRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation you are attempting is not available in this region. type OperationDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,13 +214,20 @@ func (e *OperationDisabledException) ErrorMessage() string { } return *e.Message } -func (e *OperationDisabledException) ErrorCode() string { return "OperationDisabledException" } +func (e *OperationDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationDisabledException" + } + return *e.ErrorCodeOverride +} func (e *OperationDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The event bus policy is too long. For more information, see the limits. type PolicyLengthExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,13 +240,20 @@ func (e *PolicyLengthExceededException) ErrorMessage() string { } return *e.Message } -func (e *PolicyLengthExceededException) ErrorCode() string { return "PolicyLengthExceededException" } +func (e *PolicyLengthExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyLengthExceededException" + } + return *e.ErrorCodeOverride +} func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you are trying to create already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -203,13 +266,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity that you specified does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -222,5 +292,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudwatchlogs/types/errors.go b/service/cloudwatchlogs/types/errors.go index 640c7004b8f..82355926bfa 100644 --- a/service/cloudwatchlogs/types/errors.go +++ b/service/cloudwatchlogs/types/errors.go @@ -13,6 +13,8 @@ import ( type DataAlreadyAcceptedException struct { Message *string + ErrorCodeOverride *string + ExpectedSequenceToken *string noSmithyDocumentSerde @@ -27,13 +29,20 @@ func (e *DataAlreadyAcceptedException) ErrorMessage() string { } return *e.Message } -func (e *DataAlreadyAcceptedException) ErrorCode() string { return "DataAlreadyAcceptedException" } +func (e *DataAlreadyAcceptedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DataAlreadyAcceptedException" + } + return *e.ErrorCodeOverride +} func (e *DataAlreadyAcceptedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not valid on the specified resource. type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,13 +55,20 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is specified incorrectly. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The sequence token is not valid. You can get the correct sequence token in the @@ -75,6 +96,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidSequenceTokenException struct { Message *string + ErrorCodeOverride *string + ExpectedSequenceToken *string noSmithyDocumentSerde @@ -89,13 +112,20 @@ func (e *InvalidSequenceTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSequenceTokenException) ErrorCode() string { return "InvalidSequenceTokenException" } +func (e *InvalidSequenceTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSequenceTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSequenceTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of resources that can be created. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +138,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query string is not valid. Details about this error are displayed in a @@ -120,6 +155,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MalformedQueryException struct { Message *string + ErrorCodeOverride *string + QueryCompileError *QueryCompileError noSmithyDocumentSerde @@ -134,13 +171,20 @@ func (e *MalformedQueryException) ErrorMessage() string { } return *e.Message } -func (e *MalformedQueryException) ErrorCode() string { return "MalformedQueryException" } +func (e *MalformedQueryException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedQueryException" + } + return *e.ErrorCodeOverride +} func (e *MalformedQueryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Multiple concurrent requests to update the same resource were in conflict. type OperationAbortedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -153,13 +197,20 @@ func (e *OperationAbortedException) ErrorMessage() string { } return *e.Message } -func (e *OperationAbortedException) ErrorCode() string { return "OperationAbortedException" } +func (e *OperationAbortedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationAbortedException" + } + return *e.ErrorCodeOverride +} func (e *OperationAbortedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -172,13 +223,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -191,13 +249,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service cannot complete the request. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -210,13 +275,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A resource can have no more than 50 tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -231,7 +303,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The most likely cause is an Amazon Web Services access key ID or secret key @@ -239,6 +316,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type UnrecognizedClientException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -251,5 +330,10 @@ func (e *UnrecognizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnrecognizedClientException) ErrorCode() string { return "UnrecognizedClientException" } +func (e *UnrecognizedClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnrecognizedClientException" + } + return *e.ErrorCodeOverride +} func (e *UnrecognizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codeartifact/types/errors.go b/service/codeartifact/types/errors.go index 708551b22a0..c8a62642501 100644 --- a/service/codeartifact/types/errors.go +++ b/service/codeartifact/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because prerequisites are not met. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -45,7 +54,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because of an error that occurred inside @@ -53,6 +67,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation did not succeed because the resource requested is not found in the @@ -73,6 +94,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -88,7 +111,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because it would have exceeded a service limit for @@ -96,6 +124,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -111,13 +141,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because too many requests are sent to the service. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -132,7 +169,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because a parameter in the request was sent with @@ -140,6 +182,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason noSmithyDocumentSerde @@ -154,5 +198,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codebuild/types/errors.go b/service/codebuild/types/errors.go index 906da671c36..a29e45d95ab 100644 --- a/service/codebuild/types/errors.go +++ b/service/codebuild/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccountLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *AccountLimitExceededException) ErrorCode() string { return "AccountLimitExceededException" } +func (e *AccountLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *AccountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input value that was provided is not valid. type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a problem with the underlying OAuth provider. type OAuthProviderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,12 @@ func (e *OAuthProviderException) ErrorMessage() string { } return *e.Message } -func (e *OAuthProviderException) ErrorCode() string { return "OAuthProviderException" } +func (e *OAuthProviderException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OAuthProviderException" + } + return *e.ErrorCodeOverride +} func (e *OAuthProviderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Web Services resource cannot be created, because an Amazon @@ -70,6 +91,8 @@ func (e *OAuthProviderException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Web Services resource cannot be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,5 +131,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codecatalyst/types/errors.go b/service/codecatalyst/types/errors.go index 059cb91ea75..87db5f48e5a 100644 --- a/service/codecatalyst/types/errors.go +++ b/service/codecatalyst/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because the requested operation would cause a conflict @@ -34,6 +41,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because the specified resource was not found. Verify that @@ -54,6 +68,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +82,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because one or more resources has reached its limits for @@ -75,6 +96,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,13 +110,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,7 +136,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because an input failed to satisfy the constraints @@ -115,6 +150,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,5 +164,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codecommit/types/errors.go b/service/codecommit/types/errors.go index 78e387b9860..2c76fcb2a23 100644 --- a/service/codecommit/types/errors.go +++ b/service/codecommit/types/errors.go @@ -11,6 +11,8 @@ import ( type ActorDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *ActorDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *ActorDoesNotExistException) ErrorCode() string { return "ActorDoesNotExistException" } +func (e *ActorDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ActorDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *ActorDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The content for the approval rule is empty. You must provide some content for an @@ -31,6 +38,8 @@ func (e *ActorDoesNotExistException) ErrorFault() smithy.ErrorFault { return smi type ApprovalRuleContentRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ApprovalRuleContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleContentRequiredException) ErrorCode() string { - return "ApprovalRuleContentRequiredException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleContentRequiredException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *ApprovalRuleContentRequiredException) ErrorFault() smithy.ErrorFault { type ApprovalRuleDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *ApprovalRuleDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleDoesNotExistException) ErrorCode() string { - return "ApprovalRuleDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -76,6 +93,8 @@ func (e *ApprovalRuleDoesNotExistException) ErrorFault() smithy.ErrorFault { ret type ApprovalRuleNameAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -89,7 +108,10 @@ func (e *ApprovalRuleNameAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleNameAlreadyExistsException) ErrorCode() string { - return "ApprovalRuleNameAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleNameAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleNameAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -99,6 +121,8 @@ func (e *ApprovalRuleNameAlreadyExistsException) ErrorFault() smithy.ErrorFault type ApprovalRuleNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -112,7 +136,10 @@ func (e *ApprovalRuleNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleNameRequiredException) ErrorCode() string { - return "ApprovalRuleNameRequiredException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -121,6 +148,8 @@ func (e *ApprovalRuleNameRequiredException) ErrorFault() smithy.ErrorFault { ret type ApprovalRuleTemplateContentRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -134,7 +163,10 @@ func (e *ApprovalRuleTemplateContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateContentRequiredException) ErrorCode() string { - return "ApprovalRuleTemplateContentRequiredException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleTemplateContentRequiredException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleTemplateContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -146,6 +178,8 @@ func (e *ApprovalRuleTemplateContentRequiredException) ErrorFault() smithy.Error type ApprovalRuleTemplateDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -159,7 +193,10 @@ func (e *ApprovalRuleTemplateDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateDoesNotExistException) ErrorCode() string { - return "ApprovalRuleTemplateDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleTemplateDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleTemplateDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -171,6 +208,8 @@ func (e *ApprovalRuleTemplateDoesNotExistException) ErrorFault() smithy.ErrorFau type ApprovalRuleTemplateInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,7 +223,10 @@ func (e *ApprovalRuleTemplateInUseException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateInUseException) ErrorCode() string { - return "ApprovalRuleTemplateInUseException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleTemplateInUseException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleTemplateInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -196,6 +238,8 @@ func (e *ApprovalRuleTemplateInUseException) ErrorFault() smithy.ErrorFault { type ApprovalRuleTemplateNameAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,7 +253,10 @@ func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorCode() string { - return "ApprovalRuleTemplateNameAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleTemplateNameAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -219,6 +266,8 @@ func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorFault() smithy.Err type ApprovalRuleTemplateNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -232,7 +281,10 @@ func (e *ApprovalRuleTemplateNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateNameRequiredException) ErrorCode() string { - return "ApprovalRuleTemplateNameRequiredException" + if e.ErrorCodeOverride == nil { + return "ApprovalRuleTemplateNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *ApprovalRuleTemplateNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -242,6 +294,8 @@ func (e *ApprovalRuleTemplateNameRequiredException) ErrorFault() smithy.ErrorFau type ApprovalStateRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -254,13 +308,20 @@ func (e *ApprovalStateRequiredException) ErrorMessage() string { } return *e.Message } -func (e *ApprovalStateRequiredException) ErrorCode() string { return "ApprovalStateRequiredException" } +func (e *ApprovalStateRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ApprovalStateRequiredException" + } + return *e.ErrorCodeOverride +} func (e *ApprovalStateRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Resource Name (ARN) does not exist in the AWS account. type AuthorDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -273,7 +334,12 @@ func (e *AuthorDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *AuthorDoesNotExistException) ErrorCode() string { return "AuthorDoesNotExistException" } +func (e *AuthorDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *AuthorDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The before commit ID and the after commit ID are the same, which is not valid. @@ -281,6 +347,8 @@ func (e *AuthorDoesNotExistException) ErrorFault() smithy.ErrorFault { return sm type BeforeCommitIdAndAfterCommitIdAreSameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -294,7 +362,10 @@ func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorMessage() string { return *e.Message } func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorCode() string { - return "BeforeCommitIdAndAfterCommitIdAreSameException" + if e.ErrorCodeOverride == nil { + return "BeforeCommitIdAndAfterCommitIdAreSameException" + } + return *e.ErrorCodeOverride } func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -304,6 +375,8 @@ func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorFault() smithy.Err type BlobIdDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -316,13 +389,20 @@ func (e *BlobIdDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *BlobIdDoesNotExistException) ErrorCode() string { return "BlobIdDoesNotExistException" } +func (e *BlobIdDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BlobIdDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *BlobIdDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A blob ID is required, but was not specified. type BlobIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -335,13 +415,20 @@ func (e *BlobIdRequiredException) ErrorMessage() string { } return *e.Message } -func (e *BlobIdRequiredException) ErrorCode() string { return "BlobIdRequiredException" } +func (e *BlobIdRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BlobIdRequiredException" + } + return *e.ErrorCodeOverride +} func (e *BlobIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified branch does not exist. type BranchDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -354,7 +441,12 @@ func (e *BranchDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *BranchDoesNotExistException) ErrorCode() string { return "BranchDoesNotExistException" } +func (e *BranchDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BranchDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *BranchDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot create the branch with the specified name because the commit conflicts @@ -362,6 +454,8 @@ func (e *BranchDoesNotExistException) ErrorFault() smithy.ErrorFault { return sm type BranchNameExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -374,7 +468,12 @@ func (e *BranchNameExistsException) ErrorMessage() string { } return *e.Message } -func (e *BranchNameExistsException) ErrorCode() string { return "BranchNameExistsException" } +func (e *BranchNameExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BranchNameExistsException" + } + return *e.ErrorCodeOverride +} func (e *BranchNameExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified branch name is not valid because it is a tag name. Enter the name @@ -383,6 +482,8 @@ func (e *BranchNameExistsException) ErrorFault() smithy.ErrorFault { return smit type BranchNameIsTagNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -395,13 +496,20 @@ func (e *BranchNameIsTagNameException) ErrorMessage() string { } return *e.Message } -func (e *BranchNameIsTagNameException) ErrorCode() string { return "BranchNameIsTagNameException" } +func (e *BranchNameIsTagNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BranchNameIsTagNameException" + } + return *e.ErrorCodeOverride +} func (e *BranchNameIsTagNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A branch name is required, but was not specified. type BranchNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -414,7 +522,12 @@ func (e *BranchNameRequiredException) ErrorMessage() string { } return *e.Message } -func (e *BranchNameRequiredException) ErrorCode() string { return "BranchNameRequiredException" } +func (e *BranchNameRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BranchNameRequiredException" + } + return *e.ErrorCodeOverride +} func (e *BranchNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The approval rule cannot be deleted from the pull request because it was created @@ -422,6 +535,8 @@ func (e *BranchNameRequiredException) ErrorFault() smithy.ErrorFault { return sm type CannotDeleteApprovalRuleFromTemplateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -435,7 +550,10 @@ func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorMessage() string { return *e.Message } func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorCode() string { - return "CannotDeleteApprovalRuleFromTemplateException" + if e.ErrorCodeOverride == nil { + return "CannotDeleteApprovalRuleFromTemplateException" + } + return *e.ErrorCodeOverride } func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -446,6 +564,8 @@ func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorFault() smithy.Erro type CannotModifyApprovalRuleFromTemplateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -459,7 +579,10 @@ func (e *CannotModifyApprovalRuleFromTemplateException) ErrorMessage() string { return *e.Message } func (e *CannotModifyApprovalRuleFromTemplateException) ErrorCode() string { - return "CannotModifyApprovalRuleFromTemplateException" + if e.ErrorCodeOverride == nil { + return "CannotModifyApprovalRuleFromTemplateException" + } + return *e.ErrorCodeOverride } func (e *CannotModifyApprovalRuleFromTemplateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -473,6 +596,8 @@ func (e *CannotModifyApprovalRuleFromTemplateException) ErrorFault() smithy.Erro type ClientRequestTokenRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -486,7 +611,10 @@ func (e *ClientRequestTokenRequiredException) ErrorMessage() string { return *e.Message } func (e *ClientRequestTokenRequiredException) ErrorCode() string { - return "ClientRequestTokenRequiredException" + if e.ErrorCodeOverride == nil { + return "ClientRequestTokenRequiredException" + } + return *e.ErrorCodeOverride } func (e *ClientRequestTokenRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -497,6 +625,8 @@ func (e *ClientRequestTokenRequiredException) ErrorFault() smithy.ErrorFault { type CommentContentRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -510,7 +640,10 @@ func (e *CommentContentRequiredException) ErrorMessage() string { return *e.Message } func (e *CommentContentRequiredException) ErrorCode() string { - return "CommentContentRequiredException" + if e.ErrorCodeOverride == nil { + return "CommentContentRequiredException" + } + return *e.ErrorCodeOverride } func (e *CommentContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -518,6 +651,8 @@ func (e *CommentContentRequiredException) ErrorFault() smithy.ErrorFault { retur type CommentContentSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -531,7 +666,10 @@ func (e *CommentContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CommentContentSizeLimitExceededException) ErrorCode() string { - return "CommentContentSizeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "CommentContentSizeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *CommentContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -542,6 +680,8 @@ func (e *CommentContentSizeLimitExceededException) ErrorFault() smithy.ErrorFaul type CommentDeletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -554,7 +694,12 @@ func (e *CommentDeletedException) ErrorMessage() string { } return *e.Message } -func (e *CommentDeletedException) ErrorCode() string { return "CommentDeletedException" } +func (e *CommentDeletedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommentDeletedException" + } + return *e.ErrorCodeOverride +} func (e *CommentDeletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No comment exists with the provided ID. Verify that you have used the correct @@ -562,6 +707,8 @@ func (e *CommentDeletedException) ErrorFault() smithy.ErrorFault { return smithy type CommentDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -574,13 +721,20 @@ func (e *CommentDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *CommentDoesNotExistException) ErrorCode() string { return "CommentDoesNotExistException" } +func (e *CommentDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommentDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *CommentDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The comment ID is missing or null. A comment ID is required. type CommentIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -593,7 +747,12 @@ func (e *CommentIdRequiredException) ErrorMessage() string { } return *e.Message } -func (e *CommentIdRequiredException) ErrorCode() string { return "CommentIdRequiredException" } +func (e *CommentIdRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommentIdRequiredException" + } + return *e.ErrorCodeOverride +} func (e *CommentIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot modify or delete this comment. Only comment authors can modify or @@ -601,6 +760,8 @@ func (e *CommentIdRequiredException) ErrorFault() smithy.ErrorFault { return smi type CommentNotCreatedByCallerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -614,7 +775,10 @@ func (e *CommentNotCreatedByCallerException) ErrorMessage() string { return *e.Message } func (e *CommentNotCreatedByCallerException) ErrorCode() string { - return "CommentNotCreatedByCallerException" + if e.ErrorCodeOverride == nil { + return "CommentNotCreatedByCallerException" + } + return *e.ErrorCodeOverride } func (e *CommentNotCreatedByCallerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -625,6 +789,8 @@ func (e *CommentNotCreatedByCallerException) ErrorFault() smithy.ErrorFault { type CommitDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -637,13 +803,20 @@ func (e *CommitDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *CommitDoesNotExistException) ErrorCode() string { return "CommitDoesNotExistException" } +func (e *CommitDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommitDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *CommitDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified commit ID does not exist. type CommitIdDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -656,13 +829,20 @@ func (e *CommitIdDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *CommitIdDoesNotExistException) ErrorCode() string { return "CommitIdDoesNotExistException" } +func (e *CommitIdDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommitIdDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *CommitIdDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A commit ID was not specified. type CommitIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -675,7 +855,12 @@ func (e *CommitIdRequiredException) ErrorMessage() string { } return *e.Message } -func (e *CommitIdRequiredException) ErrorCode() string { return "CommitIdRequiredException" } +func (e *CommitIdRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommitIdRequiredException" + } + return *e.ErrorCodeOverride +} func (e *CommitIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of allowed commit IDs in a batch request is 100. Verify that @@ -683,6 +868,8 @@ func (e *CommitIdRequiredException) ErrorFault() smithy.ErrorFault { return smit type CommitIdsLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -696,7 +883,10 @@ func (e *CommitIdsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CommitIdsLimitExceededException) ErrorCode() string { - return "CommitIdsLimitExceededException" + if e.ErrorCodeOverride == nil { + return "CommitIdsLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *CommitIdsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -705,6 +895,8 @@ func (e *CommitIdsLimitExceededException) ErrorFault() smithy.ErrorFault { retur type CommitIdsListRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -717,13 +909,20 @@ func (e *CommitIdsListRequiredException) ErrorMessage() string { } return *e.Message } -func (e *CommitIdsListRequiredException) ErrorCode() string { return "CommitIdsListRequiredException" } +func (e *CommitIdsListRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommitIdsListRequiredException" + } + return *e.ErrorCodeOverride +} func (e *CommitIdsListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit message is too long. Provide a shorter string. type CommitMessageLengthExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -737,7 +936,10 @@ func (e *CommitMessageLengthExceededException) ErrorMessage() string { return *e.Message } func (e *CommitMessageLengthExceededException) ErrorCode() string { - return "CommitMessageLengthExceededException" + if e.ErrorCodeOverride == nil { + return "CommitMessageLengthExceededException" + } + return *e.ErrorCodeOverride } func (e *CommitMessageLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -747,6 +949,8 @@ func (e *CommitMessageLengthExceededException) ErrorFault() smithy.ErrorFault { type CommitRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -759,7 +963,12 @@ func (e *CommitRequiredException) ErrorMessage() string { } return *e.Message } -func (e *CommitRequiredException) ErrorCode() string { return "CommitRequiredException" } +func (e *CommitRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CommitRequiredException" + } + return *e.ErrorCodeOverride +} func (e *CommitRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The merge cannot be completed because the target branch has been modified. @@ -768,6 +977,8 @@ func (e *CommitRequiredException) ErrorFault() smithy.ErrorFault { return smithy type ConcurrentReferenceUpdateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -781,7 +992,10 @@ func (e *ConcurrentReferenceUpdateException) ErrorMessage() string { return *e.Message } func (e *ConcurrentReferenceUpdateException) ErrorCode() string { - return "ConcurrentReferenceUpdateException" + if e.ErrorCodeOverride == nil { + return "ConcurrentReferenceUpdateException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentReferenceUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -793,6 +1007,8 @@ func (e *ConcurrentReferenceUpdateException) ErrorFault() smithy.ErrorFault { type DefaultBranchCannotBeDeletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -806,7 +1022,10 @@ func (e *DefaultBranchCannotBeDeletedException) ErrorMessage() string { return *e.Message } func (e *DefaultBranchCannotBeDeletedException) ErrorCode() string { - return "DefaultBranchCannotBeDeletedException" + if e.ErrorCodeOverride == nil { + return "DefaultBranchCannotBeDeletedException" + } + return *e.ErrorCodeOverride } func (e *DefaultBranchCannotBeDeletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -818,6 +1037,8 @@ func (e *DefaultBranchCannotBeDeletedException) ErrorFault() smithy.ErrorFault { type DirectoryNameConflictsWithFileNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -831,7 +1052,10 @@ func (e *DirectoryNameConflictsWithFileNameException) ErrorMessage() string { return *e.Message } func (e *DirectoryNameConflictsWithFileNameException) ErrorCode() string { - return "DirectoryNameConflictsWithFileNameException" + if e.ErrorCodeOverride == nil { + return "DirectoryNameConflictsWithFileNameException" + } + return *e.ErrorCodeOverride } func (e *DirectoryNameConflictsWithFileNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -841,6 +1065,8 @@ func (e *DirectoryNameConflictsWithFileNameException) ErrorFault() smithy.ErrorF type EncryptionIntegrityChecksFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -854,7 +1080,10 @@ func (e *EncryptionIntegrityChecksFailedException) ErrorMessage() string { return *e.Message } func (e *EncryptionIntegrityChecksFailedException) ErrorCode() string { - return "EncryptionIntegrityChecksFailedException" + if e.ErrorCodeOverride == nil { + return "EncryptionIntegrityChecksFailedException" + } + return *e.ErrorCodeOverride } func (e *EncryptionIntegrityChecksFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -864,6 +1093,8 @@ func (e *EncryptionIntegrityChecksFailedException) ErrorFault() smithy.ErrorFaul type EncryptionKeyAccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -877,7 +1108,10 @@ func (e *EncryptionKeyAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyAccessDeniedException) ErrorCode() string { - return "EncryptionKeyAccessDeniedException" + if e.ErrorCodeOverride == nil { + return "EncryptionKeyAccessDeniedException" + } + return *e.ErrorCodeOverride } func (e *EncryptionKeyAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -887,6 +1121,8 @@ func (e *EncryptionKeyAccessDeniedException) ErrorFault() smithy.ErrorFault { type EncryptionKeyDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -899,13 +1135,20 @@ func (e *EncryptionKeyDisabledException) ErrorMessage() string { } return *e.Message } -func (e *EncryptionKeyDisabledException) ErrorCode() string { return "EncryptionKeyDisabledException" } +func (e *EncryptionKeyDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EncryptionKeyDisabledException" + } + return *e.ErrorCodeOverride +} func (e *EncryptionKeyDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No encryption key was found. type EncryptionKeyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -918,13 +1161,20 @@ func (e *EncryptionKeyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EncryptionKeyNotFoundException) ErrorCode() string { return "EncryptionKeyNotFoundException" } +func (e *EncryptionKeyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EncryptionKeyNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EncryptionKeyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The encryption key is not available. type EncryptionKeyUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -938,7 +1188,10 @@ func (e *EncryptionKeyUnavailableException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyUnavailableException) ErrorCode() string { - return "EncryptionKeyUnavailableException" + if e.ErrorCodeOverride == nil { + return "EncryptionKeyUnavailableException" + } + return *e.ErrorCodeOverride } func (e *EncryptionKeyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -948,6 +1201,8 @@ func (e *EncryptionKeyUnavailableException) ErrorFault() smithy.ErrorFault { ret type FileContentAndSourceFileSpecifiedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -961,7 +1216,10 @@ func (e *FileContentAndSourceFileSpecifiedException) ErrorMessage() string { return *e.Message } func (e *FileContentAndSourceFileSpecifiedException) ErrorCode() string { - return "FileContentAndSourceFileSpecifiedException" + if e.ErrorCodeOverride == nil { + return "FileContentAndSourceFileSpecifiedException" + } + return *e.ErrorCodeOverride } func (e *FileContentAndSourceFileSpecifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -972,6 +1230,8 @@ func (e *FileContentAndSourceFileSpecifiedException) ErrorFault() smithy.ErrorFa type FileContentRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -984,7 +1244,12 @@ func (e *FileContentRequiredException) ErrorMessage() string { } return *e.Message } -func (e *FileContentRequiredException) ErrorCode() string { return "FileContentRequiredException" } +func (e *FileContentRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileContentRequiredException" + } + return *e.ErrorCodeOverride +} func (e *FileContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The file cannot be added because it is too large. The maximum file size is 6 MB, @@ -993,6 +1258,8 @@ func (e *FileContentRequiredException) ErrorFault() smithy.ErrorFault { return s type FileContentSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1006,7 +1273,10 @@ func (e *FileContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FileContentSizeLimitExceededException) ErrorCode() string { - return "FileContentSizeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "FileContentSizeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *FileContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1017,6 +1287,8 @@ func (e *FileContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { type FileDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1029,7 +1301,12 @@ func (e *FileDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *FileDoesNotExistException) ErrorCode() string { return "FileDoesNotExistException" } +func (e *FileDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *FileDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit cannot be created because no files have been specified as added, @@ -1037,6 +1314,8 @@ func (e *FileDoesNotExistException) ErrorFault() smithy.ErrorFault { return smit type FileEntryRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1049,7 +1328,12 @@ func (e *FileEntryRequiredException) ErrorMessage() string { } return *e.Message } -func (e *FileEntryRequiredException) ErrorCode() string { return "FileEntryRequiredException" } +func (e *FileEntryRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileEntryRequiredException" + } + return *e.ErrorCodeOverride +} func (e *FileEntryRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit cannot be created because no file mode has been specified. A file @@ -1057,6 +1341,8 @@ func (e *FileEntryRequiredException) ErrorFault() smithy.ErrorFault { return smi type FileModeRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1069,7 +1355,12 @@ func (e *FileModeRequiredException) ErrorMessage() string { } return *e.Message } -func (e *FileModeRequiredException) ErrorCode() string { return "FileModeRequiredException" } +func (e *FileModeRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileModeRequiredException" + } + return *e.ErrorCodeOverride +} func (e *FileModeRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A file cannot be added to the repository because the specified file name has the @@ -1078,6 +1369,8 @@ func (e *FileModeRequiredException) ErrorFault() smithy.ErrorFault { return smit type FileNameConflictsWithDirectoryNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1091,7 +1384,10 @@ func (e *FileNameConflictsWithDirectoryNameException) ErrorMessage() string { return *e.Message } func (e *FileNameConflictsWithDirectoryNameException) ErrorCode() string { - return "FileNameConflictsWithDirectoryNameException" + if e.ErrorCodeOverride == nil { + return "FileNameConflictsWithDirectoryNameException" + } + return *e.ErrorCodeOverride } func (e *FileNameConflictsWithDirectoryNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1103,6 +1399,8 @@ func (e *FileNameConflictsWithDirectoryNameException) ErrorFault() smithy.ErrorF type FilePathConflictsWithSubmodulePathException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1116,7 +1414,10 @@ func (e *FilePathConflictsWithSubmodulePathException) ErrorMessage() string { return *e.Message } func (e *FilePathConflictsWithSubmodulePathException) ErrorCode() string { - return "FilePathConflictsWithSubmodulePathException" + if e.ErrorCodeOverride == nil { + return "FilePathConflictsWithSubmodulePathException" + } + return *e.ErrorCodeOverride } func (e *FilePathConflictsWithSubmodulePathException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1128,6 +1429,8 @@ func (e *FilePathConflictsWithSubmodulePathException) ErrorFault() smithy.ErrorF type FileTooLargeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1140,7 +1443,12 @@ func (e *FileTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *FileTooLargeException) ErrorCode() string { return "FileTooLargeException" } +func (e *FileTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *FileTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit cannot be created because at least one of the overall changes in the @@ -1150,6 +1458,8 @@ func (e *FileTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.F type FolderContentSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1163,7 +1473,10 @@ func (e *FolderContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FolderContentSizeLimitExceededException) ErrorCode() string { - return "FolderContentSizeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "FolderContentSizeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *FolderContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1174,6 +1487,8 @@ func (e *FolderContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault type FolderDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1186,7 +1501,12 @@ func (e *FolderDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *FolderDoesNotExistException) ErrorCode() string { return "FolderDoesNotExistException" } +func (e *FolderDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FolderDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *FolderDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client request token is not valid. Either the token is not in a valid @@ -1194,6 +1514,8 @@ func (e *FolderDoesNotExistException) ErrorFault() smithy.ErrorFault { return sm type IdempotencyParameterMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1207,7 +1529,10 @@ func (e *IdempotencyParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotencyParameterMismatchException) ErrorCode() string { - return "IdempotencyParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotencyParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotencyParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1219,6 +1544,8 @@ func (e *IdempotencyParameterMismatchException) ErrorFault() smithy.ErrorFault { type InvalidActorArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1231,13 +1558,20 @@ func (e *InvalidActorArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidActorArnException) ErrorCode() string { return "InvalidActorArnException" } +func (e *InvalidActorArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidActorArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidActorArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The content for the approval rule is not valid. type InvalidApprovalRuleContentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1251,7 +1585,10 @@ func (e *InvalidApprovalRuleContentException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleContentException) ErrorCode() string { - return "InvalidApprovalRuleContentException" + if e.ErrorCodeOverride == nil { + return "InvalidApprovalRuleContentException" + } + return *e.ErrorCodeOverride } func (e *InvalidApprovalRuleContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1261,6 +1598,8 @@ func (e *InvalidApprovalRuleContentException) ErrorFault() smithy.ErrorFault { type InvalidApprovalRuleNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1274,7 +1613,10 @@ func (e *InvalidApprovalRuleNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleNameException) ErrorCode() string { - return "InvalidApprovalRuleNameException" + if e.ErrorCodeOverride == nil { + return "InvalidApprovalRuleNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidApprovalRuleNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1282,6 +1624,8 @@ func (e *InvalidApprovalRuleNameException) ErrorFault() smithy.ErrorFault { retu type InvalidApprovalRuleTemplateContentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1295,7 +1639,10 @@ func (e *InvalidApprovalRuleTemplateContentException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleTemplateContentException) ErrorCode() string { - return "InvalidApprovalRuleTemplateContentException" + if e.ErrorCodeOverride == nil { + return "InvalidApprovalRuleTemplateContentException" + } + return *e.ErrorCodeOverride } func (e *InvalidApprovalRuleTemplateContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1308,6 +1655,8 @@ func (e *InvalidApprovalRuleTemplateContentException) ErrorFault() smithy.ErrorF type InvalidApprovalRuleTemplateDescriptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1321,7 +1670,10 @@ func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorMessage() string return *e.Message } func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorCode() string { - return "InvalidApprovalRuleTemplateDescriptionException" + if e.ErrorCodeOverride == nil { + return "InvalidApprovalRuleTemplateDescriptionException" + } + return *e.ErrorCodeOverride } func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1334,6 +1686,8 @@ func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorFault() smithy.Er type InvalidApprovalRuleTemplateNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1347,7 +1701,10 @@ func (e *InvalidApprovalRuleTemplateNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleTemplateNameException) ErrorCode() string { - return "InvalidApprovalRuleTemplateNameException" + if e.ErrorCodeOverride == nil { + return "InvalidApprovalRuleTemplateNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidApprovalRuleTemplateNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1358,6 +1715,8 @@ func (e *InvalidApprovalRuleTemplateNameException) ErrorFault() smithy.ErrorFaul type InvalidApprovalStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1370,7 +1729,12 @@ func (e *InvalidApprovalStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidApprovalStateException) ErrorCode() string { return "InvalidApprovalStateException" } +func (e *InvalidApprovalStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidApprovalStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidApprovalStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Resource Name (ARN) is not valid. Make sure that you have provided @@ -1378,6 +1742,8 @@ func (e *InvalidApprovalStateException) ErrorFault() smithy.ErrorFault { return type InvalidAuthorArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1390,13 +1756,20 @@ func (e *InvalidAuthorArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAuthorArnException) ErrorCode() string { return "InvalidAuthorArnException" } +func (e *InvalidAuthorArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAuthorArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAuthorArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified blob is not valid. type InvalidBlobIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1409,13 +1782,20 @@ func (e *InvalidBlobIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidBlobIdException) ErrorCode() string { return "InvalidBlobIdException" } +func (e *InvalidBlobIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidBlobIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidBlobIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reference name is not valid. type InvalidBranchNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1428,13 +1808,20 @@ func (e *InvalidBranchNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidBranchNameException) ErrorCode() string { return "InvalidBranchNameException" } +func (e *InvalidBranchNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidBranchNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidBranchNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client request token is not valid. type InvalidClientRequestTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1448,7 +1835,10 @@ func (e *InvalidClientRequestTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidClientRequestTokenException) ErrorCode() string { - return "InvalidClientRequestTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidClientRequestTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidClientRequestTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1459,6 +1849,8 @@ func (e *InvalidClientRequestTokenException) ErrorFault() smithy.ErrorFault { type InvalidCommentIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1471,13 +1863,20 @@ func (e *InvalidCommentIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCommentIdException) ErrorCode() string { return "InvalidCommentIdException" } +func (e *InvalidCommentIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCommentIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCommentIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified commit is not valid. type InvalidCommitException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1490,13 +1889,20 @@ func (e *InvalidCommitException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCommitException) ErrorCode() string { return "InvalidCommitException" } +func (e *InvalidCommitException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCommitException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCommitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified commit ID is not valid. type InvalidCommitIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1509,13 +1915,20 @@ func (e *InvalidCommitIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCommitIdException) ErrorCode() string { return "InvalidCommitIdException" } +func (e *InvalidCommitIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCommitIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCommitIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified conflict detail level is not valid. type InvalidConflictDetailLevelException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1529,7 +1942,10 @@ func (e *InvalidConflictDetailLevelException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictDetailLevelException) ErrorCode() string { - return "InvalidConflictDetailLevelException" + if e.ErrorCodeOverride == nil { + return "InvalidConflictDetailLevelException" + } + return *e.ErrorCodeOverride } func (e *InvalidConflictDetailLevelException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1539,6 +1955,8 @@ func (e *InvalidConflictDetailLevelException) ErrorFault() smithy.ErrorFault { type InvalidConflictResolutionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1552,7 +1970,10 @@ func (e *InvalidConflictResolutionException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictResolutionException) ErrorCode() string { - return "InvalidConflictResolutionException" + if e.ErrorCodeOverride == nil { + return "InvalidConflictResolutionException" + } + return *e.ErrorCodeOverride } func (e *InvalidConflictResolutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1562,6 +1983,8 @@ func (e *InvalidConflictResolutionException) ErrorFault() smithy.ErrorFault { type InvalidConflictResolutionStrategyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1575,7 +1998,10 @@ func (e *InvalidConflictResolutionStrategyException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictResolutionStrategyException) ErrorCode() string { - return "InvalidConflictResolutionStrategyException" + if e.ErrorCodeOverride == nil { + return "InvalidConflictResolutionStrategyException" + } + return *e.ErrorCodeOverride } func (e *InvalidConflictResolutionStrategyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1585,6 +2011,8 @@ func (e *InvalidConflictResolutionStrategyException) ErrorFault() smithy.ErrorFa type InvalidContinuationTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1598,7 +2026,10 @@ func (e *InvalidContinuationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidContinuationTokenException) ErrorCode() string { - return "InvalidContinuationTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidContinuationTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidContinuationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1606,6 +2037,8 @@ func (e *InvalidContinuationTokenException) ErrorFault() smithy.ErrorFault { ret type InvalidDeletionParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1619,7 +2052,10 @@ func (e *InvalidDeletionParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidDeletionParameterException) ErrorCode() string { - return "InvalidDeletionParameterException" + if e.ErrorCodeOverride == nil { + return "InvalidDeletionParameterException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeletionParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1628,6 +2064,8 @@ func (e *InvalidDeletionParameterException) ErrorFault() smithy.ErrorFault { ret type InvalidDescriptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1640,7 +2078,12 @@ func (e *InvalidDescriptionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidDescriptionException) ErrorCode() string { return "InvalidDescriptionException" } +func (e *InvalidDescriptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDescriptionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidDescriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The destination commit specifier is not valid. You must provide a valid branch @@ -1648,6 +2091,8 @@ func (e *InvalidDescriptionException) ErrorFault() smithy.ErrorFault { return sm type InvalidDestinationCommitSpecifierException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1661,7 +2106,10 @@ func (e *InvalidDestinationCommitSpecifierException) ErrorMessage() string { return *e.Message } func (e *InvalidDestinationCommitSpecifierException) ErrorCode() string { - return "InvalidDestinationCommitSpecifierException" + if e.ErrorCodeOverride == nil { + return "InvalidDestinationCommitSpecifierException" + } + return *e.ErrorCodeOverride } func (e *InvalidDestinationCommitSpecifierException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1673,6 +2121,8 @@ func (e *InvalidDestinationCommitSpecifierException) ErrorFault() smithy.ErrorFa type InvalidEmailException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1685,7 +2135,12 @@ func (e *InvalidEmailException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEmailException) ErrorCode() string { return "InvalidEmailException" } +func (e *InvalidEmailException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEmailException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEmailException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The location of the file is not valid. Make sure that you include the file name @@ -1693,6 +2148,8 @@ func (e *InvalidEmailException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidFileLocationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1705,7 +2162,12 @@ func (e *InvalidFileLocationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFileLocationException) ErrorCode() string { return "InvalidFileLocationException" } +func (e *InvalidFileLocationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFileLocationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidFileLocationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified file mode permission is not valid. For a list of valid file mode @@ -1713,6 +2175,8 @@ func (e *InvalidFileLocationException) ErrorFault() smithy.ErrorFault { return s type InvalidFileModeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1725,7 +2189,12 @@ func (e *InvalidFileModeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFileModeException) ErrorCode() string { return "InvalidFileModeException" } +func (e *InvalidFileModeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFileModeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidFileModeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The position is not valid. Make sure that the line number exists in the version @@ -1733,6 +2202,8 @@ func (e *InvalidFileModeException) ErrorFault() smithy.ErrorFault { return smith type InvalidFilePositionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1745,13 +2216,20 @@ func (e *InvalidFilePositionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFilePositionException) ErrorCode() string { return "InvalidFilePositionException" } +func (e *InvalidFilePositionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFilePositionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidFilePositionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified value for the number of conflict files to return is not valid. type InvalidMaxConflictFilesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1765,7 +2243,10 @@ func (e *InvalidMaxConflictFilesException) ErrorMessage() string { return *e.Message } func (e *InvalidMaxConflictFilesException) ErrorCode() string { - return "InvalidMaxConflictFilesException" + if e.ErrorCodeOverride == nil { + return "InvalidMaxConflictFilesException" + } + return *e.ErrorCodeOverride } func (e *InvalidMaxConflictFilesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1773,6 +2254,8 @@ func (e *InvalidMaxConflictFilesException) ErrorFault() smithy.ErrorFault { retu type InvalidMaxMergeHunksException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1785,13 +2268,20 @@ func (e *InvalidMaxMergeHunksException) ErrorMessage() string { } return *e.Message } -func (e *InvalidMaxMergeHunksException) ErrorCode() string { return "InvalidMaxMergeHunksException" } +func (e *InvalidMaxMergeHunksException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMaxMergeHunksException" + } + return *e.ErrorCodeOverride +} func (e *InvalidMaxMergeHunksException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified number of maximum results is not valid. type InvalidMaxResultsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1804,7 +2294,12 @@ func (e *InvalidMaxResultsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidMaxResultsException) ErrorCode() string { return "InvalidMaxResultsException" } +func (e *InvalidMaxResultsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMaxResultsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidMaxResultsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified merge option is not valid for this operation. Not all merge @@ -1812,6 +2307,8 @@ func (e *InvalidMaxResultsException) ErrorFault() smithy.ErrorFault { return smi type InvalidMergeOptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1824,13 +2321,20 @@ func (e *InvalidMergeOptionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidMergeOptionException) ErrorCode() string { return "InvalidMergeOptionException" } +func (e *InvalidMergeOptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMergeOptionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidMergeOptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified sort order is not valid. type InvalidOrderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1843,13 +2347,20 @@ func (e *InvalidOrderException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOrderException) ErrorCode() string { return "InvalidOrderException" } +func (e *InvalidOrderException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOrderException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOrderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The override status is not valid. Valid statuses are OVERRIDE and REVOKE. type InvalidOverrideStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1862,7 +2373,12 @@ func (e *InvalidOverrideStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOverrideStatusException) ErrorCode() string { return "InvalidOverrideStatusException" } +func (e *InvalidOverrideStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOverrideStatusException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOverrideStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parent commit ID is not valid. The commit ID cannot be empty, and must match @@ -1871,6 +2387,8 @@ func (e *InvalidOverrideStatusException) ErrorFault() smithy.ErrorFault { return type InvalidParentCommitIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1883,13 +2401,20 @@ func (e *InvalidParentCommitIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParentCommitIdException) ErrorCode() string { return "InvalidParentCommitIdException" } +func (e *InvalidParentCommitIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParentCommitIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParentCommitIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified path is not valid. type InvalidPathException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1902,13 +2427,20 @@ func (e *InvalidPathException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPathException) ErrorCode() string { return "InvalidPathException" } +func (e *InvalidPathException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPathException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPathException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pull request event type is not valid. type InvalidPullRequestEventTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1922,7 +2454,10 @@ func (e *InvalidPullRequestEventTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestEventTypeException) ErrorCode() string { - return "InvalidPullRequestEventTypeException" + if e.ErrorCodeOverride == nil { + return "InvalidPullRequestEventTypeException" + } + return *e.ErrorCodeOverride } func (e *InvalidPullRequestEventTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1933,6 +2468,8 @@ func (e *InvalidPullRequestEventTypeException) ErrorFault() smithy.ErrorFault { type InvalidPullRequestIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1945,13 +2482,20 @@ func (e *InvalidPullRequestIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPullRequestIdException) ErrorCode() string { return "InvalidPullRequestIdException" } +func (e *InvalidPullRequestIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPullRequestIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPullRequestIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pull request status is not valid. The only valid values are OPEN and CLOSED. type InvalidPullRequestStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1965,7 +2509,10 @@ func (e *InvalidPullRequestStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestStatusException) ErrorCode() string { - return "InvalidPullRequestStatusException" + if e.ErrorCodeOverride == nil { + return "InvalidPullRequestStatusException" + } + return *e.ErrorCodeOverride } func (e *InvalidPullRequestStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1974,6 +2521,8 @@ func (e *InvalidPullRequestStatusException) ErrorFault() smithy.ErrorFault { ret type InvalidPullRequestStatusUpdateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1987,7 +2536,10 @@ func (e *InvalidPullRequestStatusUpdateException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestStatusUpdateException) ErrorCode() string { - return "InvalidPullRequestStatusUpdateException" + if e.ErrorCodeOverride == nil { + return "InvalidPullRequestStatusUpdateException" + } + return *e.ErrorCodeOverride } func (e *InvalidPullRequestStatusUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1997,6 +2549,8 @@ func (e *InvalidPullRequestStatusUpdateException) ErrorFault() smithy.ErrorFault type InvalidReactionUserArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2010,7 +2564,10 @@ func (e *InvalidReactionUserArnException) ErrorMessage() string { return *e.Message } func (e *InvalidReactionUserArnException) ErrorCode() string { - return "InvalidReactionUserArnException" + if e.ErrorCodeOverride == nil { + return "InvalidReactionUserArnException" + } + return *e.ErrorCodeOverride } func (e *InvalidReactionUserArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2020,6 +2577,8 @@ func (e *InvalidReactionUserArnException) ErrorFault() smithy.ErrorFault { retur type InvalidReactionValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2032,7 +2591,12 @@ func (e *InvalidReactionValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidReactionValueException) ErrorCode() string { return "InvalidReactionValueException" } +func (e *InvalidReactionValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidReactionValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidReactionValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reference name format is not valid. Reference names must conform @@ -2043,6 +2607,8 @@ func (e *InvalidReactionValueException) ErrorFault() smithy.ErrorFault { return type InvalidReferenceNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2055,7 +2621,12 @@ func (e *InvalidReferenceNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidReferenceNameException) ErrorCode() string { return "InvalidReferenceNameException" } +func (e *InvalidReferenceNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidReferenceNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidReferenceNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Either the enum is not in a valid format, or the specified file version enum is @@ -2063,6 +2634,8 @@ func (e *InvalidReferenceNameException) ErrorFault() smithy.ErrorFault { return type InvalidRelativeFileVersionEnumException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2076,7 +2649,10 @@ func (e *InvalidRelativeFileVersionEnumException) ErrorMessage() string { return *e.Message } func (e *InvalidRelativeFileVersionEnumException) ErrorCode() string { - return "InvalidRelativeFileVersionEnumException" + if e.ErrorCodeOverride == nil { + return "InvalidRelativeFileVersionEnumException" + } + return *e.ErrorCodeOverride } func (e *InvalidRelativeFileVersionEnumException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2087,6 +2663,8 @@ func (e *InvalidRelativeFileVersionEnumException) ErrorFault() smithy.ErrorFault type InvalidReplacementContentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2100,7 +2678,10 @@ func (e *InvalidReplacementContentException) ErrorMessage() string { return *e.Message } func (e *InvalidReplacementContentException) ErrorCode() string { - return "InvalidReplacementContentException" + if e.ErrorCodeOverride == nil { + return "InvalidReplacementContentException" + } + return *e.ErrorCodeOverride } func (e *InvalidReplacementContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2111,6 +2692,8 @@ func (e *InvalidReplacementContentException) ErrorFault() smithy.ErrorFault { type InvalidReplacementTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2124,7 +2707,10 @@ func (e *InvalidReplacementTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidReplacementTypeException) ErrorCode() string { - return "InvalidReplacementTypeException" + if e.ErrorCodeOverride == nil { + return "InvalidReplacementTypeException" + } + return *e.ErrorCodeOverride } func (e *InvalidReplacementTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2132,6 +2718,8 @@ func (e *InvalidReplacementTypeException) ErrorFault() smithy.ErrorFault { retur type InvalidRepositoryDescriptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2145,7 +2733,10 @@ func (e *InvalidRepositoryDescriptionException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryDescriptionException) ErrorCode() string { - return "InvalidRepositoryDescriptionException" + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryDescriptionException" + } + return *e.ErrorCodeOverride } func (e *InvalidRepositoryDescriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2157,6 +2748,8 @@ func (e *InvalidRepositoryDescriptionException) ErrorFault() smithy.ErrorFault { type InvalidRepositoryNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2169,13 +2762,20 @@ func (e *InvalidRepositoryNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRepositoryNameException) ErrorCode() string { return "InvalidRepositoryNameException" } +func (e *InvalidRepositoryNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRepositoryNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more branch names specified for the trigger is not valid. type InvalidRepositoryTriggerBranchNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2189,7 +2789,10 @@ func (e *InvalidRepositoryTriggerBranchNameException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerBranchNameException) ErrorCode() string { - return "InvalidRepositoryTriggerBranchNameException" + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryTriggerBranchNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidRepositoryTriggerBranchNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2199,6 +2802,8 @@ func (e *InvalidRepositoryTriggerBranchNameException) ErrorFault() smithy.ErrorF type InvalidRepositoryTriggerCustomDataException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2212,7 +2817,10 @@ func (e *InvalidRepositoryTriggerCustomDataException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerCustomDataException) ErrorCode() string { - return "InvalidRepositoryTriggerCustomDataException" + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryTriggerCustomDataException" + } + return *e.ErrorCodeOverride } func (e *InvalidRepositoryTriggerCustomDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2224,6 +2832,8 @@ func (e *InvalidRepositoryTriggerCustomDataException) ErrorFault() smithy.ErrorF type InvalidRepositoryTriggerDestinationArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2237,7 +2847,10 @@ func (e *InvalidRepositoryTriggerDestinationArnException) ErrorMessage() string return *e.Message } func (e *InvalidRepositoryTriggerDestinationArnException) ErrorCode() string { - return "InvalidRepositoryTriggerDestinationArnException" + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryTriggerDestinationArnException" + } + return *e.ErrorCodeOverride } func (e *InvalidRepositoryTriggerDestinationArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2248,6 +2861,8 @@ func (e *InvalidRepositoryTriggerDestinationArnException) ErrorFault() smithy.Er type InvalidRepositoryTriggerEventsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2261,7 +2876,10 @@ func (e *InvalidRepositoryTriggerEventsException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerEventsException) ErrorCode() string { - return "InvalidRepositoryTriggerEventsException" + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryTriggerEventsException" + } + return *e.ErrorCodeOverride } func (e *InvalidRepositoryTriggerEventsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2271,6 +2889,8 @@ func (e *InvalidRepositoryTriggerEventsException) ErrorFault() smithy.ErrorFault type InvalidRepositoryTriggerNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2284,7 +2904,10 @@ func (e *InvalidRepositoryTriggerNameException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerNameException) ErrorCode() string { - return "InvalidRepositoryTriggerNameException" + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryTriggerNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidRepositoryTriggerNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2296,6 +2919,8 @@ func (e *InvalidRepositoryTriggerNameException) ErrorFault() smithy.ErrorFault { type InvalidRepositoryTriggerRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2309,7 +2934,10 @@ func (e *InvalidRepositoryTriggerRegionException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerRegionException) ErrorCode() string { - return "InvalidRepositoryTriggerRegionException" + if e.ErrorCodeOverride == nil { + return "InvalidRepositoryTriggerRegionException" + } + return *e.ErrorCodeOverride } func (e *InvalidRepositoryTriggerRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2322,6 +2950,8 @@ func (e *InvalidRepositoryTriggerRegionException) ErrorFault() smithy.ErrorFault type InvalidResourceArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2334,13 +2964,20 @@ func (e *InvalidResourceArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceArnException) ErrorCode() string { return "InvalidResourceArnException" } +func (e *InvalidResourceArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The revision ID is not valid. Use GetPullRequest to determine the value. type InvalidRevisionIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2353,13 +2990,20 @@ func (e *InvalidRevisionIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRevisionIdException) ErrorCode() string { return "InvalidRevisionIdException" } +func (e *InvalidRevisionIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRevisionIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRevisionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SHA-256 hash signature for the rule content is not valid. type InvalidRuleContentSha256Exception struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2373,7 +3017,10 @@ func (e *InvalidRuleContentSha256Exception) ErrorMessage() string { return *e.Message } func (e *InvalidRuleContentSha256Exception) ErrorCode() string { - return "InvalidRuleContentSha256Exception" + if e.ErrorCodeOverride == nil { + return "InvalidRuleContentSha256Exception" + } + return *e.ErrorCodeOverride } func (e *InvalidRuleContentSha256Exception) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2381,6 +3028,8 @@ func (e *InvalidRuleContentSha256Exception) ErrorFault() smithy.ErrorFault { ret type InvalidSortByException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2393,7 +3042,12 @@ func (e *InvalidSortByException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSortByException) ErrorCode() string { return "InvalidSortByException" } +func (e *InvalidSortByException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSortByException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSortByException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The source commit specifier is not valid. You must provide a valid branch name, @@ -2401,6 +3055,8 @@ func (e *InvalidSortByException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidSourceCommitSpecifierException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2414,7 +3070,10 @@ func (e *InvalidSourceCommitSpecifierException) ErrorMessage() string { return *e.Message } func (e *InvalidSourceCommitSpecifierException) ErrorCode() string { - return "InvalidSourceCommitSpecifierException" + if e.ErrorCodeOverride == nil { + return "InvalidSourceCommitSpecifierException" + } + return *e.ErrorCodeOverride } func (e *InvalidSourceCommitSpecifierException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2424,6 +3083,8 @@ func (e *InvalidSourceCommitSpecifierException) ErrorFault() smithy.ErrorFault { type InvalidSystemTagUsageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2436,13 +3097,20 @@ func (e *InvalidSystemTagUsageException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSystemTagUsageException) ErrorCode() string { return "InvalidSystemTagUsageException" } +func (e *InvalidSystemTagUsageException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSystemTagUsageException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSystemTagUsageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The list of tags is not valid. type InvalidTagKeysListException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2455,13 +3123,20 @@ func (e *InvalidTagKeysListException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagKeysListException) ErrorCode() string { return "InvalidTagKeysListException" } +func (e *InvalidTagKeysListException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagKeysListException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagKeysListException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The map of tags is not valid. type InvalidTagsMapException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2474,13 +3149,20 @@ func (e *InvalidTagsMapException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagsMapException) ErrorCode() string { return "InvalidTagsMapException" } +func (e *InvalidTagsMapException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagsMapException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagsMapException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified target branch is not valid. type InvalidTargetBranchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2493,7 +3175,12 @@ func (e *InvalidTargetBranchException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTargetBranchException) ErrorCode() string { return "InvalidTargetBranchException" } +func (e *InvalidTargetBranchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTargetBranchException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTargetBranchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target for the pull request is not valid. A target must contain the full @@ -2502,6 +3189,8 @@ func (e *InvalidTargetBranchException) ErrorFault() smithy.ErrorFault { return s type InvalidTargetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2514,7 +3203,12 @@ func (e *InvalidTargetException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTargetException) ErrorCode() string { return "InvalidTargetException" } +func (e *InvalidTargetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTargetException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTargetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The targets for the pull request is not valid or not in a valid format. Targets @@ -2524,6 +3218,8 @@ func (e *InvalidTargetException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidTargetsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2536,7 +3232,12 @@ func (e *InvalidTargetsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTargetsException) ErrorCode() string { return "InvalidTargetsException" } +func (e *InvalidTargetsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTargetsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTargetsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The title of the pull request is not valid. Pull request titles cannot exceed @@ -2544,6 +3245,8 @@ func (e *InvalidTargetsException) ErrorFault() smithy.ErrorFault { return smithy type InvalidTitleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2556,7 +3259,12 @@ func (e *InvalidTitleException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTitleException) ErrorCode() string { return "InvalidTitleException" } +func (e *InvalidTitleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTitleException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTitleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pull request cannot be merged automatically into the destination branch. You @@ -2564,6 +3272,8 @@ func (e *InvalidTitleException) ErrorFault() smithy.ErrorFault { return smithy.F type ManualMergeRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2576,13 +3286,20 @@ func (e *ManualMergeRequiredException) ErrorMessage() string { } return *e.Message } -func (e *ManualMergeRequiredException) ErrorCode() string { return "ManualMergeRequiredException" } +func (e *ManualMergeRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ManualMergeRequiredException" + } + return *e.ErrorCodeOverride +} func (e *ManualMergeRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of branches for the trigger was exceeded. type MaximumBranchesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2596,7 +3313,10 @@ func (e *MaximumBranchesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumBranchesExceededException) ErrorCode() string { - return "MaximumBranchesExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumBranchesExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumBranchesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2604,6 +3324,8 @@ func (e *MaximumBranchesExceededException) ErrorFault() smithy.ErrorFault { retu type MaximumConflictResolutionEntriesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2617,7 +3339,10 @@ func (e *MaximumConflictResolutionEntriesExceededException) ErrorMessage() strin return *e.Message } func (e *MaximumConflictResolutionEntriesExceededException) ErrorCode() string { - return "MaximumConflictResolutionEntriesExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumConflictResolutionEntriesExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumConflictResolutionEntriesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2627,6 +3352,8 @@ func (e *MaximumConflictResolutionEntriesExceededException) ErrorFault() smithy. type MaximumFileContentToLoadExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2640,7 +3367,10 @@ func (e *MaximumFileContentToLoadExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumFileContentToLoadExceededException) ErrorCode() string { - return "MaximumFileContentToLoadExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumFileContentToLoadExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumFileContentToLoadExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2652,6 +3382,8 @@ func (e *MaximumFileContentToLoadExceededException) ErrorFault() smithy.ErrorFau type MaximumFileEntriesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2665,7 +3397,10 @@ func (e *MaximumFileEntriesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumFileEntriesExceededException) ErrorCode() string { - return "MaximumFileEntriesExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumFileEntriesExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumFileEntriesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2676,6 +3411,8 @@ func (e *MaximumFileEntriesExceededException) ErrorFault() smithy.ErrorFault { type MaximumItemsToCompareExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2689,7 +3426,10 @@ func (e *MaximumItemsToCompareExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumItemsToCompareExceededException) ErrorCode() string { - return "MaximumItemsToCompareExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumItemsToCompareExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumItemsToCompareExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2700,6 +3440,8 @@ func (e *MaximumItemsToCompareExceededException) ErrorFault() smithy.ErrorFault type MaximumNumberOfApprovalsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2713,7 +3455,10 @@ func (e *MaximumNumberOfApprovalsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumNumberOfApprovalsExceededException) ErrorCode() string { - return "MaximumNumberOfApprovalsExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumNumberOfApprovalsExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumNumberOfApprovalsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2725,6 +3470,8 @@ func (e *MaximumNumberOfApprovalsExceededException) ErrorFault() smithy.ErrorFau type MaximumOpenPullRequestsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2738,7 +3485,10 @@ func (e *MaximumOpenPullRequestsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumOpenPullRequestsExceededException) ErrorCode() string { - return "MaximumOpenPullRequestsExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumOpenPullRequestsExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumOpenPullRequestsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2749,6 +3499,8 @@ func (e *MaximumOpenPullRequestsExceededException) ErrorFault() smithy.ErrorFaul type MaximumRepositoryNamesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2762,7 +3514,10 @@ func (e *MaximumRepositoryNamesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumRepositoryNamesExceededException) ErrorCode() string { - return "MaximumRepositoryNamesExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumRepositoryNamesExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumRepositoryNamesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2772,6 +3527,8 @@ func (e *MaximumRepositoryNamesExceededException) ErrorFault() smithy.ErrorFault type MaximumRepositoryTriggersExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2785,7 +3542,10 @@ func (e *MaximumRepositoryTriggersExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumRepositoryTriggersExceededException) ErrorCode() string { - return "MaximumRepositoryTriggersExceededException" + if e.ErrorCodeOverride == nil { + return "MaximumRepositoryTriggersExceededException" + } + return *e.ErrorCodeOverride } func (e *MaximumRepositoryTriggersExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2797,6 +3557,8 @@ func (e *MaximumRepositoryTriggersExceededException) ErrorFault() smithy.ErrorFa type MaximumRuleTemplatesAssociatedWithRepositoryException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2810,7 +3572,10 @@ func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorMessage() s return *e.Message } func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorCode() string { - return "MaximumRuleTemplatesAssociatedWithRepositoryException" + if e.ErrorCodeOverride == nil { + return "MaximumRuleTemplatesAssociatedWithRepositoryException" + } + return *e.ErrorCodeOverride } func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2820,6 +3585,8 @@ func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorFault() smi type MergeOptionRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2832,7 +3599,12 @@ func (e *MergeOptionRequiredException) ErrorMessage() string { } return *e.Message } -func (e *MergeOptionRequiredException) ErrorCode() string { return "MergeOptionRequiredException" } +func (e *MergeOptionRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MergeOptionRequiredException" + } + return *e.ErrorCodeOverride +} func (e *MergeOptionRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // More than one conflict resolution entries exists for the conflict. A conflict @@ -2840,6 +3612,8 @@ func (e *MergeOptionRequiredException) ErrorFault() smithy.ErrorFault { return s type MultipleConflictResolutionEntriesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2853,7 +3627,10 @@ func (e *MultipleConflictResolutionEntriesException) ErrorMessage() string { return *e.Message } func (e *MultipleConflictResolutionEntriesException) ErrorCode() string { - return "MultipleConflictResolutionEntriesException" + if e.ErrorCodeOverride == nil { + return "MultipleConflictResolutionEntriesException" + } + return *e.ErrorCodeOverride } func (e *MultipleConflictResolutionEntriesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2864,6 +3641,8 @@ func (e *MultipleConflictResolutionEntriesException) ErrorFault() smithy.ErrorFa type MultipleRepositoriesInPullRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2877,7 +3656,10 @@ func (e *MultipleRepositoriesInPullRequestException) ErrorMessage() string { return *e.Message } func (e *MultipleRepositoriesInPullRequestException) ErrorCode() string { - return "MultipleRepositoriesInPullRequestException" + if e.ErrorCodeOverride == nil { + return "MultipleRepositoriesInPullRequestException" + } + return *e.ErrorCodeOverride } func (e *MultipleRepositoriesInPullRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2888,6 +3670,8 @@ func (e *MultipleRepositoriesInPullRequestException) ErrorFault() smithy.ErrorFa type NameLengthExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2900,7 +3684,12 @@ func (e *NameLengthExceededException) ErrorMessage() string { } return *e.Message } -func (e *NameLengthExceededException) ErrorCode() string { return "NameLengthExceededException" } +func (e *NameLengthExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NameLengthExceededException" + } + return *e.ErrorCodeOverride +} func (e *NameLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit cannot be created because no changes will be made to the repository @@ -2908,6 +3697,8 @@ func (e *NameLengthExceededException) ErrorFault() smithy.ErrorFault { return sm type NoChangeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2920,7 +3711,12 @@ func (e *NoChangeException) ErrorMessage() string { } return *e.Message } -func (e *NoChangeException) ErrorCode() string { return "NoChangeException" } +func (e *NoChangeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoChangeException" + } + return *e.ErrorCodeOverride +} func (e *NoChangeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The approval rule cannot be added. The pull request has the maximum number of @@ -2928,6 +3724,8 @@ func (e *NoChangeException) ErrorFault() smithy.ErrorFault { return smithy.Fault type NumberOfRulesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2940,7 +3738,12 @@ func (e *NumberOfRulesExceededException) ErrorMessage() string { } return *e.Message } -func (e *NumberOfRulesExceededException) ErrorCode() string { return "NumberOfRulesExceededException" } +func (e *NumberOfRulesExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NumberOfRulesExceededException" + } + return *e.ErrorCodeOverride +} func (e *NumberOfRulesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of approval rule templates has been exceeded for this AWS @@ -2948,6 +3751,8 @@ func (e *NumberOfRulesExceededException) ErrorFault() smithy.ErrorFault { return type NumberOfRuleTemplatesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2961,7 +3766,10 @@ func (e *NumberOfRuleTemplatesExceededException) ErrorMessage() string { return *e.Message } func (e *NumberOfRuleTemplatesExceededException) ErrorCode() string { - return "NumberOfRuleTemplatesExceededException" + if e.ErrorCodeOverride == nil { + return "NumberOfRuleTemplatesExceededException" + } + return *e.ErrorCodeOverride } func (e *NumberOfRuleTemplatesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2971,6 +3779,8 @@ func (e *NumberOfRuleTemplatesExceededException) ErrorFault() smithy.ErrorFault type OverrideAlreadySetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2983,7 +3793,12 @@ func (e *OverrideAlreadySetException) ErrorMessage() string { } return *e.Message } -func (e *OverrideAlreadySetException) ErrorCode() string { return "OverrideAlreadySetException" } +func (e *OverrideAlreadySetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OverrideAlreadySetException" + } + return *e.ErrorCodeOverride +} func (e *OverrideAlreadySetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An override status is required, but no value was provided. Valid values include @@ -2991,6 +3806,8 @@ func (e *OverrideAlreadySetException) ErrorFault() smithy.ErrorFault { return sm type OverrideStatusRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3004,7 +3821,10 @@ func (e *OverrideStatusRequiredException) ErrorMessage() string { return *e.Message } func (e *OverrideStatusRequiredException) ErrorCode() string { - return "OverrideStatusRequiredException" + if e.ErrorCodeOverride == nil { + return "OverrideStatusRequiredException" + } + return *e.ErrorCodeOverride } func (e *OverrideStatusRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3013,6 +3833,8 @@ func (e *OverrideStatusRequiredException) ErrorFault() smithy.ErrorFault { retur type ParentCommitDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3026,7 +3848,10 @@ func (e *ParentCommitDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ParentCommitDoesNotExistException) ErrorCode() string { - return "ParentCommitDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "ParentCommitDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *ParentCommitDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3036,6 +3861,8 @@ func (e *ParentCommitDoesNotExistException) ErrorFault() smithy.ErrorFault { ret type ParentCommitIdOutdatedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3049,7 +3876,10 @@ func (e *ParentCommitIdOutdatedException) ErrorMessage() string { return *e.Message } func (e *ParentCommitIdOutdatedException) ErrorCode() string { - return "ParentCommitIdOutdatedException" + if e.ErrorCodeOverride == nil { + return "ParentCommitIdOutdatedException" + } + return *e.ErrorCodeOverride } func (e *ParentCommitIdOutdatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3058,6 +3888,8 @@ func (e *ParentCommitIdOutdatedException) ErrorFault() smithy.ErrorFault { retur type ParentCommitIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3071,7 +3903,10 @@ func (e *ParentCommitIdRequiredException) ErrorMessage() string { return *e.Message } func (e *ParentCommitIdRequiredException) ErrorCode() string { - return "ParentCommitIdRequiredException" + if e.ErrorCodeOverride == nil { + return "ParentCommitIdRequiredException" + } + return *e.ErrorCodeOverride } func (e *ParentCommitIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3079,6 +3914,8 @@ func (e *ParentCommitIdRequiredException) ErrorFault() smithy.ErrorFault { retur type PathDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3091,13 +3928,20 @@ func (e *PathDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *PathDoesNotExistException) ErrorCode() string { return "PathDoesNotExistException" } +func (e *PathDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PathDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *PathDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The folderPath for a location cannot be null. type PathRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3110,13 +3954,20 @@ func (e *PathRequiredException) ErrorMessage() string { } return *e.Message } -func (e *PathRequiredException) ErrorCode() string { return "PathRequiredException" } +func (e *PathRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PathRequiredException" + } + return *e.ErrorCodeOverride +} func (e *PathRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pull request status cannot be updated because it is already closed. type PullRequestAlreadyClosedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3130,7 +3981,10 @@ func (e *PullRequestAlreadyClosedException) ErrorMessage() string { return *e.Message } func (e *PullRequestAlreadyClosedException) ErrorCode() string { - return "PullRequestAlreadyClosedException" + if e.ErrorCodeOverride == nil { + return "PullRequestAlreadyClosedException" + } + return *e.ErrorCodeOverride } func (e *PullRequestAlreadyClosedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3139,6 +3993,8 @@ func (e *PullRequestAlreadyClosedException) ErrorFault() smithy.ErrorFault { ret type PullRequestApprovalRulesNotSatisfiedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3152,7 +4008,10 @@ func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorMessage() string { return *e.Message } func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorCode() string { - return "PullRequestApprovalRulesNotSatisfiedException" + if e.ErrorCodeOverride == nil { + return "PullRequestApprovalRulesNotSatisfiedException" + } + return *e.ErrorCodeOverride } func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3164,6 +4023,8 @@ func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorFault() smithy.Erro type PullRequestCannotBeApprovedByAuthorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3177,7 +4038,10 @@ func (e *PullRequestCannotBeApprovedByAuthorException) ErrorMessage() string { return *e.Message } func (e *PullRequestCannotBeApprovedByAuthorException) ErrorCode() string { - return "PullRequestCannotBeApprovedByAuthorException" + if e.ErrorCodeOverride == nil { + return "PullRequestCannotBeApprovedByAuthorException" + } + return *e.ErrorCodeOverride } func (e *PullRequestCannotBeApprovedByAuthorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3188,6 +4052,8 @@ func (e *PullRequestCannotBeApprovedByAuthorException) ErrorFault() smithy.Error type PullRequestDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3201,7 +4067,10 @@ func (e *PullRequestDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *PullRequestDoesNotExistException) ErrorCode() string { - return "PullRequestDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "PullRequestDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *PullRequestDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3209,6 +4078,8 @@ func (e *PullRequestDoesNotExistException) ErrorFault() smithy.ErrorFault { retu type PullRequestIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3221,13 +4092,20 @@ func (e *PullRequestIdRequiredException) ErrorMessage() string { } return *e.Message } -func (e *PullRequestIdRequiredException) ErrorCode() string { return "PullRequestIdRequiredException" } +func (e *PullRequestIdRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PullRequestIdRequiredException" + } + return *e.ErrorCodeOverride +} func (e *PullRequestIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A pull request status is required, but none was provided. type PullRequestStatusRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3241,7 +4119,10 @@ func (e *PullRequestStatusRequiredException) ErrorMessage() string { return *e.Message } func (e *PullRequestStatusRequiredException) ErrorCode() string { - return "PullRequestStatusRequiredException" + if e.ErrorCodeOverride == nil { + return "PullRequestStatusRequiredException" + } + return *e.ErrorCodeOverride } func (e *PullRequestStatusRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3252,6 +4133,8 @@ func (e *PullRequestStatusRequiredException) ErrorFault() smithy.ErrorFault { type PutFileEntryConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3264,7 +4147,12 @@ func (e *PutFileEntryConflictException) ErrorMessage() string { } return *e.Message } -func (e *PutFileEntryConflictException) ErrorCode() string { return "PutFileEntryConflictException" } +func (e *PutFileEntryConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PutFileEntryConflictException" + } + return *e.ErrorCodeOverride +} func (e *PutFileEntryConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of reactions has been exceeded. Reactions are limited to one reaction @@ -3272,6 +4160,8 @@ func (e *PutFileEntryConflictException) ErrorFault() smithy.ErrorFault { return type ReactionLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3284,13 +4174,20 @@ func (e *ReactionLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ReactionLimitExceededException) ErrorCode() string { return "ReactionLimitExceededException" } +func (e *ReactionLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReactionLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ReactionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A reaction value is required. type ReactionValueRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3303,13 +4200,20 @@ func (e *ReactionValueRequiredException) ErrorMessage() string { } return *e.Message } -func (e *ReactionValueRequiredException) ErrorCode() string { return "ReactionValueRequiredException" } +func (e *ReactionValueRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReactionValueRequiredException" + } + return *e.ErrorCodeOverride +} func (e *ReactionValueRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reference does not exist. You must provide a full commit ID. type ReferenceDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3322,13 +4226,20 @@ func (e *ReferenceDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *ReferenceDoesNotExistException) ErrorCode() string { return "ReferenceDoesNotExistException" } +func (e *ReferenceDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReferenceDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *ReferenceDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A reference name is required, but none was provided. type ReferenceNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3341,13 +4252,20 @@ func (e *ReferenceNameRequiredException) ErrorMessage() string { } return *e.Message } -func (e *ReferenceNameRequiredException) ErrorCode() string { return "ReferenceNameRequiredException" } +func (e *ReferenceNameRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReferenceNameRequiredException" + } + return *e.ErrorCodeOverride +} func (e *ReferenceNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reference is not a supported type. type ReferenceTypeNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3361,7 +4279,10 @@ func (e *ReferenceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ReferenceTypeNotSupportedException) ErrorCode() string { - return "ReferenceTypeNotSupportedException" + if e.ErrorCodeOverride == nil { + return "ReferenceTypeNotSupportedException" + } + return *e.ErrorCodeOverride } func (e *ReferenceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3371,6 +4292,8 @@ func (e *ReferenceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { type ReplacementContentRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3384,7 +4307,10 @@ func (e *ReplacementContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ReplacementContentRequiredException) ErrorCode() string { - return "ReplacementContentRequiredException" + if e.ErrorCodeOverride == nil { + return "ReplacementContentRequiredException" + } + return *e.ErrorCodeOverride } func (e *ReplacementContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3394,6 +4320,8 @@ func (e *ReplacementContentRequiredException) ErrorFault() smithy.ErrorFault { type ReplacementTypeRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3407,7 +4335,10 @@ func (e *ReplacementTypeRequiredException) ErrorMessage() string { return *e.Message } func (e *ReplacementTypeRequiredException) ErrorCode() string { - return "ReplacementTypeRequiredException" + if e.ErrorCodeOverride == nil { + return "ReplacementTypeRequiredException" + } + return *e.ErrorCodeOverride } func (e *ReplacementTypeRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3415,6 +4346,8 @@ func (e *ReplacementTypeRequiredException) ErrorFault() smithy.ErrorFault { retu type RepositoryDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3428,7 +4361,10 @@ func (e *RepositoryDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *RepositoryDoesNotExistException) ErrorCode() string { - return "RepositoryDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "RepositoryDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *RepositoryDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3436,6 +4372,8 @@ func (e *RepositoryDoesNotExistException) ErrorFault() smithy.ErrorFault { retur type RepositoryLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3449,7 +4387,10 @@ func (e *RepositoryLimitExceededException) ErrorMessage() string { return *e.Message } func (e *RepositoryLimitExceededException) ErrorCode() string { - return "RepositoryLimitExceededException" + if e.ErrorCodeOverride == nil { + return "RepositoryLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *RepositoryLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3457,6 +4398,8 @@ func (e *RepositoryLimitExceededException) ErrorFault() smithy.ErrorFault { retu type RepositoryNameExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3469,13 +4412,20 @@ func (e *RepositoryNameExistsException) ErrorMessage() string { } return *e.Message } -func (e *RepositoryNameExistsException) ErrorCode() string { return "RepositoryNameExistsException" } +func (e *RepositoryNameExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RepositoryNameExistsException" + } + return *e.ErrorCodeOverride +} func (e *RepositoryNameExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A repository name is required, but was not specified. type RepositoryNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3489,7 +4439,10 @@ func (e *RepositoryNameRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryNameRequiredException) ErrorCode() string { - return "RepositoryNameRequiredException" + if e.ErrorCodeOverride == nil { + return "RepositoryNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *RepositoryNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3497,6 +4450,8 @@ func (e *RepositoryNameRequiredException) ErrorFault() smithy.ErrorFault { retur type RepositoryNamesRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3510,7 +4465,10 @@ func (e *RepositoryNamesRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryNamesRequiredException) ErrorCode() string { - return "RepositoryNamesRequiredException" + if e.ErrorCodeOverride == nil { + return "RepositoryNamesRequiredException" + } + return *e.ErrorCodeOverride } func (e *RepositoryNamesRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3519,6 +4477,8 @@ func (e *RepositoryNamesRequiredException) ErrorFault() smithy.ErrorFault { retu type RepositoryNotAssociatedWithPullRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3532,7 +4492,10 @@ func (e *RepositoryNotAssociatedWithPullRequestException) ErrorMessage() string return *e.Message } func (e *RepositoryNotAssociatedWithPullRequestException) ErrorCode() string { - return "RepositoryNotAssociatedWithPullRequestException" + if e.ErrorCodeOverride == nil { + return "RepositoryNotAssociatedWithPullRequestException" + } + return *e.ErrorCodeOverride } func (e *RepositoryNotAssociatedWithPullRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3543,6 +4506,8 @@ func (e *RepositoryNotAssociatedWithPullRequestException) ErrorFault() smithy.Er type RepositoryTriggerBranchNameListRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3556,7 +4521,10 @@ func (e *RepositoryTriggerBranchNameListRequiredException) ErrorMessage() string return *e.Message } func (e *RepositoryTriggerBranchNameListRequiredException) ErrorCode() string { - return "RepositoryTriggerBranchNameListRequiredException" + if e.ErrorCodeOverride == nil { + return "RepositoryTriggerBranchNameListRequiredException" + } + return *e.ErrorCodeOverride } func (e *RepositoryTriggerBranchNameListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3567,6 +4535,8 @@ func (e *RepositoryTriggerBranchNameListRequiredException) ErrorFault() smithy.E type RepositoryTriggerDestinationArnRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3580,7 +4550,10 @@ func (e *RepositoryTriggerDestinationArnRequiredException) ErrorMessage() string return *e.Message } func (e *RepositoryTriggerDestinationArnRequiredException) ErrorCode() string { - return "RepositoryTriggerDestinationArnRequiredException" + if e.ErrorCodeOverride == nil { + return "RepositoryTriggerDestinationArnRequiredException" + } + return *e.ErrorCodeOverride } func (e *RepositoryTriggerDestinationArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3590,6 +4563,8 @@ func (e *RepositoryTriggerDestinationArnRequiredException) ErrorFault() smithy.E type RepositoryTriggerEventsListRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3603,7 +4578,10 @@ func (e *RepositoryTriggerEventsListRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggerEventsListRequiredException) ErrorCode() string { - return "RepositoryTriggerEventsListRequiredException" + if e.ErrorCodeOverride == nil { + return "RepositoryTriggerEventsListRequiredException" + } + return *e.ErrorCodeOverride } func (e *RepositoryTriggerEventsListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3613,6 +4591,8 @@ func (e *RepositoryTriggerEventsListRequiredException) ErrorFault() smithy.Error type RepositoryTriggerNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3626,7 +4606,10 @@ func (e *RepositoryTriggerNameRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggerNameRequiredException) ErrorCode() string { - return "RepositoryTriggerNameRequiredException" + if e.ErrorCodeOverride == nil { + return "RepositoryTriggerNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *RepositoryTriggerNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3636,6 +4619,8 @@ func (e *RepositoryTriggerNameRequiredException) ErrorFault() smithy.ErrorFault type RepositoryTriggersListRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3649,7 +4634,10 @@ func (e *RepositoryTriggersListRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggersListRequiredException) ErrorCode() string { - return "RepositoryTriggersListRequiredException" + if e.ErrorCodeOverride == nil { + return "RepositoryTriggersListRequiredException" + } + return *e.ErrorCodeOverride } func (e *RepositoryTriggersListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3663,6 +4651,8 @@ func (e *RepositoryTriggersListRequiredException) ErrorFault() smithy.ErrorFault type ResourceArnRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3675,7 +4665,12 @@ func (e *ResourceArnRequiredException) ErrorMessage() string { } return *e.Message } -func (e *ResourceArnRequiredException) ErrorCode() string { return "ResourceArnRequiredException" } +func (e *ResourceArnRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceArnRequiredException" + } + return *e.ErrorCodeOverride +} func (e *ResourceArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit cannot be created because one of the changes specifies copying or @@ -3683,6 +4678,8 @@ func (e *ResourceArnRequiredException) ErrorFault() smithy.ErrorFault { return s type RestrictedSourceFileException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3695,13 +4692,20 @@ func (e *RestrictedSourceFileException) ErrorMessage() string { } return *e.Message } -func (e *RestrictedSourceFileException) ErrorCode() string { return "RestrictedSourceFileException" } +func (e *RestrictedSourceFileException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RestrictedSourceFileException" + } + return *e.ErrorCodeOverride +} func (e *RestrictedSourceFileException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A revision ID is required, but was not provided. type RevisionIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3714,7 +4718,12 @@ func (e *RevisionIdRequiredException) ErrorMessage() string { } return *e.Message } -func (e *RevisionIdRequiredException) ErrorCode() string { return "RevisionIdRequiredException" } +func (e *RevisionIdRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RevisionIdRequiredException" + } + return *e.ErrorCodeOverride +} func (e *RevisionIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The revision ID provided in the request does not match the current revision ID. @@ -3722,6 +4731,8 @@ func (e *RevisionIdRequiredException) ErrorFault() smithy.ErrorFault { return sm type RevisionNotCurrentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3734,7 +4745,12 @@ func (e *RevisionNotCurrentException) ErrorMessage() string { } return *e.Message } -func (e *RevisionNotCurrentException) ErrorCode() string { return "RevisionNotCurrentException" } +func (e *RevisionNotCurrentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RevisionNotCurrentException" + } + return *e.ErrorCodeOverride +} func (e *RevisionNotCurrentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The file was not added or updated because the content of the file is exactly the @@ -3743,6 +4759,8 @@ func (e *RevisionNotCurrentException) ErrorFault() smithy.ErrorFault { return sm type SameFileContentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3755,7 +4773,12 @@ func (e *SameFileContentException) ErrorMessage() string { } return *e.Message } -func (e *SameFileContentException) ErrorCode() string { return "SameFileContentException" } +func (e *SameFileContentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SameFileContentException" + } + return *e.ErrorCodeOverride +} func (e *SameFileContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit cannot be created because one or more changes in this commit @@ -3765,6 +4788,8 @@ func (e *SameFileContentException) ErrorFault() smithy.ErrorFault { return smith type SamePathRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3777,7 +4802,12 @@ func (e *SamePathRequestException) ErrorMessage() string { } return *e.Message } -func (e *SamePathRequestException) ErrorCode() string { return "SamePathRequestException" } +func (e *SamePathRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SamePathRequestException" + } + return *e.ErrorCodeOverride +} func (e *SamePathRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The source branch and destination branch for the pull request are the same. You @@ -3785,6 +4815,8 @@ func (e *SamePathRequestException) ErrorFault() smithy.ErrorFault { return smith type SourceAndDestinationAreSameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3798,7 +4830,10 @@ func (e *SourceAndDestinationAreSameException) ErrorMessage() string { return *e.Message } func (e *SourceAndDestinationAreSameException) ErrorCode() string { - return "SourceAndDestinationAreSameException" + if e.ErrorCodeOverride == nil { + return "SourceAndDestinationAreSameException" + } + return *e.ErrorCodeOverride } func (e *SourceAndDestinationAreSameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3809,6 +4844,8 @@ func (e *SourceAndDestinationAreSameException) ErrorFault() smithy.ErrorFault { type SourceFileOrContentRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3822,7 +4859,10 @@ func (e *SourceFileOrContentRequiredException) ErrorMessage() string { return *e.Message } func (e *SourceFileOrContentRequiredException) ErrorCode() string { - return "SourceFileOrContentRequiredException" + if e.ErrorCodeOverride == nil { + return "SourceFileOrContentRequiredException" + } + return *e.ErrorCodeOverride } func (e *SourceFileOrContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3832,6 +4872,8 @@ func (e *SourceFileOrContentRequiredException) ErrorFault() smithy.ErrorFault { type TagKeysListRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3844,13 +4886,20 @@ func (e *TagKeysListRequiredException) ErrorMessage() string { } return *e.Message } -func (e *TagKeysListRequiredException) ErrorCode() string { return "TagKeysListRequiredException" } +func (e *TagKeysListRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagKeysListRequiredException" + } + return *e.ErrorCodeOverride +} func (e *TagKeysListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag policy is not valid. type TagPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3863,13 +4912,20 @@ func (e *TagPolicyException) ErrorMessage() string { } return *e.Message } -func (e *TagPolicyException) ErrorCode() string { return "TagPolicyException" } +func (e *TagPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagPolicyException" + } + return *e.ErrorCodeOverride +} func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A map of tags is required. type TagsMapRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3882,7 +4938,12 @@ func (e *TagsMapRequiredException) ErrorMessage() string { } return *e.Message } -func (e *TagsMapRequiredException) ErrorCode() string { return "TagsMapRequiredException" } +func (e *TagsMapRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagsMapRequiredException" + } + return *e.ErrorCodeOverride +} func (e *TagsMapRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A pull request target is required. It cannot be empty or null. A pull request @@ -3891,6 +4952,8 @@ func (e *TagsMapRequiredException) ErrorFault() smithy.ErrorFault { return smith type TargetRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3903,13 +4966,20 @@ func (e *TargetRequiredException) ErrorMessage() string { } return *e.Message } -func (e *TargetRequiredException) ErrorCode() string { return "TargetRequiredException" } +func (e *TargetRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetRequiredException" + } + return *e.ErrorCodeOverride +} func (e *TargetRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An array of target objects is required. It cannot be empty or null. type TargetsRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3922,7 +4992,12 @@ func (e *TargetsRequiredException) ErrorMessage() string { } return *e.Message } -func (e *TargetsRequiredException) ErrorCode() string { return "TargetsRequiredException" } +func (e *TargetsRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetsRequiredException" + } + return *e.ErrorCodeOverride +} func (e *TargetsRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tip of the source branch in the destination repository does not match the @@ -3931,6 +5006,8 @@ func (e *TargetsRequiredException) ErrorFault() smithy.ErrorFault { return smith type TipOfSourceReferenceIsDifferentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3944,7 +5021,10 @@ func (e *TipOfSourceReferenceIsDifferentException) ErrorMessage() string { return *e.Message } func (e *TipOfSourceReferenceIsDifferentException) ErrorCode() string { - return "TipOfSourceReferenceIsDifferentException" + if e.ErrorCodeOverride == nil { + return "TipOfSourceReferenceIsDifferentException" + } + return *e.ErrorCodeOverride } func (e *TipOfSourceReferenceIsDifferentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3956,6 +5036,8 @@ func (e *TipOfSourceReferenceIsDifferentException) ErrorFault() smithy.ErrorFaul type TipsDivergenceExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3969,7 +5051,10 @@ func (e *TipsDivergenceExceededException) ErrorMessage() string { return *e.Message } func (e *TipsDivergenceExceededException) ErrorCode() string { - return "TipsDivergenceExceededException" + if e.ErrorCodeOverride == nil { + return "TipsDivergenceExceededException" + } + return *e.ErrorCodeOverride } func (e *TipsDivergenceExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -3977,6 +5062,8 @@ func (e *TipsDivergenceExceededException) ErrorFault() smithy.ErrorFault { retur type TitleRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -3989,13 +5076,20 @@ func (e *TitleRequiredException) ErrorMessage() string { } return *e.Message } -func (e *TitleRequiredException) ErrorCode() string { return "TitleRequiredException" } +func (e *TitleRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TitleRequiredException" + } + return *e.ErrorCodeOverride +} func (e *TitleRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of tags for an AWS CodeCommit resource has been exceeded. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -4008,5 +5102,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codedeploy/types/errors.go b/service/codedeploy/types/errors.go index 394f5125fc8..e54b3013e66 100644 --- a/service/codedeploy/types/errors.go +++ b/service/codedeploy/types/errors.go @@ -11,6 +11,8 @@ import ( type AlarmsLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AlarmsLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *AlarmsLimitExceededException) ErrorCode() string { return "AlarmsLimitExceededException" } +func (e *AlarmsLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlarmsLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *AlarmsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An application with the specified name with the IAM user or Amazon Web Services @@ -31,6 +38,8 @@ func (e *AlarmsLimitExceededException) ErrorFault() smithy.ErrorFault { return s type ApplicationAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ApplicationAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApplicationAlreadyExistsException) ErrorCode() string { - return "ApplicationAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "ApplicationAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *ApplicationAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -52,6 +64,8 @@ func (e *ApplicationAlreadyExistsException) ErrorFault() smithy.ErrorFault { ret type ApplicationDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +79,10 @@ func (e *ApplicationDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApplicationDoesNotExistException) ErrorCode() string { - return "ApplicationDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "ApplicationDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *ApplicationDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -73,6 +90,8 @@ func (e *ApplicationDoesNotExistException) ErrorFault() smithy.ErrorFault { retu type ApplicationLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +105,10 @@ func (e *ApplicationLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ApplicationLimitExceededException) ErrorCode() string { - return "ApplicationLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ApplicationLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ApplicationLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -94,6 +116,8 @@ func (e *ApplicationLimitExceededException) ErrorFault() smithy.ErrorFault { ret type ApplicationNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +131,10 @@ func (e *ApplicationNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApplicationNameRequiredException) ErrorCode() string { - return "ApplicationNameRequiredException" + if e.ErrorCodeOverride == nil { + return "ApplicationNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *ApplicationNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -116,6 +143,8 @@ func (e *ApplicationNameRequiredException) ErrorFault() smithy.ErrorFault { retu type ArnNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,13 +157,20 @@ func (e *ArnNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *ArnNotSupportedException) ErrorCode() string { return "ArnNotSupportedException" } +func (e *ArnNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ArnNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *ArnNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of names or IDs allowed for this request (100) was exceeded. type BatchLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,13 +183,20 @@ func (e *BatchLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *BatchLimitExceededException) ErrorCode() string { return "BatchLimitExceededException" } +func (e *BatchLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BatchLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *BatchLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A bucket name is required, but was not provided. type BucketNameFilterRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,7 +210,10 @@ func (e *BucketNameFilterRequiredException) ErrorMessage() string { return *e.Message } func (e *BucketNameFilterRequiredException) ErrorCode() string { - return "BucketNameFilterRequiredException" + if e.ErrorCodeOverride == nil { + return "BucketNameFilterRequiredException" + } + return *e.ErrorCodeOverride } func (e *BucketNameFilterRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -175,6 +221,8 @@ func (e *BucketNameFilterRequiredException) ErrorFault() smithy.ErrorFault { ret type DeploymentAlreadyCompletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -188,7 +236,10 @@ func (e *DeploymentAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *DeploymentAlreadyCompletedException) ErrorCode() string { - return "DeploymentAlreadyCompletedException" + if e.ErrorCodeOverride == nil { + return "DeploymentAlreadyCompletedException" + } + return *e.ErrorCodeOverride } func (e *DeploymentAlreadyCompletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -199,6 +250,8 @@ func (e *DeploymentAlreadyCompletedException) ErrorFault() smithy.ErrorFault { type DeploymentConfigAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -212,7 +265,10 @@ func (e *DeploymentConfigAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigAlreadyExistsException) ErrorCode() string { - return "DeploymentConfigAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "DeploymentConfigAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *DeploymentConfigAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -223,6 +279,8 @@ func (e *DeploymentConfigAlreadyExistsException) ErrorFault() smithy.ErrorFault type DeploymentConfigDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -236,7 +294,10 @@ func (e *DeploymentConfigDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigDoesNotExistException) ErrorCode() string { - return "DeploymentConfigDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "DeploymentConfigDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *DeploymentConfigDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -246,6 +307,8 @@ func (e *DeploymentConfigDoesNotExistException) ErrorFault() smithy.ErrorFault { type DeploymentConfigInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -258,13 +321,20 @@ func (e *DeploymentConfigInUseException) ErrorMessage() string { } return *e.Message } -func (e *DeploymentConfigInUseException) ErrorCode() string { return "DeploymentConfigInUseException" } +func (e *DeploymentConfigInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeploymentConfigInUseException" + } + return *e.ErrorCodeOverride +} func (e *DeploymentConfigInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The deployment configurations limit was exceeded. type DeploymentConfigLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -278,7 +348,10 @@ func (e *DeploymentConfigLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigLimitExceededException) ErrorCode() string { - return "DeploymentConfigLimitExceededException" + if e.ErrorCodeOverride == nil { + return "DeploymentConfigLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *DeploymentConfigLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -288,6 +361,8 @@ func (e *DeploymentConfigLimitExceededException) ErrorFault() smithy.ErrorFault type DeploymentConfigNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -301,7 +376,10 @@ func (e *DeploymentConfigNameRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigNameRequiredException) ErrorCode() string { - return "DeploymentConfigNameRequiredException" + if e.ErrorCodeOverride == nil { + return "DeploymentConfigNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *DeploymentConfigNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -311,6 +389,8 @@ func (e *DeploymentConfigNameRequiredException) ErrorFault() smithy.ErrorFault { type DeploymentDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -324,7 +404,10 @@ func (e *DeploymentDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentDoesNotExistException) ErrorCode() string { - return "DeploymentDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "DeploymentDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *DeploymentDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -333,6 +416,8 @@ func (e *DeploymentDoesNotExistException) ErrorFault() smithy.ErrorFault { retur type DeploymentGroupAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -346,7 +431,10 @@ func (e *DeploymentGroupAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupAlreadyExistsException) ErrorCode() string { - return "DeploymentGroupAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "DeploymentGroupAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *DeploymentGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -357,6 +445,8 @@ func (e *DeploymentGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { type DeploymentGroupDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -370,7 +460,10 @@ func (e *DeploymentGroupDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupDoesNotExistException) ErrorCode() string { - return "DeploymentGroupDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "DeploymentGroupDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *DeploymentGroupDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -380,6 +473,8 @@ func (e *DeploymentGroupDoesNotExistException) ErrorFault() smithy.ErrorFault { type DeploymentGroupLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -393,7 +488,10 @@ func (e *DeploymentGroupLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupLimitExceededException) ErrorCode() string { - return "DeploymentGroupLimitExceededException" + if e.ErrorCodeOverride == nil { + return "DeploymentGroupLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *DeploymentGroupLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -403,6 +501,8 @@ func (e *DeploymentGroupLimitExceededException) ErrorFault() smithy.ErrorFault { type DeploymentGroupNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -416,7 +516,10 @@ func (e *DeploymentGroupNameRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupNameRequiredException) ErrorCode() string { - return "DeploymentGroupNameRequiredException" + if e.ErrorCodeOverride == nil { + return "DeploymentGroupNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *DeploymentGroupNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -426,6 +529,8 @@ func (e *DeploymentGroupNameRequiredException) ErrorFault() smithy.ErrorFault { type DeploymentIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -438,13 +543,20 @@ func (e *DeploymentIdRequiredException) ErrorMessage() string { } return *e.Message } -func (e *DeploymentIdRequiredException) ErrorCode() string { return "DeploymentIdRequiredException" } +func (e *DeploymentIdRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeploymentIdRequiredException" + } + return *e.ErrorCodeOverride +} func (e *DeploymentIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The deployment does not have a status of Ready and can't continue yet. type DeploymentIsNotInReadyStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -458,7 +570,10 @@ func (e *DeploymentIsNotInReadyStateException) ErrorMessage() string { return *e.Message } func (e *DeploymentIsNotInReadyStateException) ErrorCode() string { - return "DeploymentIsNotInReadyStateException" + if e.ErrorCodeOverride == nil { + return "DeploymentIsNotInReadyStateException" + } + return *e.ErrorCodeOverride } func (e *DeploymentIsNotInReadyStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -468,6 +583,8 @@ func (e *DeploymentIsNotInReadyStateException) ErrorFault() smithy.ErrorFault { type DeploymentLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -481,7 +598,10 @@ func (e *DeploymentLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentLimitExceededException) ErrorCode() string { - return "DeploymentLimitExceededException" + if e.ErrorCodeOverride == nil { + return "DeploymentLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *DeploymentLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -489,6 +609,8 @@ func (e *DeploymentLimitExceededException) ErrorFault() smithy.ErrorFault { retu type DeploymentNotStartedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -501,13 +623,20 @@ func (e *DeploymentNotStartedException) ErrorMessage() string { } return *e.Message } -func (e *DeploymentNotStartedException) ErrorCode() string { return "DeploymentNotStartedException" } +func (e *DeploymentNotStartedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeploymentNotStartedException" + } + return *e.ErrorCodeOverride +} func (e *DeploymentNotStartedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided target ID does not belong to the attempted deployment. type DeploymentTargetDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -521,7 +650,10 @@ func (e *DeploymentTargetDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetDoesNotExistException) ErrorCode() string { - return "DeploymentTargetDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "DeploymentTargetDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *DeploymentTargetDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -531,6 +663,8 @@ func (e *DeploymentTargetDoesNotExistException) ErrorFault() smithy.ErrorFault { type DeploymentTargetIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -544,7 +678,10 @@ func (e *DeploymentTargetIdRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetIdRequiredException) ErrorCode() string { - return "DeploymentTargetIdRequiredException" + if e.ErrorCodeOverride == nil { + return "DeploymentTargetIdRequiredException" + } + return *e.ErrorCodeOverride } func (e *DeploymentTargetIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -557,6 +694,8 @@ func (e *DeploymentTargetIdRequiredException) ErrorFault() smithy.ErrorFault { type DeploymentTargetListSizeExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -570,7 +709,10 @@ func (e *DeploymentTargetListSizeExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetListSizeExceededException) ErrorCode() string { - return "DeploymentTargetListSizeExceededException" + if e.ErrorCodeOverride == nil { + return "DeploymentTargetListSizeExceededException" + } + return *e.ErrorCodeOverride } func (e *DeploymentTargetListSizeExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -580,6 +722,8 @@ func (e *DeploymentTargetListSizeExceededException) ErrorFault() smithy.ErrorFau type DescriptionTooLongException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -592,7 +736,12 @@ func (e *DescriptionTooLongException) ErrorMessage() string { } return *e.Message } -func (e *DescriptionTooLongException) ErrorCode() string { return "DescriptionTooLongException" } +func (e *DescriptionTooLongException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DescriptionTooLongException" + } + return *e.ErrorCodeOverride +} func (e *DescriptionTooLongException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon ECS service is associated with more than one deployment groups. An @@ -600,6 +749,8 @@ func (e *DescriptionTooLongException) ErrorFault() smithy.ErrorFault { return sm type ECSServiceMappingLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -613,7 +764,10 @@ func (e *ECSServiceMappingLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ECSServiceMappingLimitExceededException) ErrorCode() string { - return "ECSServiceMappingLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ECSServiceMappingLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ECSServiceMappingLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -623,6 +777,8 @@ func (e *ECSServiceMappingLimitExceededException) ErrorFault() smithy.ErrorFault type GitHubAccountTokenDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -636,7 +792,10 @@ func (e *GitHubAccountTokenDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *GitHubAccountTokenDoesNotExistException) ErrorCode() string { - return "GitHubAccountTokenDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "GitHubAccountTokenDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *GitHubAccountTokenDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -646,6 +805,8 @@ func (e *GitHubAccountTokenDoesNotExistException) ErrorFault() smithy.ErrorFault type GitHubAccountTokenNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -659,7 +820,10 @@ func (e *GitHubAccountTokenNameRequiredException) ErrorMessage() string { return *e.Message } func (e *GitHubAccountTokenNameRequiredException) ErrorCode() string { - return "GitHubAccountTokenNameRequiredException" + if e.ErrorCodeOverride == nil { + return "GitHubAccountTokenNameRequiredException" + } + return *e.ErrorCodeOverride } func (e *GitHubAccountTokenNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -670,6 +834,8 @@ func (e *GitHubAccountTokenNameRequiredException) ErrorFault() smithy.ErrorFault type IamArnRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -682,7 +848,12 @@ func (e *IamArnRequiredException) ErrorMessage() string { } return *e.Message } -func (e *IamArnRequiredException) ErrorCode() string { return "IamArnRequiredException" } +func (e *IamArnRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IamArnRequiredException" + } + return *e.ErrorCodeOverride +} func (e *IamArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request included an IAM session ARN that has already been used to register a @@ -690,6 +861,8 @@ func (e *IamArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy type IamSessionArnAlreadyRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -703,7 +876,10 @@ func (e *IamSessionArnAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *IamSessionArnAlreadyRegisteredException) ErrorCode() string { - return "IamSessionArnAlreadyRegisteredException" + if e.ErrorCodeOverride == nil { + return "IamSessionArnAlreadyRegisteredException" + } + return *e.ErrorCodeOverride } func (e *IamSessionArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -713,6 +889,8 @@ func (e *IamSessionArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault type IamUserArnAlreadyRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -726,7 +904,10 @@ func (e *IamUserArnAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *IamUserArnAlreadyRegisteredException) ErrorCode() string { - return "IamUserArnAlreadyRegisteredException" + if e.ErrorCodeOverride == nil { + return "IamUserArnAlreadyRegisteredException" + } + return *e.ErrorCodeOverride } func (e *IamUserArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -736,6 +917,8 @@ func (e *IamUserArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { type IamUserArnRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -748,13 +931,20 @@ func (e *IamUserArnRequiredException) ErrorMessage() string { } return *e.Message } -func (e *IamUserArnRequiredException) ErrorCode() string { return "IamUserArnRequiredException" } +func (e *IamUserArnRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IamUserArnRequiredException" + } + return *e.ErrorCodeOverride +} func (e *IamUserArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance does not exist in the deployment group. type InstanceDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -767,13 +957,20 @@ func (e *InstanceDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *InstanceDoesNotExistException) ErrorCode() string { return "InstanceDoesNotExistException" } +func (e *InstanceDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *InstanceDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The instance ID was not specified. type InstanceIdRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -786,7 +983,12 @@ func (e *InstanceIdRequiredException) ErrorMessage() string { } return *e.Message } -func (e *InstanceIdRequiredException) ErrorCode() string { return "InstanceIdRequiredException" } +func (e *InstanceIdRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceIdRequiredException" + } + return *e.ErrorCodeOverride +} func (e *InstanceIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of allowed on-premises instances in a single call was @@ -794,6 +996,8 @@ func (e *InstanceIdRequiredException) ErrorFault() smithy.ErrorFault { return sm type InstanceLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -806,13 +1010,20 @@ func (e *InstanceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *InstanceLimitExceededException) ErrorCode() string { return "InstanceLimitExceededException" } +func (e *InstanceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *InstanceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified on-premises instance name is already registered. type InstanceNameAlreadyRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -826,7 +1037,10 @@ func (e *InstanceNameAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *InstanceNameAlreadyRegisteredException) ErrorCode() string { - return "InstanceNameAlreadyRegisteredException" + if e.ErrorCodeOverride == nil { + return "InstanceNameAlreadyRegisteredException" + } + return *e.ErrorCodeOverride } func (e *InstanceNameAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -836,6 +1050,8 @@ func (e *InstanceNameAlreadyRegisteredException) ErrorFault() smithy.ErrorFault type InstanceNameRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -848,13 +1064,20 @@ func (e *InstanceNameRequiredException) ErrorMessage() string { } return *e.Message } -func (e *InstanceNameRequiredException) ErrorCode() string { return "InstanceNameRequiredException" } +func (e *InstanceNameRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceNameRequiredException" + } + return *e.ErrorCodeOverride +} func (e *InstanceNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified on-premises instance is not registered. type InstanceNotRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -867,7 +1090,12 @@ func (e *InstanceNotRegisteredException) ErrorMessage() string { } return *e.Message } -func (e *InstanceNotRegisteredException) ErrorCode() string { return "InstanceNotRegisteredException" } +func (e *InstanceNotRegisteredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceNotRegisteredException" + } + return *e.ErrorCodeOverride +} func (e *InstanceNotRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The format of the alarm configuration is invalid. Possible causes include: @@ -888,6 +1116,8 @@ func (e *InstanceNotRegisteredException) ErrorFault() smithy.ErrorFault { return type InvalidAlarmConfigException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -900,13 +1130,20 @@ func (e *InvalidAlarmConfigException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAlarmConfigException) ErrorCode() string { return "InvalidAlarmConfigException" } +func (e *InvalidAlarmConfigException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAlarmConfigException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAlarmConfigException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The application name was specified in an invalid format. type InvalidApplicationNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -920,7 +1157,10 @@ func (e *InvalidApplicationNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationNameException) ErrorCode() string { - return "InvalidApplicationNameException" + if e.ErrorCodeOverride == nil { + return "InvalidApplicationNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidApplicationNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -928,6 +1168,8 @@ func (e *InvalidApplicationNameException) ErrorFault() smithy.ErrorFault { retur type InvalidArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -940,7 +1182,12 @@ func (e *InvalidArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArnException) ErrorCode() string { return "InvalidArnException" } +func (e *InvalidArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The automatic rollback configuration was specified in an invalid format. For @@ -949,6 +1196,8 @@ func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidAutoRollbackConfigException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -962,7 +1211,10 @@ func (e *InvalidAutoRollbackConfigException) ErrorMessage() string { return *e.Message } func (e *InvalidAutoRollbackConfigException) ErrorCode() string { - return "InvalidAutoRollbackConfigException" + if e.ErrorCodeOverride == nil { + return "InvalidAutoRollbackConfigException" + } + return *e.ErrorCodeOverride } func (e *InvalidAutoRollbackConfigException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -972,6 +1224,8 @@ func (e *InvalidAutoRollbackConfigException) ErrorFault() smithy.ErrorFault { type InvalidAutoScalingGroupException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -985,7 +1239,10 @@ func (e *InvalidAutoScalingGroupException) ErrorMessage() string { return *e.Message } func (e *InvalidAutoScalingGroupException) ErrorCode() string { - return "InvalidAutoScalingGroupException" + if e.ErrorCodeOverride == nil { + return "InvalidAutoScalingGroupException" + } + return *e.ErrorCodeOverride } func (e *InvalidAutoScalingGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -995,6 +1252,8 @@ func (e *InvalidAutoScalingGroupException) ErrorFault() smithy.ErrorFault { retu type InvalidBlueGreenDeploymentConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1008,7 +1267,10 @@ func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorMessage() string return *e.Message } func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorCode() string { - return "InvalidBlueGreenDeploymentConfigurationException" + if e.ErrorCodeOverride == nil { + return "InvalidBlueGreenDeploymentConfigurationException" + } + return *e.ErrorCodeOverride } func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1018,6 +1280,8 @@ func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorFault() smithy.E type InvalidBucketNameFilterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1031,7 +1295,10 @@ func (e *InvalidBucketNameFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidBucketNameFilterException) ErrorCode() string { - return "InvalidBucketNameFilterException" + if e.ErrorCodeOverride == nil { + return "InvalidBucketNameFilterException" + } + return *e.ErrorCodeOverride } func (e *InvalidBucketNameFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1040,6 +1307,8 @@ func (e *InvalidBucketNameFilterException) ErrorFault() smithy.ErrorFault { retu type InvalidComputePlatformException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1053,7 +1322,10 @@ func (e *InvalidComputePlatformException) ErrorMessage() string { return *e.Message } func (e *InvalidComputePlatformException) ErrorCode() string { - return "InvalidComputePlatformException" + if e.ErrorCodeOverride == nil { + return "InvalidComputePlatformException" + } + return *e.ErrorCodeOverride } func (e *InvalidComputePlatformException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1061,6 +1333,8 @@ func (e *InvalidComputePlatformException) ErrorFault() smithy.ErrorFault { retur type InvalidDeployedStateFilterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1074,7 +1348,10 @@ func (e *InvalidDeployedStateFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidDeployedStateFilterException) ErrorCode() string { - return "InvalidDeployedStateFilterException" + if e.ErrorCodeOverride == nil { + return "InvalidDeployedStateFilterException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeployedStateFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1084,6 +1361,8 @@ func (e *InvalidDeployedStateFilterException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentConfigNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1097,7 +1376,10 @@ func (e *InvalidDeploymentConfigNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentConfigNameException) ErrorCode() string { - return "InvalidDeploymentConfigNameException" + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentConfigNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeploymentConfigNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1107,6 +1389,8 @@ func (e *InvalidDeploymentConfigNameException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentGroupNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1120,7 +1404,10 @@ func (e *InvalidDeploymentGroupNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentGroupNameException) ErrorCode() string { - return "InvalidDeploymentGroupNameException" + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentGroupNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeploymentGroupNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1130,6 +1417,8 @@ func (e *InvalidDeploymentGroupNameException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1142,7 +1431,12 @@ func (e *InvalidDeploymentIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidDeploymentIdException) ErrorCode() string { return "InvalidDeploymentIdException" } +func (e *InvalidDeploymentIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidDeploymentIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An instance type was specified for an in-place deployment. Instance types are @@ -1150,6 +1444,8 @@ func (e *InvalidDeploymentIdException) ErrorFault() smithy.ErrorFault { return s type InvalidDeploymentInstanceTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1163,7 +1459,10 @@ func (e *InvalidDeploymentInstanceTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentInstanceTypeException) ErrorCode() string { - return "InvalidDeploymentInstanceTypeException" + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentInstanceTypeException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeploymentInstanceTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1173,6 +1472,8 @@ func (e *InvalidDeploymentInstanceTypeException) ErrorFault() smithy.ErrorFault type InvalidDeploymentStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1186,7 +1487,10 @@ func (e *InvalidDeploymentStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentStatusException) ErrorCode() string { - return "InvalidDeploymentStatusException" + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentStatusException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeploymentStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1196,6 +1500,8 @@ func (e *InvalidDeploymentStatusException) ErrorFault() smithy.ErrorFault { retu type InvalidDeploymentStyleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1209,7 +1515,10 @@ func (e *InvalidDeploymentStyleException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentStyleException) ErrorCode() string { - return "InvalidDeploymentStyleException" + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentStyleException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeploymentStyleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1217,6 +1526,8 @@ func (e *InvalidDeploymentStyleException) ErrorFault() smithy.ErrorFault { retur type InvalidDeploymentTargetIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1230,7 +1541,10 @@ func (e *InvalidDeploymentTargetIdException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentTargetIdException) ErrorCode() string { - return "InvalidDeploymentTargetIdException" + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentTargetIdException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeploymentTargetIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1240,6 +1554,8 @@ func (e *InvalidDeploymentTargetIdException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentWaitTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1253,7 +1569,10 @@ func (e *InvalidDeploymentWaitTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentWaitTypeException) ErrorCode() string { - return "InvalidDeploymentWaitTypeException" + if e.ErrorCodeOverride == nil { + return "InvalidDeploymentWaitTypeException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeploymentWaitTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1264,6 +1583,8 @@ func (e *InvalidDeploymentWaitTypeException) ErrorFault() smithy.ErrorFault { type InvalidEC2TagCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1277,7 +1598,10 @@ func (e *InvalidEC2TagCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidEC2TagCombinationException) ErrorCode() string { - return "InvalidEC2TagCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidEC2TagCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidEC2TagCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1285,6 +1609,8 @@ func (e *InvalidEC2TagCombinationException) ErrorFault() smithy.ErrorFault { ret type InvalidEC2TagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1297,13 +1623,20 @@ func (e *InvalidEC2TagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEC2TagException) ErrorCode() string { return "InvalidEC2TagException" } +func (e *InvalidEC2TagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEC2TagException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEC2TagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon ECS service identifier is not valid. type InvalidECSServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1316,13 +1649,20 @@ func (e *InvalidECSServiceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidECSServiceException) ErrorCode() string { return "InvalidECSServiceException" } +func (e *InvalidECSServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidECSServiceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidECSServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The external ID was specified in an invalid format. type InvalidExternalIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1335,7 +1675,12 @@ func (e *InvalidExternalIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidExternalIdException) ErrorCode() string { return "InvalidExternalIdException" } +func (e *InvalidExternalIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExternalIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidExternalIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid fileExistsBehavior option was specified to determine how CodeDeploy @@ -1345,6 +1690,8 @@ func (e *InvalidExternalIdException) ErrorFault() smithy.ErrorFault { return smi type InvalidFileExistsBehaviorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1358,7 +1705,10 @@ func (e *InvalidFileExistsBehaviorException) ErrorMessage() string { return *e.Message } func (e *InvalidFileExistsBehaviorException) ErrorCode() string { - return "InvalidFileExistsBehaviorException" + if e.ErrorCodeOverride == nil { + return "InvalidFileExistsBehaviorException" + } + return *e.ErrorCodeOverride } func (e *InvalidFileExistsBehaviorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1368,6 +1718,8 @@ func (e *InvalidFileExistsBehaviorException) ErrorFault() smithy.ErrorFault { type InvalidGitHubAccountTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1381,7 +1733,10 @@ func (e *InvalidGitHubAccountTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidGitHubAccountTokenException) ErrorCode() string { - return "InvalidGitHubAccountTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidGitHubAccountTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidGitHubAccountTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1391,6 +1746,8 @@ func (e *InvalidGitHubAccountTokenException) ErrorFault() smithy.ErrorFault { type InvalidGitHubAccountTokenNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1404,7 +1761,10 @@ func (e *InvalidGitHubAccountTokenNameException) ErrorMessage() string { return *e.Message } func (e *InvalidGitHubAccountTokenNameException) ErrorCode() string { - return "InvalidGitHubAccountTokenNameException" + if e.ErrorCodeOverride == nil { + return "InvalidGitHubAccountTokenNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidGitHubAccountTokenNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1414,6 +1774,8 @@ func (e *InvalidGitHubAccountTokenNameException) ErrorFault() smithy.ErrorFault type InvalidIamSessionArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1426,13 +1788,20 @@ func (e *InvalidIamSessionArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidIamSessionArnException) ErrorCode() string { return "InvalidIamSessionArnException" } +func (e *InvalidIamSessionArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidIamSessionArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidIamSessionArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The IAM user ARN was specified in an invalid format. type InvalidIamUserArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1445,7 +1814,12 @@ func (e *InvalidIamUserArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidIamUserArnException) ErrorCode() string { return "InvalidIamUserArnException" } +func (e *InvalidIamUserArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidIamUserArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidIamUserArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The IgnoreApplicationStopFailures value is invalid. For Lambda deployments, @@ -1453,6 +1827,8 @@ func (e *InvalidIamUserArnException) ErrorFault() smithy.ErrorFault { return smi type InvalidIgnoreApplicationStopFailuresValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1466,7 +1842,10 @@ func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorMessage() stri return *e.Message } func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorCode() string { - return "InvalidIgnoreApplicationStopFailuresValueException" + if e.ErrorCodeOverride == nil { + return "InvalidIgnoreApplicationStopFailuresValueException" + } + return *e.ErrorCodeOverride } func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1476,6 +1855,8 @@ func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorFault() smithy type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1488,13 +1869,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The on-premises instance name was specified in an invalid format. type InvalidInstanceNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1507,13 +1895,20 @@ func (e *InvalidInstanceNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInstanceNameException) ErrorCode() string { return "InvalidInstanceNameException" } +func (e *InvalidInstanceNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInstanceNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInstanceNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance status does not exist. type InvalidInstanceStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1526,7 +1921,12 @@ func (e *InvalidInstanceStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInstanceStatusException) ErrorCode() string { return "InvalidInstanceStatusException" } +func (e *InvalidInstanceStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInstanceStatusException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInstanceStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid instance type was specified for instances in a blue/green deployment. @@ -1535,6 +1935,8 @@ func (e *InvalidInstanceStatusException) ErrorFault() smithy.ErrorFault { return type InvalidInstanceTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1547,13 +1949,20 @@ func (e *InvalidInstanceTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInstanceTypeException) ErrorCode() string { return "InvalidInstanceTypeException" } +func (e *InvalidInstanceTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInstanceTypeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInstanceTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key prefix filter was specified in an invalid format. type InvalidKeyPrefixFilterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1567,7 +1976,10 @@ func (e *InvalidKeyPrefixFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidKeyPrefixFilterException) ErrorCode() string { - return "InvalidKeyPrefixFilterException" + if e.ErrorCodeOverride == nil { + return "InvalidKeyPrefixFilterException" + } + return *e.ErrorCodeOverride } func (e *InvalidKeyPrefixFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1576,6 +1988,8 @@ func (e *InvalidKeyPrefixFilterException) ErrorFault() smithy.ErrorFault { retur type InvalidLifecycleEventHookExecutionIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1589,7 +2003,10 @@ func (e *InvalidLifecycleEventHookExecutionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidLifecycleEventHookExecutionIdException) ErrorCode() string { - return "InvalidLifecycleEventHookExecutionIdException" + if e.ErrorCodeOverride == nil { + return "InvalidLifecycleEventHookExecutionIdException" + } + return *e.ErrorCodeOverride } func (e *InvalidLifecycleEventHookExecutionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1600,6 +2017,8 @@ func (e *InvalidLifecycleEventHookExecutionIdException) ErrorFault() smithy.Erro type InvalidLifecycleEventHookExecutionStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1613,7 +2032,10 @@ func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorMessage() strin return *e.Message } func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorCode() string { - return "InvalidLifecycleEventHookExecutionStatusException" + if e.ErrorCodeOverride == nil { + return "InvalidLifecycleEventHookExecutionStatusException" + } + return *e.ErrorCodeOverride } func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1623,6 +2045,8 @@ func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorFault() smithy. type InvalidLoadBalancerInfoException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1636,7 +2060,10 @@ func (e *InvalidLoadBalancerInfoException) ErrorMessage() string { return *e.Message } func (e *InvalidLoadBalancerInfoException) ErrorCode() string { - return "InvalidLoadBalancerInfoException" + if e.ErrorCodeOverride == nil { + return "InvalidLoadBalancerInfoException" + } + return *e.ErrorCodeOverride } func (e *InvalidLoadBalancerInfoException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1644,6 +2071,8 @@ func (e *InvalidLoadBalancerInfoException) ErrorFault() smithy.ErrorFault { retu type InvalidMinimumHealthyHostValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1657,7 +2086,10 @@ func (e *InvalidMinimumHealthyHostValueException) ErrorMessage() string { return *e.Message } func (e *InvalidMinimumHealthyHostValueException) ErrorCode() string { - return "InvalidMinimumHealthyHostValueException" + if e.ErrorCodeOverride == nil { + return "InvalidMinimumHealthyHostValueException" + } + return *e.ErrorCodeOverride } func (e *InvalidMinimumHealthyHostValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1667,6 +2099,8 @@ func (e *InvalidMinimumHealthyHostValueException) ErrorFault() smithy.ErrorFault type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1679,7 +2113,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A call was submitted that specified both OnPremisesTagFilters and @@ -1687,6 +2126,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidOnPremisesTagCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1700,7 +2141,10 @@ func (e *InvalidOnPremisesTagCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidOnPremisesTagCombinationException) ErrorCode() string { - return "InvalidOnPremisesTagCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidOnPremisesTagCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidOnPremisesTagCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1710,6 +2154,8 @@ func (e *InvalidOnPremisesTagCombinationException) ErrorFault() smithy.ErrorFaul type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1722,13 +2168,20 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The registration status was specified in an invalid format. type InvalidRegistrationStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1742,7 +2195,10 @@ func (e *InvalidRegistrationStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidRegistrationStatusException) ErrorCode() string { - return "InvalidRegistrationStatusException" + if e.ErrorCodeOverride == nil { + return "InvalidRegistrationStatusException" + } + return *e.ErrorCodeOverride } func (e *InvalidRegistrationStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1752,6 +2208,8 @@ func (e *InvalidRegistrationStatusException) ErrorFault() smithy.ErrorFault { type InvalidRevisionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1764,7 +2222,12 @@ func (e *InvalidRevisionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRevisionException) ErrorCode() string { return "InvalidRevisionException" } +func (e *InvalidRevisionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRevisionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRevisionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service role ARN was specified in an invalid format. Or, if an Auto Scaling @@ -1773,6 +2236,8 @@ func (e *InvalidRevisionException) ErrorFault() smithy.ErrorFault { return smith type InvalidRoleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1785,7 +2250,12 @@ func (e *InvalidRoleException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRoleException) ErrorCode() string { return "InvalidRoleException" } +func (e *InvalidRoleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRoleException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The column name to sort by is either not present or was specified in an invalid @@ -1793,6 +2263,8 @@ func (e *InvalidRoleException) ErrorFault() smithy.ErrorFault { return smithy.Fa type InvalidSortByException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1805,13 +2277,20 @@ func (e *InvalidSortByException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSortByException) ErrorCode() string { return "InvalidSortByException" } +func (e *InvalidSortByException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSortByException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSortByException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The sort order was specified in an invalid format. type InvalidSortOrderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1824,13 +2303,20 @@ func (e *InvalidSortOrderException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSortOrderException) ErrorCode() string { return "InvalidSortOrderException" } +func (e *InvalidSortOrderException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSortOrderException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSortOrderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag was specified in an invalid format. type InvalidTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1843,13 +2329,20 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag filter was specified in an invalid format. type InvalidTagFilterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1862,13 +2355,20 @@ func (e *InvalidTagFilterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagFilterException) ErrorCode() string { return "InvalidTagFilterException" } +func (e *InvalidTagFilterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagFilterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified tags are not valid. type InvalidTagsToAddException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1881,13 +2381,20 @@ func (e *InvalidTagsToAddException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagsToAddException) ErrorCode() string { return "InvalidTagsToAddException" } +func (e *InvalidTagsToAddException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagsToAddException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagsToAddException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target filter name is invalid. type InvalidTargetFilterNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1901,7 +2408,10 @@ func (e *InvalidTargetFilterNameException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetFilterNameException) ErrorCode() string { - return "InvalidTargetFilterNameException" + if e.ErrorCodeOverride == nil { + return "InvalidTargetFilterNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidTargetFilterNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1909,6 +2419,8 @@ func (e *InvalidTargetFilterNameException) ErrorFault() smithy.ErrorFault { retu type InvalidTargetGroupPairException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1922,7 +2434,10 @@ func (e *InvalidTargetGroupPairException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetGroupPairException) ErrorCode() string { - return "InvalidTargetGroupPairException" + if e.ErrorCodeOverride == nil { + return "InvalidTargetGroupPairException" + } + return *e.ErrorCodeOverride } func (e *InvalidTargetGroupPairException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1942,6 +2457,8 @@ func (e *InvalidTargetGroupPairException) ErrorFault() smithy.ErrorFault { retur type InvalidTargetInstancesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1955,7 +2472,10 @@ func (e *InvalidTargetInstancesException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetInstancesException) ErrorCode() string { - return "InvalidTargetInstancesException" + if e.ErrorCodeOverride == nil { + return "InvalidTargetInstancesException" + } + return *e.ErrorCodeOverride } func (e *InvalidTargetInstancesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1963,6 +2483,8 @@ func (e *InvalidTargetInstancesException) ErrorFault() smithy.ErrorFault { retur type InvalidTimeRangeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1975,7 +2497,12 @@ func (e *InvalidTimeRangeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTimeRangeException) ErrorCode() string { return "InvalidTimeRangeException" } +func (e *InvalidTimeRangeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTimeRangeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTimeRangeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The configuration that specifies how traffic is routed during a deployment is @@ -1983,6 +2510,8 @@ func (e *InvalidTimeRangeException) ErrorFault() smithy.ErrorFault { return smit type InvalidTrafficRoutingConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1996,7 +2525,10 @@ func (e *InvalidTrafficRoutingConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidTrafficRoutingConfigurationException) ErrorCode() string { - return "InvalidTrafficRoutingConfigurationException" + if e.ErrorCodeOverride == nil { + return "InvalidTrafficRoutingConfigurationException" + } + return *e.ErrorCodeOverride } func (e *InvalidTrafficRoutingConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2006,6 +2538,8 @@ func (e *InvalidTrafficRoutingConfigurationException) ErrorFault() smithy.ErrorF type InvalidTriggerConfigException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2018,7 +2552,12 @@ func (e *InvalidTriggerConfigException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTriggerConfigException) ErrorCode() string { return "InvalidTriggerConfigException" } +func (e *InvalidTriggerConfigException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTriggerConfigException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTriggerConfigException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The UpdateOutdatedInstancesOnly value is invalid. For Lambda deployments, false @@ -2026,6 +2565,8 @@ func (e *InvalidTriggerConfigException) ErrorFault() smithy.ErrorFault { return type InvalidUpdateOutdatedInstancesOnlyValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2039,7 +2580,10 @@ func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorMessage() string return *e.Message } func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorCode() string { - return "InvalidUpdateOutdatedInstancesOnlyValueException" + if e.ErrorCodeOverride == nil { + return "InvalidUpdateOutdatedInstancesOnlyValueException" + } + return *e.ErrorCodeOverride } func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2050,6 +2594,8 @@ func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorFault() smithy.E type LifecycleEventAlreadyCompletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2063,7 +2609,10 @@ func (e *LifecycleEventAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *LifecycleEventAlreadyCompletedException) ErrorCode() string { - return "LifecycleEventAlreadyCompletedException" + if e.ErrorCodeOverride == nil { + return "LifecycleEventAlreadyCompletedException" + } + return *e.ErrorCodeOverride } func (e *LifecycleEventAlreadyCompletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2073,6 +2622,8 @@ func (e *LifecycleEventAlreadyCompletedException) ErrorFault() smithy.ErrorFault type LifecycleHookLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2086,7 +2637,10 @@ func (e *LifecycleHookLimitExceededException) ErrorMessage() string { return *e.Message } func (e *LifecycleHookLimitExceededException) ErrorCode() string { - return "LifecycleHookLimitExceededException" + if e.ErrorCodeOverride == nil { + return "LifecycleHookLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *LifecycleHookLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2097,6 +2651,8 @@ func (e *LifecycleHookLimitExceededException) ErrorFault() smithy.ErrorFault { type MultipleIamArnsProvidedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2110,7 +2666,10 @@ func (e *MultipleIamArnsProvidedException) ErrorMessage() string { return *e.Message } func (e *MultipleIamArnsProvidedException) ErrorCode() string { - return "MultipleIamArnsProvidedException" + if e.ErrorCodeOverride == nil { + return "MultipleIamArnsProvidedException" + } + return *e.ErrorCodeOverride } func (e *MultipleIamArnsProvidedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2118,6 +2677,8 @@ func (e *MultipleIamArnsProvidedException) ErrorFault() smithy.ErrorFault { retu type OperationNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2130,13 +2691,20 @@ func (e *OperationNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotSupportedException) ErrorCode() string { return "OperationNotSupportedException" } +func (e *OperationNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ARN of a resource is required, but was not found. type ResourceArnRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2149,13 +2717,20 @@ func (e *ResourceArnRequiredException) ErrorMessage() string { } return *e.Message } -func (e *ResourceArnRequiredException) ErrorCode() string { return "ResourceArnRequiredException" } +func (e *ResourceArnRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceArnRequiredException" + } + return *e.ErrorCodeOverride +} func (e *ResourceArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource could not be validated. type ResourceValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2168,7 +2743,12 @@ func (e *ResourceValidationException) ErrorMessage() string { } return *e.Message } -func (e *ResourceValidationException) ErrorCode() string { return "ResourceValidationException" } +func (e *ResourceValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceValidationException" + } + return *e.ErrorCodeOverride +} func (e *ResourceValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The named revision does not exist with the IAM user or Amazon Web Services @@ -2176,6 +2756,8 @@ func (e *ResourceValidationException) ErrorFault() smithy.ErrorFault { return sm type RevisionDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2188,13 +2770,20 @@ func (e *RevisionDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *RevisionDoesNotExistException) ErrorCode() string { return "RevisionDoesNotExistException" } +func (e *RevisionDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RevisionDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *RevisionDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The revision ID was not specified. type RevisionRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2207,13 +2796,20 @@ func (e *RevisionRequiredException) ErrorMessage() string { } return *e.Message } -func (e *RevisionRequiredException) ErrorCode() string { return "RevisionRequiredException" } +func (e *RevisionRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RevisionRequiredException" + } + return *e.ErrorCodeOverride +} func (e *RevisionRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The role ID was not specified. type RoleRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2226,13 +2822,20 @@ func (e *RoleRequiredException) ErrorMessage() string { } return *e.Message } -func (e *RoleRequiredException) ErrorCode() string { return "RoleRequiredException" } +func (e *RoleRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RoleRequiredException" + } + return *e.ErrorCodeOverride +} func (e *RoleRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of tags was exceeded. type TagLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2245,13 +2848,20 @@ func (e *TagLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TagLimitExceededException) ErrorCode() string { return "TagLimitExceededException" } +func (e *TagLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A tag was not specified. type TagRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2264,7 +2874,12 @@ func (e *TagRequiredException) ErrorMessage() string { } return *e.Message } -func (e *TagRequiredException) ErrorCode() string { return "TagRequiredException" } +func (e *TagRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagRequiredException" + } + return *e.ErrorCodeOverride +} func (e *TagRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of tag groups included in the tag set list exceeded the maximum @@ -2272,6 +2887,8 @@ func (e *TagRequiredException) ErrorFault() smithy.ErrorFault { return smithy.Fa type TagSetListLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2285,7 +2902,10 @@ func (e *TagSetListLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagSetListLimitExceededException) ErrorCode() string { - return "TagSetListLimitExceededException" + if e.ErrorCodeOverride == nil { + return "TagSetListLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *TagSetListLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2293,6 +2913,8 @@ func (e *TagSetListLimitExceededException) ErrorFault() smithy.ErrorFault { retu type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2305,13 +2927,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of triggers was exceeded. type TriggerTargetsLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2325,7 +2954,10 @@ func (e *TriggerTargetsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TriggerTargetsLimitExceededException) ErrorCode() string { - return "TriggerTargetsLimitExceededException" + if e.ErrorCodeOverride == nil { + return "TriggerTargetsLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *TriggerTargetsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2335,6 +2967,8 @@ func (e *TriggerTargetsLimitExceededException) ErrorFault() smithy.ErrorFault { type UnsupportedActionForDeploymentTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2348,7 +2982,10 @@ func (e *UnsupportedActionForDeploymentTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedActionForDeploymentTypeException) ErrorCode() string { - return "UnsupportedActionForDeploymentTypeException" + if e.ErrorCodeOverride == nil { + return "UnsupportedActionForDeploymentTypeException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedActionForDeploymentTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/codeguruprofiler/types/errors.go b/service/codeguruprofiler/types/errors.go index 15161cd5bb6..c0cbb99f90c 100644 --- a/service/codeguruprofiler/types/errors.go +++ b/service/codeguruprofiler/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server encountered an internal error and is unable to complete the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource specified in the request does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded your service quota. To perform the requested action, remove @@ -73,6 +94,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,13 +108,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,13 +134,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,5 +160,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codegurureviewer/types/errors.go b/service/codegurureviewer/types/errors.go index 1cb9d3c4fe9..2bd29951fd2 100644 --- a/service/codegurureviewer/types/errors.go +++ b/service/codegurureviewer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation would cause a conflict with the current state of a @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server encountered an internal error and is unable to complete the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource specified in the request was not found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +131,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,13 +157,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the specified constraints. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -139,5 +183,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codepipeline/types/errors.go b/service/codepipeline/types/errors.go index 6025c0d2f09..a184fbd7e64 100644 --- a/service/codepipeline/types/errors.go +++ b/service/codepipeline/types/errors.go @@ -11,6 +11,8 @@ import ( type ActionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ActionNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ActionNotFoundException) ErrorCode() string { return "ActionNotFoundException" } +func (e *ActionNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ActionNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ActionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified action type cannot be found. type ActionTypeNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ActionTypeNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ActionTypeNotFoundException) ErrorCode() string { return "ActionTypeNotFoundException" } +func (e *ActionTypeNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ActionTypeNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ActionTypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The approval action has already been approved or rejected. type ApprovalAlreadyCompletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *ApprovalAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *ApprovalAlreadyCompletedException) ErrorCode() string { - return "ApprovalAlreadyCompletedException" + if e.ErrorCodeOverride == nil { + return "ApprovalAlreadyCompletedException" + } + return *e.ErrorCodeOverride } func (e *ApprovalAlreadyCompletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -70,6 +89,8 @@ func (e *ApprovalAlreadyCompletedException) ErrorFault() smithy.ErrorFault { ret type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +104,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -92,6 +116,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +130,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pipeline execution is already in a Stopping state. If you already chose to @@ -115,6 +146,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DuplicatedStopRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,13 +160,20 @@ func (e *DuplicatedStopRequestException) ErrorMessage() string { } return *e.Message } -func (e *DuplicatedStopRequestException) ErrorCode() string { return "DuplicatedStopRequestException" } +func (e *DuplicatedStopRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicatedStopRequestException" + } + return *e.ErrorCodeOverride +} func (e *DuplicatedStopRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action declaration was specified in an invalid format. type InvalidActionDeclarationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,7 +187,10 @@ func (e *InvalidActionDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidActionDeclarationException) ErrorCode() string { - return "InvalidActionDeclarationException" + if e.ErrorCodeOverride == nil { + return "InvalidActionDeclarationException" + } + return *e.ErrorCodeOverride } func (e *InvalidActionDeclarationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -155,6 +198,8 @@ func (e *InvalidActionDeclarationException) ErrorFault() smithy.ErrorFault { ret type InvalidApprovalTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,13 +212,20 @@ func (e *InvalidApprovalTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidApprovalTokenException) ErrorCode() string { return "InvalidApprovalTokenException" } +func (e *InvalidApprovalTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidApprovalTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidApprovalTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource ARN is invalid. type InvalidArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -186,13 +238,20 @@ func (e *InvalidArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArnException) ErrorCode() string { return "InvalidArnException" } +func (e *InvalidArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Reserved for future use. type InvalidBlockerDeclarationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,7 +265,10 @@ func (e *InvalidBlockerDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidBlockerDeclarationException) ErrorCode() string { - return "InvalidBlockerDeclarationException" + if e.ErrorCodeOverride == nil { + return "InvalidBlockerDeclarationException" + } + return *e.ErrorCodeOverride } func (e *InvalidBlockerDeclarationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -216,6 +278,8 @@ func (e *InvalidBlockerDeclarationException) ErrorFault() smithy.ErrorFault { type InvalidClientTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,13 +292,20 @@ func (e *InvalidClientTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidClientTokenException) ErrorCode() string { return "InvalidClientTokenException" } +func (e *InvalidClientTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClientTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidClientTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The job was specified in an invalid format or cannot be found. type InvalidJobException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -247,13 +318,20 @@ func (e *InvalidJobException) ErrorMessage() string { } return *e.Message } -func (e *InvalidJobException) ErrorCode() string { return "InvalidJobException" } +func (e *InvalidJobException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidJobException" + } + return *e.ErrorCodeOverride +} func (e *InvalidJobException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The job state was specified in an invalid format. type InvalidJobStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,7 +344,12 @@ func (e *InvalidJobStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidJobStateException) ErrorCode() string { return "InvalidJobStateException" } +func (e *InvalidJobStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidJobStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidJobStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The next token was specified in an invalid format. Make sure that the next token @@ -274,6 +357,8 @@ func (e *InvalidJobStateException) ErrorFault() smithy.ErrorFault { return smith type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -286,13 +371,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The nonce was specified in an invalid format. type InvalidNonceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -305,13 +397,20 @@ func (e *InvalidNonceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNonceException) ErrorCode() string { return "InvalidNonceException" } +func (e *InvalidNonceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNonceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNonceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The stage declaration was specified in an invalid format. type InvalidStageDeclarationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -325,7 +424,10 @@ func (e *InvalidStageDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidStageDeclarationException) ErrorCode() string { - return "InvalidStageDeclarationException" + if e.ErrorCodeOverride == nil { + return "InvalidStageDeclarationException" + } + return *e.ErrorCodeOverride } func (e *InvalidStageDeclarationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -333,6 +435,8 @@ func (e *InvalidStageDeclarationException) ErrorFault() smithy.ErrorFault { retu type InvalidStructureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -345,13 +449,20 @@ func (e *InvalidStructureException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStructureException) ErrorCode() string { return "InvalidStructureException" } +func (e *InvalidStructureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStructureException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStructureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource tags are invalid. type InvalidTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -364,13 +475,20 @@ func (e *InvalidTagsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagsException) ErrorCode() string { return "InvalidTagsException" } +func (e *InvalidTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified authentication type is in an invalid format. type InvalidWebhookAuthenticationParametersException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -384,7 +502,10 @@ func (e *InvalidWebhookAuthenticationParametersException) ErrorMessage() string return *e.Message } func (e *InvalidWebhookAuthenticationParametersException) ErrorCode() string { - return "InvalidWebhookAuthenticationParametersException" + if e.ErrorCodeOverride == nil { + return "InvalidWebhookAuthenticationParametersException" + } + return *e.ErrorCodeOverride } func (e *InvalidWebhookAuthenticationParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -394,6 +515,8 @@ func (e *InvalidWebhookAuthenticationParametersException) ErrorFault() smithy.Er type InvalidWebhookFilterPatternException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -407,7 +530,10 @@ func (e *InvalidWebhookFilterPatternException) ErrorMessage() string { return *e.Message } func (e *InvalidWebhookFilterPatternException) ErrorCode() string { - return "InvalidWebhookFilterPatternException" + if e.ErrorCodeOverride == nil { + return "InvalidWebhookFilterPatternException" + } + return *e.ErrorCodeOverride } func (e *InvalidWebhookFilterPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -417,6 +543,8 @@ func (e *InvalidWebhookFilterPatternException) ErrorFault() smithy.ErrorFault { type JobNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -429,7 +557,12 @@ func (e *JobNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *JobNotFoundException) ErrorCode() string { return "JobNotFoundException" } +func (e *JobNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "JobNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *JobNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of pipelines associated with the AWS account has exceeded the limit @@ -437,6 +570,8 @@ func (e *JobNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fa type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -449,7 +584,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The stage has failed in a later run of the pipeline and the pipelineExecutionId @@ -457,6 +597,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NotLatestPipelineExecutionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -470,7 +612,10 @@ func (e *NotLatestPipelineExecutionException) ErrorMessage() string { return *e.Message } func (e *NotLatestPipelineExecutionException) ErrorCode() string { - return "NotLatestPipelineExecutionException" + if e.ErrorCodeOverride == nil { + return "NotLatestPipelineExecutionException" + } + return *e.ErrorCodeOverride } func (e *NotLatestPipelineExecutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -480,6 +625,8 @@ func (e *NotLatestPipelineExecutionException) ErrorFault() smithy.ErrorFault { type OutputVariablesSizeExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -493,7 +640,10 @@ func (e *OutputVariablesSizeExceededException) ErrorMessage() string { return *e.Message } func (e *OutputVariablesSizeExceededException) ErrorCode() string { - return "OutputVariablesSizeExceededException" + if e.ErrorCodeOverride == nil { + return "OutputVariablesSizeExceededException" + } + return *e.ErrorCodeOverride } func (e *OutputVariablesSizeExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -504,6 +654,8 @@ func (e *OutputVariablesSizeExceededException) ErrorFault() smithy.ErrorFault { type PipelineExecutionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -517,7 +669,10 @@ func (e *PipelineExecutionNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineExecutionNotFoundException) ErrorCode() string { - return "PipelineExecutionNotFoundException" + if e.ErrorCodeOverride == nil { + return "PipelineExecutionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *PipelineExecutionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -528,6 +683,8 @@ func (e *PipelineExecutionNotFoundException) ErrorFault() smithy.ErrorFault { type PipelineExecutionNotStoppableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -541,7 +698,10 @@ func (e *PipelineExecutionNotStoppableException) ErrorMessage() string { return *e.Message } func (e *PipelineExecutionNotStoppableException) ErrorCode() string { - return "PipelineExecutionNotStoppableException" + if e.ErrorCodeOverride == nil { + return "PipelineExecutionNotStoppableException" + } + return *e.ErrorCodeOverride } func (e *PipelineExecutionNotStoppableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -551,6 +711,8 @@ func (e *PipelineExecutionNotStoppableException) ErrorFault() smithy.ErrorFault type PipelineNameInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -563,13 +725,20 @@ func (e *PipelineNameInUseException) ErrorMessage() string { } return *e.Message } -func (e *PipelineNameInUseException) ErrorCode() string { return "PipelineNameInUseException" } +func (e *PipelineNameInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PipelineNameInUseException" + } + return *e.ErrorCodeOverride +} func (e *PipelineNameInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pipeline was specified in an invalid format or cannot be found. type PipelineNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -582,13 +751,20 @@ func (e *PipelineNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *PipelineNotFoundException) ErrorCode() string { return "PipelineNotFoundException" } +func (e *PipelineNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PipelineNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *PipelineNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pipeline version was specified in an invalid format or cannot be found. type PipelineVersionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -602,7 +778,10 @@ func (e *PipelineVersionNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineVersionNotFoundException) ErrorCode() string { - return "PipelineVersionNotFoundException" + if e.ErrorCodeOverride == nil { + return "PipelineVersionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *PipelineVersionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -610,6 +789,8 @@ func (e *PipelineVersionNotFoundException) ErrorFault() smithy.ErrorFault { retu type RequestFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -622,13 +803,20 @@ func (e *RequestFailedException) ErrorMessage() string { } return *e.Message } -func (e *RequestFailedException) ErrorCode() string { return "RequestFailedException" } +func (e *RequestFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestFailedException" + } + return *e.ErrorCodeOverride +} func (e *RequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was specified in an invalid format. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -641,13 +829,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The stage was specified in an invalid format or cannot be found. type StageNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -660,7 +855,12 @@ func (e *StageNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *StageNotFoundException) ErrorCode() string { return "StageNotFoundException" } +func (e *StageNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StageNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *StageNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to retry. The pipeline structure or stage state might have changed while @@ -668,6 +868,8 @@ func (e *StageNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type StageNotRetryableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -680,13 +882,20 @@ func (e *StageNotRetryableException) ErrorMessage() string { } return *e.Message } -func (e *StageNotRetryableException) ErrorCode() string { return "StageNotRetryableException" } +func (e *StageNotRetryableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StageNotRetryableException" + } + return *e.ErrorCodeOverride +} func (e *StageNotRetryableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tags limit for a resource has been exceeded. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -699,13 +908,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The validation was specified in an invalid format. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -718,13 +934,20 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified webhook was entered in an invalid format or cannot be found. type WebhookNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -737,5 +960,10 @@ func (e *WebhookNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *WebhookNotFoundException) ErrorCode() string { return "WebhookNotFoundException" } +func (e *WebhookNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WebhookNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *WebhookNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codestar/types/errors.go b/service/codestar/types/errors.go index 4354dd40e66..458b314eaeb 100644 --- a/service/codestar/types/errors.go +++ b/service/codestar/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -33,6 +38,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,13 +52,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service role is not valid. type InvalidServiceRoleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +78,20 @@ func (e *InvalidServiceRoleException) ErrorMessage() string { } return *e.Message } -func (e *InvalidServiceRoleException) ErrorCode() string { return "InvalidServiceRoleException" } +func (e *InvalidServiceRoleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidServiceRoleException" + } + return *e.ErrorCodeOverride +} func (e *InvalidServiceRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource limit has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +104,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An AWS CodeStar project with the same ID already exists in this region for the @@ -92,6 +118,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ProjectAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,13 +132,20 @@ func (e *ProjectAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ProjectAlreadyExistsException) ErrorCode() string { return "ProjectAlreadyExistsException" } +func (e *ProjectAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ProjectAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ProjectAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Project configuration information is required but not specified. type ProjectConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,7 +158,12 @@ func (e *ProjectConfigurationException) ErrorMessage() string { } return *e.Message } -func (e *ProjectConfigurationException) ErrorCode() string { return "ProjectConfigurationException" } +func (e *ProjectConfigurationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ProjectConfigurationException" + } + return *e.ErrorCodeOverride +} func (e *ProjectConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The project creation request was valid, but a nonspecific exception or error @@ -132,6 +172,8 @@ func (e *ProjectConfigurationException) ErrorFault() smithy.ErrorFault { return type ProjectCreationFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,13 +186,20 @@ func (e *ProjectCreationFailedException) ErrorMessage() string { } return *e.Message } -func (e *ProjectCreationFailedException) ErrorCode() string { return "ProjectCreationFailedException" } +func (e *ProjectCreationFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ProjectCreationFailedException" + } + return *e.ErrorCodeOverride +} func (e *ProjectCreationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified AWS CodeStar project was not found. type ProjectNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,13 +212,20 @@ func (e *ProjectNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ProjectNotFoundException) ErrorCode() string { return "ProjectNotFoundException" } +func (e *ProjectNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ProjectNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ProjectNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The team member is already associated with a role in this project. type TeamMemberAlreadyAssociatedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -183,7 +239,10 @@ func (e *TeamMemberAlreadyAssociatedException) ErrorMessage() string { return *e.Message } func (e *TeamMemberAlreadyAssociatedException) ErrorCode() string { - return "TeamMemberAlreadyAssociatedException" + if e.ErrorCodeOverride == nil { + return "TeamMemberAlreadyAssociatedException" + } + return *e.ErrorCodeOverride } func (e *TeamMemberAlreadyAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -193,6 +252,8 @@ func (e *TeamMemberAlreadyAssociatedException) ErrorFault() smithy.ErrorFault { type TeamMemberNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -205,7 +266,12 @@ func (e *TeamMemberNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TeamMemberNotFoundException) ErrorCode() string { return "TeamMemberNotFoundException" } +func (e *TeamMemberNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TeamMemberNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TeamMemberNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A user profile with that name already exists in this region for the AWS account. @@ -214,6 +280,8 @@ func (e *TeamMemberNotFoundException) ErrorFault() smithy.ErrorFault { return sm type UserProfileAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -227,7 +295,10 @@ func (e *UserProfileAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *UserProfileAlreadyExistsException) ErrorCode() string { - return "UserProfileAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "UserProfileAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *UserProfileAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -235,6 +306,8 @@ func (e *UserProfileAlreadyExistsException) ErrorFault() smithy.ErrorFault { ret type UserProfileNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -247,13 +320,20 @@ func (e *UserProfileNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *UserProfileNotFoundException) ErrorCode() string { return "UserProfileNotFoundException" } +func (e *UserProfileNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserProfileNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *UserProfileNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified input is either not valid, or it could not be validated. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,5 +346,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codestarconnections/types/errors.go b/service/codestarconnections/types/errors.go index 983d647ca84..49672e60c5c 100644 --- a/service/codestarconnections/types/errors.go +++ b/service/codestarconnections/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exceeded the maximum limit for connections. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource not found. Verify the connection resource ARN and try again. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource not found. Verify the ARN for the host resource and try again. type ResourceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not supported. Check the connection status and try again. type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,5 +129,10 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codestarnotifications/types/errors.go b/service/codestarnotifications/types/errors.go index b09033f695d..acfcf2288ac 100644 --- a/service/codestarnotifications/types/errors.go +++ b/service/codestarnotifications/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AWS CodeStar Notifications can't complete the request because the resource is @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -53,6 +65,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +79,12 @@ func (e *ConfigurationException) ErrorMessage() string { } return *e.Message } -func (e *ConfigurationException) ErrorCode() string { return "ConfigurationException" } +func (e *ConfigurationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConfigurationException" + } + return *e.ErrorCodeOverride +} func (e *ConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value for the enumeration token used in the request to return the next batch @@ -73,6 +92,8 @@ func (e *ConfigurationException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +106,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to @@ -94,6 +120,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,7 +134,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the same name or ID already exists. Notification rule names must @@ -114,6 +147,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +161,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AWS CodeStar Notifications can't find a resource that matches the provided ARN. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,13 +187,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameter values are not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,5 +213,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cognitoidentity/types/errors.go b/service/cognitoidentity/types/errors.go index f903ca1e5ec..738ac14817b 100644 --- a/service/cognitoidentity/types/errors.go +++ b/service/cognitoidentity/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -33,6 +38,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type DeveloperUserAlreadyRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +53,10 @@ func (e *DeveloperUserAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *DeveloperUserAlreadyRegisteredException) ErrorCode() string { - return "DeveloperUserAlreadyRegisteredException" + if e.ErrorCodeOverride == nil { + return "DeveloperUserAlreadyRegisteredException" + } + return *e.ErrorCodeOverride } func (e *DeveloperUserAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -57,6 +67,8 @@ func (e *DeveloperUserAlreadyRegisteredException) ErrorFault() smithy.ErrorFault type ExternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -69,13 +81,20 @@ func (e *ExternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *ExternalServiceException) ErrorCode() string { return "ExternalServiceException" } +func (e *ExternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *ExternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when the service encounters an error during processing the request. type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -88,7 +107,12 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Thrown if the identity pool has no role associated for the given auth type @@ -96,6 +120,8 @@ func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidIdentityPoolConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -109,7 +135,10 @@ func (e *InvalidIdentityPoolConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidIdentityPoolConfigurationException) ErrorCode() string { - return "InvalidIdentityPoolConfigurationException" + if e.ErrorCodeOverride == nil { + return "InvalidIdentityPoolConfigurationException" + } + return *e.ErrorCodeOverride } func (e *InvalidIdentityPoolConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -119,6 +148,8 @@ func (e *InvalidIdentityPoolConfigurationException) ErrorFault() smithy.ErrorFau type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -131,13 +162,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when the total number of user pools has exceeded a preset limit. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,13 +188,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when a user is not authorized to access the requested resource. type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +214,12 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when a user tries to use a login which is already linked to another @@ -177,6 +227,8 @@ func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -189,7 +241,12 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when the requested resource (for example, a dataset or record) does not @@ -197,6 +254,8 @@ func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smit type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,13 +268,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when a request is throttled. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,5 +294,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cognitoidentityprovider/types/errors.go b/service/cognitoidentityprovider/types/errors.go index 4448dfcb327..af6d942a362 100644 --- a/service/cognitoidentityprovider/types/errors.go +++ b/service/cognitoidentityprovider/types/errors.go @@ -15,6 +15,8 @@ import ( type AliasExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -27,13 +29,20 @@ func (e *AliasExistsException) ErrorMessage() string { } return *e.Message } -func (e *AliasExistsException) ErrorCode() string { return "AliasExistsException" } +func (e *AliasExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AliasExistsException" + } + return *e.ErrorCodeOverride +} func (e *AliasExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a verification code fails to deliver successfully. type CodeDeliveryFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,12 @@ func (e *CodeDeliveryFailureException) ErrorMessage() string { } return *e.Message } -func (e *CodeDeliveryFailureException) ErrorCode() string { return "CodeDeliveryFailureException" } +func (e *CodeDeliveryFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CodeDeliveryFailureException" + } + return *e.ErrorCodeOverride +} func (e *CodeDeliveryFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown if the provided code doesn't match what the server was @@ -54,6 +68,8 @@ func (e *CodeDeliveryFailureException) ErrorFault() smithy.ErrorFault { return s type CodeMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +82,12 @@ func (e *CodeMismatchException) ErrorMessage() string { } return *e.Message } -func (e *CodeMismatchException) ErrorCode() string { return "CodeMismatchException" } +func (e *CodeMismatchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CodeMismatchException" + } + return *e.ErrorCodeOverride +} func (e *CodeMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown if two or more modifications are happening @@ -74,6 +95,8 @@ func (e *CodeMismatchException) ErrorFault() smithy.ErrorFault { return smithy.F type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +110,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -96,6 +122,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type DuplicateProviderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +136,12 @@ func (e *DuplicateProviderException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateProviderException) ErrorCode() string { return "DuplicateProviderException" } +func (e *DuplicateProviderException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateProviderException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateProviderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when there is a code mismatch and the service fails to @@ -116,6 +149,8 @@ func (e *DuplicateProviderException) ErrorFault() smithy.ErrorFault { return smi type EnableSoftwareTokenMFAException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,7 +164,10 @@ func (e *EnableSoftwareTokenMFAException) ErrorMessage() string { return *e.Message } func (e *EnableSoftwareTokenMFAException) ErrorCode() string { - return "EnableSoftwareTokenMFAException" + if e.ErrorCodeOverride == nil { + return "EnableSoftwareTokenMFAException" + } + return *e.ErrorCodeOverride } func (e *EnableSoftwareTokenMFAException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -137,6 +175,8 @@ func (e *EnableSoftwareTokenMFAException) ErrorFault() smithy.ErrorFault { retur type ExpiredCodeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -149,7 +189,12 @@ func (e *ExpiredCodeException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredCodeException) ErrorCode() string { return "ExpiredCodeException" } +func (e *ExpiredCodeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredCodeException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredCodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when WAF doesn't allow your request based on a web ACL @@ -157,6 +202,8 @@ func (e *ExpiredCodeException) ErrorFault() smithy.ErrorFault { return smithy.Fa type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +216,12 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when Amazon Cognito encounters a group that already @@ -177,6 +229,8 @@ func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.Faul type GroupExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -189,13 +243,20 @@ func (e *GroupExistsException) ErrorMessage() string { } return *e.Message } -func (e *GroupExistsException) ErrorCode() string { return "GroupExistsException" } +func (e *GroupExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GroupExistsException" + } + return *e.ErrorCodeOverride +} func (e *GroupExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when Amazon Cognito encounters an internal error. type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -208,7 +269,12 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This exception is thrown when Amazon Cognito isn't allowed to use your email @@ -216,6 +282,8 @@ func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidEmailRoleAccessPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -229,7 +297,10 @@ func (e *InvalidEmailRoleAccessPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidEmailRoleAccessPolicyException) ErrorCode() string { - return "InvalidEmailRoleAccessPolicyException" + if e.ErrorCodeOverride == nil { + return "InvalidEmailRoleAccessPolicyException" + } + return *e.ErrorCodeOverride } func (e *InvalidEmailRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -240,6 +311,8 @@ func (e *InvalidEmailRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { type InvalidLambdaResponseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -252,13 +325,20 @@ func (e *InvalidLambdaResponseException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLambdaResponseException) ErrorCode() string { return "InvalidLambdaResponseException" } +func (e *InvalidLambdaResponseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLambdaResponseException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLambdaResponseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified OAuth flow is not valid. type InvalidOAuthFlowException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -271,7 +351,12 @@ func (e *InvalidOAuthFlowException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOAuthFlowException) ErrorCode() string { return "InvalidOAuthFlowException" } +func (e *InvalidOAuthFlowException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOAuthFlowException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOAuthFlowException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the Amazon Cognito service encounters an invalid @@ -279,6 +364,8 @@ func (e *InvalidOAuthFlowException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -291,13 +378,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when Amazon Cognito encounters an invalid password. type InvalidPasswordException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -310,7 +404,12 @@ func (e *InvalidPasswordException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPasswordException) ErrorCode() string { return "InvalidPasswordException" } +func (e *InvalidPasswordException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPasswordException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is returned when the role provided for SMS configuration doesn't @@ -318,6 +417,8 @@ func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smith type InvalidSmsRoleAccessPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -331,7 +432,10 @@ func (e *InvalidSmsRoleAccessPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidSmsRoleAccessPolicyException) ErrorCode() string { - return "InvalidSmsRoleAccessPolicyException" + if e.ErrorCodeOverride == nil { + return "InvalidSmsRoleAccessPolicyException" + } + return *e.ErrorCodeOverride } func (e *InvalidSmsRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -344,6 +448,8 @@ func (e *InvalidSmsRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { type InvalidSmsRoleTrustRelationshipException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -357,7 +463,10 @@ func (e *InvalidSmsRoleTrustRelationshipException) ErrorMessage() string { return *e.Message } func (e *InvalidSmsRoleTrustRelationshipException) ErrorCode() string { - return "InvalidSmsRoleTrustRelationshipException" + if e.ErrorCodeOverride == nil { + return "InvalidSmsRoleTrustRelationshipException" + } + return *e.ErrorCodeOverride } func (e *InvalidSmsRoleTrustRelationshipException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -367,6 +476,8 @@ func (e *InvalidSmsRoleTrustRelationshipException) ErrorFault() smithy.ErrorFaul type InvalidUserPoolConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -380,7 +491,10 @@ func (e *InvalidUserPoolConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidUserPoolConfigurationException) ErrorCode() string { - return "InvalidUserPoolConfigurationException" + if e.ErrorCodeOverride == nil { + return "InvalidUserPoolConfigurationException" + } + return *e.ErrorCodeOverride } func (e *InvalidUserPoolConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -391,6 +505,8 @@ func (e *InvalidUserPoolConfigurationException) ErrorFault() smithy.ErrorFault { type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -403,7 +519,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when Amazon Cognito can't find a multi-factor @@ -411,6 +532,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MFAMethodNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -423,13 +546,20 @@ func (e *MFAMethodNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *MFAMethodNotFoundException) ErrorCode() string { return "MFAMethodNotFoundException" } +func (e *MFAMethodNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MFAMethodNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *MFAMethodNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a user isn't authorized. type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -442,13 +572,20 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a password reset is required. type PasswordResetRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -461,13 +598,20 @@ func (e *PasswordResetRequiredException) ErrorMessage() string { } return *e.Message } -func (e *PasswordResetRequiredException) ErrorCode() string { return "PasswordResetRequiredException" } +func (e *PasswordResetRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PasswordResetRequiredException" + } + return *e.ErrorCodeOverride +} func (e *PasswordResetRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a precondition is not met. type PreconditionNotMetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -480,7 +624,12 @@ func (e *PreconditionNotMetException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionNotMetException) ErrorCode() string { return "PreconditionNotMetException" } +func (e *PreconditionNotMetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionNotMetException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the Amazon Cognito service can't find the @@ -488,6 +637,8 @@ func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return sm type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -500,13 +651,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified scope doesn't exist. type ScopeDoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -519,7 +677,12 @@ func (e *ScopeDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *ScopeDoesNotExistException) ErrorCode() string { return "ScopeDoesNotExistException" } +func (e *ScopeDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ScopeDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *ScopeDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the software token time-based one-time password @@ -527,6 +690,8 @@ func (e *ScopeDoesNotExistException) ErrorFault() smithy.ErrorFault { return smi type SoftwareTokenMFANotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -540,7 +705,10 @@ func (e *SoftwareTokenMFANotFoundException) ErrorMessage() string { return *e.Message } func (e *SoftwareTokenMFANotFoundException) ErrorCode() string { - return "SoftwareTokenMFANotFoundException" + if e.ErrorCodeOverride == nil { + return "SoftwareTokenMFANotFoundException" + } + return *e.ErrorCodeOverride } func (e *SoftwareTokenMFANotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -549,6 +717,8 @@ func (e *SoftwareTokenMFANotFoundException) ErrorFault() smithy.ErrorFault { ret type TooManyFailedAttemptsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -561,7 +731,12 @@ func (e *TooManyFailedAttemptsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyFailedAttemptsException) ErrorCode() string { return "TooManyFailedAttemptsException" } +func (e *TooManyFailedAttemptsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyFailedAttemptsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyFailedAttemptsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the user has made too many requests for a given @@ -569,6 +744,8 @@ func (e *TooManyFailedAttemptsException) ErrorFault() smithy.ErrorFault { return type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -581,7 +758,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that is thrown when the request isn't authorized. This can happen due @@ -589,6 +771,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -601,7 +785,12 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when Amazon Cognito encounters an unexpected exception @@ -609,6 +798,8 @@ func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.F type UnexpectedLambdaException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -621,13 +812,20 @@ func (e *UnexpectedLambdaException) ErrorMessage() string { } return *e.Message } -func (e *UnexpectedLambdaException) ErrorCode() string { return "UnexpectedLambdaException" } +func (e *UnexpectedLambdaException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnexpectedLambdaException" + } + return *e.ErrorCodeOverride +} func (e *UnexpectedLambdaException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified identifier isn't supported. type UnsupportedIdentityProviderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -641,7 +839,10 @@ func (e *UnsupportedIdentityProviderException) ErrorMessage() string { return *e.Message } func (e *UnsupportedIdentityProviderException) ErrorCode() string { - return "UnsupportedIdentityProviderException" + if e.ErrorCodeOverride == nil { + return "UnsupportedIdentityProviderException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedIdentityProviderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -652,6 +853,8 @@ func (e *UnsupportedIdentityProviderException) ErrorFault() smithy.ErrorFault { type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -664,13 +867,20 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that is thrown when an unsupported token is passed to an operation. type UnsupportedTokenTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -683,13 +893,20 @@ func (e *UnsupportedTokenTypeException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedTokenTypeException) ErrorCode() string { return "UnsupportedTokenTypeException" } +func (e *UnsupportedTokenTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedTokenTypeException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedTokenTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because the user is in an unsupported state. type UnsupportedUserStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -702,7 +919,12 @@ func (e *UnsupportedUserStateException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedUserStateException) ErrorCode() string { return "UnsupportedUserStateException" } +func (e *UnsupportedUserStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedUserStateException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedUserStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when you're trying to modify a user pool while a user @@ -710,6 +932,8 @@ func (e *UnsupportedUserStateException) ErrorFault() smithy.ErrorFault { return type UserImportInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -722,7 +946,12 @@ func (e *UserImportInProgressException) ErrorMessage() string { } return *e.Message } -func (e *UserImportInProgressException) ErrorCode() string { return "UserImportInProgressException" } +func (e *UserImportInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserImportInProgressException" + } + return *e.ErrorCodeOverride +} func (e *UserImportInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the Amazon Cognito service encounters a user @@ -730,6 +959,8 @@ func (e *UserImportInProgressException) ErrorFault() smithy.ErrorFault { return type UserLambdaValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -742,7 +973,12 @@ func (e *UserLambdaValidationException) ErrorMessage() string { } return *e.Message } -func (e *UserLambdaValidationException) ErrorCode() string { return "UserLambdaValidationException" } +func (e *UserLambdaValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserLambdaValidationException" + } + return *e.ErrorCodeOverride +} func (e *UserLambdaValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when Amazon Cognito encounters a user name that already @@ -750,6 +986,8 @@ func (e *UserLambdaValidationException) ErrorFault() smithy.ErrorFault { return type UsernameExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -762,13 +1000,20 @@ func (e *UsernameExistsException) ErrorMessage() string { } return *e.Message } -func (e *UsernameExistsException) ErrorCode() string { return "UsernameExistsException" } +func (e *UsernameExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UsernameExistsException" + } + return *e.ErrorCodeOverride +} func (e *UsernameExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a user isn't confirmed successfully. type UserNotConfirmedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -781,13 +1026,20 @@ func (e *UserNotConfirmedException) ErrorMessage() string { } return *e.Message } -func (e *UserNotConfirmedException) ErrorCode() string { return "UserNotConfirmedException" } +func (e *UserNotConfirmedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserNotConfirmedException" + } + return *e.ErrorCodeOverride +} func (e *UserNotConfirmedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a user isn't found. type UserNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -800,13 +1052,20 @@ func (e *UserNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *UserNotFoundException) ErrorCode() string { return "UserNotFoundException" } +func (e *UserNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *UserNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when user pool add-ons aren't enabled. type UserPoolAddOnNotEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -820,7 +1079,10 @@ func (e *UserPoolAddOnNotEnabledException) ErrorMessage() string { return *e.Message } func (e *UserPoolAddOnNotEnabledException) ErrorCode() string { - return "UserPoolAddOnNotEnabledException" + if e.ErrorCodeOverride == nil { + return "UserPoolAddOnNotEnabledException" + } + return *e.ErrorCodeOverride } func (e *UserPoolAddOnNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -828,6 +1090,8 @@ func (e *UserPoolAddOnNotEnabledException) ErrorFault() smithy.ErrorFault { retu type UserPoolTaggingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -840,5 +1104,10 @@ func (e *UserPoolTaggingException) ErrorMessage() string { } return *e.Message } -func (e *UserPoolTaggingException) ErrorCode() string { return "UserPoolTaggingException" } +func (e *UserPoolTaggingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserPoolTaggingException" + } + return *e.ErrorCodeOverride +} func (e *UserPoolTaggingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cognitosync/types/errors.go b/service/cognitosync/types/errors.go index 995e6065bc2..4785bb2d844 100644 --- a/service/cognitosync/types/errors.go +++ b/service/cognitosync/types/errors.go @@ -12,6 +12,8 @@ import ( type AlreadyStreamedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AlreadyStreamedException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyStreamedException) ErrorCode() string { return "AlreadyStreamedException" } +func (e *AlreadyStreamedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyStreamedException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyStreamedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown if there are parallel requests to modify a resource. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -53,6 +65,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type DuplicateRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +79,20 @@ func (e *DuplicateRequestException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateRequestException) ErrorCode() string { return "DuplicateRequestException" } +func (e *DuplicateRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateRequestException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates an internal service error. type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,12 +105,19 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +130,20 @@ func (e *InvalidConfigurationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidConfigurationException) ErrorCode() string { return "InvalidConfigurationException" } +func (e *InvalidConfigurationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidConfigurationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The AWS Lambda function returned invalid output or an exception. type InvalidLambdaFunctionOutputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +157,10 @@ func (e *InvalidLambdaFunctionOutputException) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaFunctionOutputException) ErrorCode() string { - return "InvalidLambdaFunctionOutputException" + if e.ErrorCodeOverride == nil { + return "InvalidLambdaFunctionOutputException" + } + return *e.ErrorCodeOverride } func (e *InvalidLambdaFunctionOutputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -132,6 +170,8 @@ func (e *InvalidLambdaFunctionOutputException) ErrorFault() smithy.ErrorFault { type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,13 +184,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AWS Lambda throttled your account, please contact AWS Support type LambdaThrottledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,13 +210,20 @@ func (e *LambdaThrottledException) ErrorMessage() string { } return *e.Message } -func (e *LambdaThrottledException) ErrorCode() string { return "LambdaThrottledException" } +func (e *LambdaThrottledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LambdaThrottledException" + } + return *e.ErrorCodeOverride +} func (e *LambdaThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when the limit on the number of objects or operations has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -182,13 +236,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when a user is not authorized to access the requested resource. type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -201,7 +262,12 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown if an update can't be applied because the resource was changed by another @@ -209,6 +275,8 @@ func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -221,13 +289,20 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown if the resource doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -240,13 +315,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown if the request is throttled. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -259,5 +341,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/comprehend/types/errors.go b/service/comprehend/types/errors.go index 0f05bc98f2c..1e4814f0b1d 100644 --- a/service/comprehend/types/errors.go +++ b/service/comprehend/types/errors.go @@ -12,6 +12,8 @@ import ( type BatchSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *BatchSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *BatchSizeLimitExceededException) ErrorCode() string { - return "BatchSizeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "BatchSizeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *BatchSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -34,6 +39,8 @@ func (e *BatchSizeLimitExceededException) ErrorFault() smithy.ErrorFault { retur type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,7 +54,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -55,6 +65,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +79,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The filter specified for the operation is invalid. Specify a different filter. type InvalidFilterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,13 +105,20 @@ func (e *InvalidFilterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFilterException) ErrorCode() string { return "InvalidFilterException" } +func (e *InvalidFilterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFilterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is invalid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + Reason InvalidRequestReason Detail *InvalidRequestDetail @@ -108,13 +134,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified job was not found. Check the job ID and try again. type JobNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,7 +160,12 @@ func (e *JobNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *JobNotFoundException) ErrorCode() string { return "JobNotFoundException" } +func (e *JobNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "JobNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *JobNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The KMS customer managed key (CMK) entered cannot be validated. Verify the key @@ -135,6 +173,8 @@ func (e *JobNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fa type KmsKeyValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,7 +187,12 @@ func (e *KmsKeyValidationException) ErrorMessage() string { } return *e.Message } -func (e *KmsKeyValidationException) ErrorCode() string { return "KmsKeyValidationException" } +func (e *KmsKeyValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KmsKeyValidationException" + } + return *e.ErrorCodeOverride +} func (e *KmsKeyValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource name is already in use. Use a different name and try your @@ -155,6 +200,8 @@ func (e *KmsKeyValidationException) ErrorFault() smithy.ErrorFault { return smit type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,7 +214,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of resources per account has been exceeded. Review the @@ -175,6 +227,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,7 +241,12 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource ARN was not found. Check the ARN and try your request @@ -195,6 +254,8 @@ func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -207,7 +268,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is not available. Check the resource and try your request @@ -215,6 +281,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -227,13 +295,20 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The size of the input text exceeds the limit. Use a smaller document. type TextSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -246,13 +321,20 @@ func (e *TextSizeLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TextSizeLimitExceededException) ErrorCode() string { return "TextSizeLimitExceededException" } +func (e *TextSizeLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TextSizeLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TextSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of requests exceeds the limit. Resubmit your request later. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -265,7 +347,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains more tag keys than can be associated with a resource (50 @@ -273,6 +360,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type TooManyTagKeysException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -285,7 +374,12 @@ func (e *TooManyTagKeysException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagKeysException) ErrorCode() string { return "TooManyTagKeysException" } +func (e *TooManyTagKeysException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagKeysException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains more tags than can be associated with a resource (50 tags @@ -294,6 +388,8 @@ func (e *TooManyTagKeysException) ErrorFault() smithy.ErrorFault { return smithy type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -306,7 +402,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Comprehend can't process the language of the input text. For custom @@ -317,6 +418,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type UnsupportedLanguageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -329,5 +432,10 @@ func (e *UnsupportedLanguageException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedLanguageException) ErrorCode() string { return "UnsupportedLanguageException" } +func (e *UnsupportedLanguageException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedLanguageException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedLanguageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/comprehendmedical/types/errors.go b/service/comprehendmedical/types/errors.go index d9a875fee8e..0f13b08c0a4 100644 --- a/service/comprehendmedical/types/errors.go +++ b/service/comprehendmedical/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input text was not in valid UTF-8 character encoding. Check your text then @@ -31,6 +38,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidEncodingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *InvalidEncodingException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEncodingException) ErrorCode() string { return "InvalidEncodingException" } +func (e *InvalidEncodingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEncodingException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEncodingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request that you made is invalid. Check your request to determine why it's @@ -51,6 +65,8 @@ func (e *InvalidEncodingException) ErrorFault() smithy.ErrorFault { return smith type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource identified by the specified Amazon Resource Name (ARN) was not @@ -71,6 +92,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +106,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Comprehend Medical; service is temporarily unavailable. Please wait and then @@ -91,6 +119,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,7 +133,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The size of the text you submitted exceeds the size limit. Reduce the size of @@ -111,6 +146,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TextSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,7 +160,12 @@ func (e *TextSizeLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TextSizeLimitExceededException) ErrorCode() string { return "TextSizeLimitExceededException" } +func (e *TextSizeLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TextSizeLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TextSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have made too many requests within a short period of time. Wait for a short @@ -132,6 +174,8 @@ func (e *TextSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,7 +188,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The filter that you specified for the operation is invalid. Check the filter @@ -152,6 +201,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,5 +215,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/computeoptimizer/types/errors.go b/service/computeoptimizer/types/errors.go index 4901456ebe7..90aa799be4c 100644 --- a/service/computeoptimizer/types/errors.go +++ b/service/computeoptimizer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. Try your call again. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The value supplied for the input parameter is out of range or not valid. type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds a limit of the service. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request must contain either a valid (registered) Amazon Web Services access @@ -88,6 +116,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MissingAuthenticationToken struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *MissingAuthenticationToken) ErrorMessage() string { } return *e.Message } -func (e *MissingAuthenticationToken) ErrorCode() string { return "MissingAuthenticationToken" } +func (e *MissingAuthenticationToken) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingAuthenticationToken" + } + return *e.ErrorCodeOverride +} func (e *MissingAuthenticationToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account is not opted in to Compute Optimizer. type OptInRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,13 +156,20 @@ func (e *OptInRequiredException) ErrorMessage() string { } return *e.Message } -func (e *OptInRequiredException) ErrorCode() string { return "OptInRequiredException" } +func (e *OptInRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OptInRequiredException" + } + return *e.ErrorCodeOverride +} func (e *OptInRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource that is required for the action doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,13 +182,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed due to a temporary failure of the server. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -157,13 +208,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -176,5 +234,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/configservice/types/errors.go b/service/configservice/types/errors.go index 20801f8475b..1f6f6dc8a56 100644 --- a/service/configservice/types/errors.go +++ b/service/configservice/types/errors.go @@ -11,6 +11,8 @@ import ( type ConformancePackTemplateValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConformancePackTemplateValidationException) ErrorMessage() string { return *e.Message } func (e *ConformancePackTemplateValidationException) ErrorCode() string { - return "ConformancePackTemplateValidationException" + if e.ErrorCodeOverride == nil { + return "ConformancePackTemplateValidationException" + } + return *e.ErrorCodeOverride } func (e *ConformancePackTemplateValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -35,6 +40,8 @@ func (e *ConformancePackTemplateValidationException) ErrorFault() smithy.ErrorFa type IdempotentParameterMismatch struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,13 +54,20 @@ func (e *IdempotentParameterMismatch) ErrorMessage() string { } return *e.Message } -func (e *IdempotentParameterMismatch) ErrorCode() string { return "IdempotentParameterMismatch" } +func (e *IdempotentParameterMismatch) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatch" + } + return *e.ErrorCodeOverride +} func (e *IdempotentParameterMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your Amazon S3 bucket policy does not permit Config to write to it. type InsufficientDeliveryPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *InsufficientDeliveryPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientDeliveryPolicyException) ErrorCode() string { - return "InsufficientDeliveryPolicyException" + if e.ErrorCodeOverride == nil { + return "InsufficientDeliveryPolicyException" + } + return *e.ErrorCodeOverride } func (e *InsufficientDeliveryPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -99,6 +116,8 @@ func (e *InsufficientDeliveryPolicyException) ErrorFault() smithy.ErrorFault { type InsufficientPermissionsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -112,7 +131,10 @@ func (e *InsufficientPermissionsException) ErrorMessage() string { return *e.Message } func (e *InsufficientPermissionsException) ErrorCode() string { - return "InsufficientPermissionsException" + if e.ErrorCodeOverride == nil { + return "InsufficientPermissionsException" + } + return *e.ErrorCodeOverride } func (e *InsufficientPermissionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -120,6 +142,8 @@ func (e *InsufficientPermissionsException) ErrorFault() smithy.ErrorFault { retu type InvalidConfigurationRecorderNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -133,7 +157,10 @@ func (e *InvalidConfigurationRecorderNameException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRecorderNameException) ErrorCode() string { - return "InvalidConfigurationRecorderNameException" + if e.ErrorCodeOverride == nil { + return "InvalidConfigurationRecorderNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidConfigurationRecorderNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -143,6 +170,8 @@ func (e *InvalidConfigurationRecorderNameException) ErrorFault() smithy.ErrorFau type InvalidDeliveryChannelNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,7 +185,10 @@ func (e *InvalidDeliveryChannelNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeliveryChannelNameException) ErrorCode() string { - return "InvalidDeliveryChannelNameException" + if e.ErrorCodeOverride == nil { + return "InvalidDeliveryChannelNameException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeliveryChannelNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -166,6 +198,8 @@ func (e *InvalidDeliveryChannelNameException) ErrorFault() smithy.ErrorFault { type InvalidExpressionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -178,13 +212,20 @@ func (e *InvalidExpressionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidExpressionException) ErrorCode() string { return "InvalidExpressionException" } +func (e *InvalidExpressionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExpressionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidExpressionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified limit is outside the allowable range. type InvalidLimitException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -197,7 +238,12 @@ func (e *InvalidLimitException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLimitException) ErrorCode() string { return "InvalidLimitException" } +func (e *InvalidLimitException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLimitException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLimitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified next token is invalid. Specify the nextToken string that was @@ -205,6 +251,8 @@ func (e *InvalidLimitException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -217,7 +265,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified parameters are invalid. Verify that your parameters @@ -225,6 +278,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -237,7 +292,12 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Config throws an exception if the recording group does not contain a valid list @@ -245,6 +305,8 @@ func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return type InvalidRecordingGroupException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -257,13 +319,20 @@ func (e *InvalidRecordingGroupException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRecordingGroupException) ErrorCode() string { return "InvalidRecordingGroupException" } +func (e *InvalidRecordingGroupException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRecordingGroupException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRecordingGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ResultToken is invalid. type InvalidResultTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -276,13 +345,20 @@ func (e *InvalidResultTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResultTokenException) ErrorCode() string { return "InvalidResultTokenException" } +func (e *InvalidResultTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResultTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResultTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have provided a null or empty role ARN. type InvalidRoleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -295,13 +371,20 @@ func (e *InvalidRoleException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRoleException) ErrorCode() string { return "InvalidRoleException" } +func (e *InvalidRoleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRoleException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon S3 key prefix is invalid. type InvalidS3KeyPrefixException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -314,13 +397,20 @@ func (e *InvalidS3KeyPrefixException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3KeyPrefixException) ErrorCode() string { return "InvalidS3KeyPrefixException" } +func (e *InvalidS3KeyPrefixException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3KeyPrefixException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3KeyPrefixException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon KMS Key ARN is invalid. type InvalidS3KmsKeyArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -333,13 +423,20 @@ func (e *InvalidS3KmsKeyArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3KmsKeyArnException) ErrorCode() string { return "InvalidS3KmsKeyArnException" } +func (e *InvalidS3KmsKeyArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3KmsKeyArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3KmsKeyArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon SNS topic does not exist. type InvalidSNSTopicARNException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -352,7 +449,12 @@ func (e *InvalidSNSTopicARNException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSNSTopicARNException) ErrorCode() string { return "InvalidSNSTopicARNException" } +func (e *InvalidSNSTopicARNException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSNSTopicARNException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSNSTopicARNException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified time range is invalid. The earlier time is not chronologically @@ -360,6 +462,8 @@ func (e *InvalidSNSTopicARNException) ErrorFault() smithy.ErrorFault { return sm type InvalidTimeRangeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -372,7 +476,12 @@ func (e *InvalidTimeRangeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTimeRangeException) ErrorCode() string { return "InvalidTimeRangeException" } +func (e *InvalidTimeRangeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTimeRangeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTimeRangeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot delete the delivery channel you specified because the configuration @@ -380,6 +489,8 @@ func (e *InvalidTimeRangeException) ErrorFault() smithy.ErrorFault { return smit type LastDeliveryChannelDeleteFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -393,7 +504,10 @@ func (e *LastDeliveryChannelDeleteFailedException) ErrorMessage() string { return *e.Message } func (e *LastDeliveryChannelDeleteFailedException) ErrorCode() string { - return "LastDeliveryChannelDeleteFailedException" + if e.ErrorCodeOverride == nil { + return "LastDeliveryChannelDeleteFailedException" + } + return *e.ErrorCodeOverride } func (e *LastDeliveryChannelDeleteFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -406,6 +520,8 @@ func (e *LastDeliveryChannelDeleteFailedException) ErrorFault() smithy.ErrorFaul type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -418,7 +534,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the limit of active custom resource types in your account. @@ -427,6 +548,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MaxActiveResourcesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -440,7 +563,10 @@ func (e *MaxActiveResourcesExceededException) ErrorMessage() string { return *e.Message } func (e *MaxActiveResourcesExceededException) ErrorCode() string { - return "MaxActiveResourcesExceededException" + if e.ErrorCodeOverride == nil { + return "MaxActiveResourcesExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxActiveResourcesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -452,6 +578,8 @@ func (e *MaxActiveResourcesExceededException) ErrorFault() smithy.ErrorFault { type MaxNumberOfConfigRulesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -465,7 +593,10 @@ func (e *MaxNumberOfConfigRulesExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfConfigRulesExceededException) ErrorCode() string { - return "MaxNumberOfConfigRulesExceededException" + if e.ErrorCodeOverride == nil { + return "MaxNumberOfConfigRulesExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxNumberOfConfigRulesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -475,6 +606,8 @@ func (e *MaxNumberOfConfigRulesExceededException) ErrorFault() smithy.ErrorFault type MaxNumberOfConfigurationRecordersExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -488,7 +621,10 @@ func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorMessage() stri return *e.Message } func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorCode() string { - return "MaxNumberOfConfigurationRecordersExceededException" + if e.ErrorCodeOverride == nil { + return "MaxNumberOfConfigurationRecordersExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -501,6 +637,8 @@ func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorFault() smithy type MaxNumberOfConformancePacksExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -514,7 +652,10 @@ func (e *MaxNumberOfConformancePacksExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfConformancePacksExceededException) ErrorCode() string { - return "MaxNumberOfConformancePacksExceededException" + if e.ErrorCodeOverride == nil { + return "MaxNumberOfConformancePacksExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxNumberOfConformancePacksExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -524,6 +665,8 @@ func (e *MaxNumberOfConformancePacksExceededException) ErrorFault() smithy.Error type MaxNumberOfDeliveryChannelsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -537,7 +680,10 @@ func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorCode() string { - return "MaxNumberOfDeliveryChannelsExceededException" + if e.ErrorCodeOverride == nil { + return "MaxNumberOfDeliveryChannelsExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -550,6 +696,8 @@ func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorFault() smithy.Error type MaxNumberOfOrganizationConfigRulesExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -563,7 +711,10 @@ func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorMessage() str return *e.Message } func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorCode() string { - return "MaxNumberOfOrganizationConfigRulesExceededException" + if e.ErrorCodeOverride == nil { + return "MaxNumberOfOrganizationConfigRulesExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -576,6 +727,8 @@ func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorFault() smith type MaxNumberOfOrganizationConformancePacksExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -589,7 +742,10 @@ func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorMessage( return *e.Message } func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorCode() string { - return "MaxNumberOfOrganizationConformancePacksExceededException" + if e.ErrorCodeOverride == nil { + return "MaxNumberOfOrganizationConformancePacksExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -600,6 +756,8 @@ func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorFault() type MaxNumberOfRetentionConfigurationsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -613,7 +771,10 @@ func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorMessage() str return *e.Message } func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorCode() string { - return "MaxNumberOfRetentionConfigurationsExceededException" + if e.ErrorCodeOverride == nil { + return "MaxNumberOfRetentionConfigurationsExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -624,6 +785,8 @@ func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorFault() smith type NoAvailableConfigurationRecorderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -637,7 +800,10 @@ func (e *NoAvailableConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoAvailableConfigurationRecorderException) ErrorCode() string { - return "NoAvailableConfigurationRecorderException" + if e.ErrorCodeOverride == nil { + return "NoAvailableConfigurationRecorderException" + } + return *e.ErrorCodeOverride } func (e *NoAvailableConfigurationRecorderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -647,6 +813,8 @@ func (e *NoAvailableConfigurationRecorderException) ErrorFault() smithy.ErrorFau type NoAvailableDeliveryChannelException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -660,7 +828,10 @@ func (e *NoAvailableDeliveryChannelException) ErrorMessage() string { return *e.Message } func (e *NoAvailableDeliveryChannelException) ErrorCode() string { - return "NoAvailableDeliveryChannelException" + if e.ErrorCodeOverride == nil { + return "NoAvailableDeliveryChannelException" + } + return *e.ErrorCodeOverride } func (e *NoAvailableDeliveryChannelException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -670,6 +841,8 @@ func (e *NoAvailableDeliveryChannelException) ErrorFault() smithy.ErrorFault { type NoAvailableOrganizationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -683,7 +856,10 @@ func (e *NoAvailableOrganizationException) ErrorMessage() string { return *e.Message } func (e *NoAvailableOrganizationException) ErrorCode() string { - return "NoAvailableOrganizationException" + if e.ErrorCodeOverride == nil { + return "NoAvailableOrganizationException" + } + return *e.ErrorCodeOverride } func (e *NoAvailableOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -691,6 +867,8 @@ func (e *NoAvailableOrganizationException) ErrorFault() smithy.ErrorFault { retu type NoRunningConfigurationRecorderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -704,7 +882,10 @@ func (e *NoRunningConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoRunningConfigurationRecorderException) ErrorCode() string { - return "NoRunningConfigurationRecorderException" + if e.ErrorCodeOverride == nil { + return "NoRunningConfigurationRecorderException" + } + return *e.ErrorCodeOverride } func (e *NoRunningConfigurationRecorderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -714,6 +895,8 @@ func (e *NoRunningConfigurationRecorderException) ErrorFault() smithy.ErrorFault type NoSuchBucketException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -726,7 +909,12 @@ func (e *NoSuchBucketException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchBucketException) ErrorCode() string { return "NoSuchBucketException" } +func (e *NoSuchBucketException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchBucketException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchBucketException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Config rule in the request is invalid. Verify that the rule is an Config @@ -735,6 +923,8 @@ func (e *NoSuchBucketException) ErrorFault() smithy.ErrorFault { return smithy.F type NoSuchConfigRuleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -747,13 +937,20 @@ func (e *NoSuchConfigRuleException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchConfigRuleException) ErrorCode() string { return "NoSuchConfigRuleException" } +func (e *NoSuchConfigRuleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchConfigRuleException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchConfigRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Config rule that you passed in the filter does not exist. type NoSuchConfigRuleInConformancePackException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -767,7 +964,10 @@ func (e *NoSuchConfigRuleInConformancePackException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigRuleInConformancePackException) ErrorCode() string { - return "NoSuchConfigRuleInConformancePackException" + if e.ErrorCodeOverride == nil { + return "NoSuchConfigRuleInConformancePackException" + } + return *e.ErrorCodeOverride } func (e *NoSuchConfigRuleInConformancePackException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -777,6 +977,8 @@ func (e *NoSuchConfigRuleInConformancePackException) ErrorFault() smithy.ErrorFa type NoSuchConfigurationAggregatorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -790,7 +992,10 @@ func (e *NoSuchConfigurationAggregatorException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigurationAggregatorException) ErrorCode() string { - return "NoSuchConfigurationAggregatorException" + if e.ErrorCodeOverride == nil { + return "NoSuchConfigurationAggregatorException" + } + return *e.ErrorCodeOverride } func (e *NoSuchConfigurationAggregatorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -800,6 +1005,8 @@ func (e *NoSuchConfigurationAggregatorException) ErrorFault() smithy.ErrorFault type NoSuchConfigurationRecorderException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -813,7 +1020,10 @@ func (e *NoSuchConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigurationRecorderException) ErrorCode() string { - return "NoSuchConfigurationRecorderException" + if e.ErrorCodeOverride == nil { + return "NoSuchConfigurationRecorderException" + } + return *e.ErrorCodeOverride } func (e *NoSuchConfigurationRecorderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -823,6 +1033,8 @@ func (e *NoSuchConfigurationRecorderException) ErrorFault() smithy.ErrorFault { type NoSuchConformancePackException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -835,13 +1047,20 @@ func (e *NoSuchConformancePackException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchConformancePackException) ErrorCode() string { return "NoSuchConformancePackException" } +func (e *NoSuchConformancePackException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchConformancePackException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchConformancePackException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have specified a delivery channel that does not exist. type NoSuchDeliveryChannelException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -854,7 +1073,12 @@ func (e *NoSuchDeliveryChannelException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchDeliveryChannelException) ErrorCode() string { return "NoSuchDeliveryChannelException" } +func (e *NoSuchDeliveryChannelException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchDeliveryChannelException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchDeliveryChannelException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Config rule in the request is invalid. Verify that the rule is an @@ -863,6 +1087,8 @@ func (e *NoSuchDeliveryChannelException) ErrorFault() smithy.ErrorFault { return type NoSuchOrganizationConfigRuleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -876,7 +1102,10 @@ func (e *NoSuchOrganizationConfigRuleException) ErrorMessage() string { return *e.Message } func (e *NoSuchOrganizationConfigRuleException) ErrorCode() string { - return "NoSuchOrganizationConfigRuleException" + if e.ErrorCodeOverride == nil { + return "NoSuchOrganizationConfigRuleException" + } + return *e.ErrorCodeOverride } func (e *NoSuchOrganizationConfigRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -888,6 +1117,8 @@ func (e *NoSuchOrganizationConfigRuleException) ErrorFault() smithy.ErrorFault { type NoSuchOrganizationConformancePackException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -901,7 +1132,10 @@ func (e *NoSuchOrganizationConformancePackException) ErrorMessage() string { return *e.Message } func (e *NoSuchOrganizationConformancePackException) ErrorCode() string { - return "NoSuchOrganizationConformancePackException" + if e.ErrorCodeOverride == nil { + return "NoSuchOrganizationConformancePackException" + } + return *e.ErrorCodeOverride } func (e *NoSuchOrganizationConformancePackException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -911,6 +1145,8 @@ func (e *NoSuchOrganizationConformancePackException) ErrorFault() smithy.ErrorFa type NoSuchRemediationConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -924,7 +1160,10 @@ func (e *NoSuchRemediationConfigurationException) ErrorMessage() string { return *e.Message } func (e *NoSuchRemediationConfigurationException) ErrorCode() string { - return "NoSuchRemediationConfigurationException" + if e.ErrorCodeOverride == nil { + return "NoSuchRemediationConfigurationException" + } + return *e.ErrorCodeOverride } func (e *NoSuchRemediationConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -934,6 +1173,8 @@ func (e *NoSuchRemediationConfigurationException) ErrorFault() smithy.ErrorFault type NoSuchRemediationExceptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -947,7 +1188,10 @@ func (e *NoSuchRemediationExceptionException) ErrorMessage() string { return *e.Message } func (e *NoSuchRemediationExceptionException) ErrorCode() string { - return "NoSuchRemediationExceptionException" + if e.ErrorCodeOverride == nil { + return "NoSuchRemediationExceptionException" + } + return *e.ErrorCodeOverride } func (e *NoSuchRemediationExceptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -957,6 +1201,8 @@ func (e *NoSuchRemediationExceptionException) ErrorFault() smithy.ErrorFault { type NoSuchRetentionConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -970,7 +1216,10 @@ func (e *NoSuchRetentionConfigurationException) ErrorMessage() string { return *e.Message } func (e *NoSuchRetentionConfigurationException) ErrorCode() string { - return "NoSuchRetentionConfigurationException" + if e.ErrorCodeOverride == nil { + return "NoSuchRetentionConfigurationException" + } + return *e.ErrorCodeOverride } func (e *NoSuchRetentionConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1005,6 +1254,8 @@ func (e *NoSuchRetentionConfigurationException) ErrorFault() smithy.ErrorFault { type OrganizationAccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1018,7 +1269,10 @@ func (e *OrganizationAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *OrganizationAccessDeniedException) ErrorCode() string { - return "OrganizationAccessDeniedException" + if e.ErrorCodeOverride == nil { + return "OrganizationAccessDeniedException" + } + return *e.ErrorCodeOverride } func (e *OrganizationAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1027,6 +1281,8 @@ func (e *OrganizationAccessDeniedException) ErrorFault() smithy.ErrorFault { ret type OrganizationAllFeaturesNotEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1040,7 +1296,10 @@ func (e *OrganizationAllFeaturesNotEnabledException) ErrorMessage() string { return *e.Message } func (e *OrganizationAllFeaturesNotEnabledException) ErrorCode() string { - return "OrganizationAllFeaturesNotEnabledException" + if e.ErrorCodeOverride == nil { + return "OrganizationAllFeaturesNotEnabledException" + } + return *e.ErrorCodeOverride } func (e *OrganizationAllFeaturesNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1050,6 +1309,8 @@ func (e *OrganizationAllFeaturesNotEnabledException) ErrorFault() smithy.ErrorFa type OrganizationConformancePackTemplateValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1063,7 +1324,10 @@ func (e *OrganizationConformancePackTemplateValidationException) ErrorMessage() return *e.Message } func (e *OrganizationConformancePackTemplateValidationException) ErrorCode() string { - return "OrganizationConformancePackTemplateValidationException" + if e.ErrorCodeOverride == nil { + return "OrganizationConformancePackTemplateValidationException" + } + return *e.ErrorCodeOverride } func (e *OrganizationConformancePackTemplateValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1073,6 +1337,8 @@ func (e *OrganizationConformancePackTemplateValidationException) ErrorFault() sm type OversizedConfigurationItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1086,7 +1352,10 @@ func (e *OversizedConfigurationItemException) ErrorMessage() string { return *e.Message } func (e *OversizedConfigurationItemException) ErrorCode() string { - return "OversizedConfigurationItemException" + if e.ErrorCodeOverride == nil { + return "OversizedConfigurationItemException" + } + return *e.ErrorCodeOverride } func (e *OversizedConfigurationItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1097,6 +1366,8 @@ func (e *OversizedConfigurationItemException) ErrorFault() smithy.ErrorFault { type RemediationInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1109,7 +1380,12 @@ func (e *RemediationInProgressException) ErrorMessage() string { } return *e.Message } -func (e *RemediationInProgressException) ErrorCode() string { return "RemediationInProgressException" } +func (e *RemediationInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RemediationInProgressException" + } + return *e.ErrorCodeOverride +} func (e *RemediationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two users are trying to modify the same query at the same time. Wait for a @@ -1117,6 +1393,8 @@ func (e *RemediationInProgressException) ErrorFault() smithy.ErrorFault { return type ResourceConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1130,7 +1408,10 @@ func (e *ResourceConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ResourceConcurrentModificationException) ErrorCode() string { - return "ResourceConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ResourceConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ResourceConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1166,6 +1447,8 @@ func (e *ResourceConcurrentModificationException) ErrorFault() smithy.ErrorFault type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1178,13 +1461,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have specified a resource that is either unknown or has not been discovered. type ResourceNotDiscoveredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1197,13 +1487,20 @@ func (e *ResourceNotDiscoveredException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotDiscoveredException) ErrorCode() string { return "ResourceNotDiscoveredException" } +func (e *ResourceNotDiscoveredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotDiscoveredException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotDiscoveredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have specified a resource that does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1216,7 +1513,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the limit of the number of tags you can use. For more @@ -1226,6 +1528,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1238,7 +1542,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested action is invalid. For PutStoredQuery, you will see this exception @@ -1249,6 +1558,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1261,5 +1572,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connect/types/errors.go b/service/connect/types/errors.go index e90b835d860..f3ae909b9b1 100644 --- a/service/connect/types/errors.go +++ b/service/connect/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The flow has not been published. type ContactFlowNotPublishedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *ContactFlowNotPublishedException) ErrorMessage() string { return *e.Message } func (e *ContactFlowNotPublishedException) ErrorCode() string { - return "ContactFlowNotPublishedException" + if e.ErrorCodeOverride == nil { + return "ContactFlowNotPublishedException" + } + return *e.ErrorCodeOverride } func (e *ContactFlowNotPublishedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -52,6 +64,8 @@ func (e *ContactFlowNotPublishedException) ErrorFault() smithy.ErrorFault { retu type ContactNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +78,20 @@ func (e *ContactNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ContactNotFoundException) ErrorCode() string { return "ContactNotFoundException" } +func (e *ContactNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ContactNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ContactNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Outbound calls to the destination number are not allowed. type DestinationNotAllowedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +104,20 @@ func (e *DestinationNotAllowedException) ErrorMessage() string { } return *e.Message } -func (e *DestinationNotAllowedException) ErrorCode() string { return "DestinationNotAllowedException" } +func (e *DestinationNotAllowedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DestinationNotAllowedException" + } + return *e.ErrorCodeOverride +} func (e *DestinationNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified name already exists. type DuplicateResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +130,20 @@ func (e *DuplicateResourceException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateResourceException) ErrorCode() string { return "DuplicateResourceException" } +func (e *DuplicateResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateResourceException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity with the same name already exists. type IdempotencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +156,20 @@ func (e *IdempotencyException) ErrorMessage() string { } return *e.Message } -func (e *IdempotencyException) ErrorCode() string { return "IdempotencyException" } +func (e *IdempotencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IdempotencyException" + } + return *e.ErrorCodeOverride +} func (e *IdempotencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request processing failed because of an error or failure with the service. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,13 +182,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The flow is not valid. type InvalidContactFlowException struct { Message *string + ErrorCodeOverride *string + Problems []ProblemDetail noSmithyDocumentSerde @@ -161,13 +210,20 @@ func (e *InvalidContactFlowException) ErrorMessage() string { } return *e.Message } -func (e *InvalidContactFlowException) ErrorCode() string { return "InvalidContactFlowException" } +func (e *InvalidContactFlowException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidContactFlowException" + } + return *e.ErrorCodeOverride +} func (e *InvalidContactFlowException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The problems with the module. Please fix before trying again. type InvalidContactFlowModuleException struct { Message *string + ErrorCodeOverride *string + Problems []ProblemDetail noSmithyDocumentSerde @@ -183,7 +239,10 @@ func (e *InvalidContactFlowModuleException) ErrorMessage() string { return *e.Message } func (e *InvalidContactFlowModuleException) ErrorCode() string { - return "InvalidContactFlowModuleException" + if e.ErrorCodeOverride == nil { + return "InvalidContactFlowModuleException" + } + return *e.ErrorCodeOverride } func (e *InvalidContactFlowModuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -191,6 +250,8 @@ func (e *InvalidContactFlowModuleException) ErrorFault() smithy.ErrorFault { ret type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -203,13 +264,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -222,13 +290,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The allowed limit for the resource has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -241,13 +316,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The contact is not permitted. type OutboundContactNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -261,7 +343,10 @@ func (e *OutboundContactNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OutboundContactNotPermittedException) ErrorCode() string { - return "OutboundContactNotPermittedException" + if e.ErrorCodeOverride == nil { + return "OutboundContactNotPermittedException" + } + return *e.ErrorCodeOverride } func (e *OutboundContactNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -271,6 +356,8 @@ func (e *OutboundContactNotPermittedException) ErrorFault() smithy.ErrorFault { type PropertyValidationException struct { Message *string + ErrorCodeOverride *string + PropertyList []PropertyValidationExceptionProperty noSmithyDocumentSerde @@ -285,13 +372,20 @@ func (e *PropertyValidationException) ErrorMessage() string { } return *e.Message } -func (e *PropertyValidationException) ErrorCode() string { return "PropertyValidationException" } +func (e *PropertyValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PropertyValidationException" + } + return *e.ErrorCodeOverride +} func (e *PropertyValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource already has that name. type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -304,13 +398,20 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // That resource is already in use. Please try another. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + ResourceType ResourceType ResourceId *string @@ -326,13 +427,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -345,13 +453,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is not ready. type ResourceNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -364,13 +479,20 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -383,13 +505,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling limit has been exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -402,13 +531,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No user with the specified credentials was found in the Amazon Connect instance. type UserNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -421,5 +557,10 @@ func (e *UserNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *UserNotFoundException) ErrorCode() string { return "UserNotFoundException" } +func (e *UserNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *UserNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connectcampaigns/types/errors.go b/service/connectcampaigns/types/errors.go index ea10aa3aa0b..8efe5da0a77 100644 --- a/service/connectcampaigns/types/errors.go +++ b/service/connectcampaigns/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -33,6 +40,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -47,13 +56,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request processing failed because of an error or failure with the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -68,7 +84,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request could not be processed because of conflict in the current state of @@ -76,6 +97,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidCampaignStateException struct { Message *string + ErrorCodeOverride *string + State CampaignState XAmzErrorType *string @@ -91,13 +114,20 @@ func (e *InvalidCampaignStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCampaignStateException) ErrorCode() string { return "InvalidCampaignStateException" } +func (e *InvalidCampaignStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCampaignStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCampaignStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state. type InvalidStateException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -112,13 +142,20 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -133,13 +170,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -154,13 +198,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -175,13 +226,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + XAmzErrorType *string noSmithyDocumentSerde @@ -196,5 +254,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connectcases/types/errors.go b/service/connectcases/types/errors.go index 60dd4568fd0..c7fba45ee72 100644 --- a/service/connectcases/types/errors.go +++ b/service/connectcases/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation would cause a conflict with the current state of a @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We couldn't process your request because of an issue with the server. Try again @@ -52,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -66,7 +82,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // We couldn't find the requested resource. Check that your resources exists and @@ -75,6 +96,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -90,7 +113,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota has been exceeded. For a list of service quotas, see Amazon @@ -100,6 +128,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -112,13 +142,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate has been exceeded for this API. Please try again after a few minutes. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -131,13 +168,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request isn't valid. Check the syntax and try again. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,5 +194,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connectcontactlens/types/errors.go b/service/connectcontactlens/types/errors.go index c313d3a021b..29f95d7151c 100644 --- a/service/connectcontactlens/types/errors.go +++ b/service/connectcontactlens/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request processing failed due to an error or failure with the service. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling limit has been exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,5 +129,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connectparticipant/types/errors.go b/service/connectparticipant/types/errors.go index 1593e41d9d1..8443760ab27 100644 --- a/service/connectparticipant/types/errors.go +++ b/service/connectparticipant/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An attachment with that identifier is already being uploaded. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs when there is an internal failure in the Amazon Connect @@ -50,6 +64,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The number of attachments per contact exceeds the quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by Amazon Connect. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,5 +156,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/controltower/types/errors.go b/service/controltower/types/errors.go index a77b6260b60..f229bf87e3d 100644 --- a/service/controltower/types/errors.go +++ b/service/controltower/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error during processing of request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource which does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. The limit is 10 concurrent @@ -88,6 +116,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *int32 @@ -123,13 +160,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,5 +186,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/costandusagereportservice/types/errors.go b/service/costandusagereportservice/types/errors.go index f092b183ad8..53828c54fdc 100644 --- a/service/costandusagereportservice/types/errors.go +++ b/service/costandusagereportservice/types/errors.go @@ -12,6 +12,8 @@ import ( type DuplicateReportNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *DuplicateReportNameException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateReportNameException) ErrorCode() string { return "DuplicateReportNameException" } +func (e *DuplicateReportNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateReportNameException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateReportNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error on the server occurred during the processing of your request. Try again @@ -32,6 +39,8 @@ func (e *DuplicateReportNameException) ErrorFault() smithy.ErrorFault { return s type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This account already has five reports defined. To define a new report, you must @@ -52,6 +66,8 @@ func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy. type ReportLimitReachedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *ReportLimitReachedException) ErrorMessage() string { } return *e.Message } -func (e *ReportLimitReachedException) ErrorCode() string { return "ReportLimitReachedException" } +func (e *ReportLimitReachedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReportLimitReachedException" + } + return *e.ErrorCodeOverride +} func (e *ReportLimitReachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,5 +106,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/costexplorer/types/errors.go b/service/costexplorer/types/errors.go index a39ac9b6bd6..86f96d86dd3 100644 --- a/service/costexplorer/types/errors.go +++ b/service/costexplorer/types/errors.go @@ -11,6 +11,8 @@ import ( type BillExpirationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *BillExpirationException) ErrorMessage() string { } return *e.Message } -func (e *BillExpirationException) ErrorCode() string { return "BillExpirationException" } +func (e *BillExpirationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BillExpirationException" + } + return *e.ErrorCodeOverride +} func (e *BillExpirationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested data is unavailable. type DataUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *DataUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *DataUnavailableException) ErrorCode() string { return "DataUnavailableException" } +func (e *DataUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DataUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *DataUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A request to generate a recommendation is already in progress. type GenerationExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *GenerationExistsException) ErrorMessage() string { } return *e.Message } -func (e *GenerationExistsException) ErrorCode() string { return "GenerationExistsException" } +func (e *GenerationExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GenerationExistsException" + } + return *e.ErrorCodeOverride +} func (e *GenerationExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pagination token is invalid. Try again without a pagination token. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You made too many calls in a short period of time. Try again later. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,7 +129,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request parameters changed between pages. Try again with the old parameters @@ -107,6 +142,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type RequestChangedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,13 +156,20 @@ func (e *RequestChangedException) ErrorMessage() string { } return *e.Message } -func (e *RequestChangedException) ErrorCode() string { return "RequestChangedException" } +func (e *RequestChangedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestChangedException" + } + return *e.ErrorCodeOverride +} func (e *RequestChangedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ARN in the request doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -140,7 +184,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of resources you can create, or exceeded @@ -148,6 +197,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -160,7 +211,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Can occur if you specify a number of tags for a resource greater than the @@ -168,6 +224,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -182,13 +240,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cost anomaly monitor does not exist for the account. type UnknownMonitorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -201,13 +266,20 @@ func (e *UnknownMonitorException) ErrorMessage() string { } return *e.Message } -func (e *UnknownMonitorException) ErrorCode() string { return "UnknownMonitorException" } +func (e *UnknownMonitorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnknownMonitorException" + } + return *e.ErrorCodeOverride +} func (e *UnknownMonitorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cost anomaly subscription does not exist for the account. type UnknownSubscriptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -220,7 +292,12 @@ func (e *UnknownSubscriptionException) ErrorMessage() string { } return *e.Message } -func (e *UnknownSubscriptionException) ErrorCode() string { return "UnknownSubscriptionException" } +func (e *UnknownSubscriptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnknownSubscriptionException" + } + return *e.ErrorCodeOverride +} func (e *UnknownSubscriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cost Explorer was unable to identify the usage unit. Provide @@ -229,6 +306,8 @@ func (e *UnknownSubscriptionException) ErrorFault() smithy.ErrorFault { return s type UnresolvableUsageUnitException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -241,5 +320,10 @@ func (e *UnresolvableUsageUnitException) ErrorMessage() string { } return *e.Message } -func (e *UnresolvableUsageUnitException) ErrorCode() string { return "UnresolvableUsageUnitException" } +func (e *UnresolvableUsageUnitException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnresolvableUsageUnitException" + } + return *e.ErrorCodeOverride +} func (e *UnresolvableUsageUnitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/customerprofiles/types/errors.go b/service/customerprofiles/types/errors.go index 5e5c8e3b2f5..9b3dbf12463 100644 --- a/service/customerprofiles/types/errors.go +++ b/service/customerprofiles/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist, or access was denied. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded the maximum number of requests. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,5 +129,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/databasemigrationservice/types/errors.go b/service/databasemigrationservice/types/errors.go index 910f5cc9861..e87091f7ff3 100644 --- a/service/databasemigrationservice/types/errors.go +++ b/service/databasemigrationservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccessDeniedFault) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedFault) ErrorCode() string { return "AccessDeniedFault" } +func (e *AccessDeniedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedFault" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified collector doesn't exist. type CollectorNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *CollectorNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CollectorNotFoundFault) ErrorCode() string { return "CollectorNotFoundFault" } +func (e *CollectorNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CollectorNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *CollectorNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are not enough resources allocated to the database migration. type InsufficientResourceCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *InsufficientResourceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientResourceCapacityFault) ErrorCode() string { - return "InsufficientResourceCapacityFault" + if e.ErrorCodeOverride == nil { + return "InsufficientResourceCapacityFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientResourceCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -71,6 +90,8 @@ func (e *InsufficientResourceCapacityFault) ErrorFault() smithy.ErrorFault { ret type InvalidCertificateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +104,20 @@ func (e *InvalidCertificateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidCertificateFault) ErrorCode() string { return "InvalidCertificateFault" } +func (e *InvalidCertificateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCertificateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidCertificateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action or operation requested isn't valid. type InvalidOperationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +130,12 @@ func (e *InvalidOperationFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationFault) ErrorCode() string { return "InvalidOperationFault" } +func (e *InvalidOperationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is in a state that prevents it from being used for database @@ -110,6 +143,8 @@ func (e *InvalidOperationFault) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidResourceStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,13 +157,20 @@ func (e *InvalidResourceStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceStateFault) ErrorCode() string { return "InvalidResourceStateFault" } +func (e *InvalidResourceStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet provided is invalid. type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,7 +183,12 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ciphertext references a key that doesn't exist or that the DMS account @@ -149,6 +196,8 @@ func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type KMSAccessDeniedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -161,13 +210,20 @@ func (e *KMSAccessDeniedFault) ErrorMessage() string { } return *e.Message } -func (e *KMSAccessDeniedFault) ErrorCode() string { return "KMSAccessDeniedFault" } +func (e *KMSAccessDeniedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSAccessDeniedFault" + } + return *e.ErrorCodeOverride +} func (e *KMSAccessDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified KMS key isn't enabled. type KMSDisabledFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -180,13 +236,20 @@ func (e *KMSDisabledFault) ErrorMessage() string { } return *e.Message } -func (e *KMSDisabledFault) ErrorCode() string { return "KMSDisabledFault" } +func (e *KMSDisabledFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSDisabledFault" + } + return *e.ErrorCodeOverride +} func (e *KMSDisabledFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Key Management Service (KMS) error is preventing access to KMS. type KMSFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -199,13 +262,20 @@ func (e *KMSFault) ErrorMessage() string { } return *e.Message } -func (e *KMSFault) ErrorCode() string { return "KMSFault" } +func (e *KMSFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSFault" + } + return *e.ErrorCodeOverride +} func (e *KMSFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the specified KMS resource isn't valid for this request. type KMSInvalidStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -218,13 +288,20 @@ func (e *KMSInvalidStateFault) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidStateFault) ErrorCode() string { return "KMSInvalidStateFault" } +func (e *KMSInvalidStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidStateFault" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DMS cannot access the KMS key. type KMSKeyNotAccessibleFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -237,13 +314,20 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { } return *e.Message } -func (e *KMSKeyNotAccessibleFault) ErrorCode() string { return "KMSKeyNotAccessibleFault" } +func (e *KMSKeyNotAccessibleFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.ErrorCodeOverride +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified KMS entity or resource can't be found. type KMSNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -256,13 +340,20 @@ func (e *KMSNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *KMSNotFoundFault) ErrorCode() string { return "KMSNotFoundFault" } +func (e *KMSNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *KMSNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request triggered KMS request throttling. type KMSThrottlingFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -275,7 +366,12 @@ func (e *KMSThrottlingFault) ErrorMessage() string { } return *e.Message } -func (e *KMSThrottlingFault) ErrorCode() string { return "KMSThrottlingFault" } +func (e *KMSThrottlingFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSThrottlingFault" + } + return *e.ErrorCodeOverride +} func (e *KMSThrottlingFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The replication subnet group does not cover enough Availability Zones (AZs). @@ -283,6 +379,8 @@ func (e *KMSThrottlingFault) ErrorFault() smithy.ErrorFault { return smithy.Faul type ReplicationSubnetGroupDoesNotCoverEnoughAZs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -296,7 +394,10 @@ func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "ReplicationSubnetGroupDoesNotCoverEnoughAZs" + if e.ErrorCodeOverride == nil { + return "ReplicationSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.ErrorCodeOverride } func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -306,6 +407,8 @@ func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorF type ResourceAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + ResourceArn *string noSmithyDocumentSerde @@ -320,13 +423,20 @@ func (e *ResourceAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsFault) ErrorCode() string { return "ResourceAlreadyExistsFault" } +func (e *ResourceAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -339,13 +449,20 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundFault) ErrorCode() string { return "ResourceNotFoundFault" } +func (e *ResourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for this resource quota has been exceeded. type ResourceQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -358,13 +475,20 @@ func (e *ResourceQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceQuotaExceededFault) ErrorCode() string { return "ResourceQuotaExceededFault" } +func (e *ResourceQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *ResourceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Insufficient privileges are preventing access to an Amazon S3 object. type S3AccessDeniedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -377,13 +501,20 @@ func (e *S3AccessDeniedFault) ErrorMessage() string { } return *e.Message } -func (e *S3AccessDeniedFault) ErrorCode() string { return "S3AccessDeniedFault" } +func (e *S3AccessDeniedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "S3AccessDeniedFault" + } + return *e.ErrorCodeOverride +} func (e *S3AccessDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified Amazon S3 bucket, bucket folder, or other object can't be found. type S3ResourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -396,13 +527,20 @@ func (e *S3ResourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *S3ResourceNotFoundFault) ErrorCode() string { return "S3ResourceNotFoundFault" } +func (e *S3ResourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "S3ResourceNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *S3ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic is invalid. type SNSInvalidTopicFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -415,13 +553,20 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { } return *e.Message } -func (e *SNSInvalidTopicFault) ErrorCode() string { return "SNSInvalidTopicFault" } +func (e *SNSInvalidTopicFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSInvalidTopicFault" + } + return *e.ErrorCodeOverride +} func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized for the SNS subscription. type SNSNoAuthorizationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -434,13 +579,20 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { } return *e.Message } -func (e *SNSNoAuthorizationFault) ErrorCode() string { return "SNSNoAuthorizationFault" } +func (e *SNSNoAuthorizationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSNoAuthorizationFault" + } + return *e.ErrorCodeOverride +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The storage quota has been exceeded. type StorageQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -453,13 +605,20 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *StorageQuotaExceededFault) ErrorCode() string { return "StorageQuotaExceededFault" } +func (e *StorageQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *StorageQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet is already in use. type SubnetAlreadyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -472,13 +631,20 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetAlreadyInUse) ErrorCode() string { return "SubnetAlreadyInUse" } +func (e *SubnetAlreadyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetAlreadyInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An upgrade dependency is preventing the database migration. type UpgradeDependencyFailureFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -491,5 +657,10 @@ func (e *UpgradeDependencyFailureFault) ErrorMessage() string { } return *e.Message } -func (e *UpgradeDependencyFailureFault) ErrorCode() string { return "UpgradeDependencyFailureFault" } +func (e *UpgradeDependencyFailureFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UpgradeDependencyFailureFault" + } + return *e.ErrorCodeOverride +} func (e *UpgradeDependencyFailureFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/databrew/types/errors.go b/service/databrew/types/errors.go index 8688f03ab5d..1eea8830144 100644 --- a/service/databrew/types/errors.go +++ b/service/databrew/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service failure occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service quota is exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input parameters for this request failed validation. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,5 +155,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/dataexchange/types/errors.go b/service/dataexchange/types/errors.go index 4baea69936d..7fd9793aa60 100644 --- a/service/dataexchange/types/errors.go +++ b/service/dataexchange/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be completed because it conflicted with the current state @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception occurred with the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +81,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource couldn't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -87,13 +110,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has exceeded the quotas imposed by the service. type ServiceLimitExceededException struct { Message *string + ErrorCodeOverride *string + LimitName LimitName LimitValue float64 @@ -109,13 +139,20 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceLimitExceededException) ErrorCode() string { return "ServiceLimitExceededException" } +func (e *ServiceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit on the number of requests per second was exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,13 +165,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was invalid. type ValidationException struct { Message *string + ErrorCodeOverride *string + ExceptionCause ExceptionCause noSmithyDocumentSerde @@ -149,5 +193,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/datapipeline/types/errors.go b/service/datapipeline/types/errors.go index beb5e4e8d75..ab16b2f9dba 100644 --- a/service/datapipeline/types/errors.go +++ b/service/datapipeline/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServiceError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *InternalServiceError) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceError) ErrorCode() string { return "InternalServiceError" } +func (e *InternalServiceError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceError" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was not valid. Verify that your request was properly formatted, that @@ -32,6 +39,8 @@ func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.Fa type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified pipeline has been deleted. type PipelineDeletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *PipelineDeletedException) ErrorMessage() string { } return *e.Message } -func (e *PipelineDeletedException) ErrorCode() string { return "PipelineDeletedException" } +func (e *PipelineDeletedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PipelineDeletedException" + } + return *e.ErrorCodeOverride +} func (e *PipelineDeletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified pipeline was not found. Verify that you used the correct user and @@ -71,6 +92,8 @@ func (e *PipelineDeletedException) ErrorFault() smithy.ErrorFault { return smith type PipelineNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *PipelineNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *PipelineNotFoundException) ErrorCode() string { return "PipelineNotFoundException" } +func (e *PipelineNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PipelineNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *PipelineNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified task was not found. type TaskNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,5 +132,10 @@ func (e *TaskNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TaskNotFoundException) ErrorCode() string { return "TaskNotFoundException" } +func (e *TaskNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TaskNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TaskNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/datasync/types/errors.go b/service/datasync/types/errors.go index 6f6415044f9..164f649c63e 100644 --- a/service/datasync/types/errors.go +++ b/service/datasync/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This exception is thrown when the client submits a malformed request. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string DatasyncErrorCode *string @@ -47,5 +56,10 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/dax/types/errors.go b/service/dax/types/errors.go index a437ae12dd0..45cb130615a 100644 --- a/service/dax/types/errors.go +++ b/service/dax/types/errors.go @@ -11,6 +11,8 @@ import ( type ClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterAlreadyExistsFault) ErrorCode() string { return "ClusterAlreadyExistsFault" } +func (e *ClusterAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *ClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested cluster ID does not refer to an existing DAX cluster. type ClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *ClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterNotFoundFault) ErrorCode() string { return "ClusterNotFoundFault" } +func (e *ClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have attempted to exceed the maximum number of DAX clusters for your AWS @@ -50,6 +64,8 @@ func (e *ClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type ClusterQuotaForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - return "ClusterQuotaForCustomerExceededFault" + if e.ErrorCodeOverride == nil { + return "ClusterQuotaForCustomerExceededFault" + } + return *e.ErrorCodeOverride } func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -74,6 +93,8 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type InsufficientClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +108,10 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientClusterCapacityFault) ErrorCode() string { - return "InsufficientClusterCapacityFault" + if e.ErrorCodeOverride == nil { + return "InsufficientClusterCapacityFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -95,6 +119,8 @@ func (e *InsufficientClusterCapacityFault) ErrorFault() smithy.ErrorFault { retu type InvalidARNFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +133,20 @@ func (e *InvalidARNFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidARNFault) ErrorCode() string { return "InvalidARNFault" } +func (e *InvalidARNFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidARNFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidARNFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested DAX cluster is not in the available state. type InvalidClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +159,20 @@ func (e *InvalidClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidClusterStateFault) ErrorCode() string { return "InvalidClusterStateFault" } +func (e *InvalidClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two or more incompatible parameters were specified. type InvalidParameterCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +186,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidParameterCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -156,6 +199,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +214,10 @@ func (e *InvalidParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidParameterGroupStateFault) ErrorCode() string { - return "InvalidParameterGroupStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidParameterGroupStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -177,6 +225,8 @@ func (e *InvalidParameterGroupStateFault) ErrorFault() smithy.ErrorFault { retur type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -189,13 +239,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid subnet identifier was specified. type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -208,13 +265,20 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The VPC network is in an invalid state. type InvalidVPCNetworkStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -227,13 +291,20 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // None of the nodes in the cluster have the given node ID. type NodeNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -246,13 +317,20 @@ func (e *NodeNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *NodeNotFoundFault) ErrorCode() string { return "NodeNotFoundFault" } +func (e *NodeNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NodeNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *NodeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have attempted to exceed the maximum number of nodes for a DAX cluster. type NodeQuotaForClusterExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,7 +344,10 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { - return "NodeQuotaForClusterExceededFault" + if e.ErrorCodeOverride == nil { + return "NodeQuotaForClusterExceededFault" + } + return *e.ErrorCodeOverride } func (e *NodeQuotaForClusterExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -274,6 +355,8 @@ func (e *NodeQuotaForClusterExceededFault) ErrorFault() smithy.ErrorFault { retu type NodeQuotaForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -287,7 +370,10 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { - return "NodeQuotaForCustomerExceededFault" + if e.ErrorCodeOverride == nil { + return "NodeQuotaForCustomerExceededFault" + } + return *e.ErrorCodeOverride } func (e *NodeQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -295,6 +381,8 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { ret type ParameterGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -308,7 +396,10 @@ func (e *ParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupAlreadyExistsFault) ErrorCode() string { - return "ParameterGroupAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "ParameterGroupAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *ParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -316,6 +407,8 @@ func (e *ParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retu type ParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -328,13 +421,20 @@ func (e *ParameterGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ParameterGroupNotFoundFault) ErrorCode() string { return "ParameterGroupNotFoundFault" } +func (e *ParameterGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParameterGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have attempted to exceed the maximum number of parameter groups. type ParameterGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -348,7 +448,10 @@ func (e *ParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupQuotaExceededFault) ErrorCode() string { - return "ParameterGroupQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "ParameterGroupQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *ParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -356,6 +459,8 @@ func (e *ParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { retu type ServiceLinkedRoleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -368,7 +473,12 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { return "ServiceLinkedRoleNotFoundFault" } +func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLinkedRoleNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ServiceLinkedRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of x509 certificates that can be created for @@ -377,6 +487,8 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -389,13 +501,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet group already exists. type SubnetGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -408,13 +527,20 @@ func (e *SubnetGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { return "SubnetGroupAlreadyExistsFault" } +func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet group is currently in use. type SubnetGroupInUseFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -427,13 +553,20 @@ func (e *SubnetGroupInUseFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupInUseFault) ErrorCode() string { return "SubnetGroupInUseFault" } +func (e *SubnetGroupInUseFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupInUseFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupInUseFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet group name does not refer to an existing subnet group. type SubnetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -446,7 +579,12 @@ func (e *SubnetGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupNotFoundFault) ErrorCode() string { return "SubnetGroupNotFoundFault" } +func (e *SubnetGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the allowed number of @@ -454,6 +592,8 @@ func (e *SubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smith type SubnetGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -466,13 +606,20 @@ func (e *SubnetGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { return "SubnetGroupQuotaExceededFault" } +func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet is being used by another subnet group. type SubnetInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -485,7 +632,12 @@ func (e *SubnetInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetInUse) ErrorCode() string { return "SubnetInUse" } +func (e *SubnetInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the allowed number of @@ -493,6 +645,8 @@ func (e *SubnetInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type SubnetQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -505,13 +659,20 @@ func (e *SubnetQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetQuotaExceededFault) ErrorCode() string { return "SubnetQuotaExceededFault" } +func (e *SubnetQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag does not exist. type TagNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -524,13 +685,20 @@ func (e *TagNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *TagNotFoundFault) ErrorCode() string { return "TagNotFoundFault" } +func (e *TagNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *TagNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of tags for this DAX cluster. type TagQuotaPerResourceExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -543,5 +711,10 @@ func (e *TagQuotaPerResourceExceeded) ErrorMessage() string { } return *e.Message } -func (e *TagQuotaPerResourceExceeded) ErrorCode() string { return "TagQuotaPerResourceExceeded" } +func (e *TagQuotaPerResourceExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagQuotaPerResourceExceeded" + } + return *e.ErrorCodeOverride +} func (e *TagQuotaPerResourceExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/detective/types/errors.go b/service/detective/types/errors.go index 9df236ec523..b1db290352c 100644 --- a/service/detective/types/errors.go +++ b/service/detective/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ ErrorCode ErrorCodeReason *string SubErrorCode ErrorCode @@ -29,13 +31,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request attempted an invalid action. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -48,13 +57,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was valid but failed because of a problem with the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +83,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request refers to a nonexistent resource. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +109,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request cannot be completed for one of the following reasons. @@ -105,6 +133,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Resources []string noSmithyDocumentSerde @@ -119,7 +149,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be completed because too many other requests are occurring at @@ -127,6 +162,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -139,13 +176,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request parameters are invalid. type ValidationException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ ErrorCode ErrorCodeReason *string @@ -161,5 +205,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/devicefarm/types/errors.go b/service/devicefarm/types/errors.go index d1da6bab53e..f6fea694960 100644 --- a/service/devicefarm/types/errors.go +++ b/service/devicefarm/types/errors.go @@ -11,6 +11,8 @@ import ( type ArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ArgumentException) ErrorMessage() string { } return *e.Message } -func (e *ArgumentException) ErrorCode() string { return "ArgumentException" } +func (e *ArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ArgumentException" + } + return *e.ErrorCodeOverride +} func (e *ArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested object could not be deleted. type CannotDeleteException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *CannotDeleteException) ErrorMessage() string { } return *e.Message } -func (e *CannotDeleteException) ErrorCode() string { return "CannotDeleteException" } +func (e *CannotDeleteException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CannotDeleteException" + } + return *e.ErrorCodeOverride +} func (e *CannotDeleteException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity with the same name already exists. type IdempotencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *IdempotencyException) ErrorMessage() string { } return *e.Message } -func (e *IdempotencyException) ErrorCode() string { return "IdempotencyException" } +func (e *IdempotencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IdempotencyException" + } + return *e.ErrorCodeOverride +} func (e *IdempotencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal exception was raised in the service. Contact @@ -70,6 +91,8 @@ func (e *IdempotencyException) ErrorFault() smithy.ErrorFault { return smithy.Fa type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // There was an error with the update request, or you do not have sufficient @@ -90,6 +118,8 @@ func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smith type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit was exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,7 +158,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception gets thrown when a user is not eligible to perform the specified @@ -129,6 +171,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NotEligibleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,13 +185,20 @@ func (e *NotEligibleException) ErrorMessage() string { } return *e.Message } -func (e *NotEligibleException) ErrorCode() string { return "NotEligibleException" } +func (e *NotEligibleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotEligibleException" + } + return *e.ErrorCodeOverride +} func (e *NotEligibleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified entity was not found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -160,13 +211,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a problem with the service account. type ServiceAccountException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -179,13 +237,20 @@ func (e *ServiceAccountException) ErrorMessage() string { } return *e.Message } -func (e *ServiceAccountException) ErrorCode() string { return "ServiceAccountException" } +func (e *ServiceAccountException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceAccountException" + } + return *e.ErrorCodeOverride +} func (e *ServiceAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation was not successful. Try again. type TagOperationException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -200,7 +265,12 @@ func (e *TagOperationException) ErrorMessage() string { } return *e.Message } -func (e *TagOperationException) ErrorCode() string { return "TagOperationException" } +func (e *TagOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagOperationException" + } + return *e.ErrorCodeOverride +} func (e *TagOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request doesn't comply with the AWS Identity and Access Management (IAM) tag @@ -208,6 +278,8 @@ func (e *TagOperationException) ErrorFault() smithy.ErrorFault { return smithy.F type TagPolicyException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -222,7 +294,12 @@ func (e *TagPolicyException) ErrorMessage() string { } return *e.Message } -func (e *TagPolicyException) ErrorCode() string { return "TagPolicyException" } +func (e *TagPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagPolicyException" + } + return *e.ErrorCodeOverride +} func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The list of tags on the repository is over the limit. The maximum number of tags @@ -230,6 +307,8 @@ func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.Faul type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -244,5 +323,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/devopsguru/types/errors.go b/service/devopsguru/types/errors.go index 47fbb358a48..5ee5c6a22b1 100644 --- a/service/devopsguru/types/errors.go +++ b/service/devopsguru/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -27,13 +29,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception that is thrown when a conflict occurs. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -49,13 +58,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal failure in an Amazon service occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -70,13 +86,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A requested resource could not be found type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -92,13 +115,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains a value that exceeds a maximum quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -111,13 +141,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to a request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + QuotaCode *string ServiceCode *string RetryAfterSeconds int32 @@ -134,7 +171,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Contains information about data passed in to a field during a request that is @@ -142,6 +184,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -157,5 +201,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/directconnect/types/errors.go b/service/directconnect/types/errors.go index d516501f17d..30017fba982 100644 --- a/service/directconnect/types/errors.go +++ b/service/directconnect/types/errors.go @@ -11,6 +11,8 @@ import ( type DirectConnectClientException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *DirectConnectClientException) ErrorMessage() string { } return *e.Message } -func (e *DirectConnectClientException) ErrorCode() string { return "DirectConnectClientException" } +func (e *DirectConnectClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectConnectClientException" + } + return *e.ErrorCodeOverride +} func (e *DirectConnectClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A server-side error occurred. type DirectConnectServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *DirectConnectServerException) ErrorMessage() string { } return *e.Message } -func (e *DirectConnectServerException) ErrorCode() string { return "DirectConnectServerException" } +func (e *DirectConnectServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectConnectServerException" + } + return *e.ErrorCodeOverride +} func (e *DirectConnectServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A tag key was specified more than once. type DuplicateTagKeysException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *DuplicateTagKeysException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateTagKeysException) ErrorCode() string { return "DuplicateTagKeysException" } +func (e *DuplicateTagKeysException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateTagKeysException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the limit on the number of tags that can be assigned. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,5 +103,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/directoryservice/types/errors.go b/service/directoryservice/types/errors.go index 23f220a5fe2..82fab0e6a2b 100644 --- a/service/directoryservice/types/errors.go +++ b/service/directoryservice/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An authentication error occurred. type AuthenticationFailedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *AuthenticationFailedException) ErrorMessage() string { } return *e.Message } -func (e *AuthenticationFailedException) ErrorCode() string { return "AuthenticationFailedException" } +func (e *AuthenticationFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthenticationFailedException" + } + return *e.ErrorCodeOverride +} func (e *AuthenticationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate has already been registered into the system. type CertificateAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -68,7 +84,10 @@ func (e *CertificateAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *CertificateAlreadyExistsException) ErrorCode() string { - return "CertificateAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "CertificateAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *CertificateAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -77,6 +96,8 @@ func (e *CertificateAlreadyExistsException) ErrorFault() smithy.ErrorFault { ret type CertificateDoesNotExistException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -92,7 +113,10 @@ func (e *CertificateDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *CertificateDoesNotExistException) ErrorCode() string { - return "CertificateDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "CertificateDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *CertificateDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -101,6 +125,8 @@ func (e *CertificateDoesNotExistException) ErrorFault() smithy.ErrorFault { retu type CertificateInUseException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -115,7 +141,12 @@ func (e *CertificateInUseException) ErrorMessage() string { } return *e.Message } -func (e *CertificateInUseException) ErrorCode() string { return "CertificateInUseException" } +func (e *CertificateInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateInUseException" + } + return *e.ErrorCodeOverride +} func (e *CertificateInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate could not be added because the certificate limit has been @@ -123,6 +154,8 @@ func (e *CertificateInUseException) ErrorFault() smithy.ErrorFault { return smit type CertificateLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -138,7 +171,10 @@ func (e *CertificateLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CertificateLimitExceededException) ErrorCode() string { - return "CertificateLimitExceededException" + if e.ErrorCodeOverride == nil { + return "CertificateLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *CertificateLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -146,6 +182,8 @@ func (e *CertificateLimitExceededException) ErrorFault() smithy.ErrorFault { ret type ClientException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -160,7 +198,12 @@ func (e *ClientException) ErrorMessage() string { } return *e.Message } -func (e *ClientException) ErrorCode() string { return "ClientException" } +func (e *ClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientException" + } + return *e.ErrorCodeOverride +} func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Region you specified is the same Region where the Managed Microsoft AD @@ -168,6 +211,8 @@ func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type DirectoryAlreadyInRegionException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -183,7 +228,10 @@ func (e *DirectoryAlreadyInRegionException) ErrorMessage() string { return *e.Message } func (e *DirectoryAlreadyInRegionException) ErrorCode() string { - return "DirectoryAlreadyInRegionException" + if e.ErrorCodeOverride == nil { + return "DirectoryAlreadyInRegionException" + } + return *e.ErrorCodeOverride } func (e *DirectoryAlreadyInRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -192,6 +240,8 @@ func (e *DirectoryAlreadyInRegionException) ErrorFault() smithy.ErrorFault { ret type DirectoryAlreadySharedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -207,7 +257,10 @@ func (e *DirectoryAlreadySharedException) ErrorMessage() string { return *e.Message } func (e *DirectoryAlreadySharedException) ErrorCode() string { - return "DirectoryAlreadySharedException" + if e.ErrorCodeOverride == nil { + return "DirectoryAlreadySharedException" + } + return *e.ErrorCodeOverride } func (e *DirectoryAlreadySharedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -215,6 +268,8 @@ func (e *DirectoryAlreadySharedException) ErrorFault() smithy.ErrorFault { retur type DirectoryDoesNotExistException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -229,13 +284,20 @@ func (e *DirectoryDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryDoesNotExistException) ErrorCode() string { return "DirectoryDoesNotExistException" } +func (e *DirectoryDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The directory is already updated to desired update type settings. type DirectoryInDesiredStateException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -251,7 +313,10 @@ func (e *DirectoryInDesiredStateException) ErrorMessage() string { return *e.Message } func (e *DirectoryInDesiredStateException) ErrorCode() string { - return "DirectoryInDesiredStateException" + if e.ErrorCodeOverride == nil { + return "DirectoryInDesiredStateException" + } + return *e.ErrorCodeOverride } func (e *DirectoryInDesiredStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -261,6 +326,8 @@ func (e *DirectoryInDesiredStateException) ErrorFault() smithy.ErrorFault { retu type DirectoryLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -276,7 +343,10 @@ func (e *DirectoryLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DirectoryLimitExceededException) ErrorCode() string { - return "DirectoryLimitExceededException" + if e.ErrorCodeOverride == nil { + return "DirectoryLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *DirectoryLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -285,6 +355,8 @@ func (e *DirectoryLimitExceededException) ErrorFault() smithy.ErrorFault { retur type DirectoryNotSharedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -299,13 +371,20 @@ func (e *DirectoryNotSharedException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryNotSharedException) ErrorCode() string { return "DirectoryNotSharedException" } +func (e *DirectoryNotSharedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryNotSharedException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryNotSharedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified directory is unavailable or could not be found. type DirectoryUnavailableException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -320,7 +399,12 @@ func (e *DirectoryUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryUnavailableException) ErrorCode() string { return "DirectoryUnavailableException" } +func (e *DirectoryUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of domain controllers per directory was exceeded. The @@ -328,6 +412,8 @@ func (e *DirectoryUnavailableException) ErrorFault() smithy.ErrorFault { return type DomainControllerLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -343,7 +429,10 @@ func (e *DomainControllerLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DomainControllerLimitExceededException) ErrorCode() string { - return "DomainControllerLimitExceededException" + if e.ErrorCodeOverride == nil { + return "DomainControllerLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *DomainControllerLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -353,6 +442,8 @@ func (e *DomainControllerLimitExceededException) ErrorFault() smithy.ErrorFault type EntityAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -367,13 +458,20 @@ func (e *EntityAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *EntityAlreadyExistsException) ErrorCode() string { return "EntityAlreadyExistsException" } +func (e *EntityAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified entity could not be found. type EntityDoesNotExistException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -388,13 +486,20 @@ func (e *EntityDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *EntityDoesNotExistException) ErrorCode() string { return "EntityDoesNotExistException" } +func (e *EntityDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *EntityDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified directory setting is not compatible with other settings. type IncompatibleSettingsException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -409,13 +514,20 @@ func (e *IncompatibleSettingsException) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleSettingsException) ErrorCode() string { return "IncompatibleSettingsException" } +func (e *IncompatibleSettingsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleSettingsException" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleSettingsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account does not have sufficient permission to perform the operation. type InsufficientPermissionsException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -431,7 +543,10 @@ func (e *InsufficientPermissionsException) ErrorMessage() string { return *e.Message } func (e *InsufficientPermissionsException) ErrorCode() string { - return "InsufficientPermissionsException" + if e.ErrorCodeOverride == nil { + return "InsufficientPermissionsException" + } + return *e.ErrorCodeOverride } func (e *InsufficientPermissionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -439,6 +554,8 @@ func (e *InsufficientPermissionsException) ErrorFault() smithy.ErrorFault { retu type InvalidCertificateException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -453,13 +570,20 @@ func (e *InvalidCertificateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCertificateException) ErrorCode() string { return "InvalidCertificateException" } +func (e *InvalidCertificateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCertificateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Client authentication is already enabled. type InvalidClientAuthStatusException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -475,7 +599,10 @@ func (e *InvalidClientAuthStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidClientAuthStatusException) ErrorCode() string { - return "InvalidClientAuthStatusException" + if e.ErrorCodeOverride == nil { + return "InvalidClientAuthStatusException" + } + return *e.ErrorCodeOverride } func (e *InvalidClientAuthStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -484,6 +611,8 @@ func (e *InvalidClientAuthStatusException) ErrorFault() smithy.ErrorFault { retu type InvalidLDAPSStatusException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -498,13 +627,20 @@ func (e *InvalidLDAPSStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLDAPSStatusException) ErrorCode() string { return "InvalidLDAPSStatusException" } +func (e *InvalidLDAPSStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLDAPSStatusException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLDAPSStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The NextToken value is not valid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -519,13 +655,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters are not valid. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -540,7 +683,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The new password provided by the user does not meet the password complexity @@ -548,6 +696,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidPasswordException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -562,13 +712,20 @@ func (e *InvalidPasswordException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPasswordException) ErrorCode() string { return "InvalidPasswordException" } +func (e *InvalidPasswordException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPasswordException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified shared target is not valid. type InvalidTargetException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -583,7 +740,12 @@ func (e *InvalidTargetException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTargetException) ErrorCode() string { return "InvalidTargetException" } +func (e *InvalidTargetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTargetException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTargetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of IP addresses was exceeded. The default limit is @@ -591,6 +753,8 @@ func (e *InvalidTargetException) ErrorFault() smithy.ErrorFault { return smithy. type IpRouteLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -605,7 +769,12 @@ func (e *IpRouteLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *IpRouteLimitExceededException) ErrorCode() string { return "IpRouteLimitExceededException" } +func (e *IpRouteLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IpRouteLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *IpRouteLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Client authentication setup could not be completed because at least one valid @@ -613,6 +782,8 @@ func (e *IpRouteLimitExceededException) ErrorFault() smithy.ErrorFault { return type NoAvailableCertificateException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -628,7 +799,10 @@ func (e *NoAvailableCertificateException) ErrorMessage() string { return *e.Message } func (e *NoAvailableCertificateException) ErrorCode() string { - return "NoAvailableCertificateException" + if e.ErrorCodeOverride == nil { + return "NoAvailableCertificateException" + } + return *e.ErrorCodeOverride } func (e *NoAvailableCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -637,6 +811,8 @@ func (e *NoAvailableCertificateException) ErrorFault() smithy.ErrorFault { retur type OrganizationsException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -651,7 +827,12 @@ func (e *OrganizationsException) ErrorMessage() string { } return *e.Message } -func (e *OrganizationsException) ErrorCode() string { return "OrganizationsException" } +func (e *OrganizationsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OrganizationsException" + } + return *e.ErrorCodeOverride +} func (e *OrganizationsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the limit for maximum number of simultaneous Region @@ -659,6 +840,8 @@ func (e *OrganizationsException) ErrorFault() smithy.ErrorFault { return smithy. type RegionLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -673,13 +856,20 @@ func (e *RegionLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *RegionLimitExceededException) ErrorCode() string { return "RegionLimitExceededException" } +func (e *RegionLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RegionLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *RegionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception has occurred in Directory Service. type ServiceException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -694,7 +884,12 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceException" + } + return *e.ErrorCodeOverride +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The maximum number of Amazon Web Services accounts that you can share with this @@ -702,6 +897,8 @@ func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultS type ShareLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -716,7 +913,12 @@ func (e *ShareLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ShareLimitExceededException) ErrorCode() string { return "ShareLimitExceededException" } +func (e *ShareLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ShareLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ShareLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of manual snapshots for the directory has been reached. You @@ -725,6 +927,8 @@ func (e *ShareLimitExceededException) ErrorFault() smithy.ErrorFault { return sm type SnapshotLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -739,13 +943,20 @@ func (e *SnapshotLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *SnapshotLimitExceededException) ErrorCode() string { return "SnapshotLimitExceededException" } +func (e *SnapshotLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *SnapshotLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of tags was exceeded. type TagLimitExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -760,13 +971,20 @@ func (e *TagLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TagLimitExceededException) ErrorCode() string { return "TagLimitExceededException" } +func (e *TagLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not supported. type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -781,13 +999,20 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified directory setting is not supported. type UnsupportedSettingsException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -802,13 +1027,20 @@ func (e *UnsupportedSettingsException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedSettingsException) ErrorCode() string { return "UnsupportedSettingsException" } +func (e *UnsupportedSettingsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedSettingsException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedSettingsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user provided a username that does not exist in your directory. type UserDoesNotExistException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -823,5 +1055,10 @@ func (e *UserDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *UserDoesNotExistException) ErrorCode() string { return "UserDoesNotExistException" } +func (e *UserDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserDoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *UserDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/dlm/types/errors.go b/service/dlm/types/errors.go index ebdb37b8561..32254e05dfa 100644 --- a/service/dlm/types/errors.go +++ b/service/dlm/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Bad request. The request is missing required parameters or has invalid @@ -33,6 +40,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + Code *string RequiredParameters []string MutuallyExclusiveParameters []string @@ -49,13 +58,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because a limit was exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceType *string @@ -71,13 +87,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A requested resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceType *string ResourceIds []string @@ -94,5 +117,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/docdb/types/errors.go b/service/docdb/types/errors.go index c4c2dc1bbaf..0770eac3d9f 100644 --- a/service/docdb/types/errors.go +++ b/service/docdb/types/errors.go @@ -13,6 +13,8 @@ import ( type AuthorizationNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationNotFoundFault) ErrorCode() string { return "AuthorizationNotFound" } +func (e *AuthorizationNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationNotFound" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // CertificateIdentifier doesn't refer to an existing certificate. type CertificateNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *CertificateNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CertificateNotFoundFault) ErrorCode() string { return "CertificateNotFound" } +func (e *CertificateNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateNotFound" + } + return *e.ErrorCodeOverride +} func (e *CertificateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a cluster with the given identifier. type DBClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *DBClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterAlreadyExistsFault) ErrorCode() string { return "DBClusterAlreadyExistsFault" } +func (e *DBClusterAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBClusterIdentifier doesn't refer to an existing cluster. type DBClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *DBClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterNotFoundFault) ErrorCode() string { return "DBClusterNotFoundFault" } +func (e *DBClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBClusterParameterGroupName doesn't refer to an existing cluster parameter @@ -90,6 +118,8 @@ func (e *DBClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy. type DBClusterParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,7 +133,10 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - return "DBClusterParameterGroupNotFound" + if e.ErrorCodeOverride == nil { + return "DBClusterParameterGroupNotFound" + } + return *e.ErrorCodeOverride } func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -114,6 +147,8 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type DBClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +161,20 @@ func (e *DBClusterQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterQuotaExceededFault) ErrorCode() string { return "DBClusterQuotaExceededFault" } +func (e *DBClusterQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a cluster snapshot with the given identifier. type DBClusterSnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +188,10 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - return "DBClusterSnapshotAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "DBClusterSnapshotAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -156,6 +201,8 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterSnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -168,13 +215,20 @@ func (e *DBClusterSnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { return "DBClusterSnapshotNotFoundFault" } +func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterSnapshotNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a instance with the given identifier. type DBInstanceAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,13 +241,20 @@ func (e *DBInstanceAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { return "DBInstanceAlreadyExists" } +func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBInstanceIdentifier doesn't refer to an existing instance. type DBInstanceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,13 +267,20 @@ func (e *DBInstanceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceNotFoundFault) ErrorCode() string { return "DBInstanceNotFound" } +func (e *DBInstanceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter group with the same name already exists. type DBParameterGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -226,7 +294,10 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - return "DBParameterGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "DBParameterGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -236,6 +307,8 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -248,13 +321,20 @@ func (e *DBParameterGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBParameterGroupNotFoundFault) ErrorCode() string { return "DBParameterGroupNotFound" } +func (e *DBParameterGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBParameterGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request would cause you to exceed the allowed number of parameter groups. type DBParameterGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -268,7 +348,10 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - return "DBParameterGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "DBParameterGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -278,6 +361,8 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBSecurityGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -290,13 +375,20 @@ func (e *DBSecurityGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { return "DBSecurityGroupNotFound" } +func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSecurityGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier is already being used by an existing snapshot. type DBSnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -309,13 +401,20 @@ func (e *DBSnapshotAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { return "DBSnapshotAlreadyExists" } +func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSnapshotAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier doesn't refer to an existing snapshot. type DBSnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -328,13 +427,20 @@ func (e *DBSnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSnapshotNotFoundFault) ErrorCode() string { return "DBSnapshotNotFound" } +func (e *DBSnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSnapshotNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName is already being used by an existing subnet group. type DBSubnetGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -347,7 +453,12 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { return "DBSubnetGroupAlreadyExists" } +func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Subnets in the subnet group should cover at least two Availability Zones unless @@ -355,6 +466,8 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type DBSubnetGroupDoesNotCoverEnoughAZs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -368,7 +481,10 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "DBSubnetGroupDoesNotCoverEnoughAZs" + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.ErrorCodeOverride } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -378,6 +494,8 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { type DBSubnetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -390,13 +508,20 @@ func (e *DBSubnetGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { return "DBSubnetGroupNotFoundFault" } +func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause you to exceed the allowed number of subnet groups. type DBSubnetGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -409,7 +534,12 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { return "DBSubnetGroupQuotaExceeded" } +func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause you to exceed the allowed number of subnets in a subnet @@ -417,6 +547,8 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type DBSubnetQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -429,13 +561,20 @@ func (e *DBSubnetQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetQuotaExceededFault) ErrorCode() string { return "DBSubnetQuotaExceededFault" } +func (e *DBSubnetQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The upgrade failed because a resource that the depends on can't be modified. type DBUpgradeDependencyFailureFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -448,13 +587,20 @@ func (e *DBUpgradeDependencyFailureFault) ErrorMessage() string { } return *e.Message } -func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { return "DBUpgradeDependencyFailure" } +func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBUpgradeDependencyFailure" + } + return *e.ErrorCodeOverride +} func (e *DBUpgradeDependencyFailureFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of event subscriptions. type EventSubscriptionQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -468,7 +614,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -479,6 +628,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type GlobalClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -492,7 +643,10 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - return "GlobalClusterAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "GlobalClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -500,6 +654,8 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type GlobalClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -512,7 +668,12 @@ func (e *GlobalClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *GlobalClusterNotFoundFault) ErrorCode() string { return "GlobalClusterNotFoundFault" } +func (e *GlobalClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GlobalClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of global clusters for this account is already at the maximum @@ -520,6 +681,8 @@ func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type GlobalClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -533,7 +696,10 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - return "GlobalClusterQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "GlobalClusterQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -541,6 +707,8 @@ func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type InstanceQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -553,13 +721,20 @@ func (e *InstanceQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *InstanceQuotaExceededFault) ErrorCode() string { return "InstanceQuotaExceeded" } +func (e *InstanceQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *InstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster doesn't have enough capacity for the current operation. type InsufficientDBClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -573,7 +748,10 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - return "InsufficientDBClusterCapacityFault" + if e.ErrorCodeOverride == nil { + return "InsufficientDBClusterCapacityFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -583,6 +761,8 @@ func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientDBInstanceCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -596,7 +776,10 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - return "InsufficientDBInstanceCapacity" + if e.ErrorCodeOverride == nil { + return "InsufficientDBInstanceCapacity" + } + return *e.ErrorCodeOverride } func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -608,6 +791,8 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientStorageClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -621,7 +806,10 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - return "InsufficientStorageClusterCapacity" + if e.ErrorCodeOverride == nil { + return "InsufficientStorageClusterCapacity" + } + return *e.ErrorCodeOverride } func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -631,6 +819,8 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault type InvalidDBClusterSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -644,7 +834,10 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - return "InvalidDBClusterSnapshotStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterSnapshotStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -654,6 +847,8 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -666,13 +861,20 @@ func (e *InvalidDBClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBClusterStateFault) ErrorCode() string { return "InvalidDBClusterStateFault" } +func (e *InvalidDBClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance isn't in the available state. type InvalidDBInstanceStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -685,7 +887,12 @@ func (e *InvalidDBInstanceStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBInstanceStateFault) ErrorCode() string { return "InvalidDBInstanceState" } +func (e *InvalidDBInstanceStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBInstanceState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBInstanceStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter group is in use, or it is in a state that is not valid. If you are @@ -694,6 +901,8 @@ func (e *InvalidDBInstanceStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidDBParameterGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -706,13 +915,20 @@ func (e *InvalidDBParameterGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { return "InvalidDBParameterGroupState" } +func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBParameterGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the security group doesn't allow deletion. type InvalidDBSecurityGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -725,13 +941,20 @@ func (e *InvalidDBSecurityGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { return "InvalidDBSecurityGroupState" } +func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSecurityGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the snapshot doesn't allow deletion. type InvalidDBSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -744,13 +967,20 @@ func (e *InvalidDBSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSnapshotStateFault) ErrorCode() string { return "InvalidDBSnapshotState" } +func (e *InvalidDBSnapshotStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSnapshotState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet group can't be deleted because it's in use. type InvalidDBSubnetGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -763,13 +993,20 @@ func (e *InvalidDBSubnetGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { return "InvalidDBSubnetGroupStateFault" } +func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSubnetGroupStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet isn't in the available state. type InvalidDBSubnetStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -782,7 +1019,12 @@ func (e *InvalidDBSubnetStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetStateFault) ErrorCode() string { return "InvalidDBSubnetStateFault" } +func (e *InvalidDBSubnetStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSubnetStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Someone else might be modifying a subscription. Wait a few seconds, and try @@ -790,6 +1032,8 @@ func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smit type InvalidEventSubscriptionStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -803,7 +1047,10 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - return "InvalidEventSubscriptionState" + if e.ErrorCodeOverride == nil { + return "InvalidEventSubscriptionState" + } + return *e.ErrorCodeOverride } func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -813,6 +1060,8 @@ func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { type InvalidGlobalClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -825,7 +1074,12 @@ func (e *InvalidGlobalClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidGlobalClusterStateFault) ErrorCode() string { return "InvalidGlobalClusterStateFault" } +func (e *InvalidGlobalClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGlobalClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidGlobalClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot restore from a virtual private cloud (VPC) backup to a non-VPC DB @@ -833,6 +1087,8 @@ func (e *InvalidGlobalClusterStateFault) ErrorFault() smithy.ErrorFault { return type InvalidRestoreFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -845,7 +1101,12 @@ func (e *InvalidRestoreFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidRestoreFault) ErrorCode() string { return "InvalidRestoreFault" } +func (e *InvalidRestoreFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRestoreFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet is not valid, or multiple subnets were requested that are @@ -853,6 +1114,8 @@ func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -865,7 +1128,12 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet group doesn't cover all Availability Zones after it is created @@ -873,6 +1141,8 @@ func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type InvalidVPCNetworkStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -885,13 +1155,20 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred when accessing an KMS key. type KMSKeyNotAccessibleFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -904,13 +1181,20 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { } return *e.Message } -func (e *KMSKeyNotAccessibleFault) ErrorCode() string { return "KMSKeyNotAccessibleFault" } +func (e *KMSKeyNotAccessibleFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.ErrorCodeOverride +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource ID was not found. type ResourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -923,7 +1207,12 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundFault) ErrorCode() string { return "ResourceNotFoundFault" } +func (e *ResourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of accounts that you can share a manual DB @@ -931,6 +1220,8 @@ func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.F type SharedSnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -943,13 +1234,20 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { return "SharedSnapshotQuotaExceeded" } +func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SharedSnapshotQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *SharedSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause you to exceed the allowed number of snapshots. type SnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -962,13 +1260,20 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotQuotaExceededFault) ErrorCode() string { return "SnapshotQuotaExceeded" } +func (e *SnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *SnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon SNS has responded that there is a problem with the specified topic. type SNSInvalidTopicFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -981,7 +1286,12 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { } return *e.Message } -func (e *SNSInvalidTopicFault) ErrorCode() string { return "SNSInvalidTopic" } +func (e *SNSInvalidTopicFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSInvalidTopic" + } + return *e.ErrorCodeOverride +} func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You do not have permission to publish to the SNS topic Amazon Resource Name @@ -989,6 +1299,8 @@ func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type SNSNoAuthorizationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1001,13 +1313,20 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { } return *e.Message } -func (e *SNSNoAuthorizationFault) ErrorCode() string { return "SNSNoAuthorization" } +func (e *SNSNoAuthorizationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSNoAuthorization" + } + return *e.ErrorCodeOverride +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic Amazon Resource Name (ARN) does not exist. type SNSTopicArnNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1020,13 +1339,20 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SNSTopicArnNotFoundFault) ErrorCode() string { return "SNSTopicArnNotFound" } +func (e *SNSTopicArnNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSTopicArnNotFound" + } + return *e.ErrorCodeOverride +} func (e *SNSTopicArnNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested source could not be found. type SourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1039,7 +1365,12 @@ func (e *SourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SourceNotFoundFault) ErrorCode() string { return "SourceNotFound" } +func (e *SourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause you to exceed the allowed amount of storage available @@ -1047,6 +1378,8 @@ func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type StorageQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1059,13 +1392,20 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *StorageQuotaExceededFault) ErrorCode() string { return "StorageQuotaExceeded" } +func (e *StorageQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *StorageQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Storage of the specified StorageType can't be associated with the DB instance. type StorageTypeNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1078,13 +1418,20 @@ func (e *StorageTypeNotSupportedFault) ErrorMessage() string { } return *e.Message } -func (e *StorageTypeNotSupportedFault) ErrorCode() string { return "StorageTypeNotSupported" } +func (e *StorageTypeNotSupportedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageTypeNotSupported" + } + return *e.ErrorCodeOverride +} func (e *StorageTypeNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet is already in use in the Availability Zone. type SubnetAlreadyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1097,13 +1444,20 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetAlreadyInUse) ErrorCode() string { return "SubnetAlreadyInUse" } +func (e *SubnetAlreadyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetAlreadyInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided subscription name already exists. type SubscriptionAlreadyExistFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1116,13 +1470,20 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionAlreadyExistFault) ErrorCode() string { return "SubscriptionAlreadyExist" } +func (e *SubscriptionAlreadyExistFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionAlreadyExist" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided category does not exist. type SubscriptionCategoryNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1135,13 +1496,20 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { return "SubscriptionCategoryNotFound" } +func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionCategoryNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionCategoryNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subscription name does not exist. type SubscriptionNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1154,5 +1522,10 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionNotFoundFault) ErrorCode() string { return "SubscriptionNotFound" } +func (e *SubscriptionNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/docdbelastic/types/errors.go b/service/docdbelastic/types/errors.go index a5ed9747ba2..9169bde5eef 100644 --- a/service/docdbelastic/types/errors.go +++ b/service/docdbelastic/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an access conflict. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal server error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +81,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be located. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -87,13 +110,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota for the action was exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,7 +136,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // ThrottlingException will be thrown when request was denied due to request @@ -114,6 +149,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -128,13 +165,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A structure defining a validation exception. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -150,5 +194,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/drs/types/errors.go b/service/drs/types/errors.go index c930669cbd6..86c52aca870 100644 --- a/service/drs/types/errors.go +++ b/service/drs/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be completed due to a conflict with the current state of @@ -33,6 +40,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceId *string ResourceType *string @@ -49,7 +58,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -57,6 +71,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int64 noSmithyDocumentSerde @@ -71,13 +87,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource for this operation was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceId *string ResourceType *string @@ -94,13 +117,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be completed because its exceeded the service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceId *string ResourceType *string @@ -119,13 +149,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *string @@ -142,13 +179,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account performing the request has not been initialized. type UninitializedAccountException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -163,13 +207,20 @@ func (e *UninitializedAccountException) ErrorMessage() string { } return *e.Message } -func (e *UninitializedAccountException) ErrorCode() string { return "UninitializedAccountException" } +func (e *UninitializedAccountException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UninitializedAccountException" + } + return *e.ErrorCodeOverride +} func (e *UninitializedAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by the AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + Code *string Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -186,5 +237,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/dynamodb/types/errors.go b/service/dynamodb/types/errors.go index 62082c1819e..8678dca7884 100644 --- a/service/dynamodb/types/errors.go +++ b/service/dynamodb/types/errors.go @@ -12,6 +12,8 @@ import ( type BackupInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *BackupInUseException) ErrorMessage() string { } return *e.Message } -func (e *BackupInUseException) ErrorCode() string { return "BackupInUseException" } +func (e *BackupInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BackupInUseException" + } + return *e.ErrorCodeOverride +} func (e *BackupInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Backup not found for the given BackupARN. type BackupNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *BackupNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *BackupNotFoundException) ErrorCode() string { return "BackupNotFoundException" } +func (e *BackupNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BackupNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *BackupNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A condition specified in the operation could not be evaluated. type ConditionalCheckFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *ConditionalCheckFailedException) ErrorMessage() string { return *e.Message } func (e *ConditionalCheckFailedException) ErrorCode() string { - return "ConditionalCheckFailedException" + if e.ErrorCodeOverride == nil { + return "ConditionalCheckFailedException" + } + return *e.ErrorCodeOverride } func (e *ConditionalCheckFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -71,6 +90,8 @@ func (e *ConditionalCheckFailedException) ErrorFault() smithy.ErrorFault { retur type ContinuousBackupsUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +105,10 @@ func (e *ContinuousBackupsUnavailableException) ErrorMessage() string { return *e.Message } func (e *ContinuousBackupsUnavailableException) ErrorCode() string { - return "ContinuousBackupsUnavailableException" + if e.ErrorCodeOverride == nil { + return "ContinuousBackupsUnavailableException" + } + return *e.ErrorCodeOverride } func (e *ContinuousBackupsUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -95,6 +119,8 @@ func (e *ContinuousBackupsUnavailableException) ErrorFault() smithy.ErrorFault { type DuplicateItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +133,20 @@ func (e *DuplicateItemException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateItemException) ErrorCode() string { return "DuplicateItemException" } +func (e *DuplicateItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateItemException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict when writing to the specified S3 bucket. type ExportConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +159,20 @@ func (e *ExportConflictException) ErrorMessage() string { } return *e.Message } -func (e *ExportConflictException) ErrorCode() string { return "ExportConflictException" } +func (e *ExportConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExportConflictException" + } + return *e.ErrorCodeOverride +} func (e *ExportConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified export was not found. type ExportNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,13 +185,20 @@ func (e *ExportNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ExportNotFoundException) ErrorCode() string { return "ExportNotFoundException" } +func (e *ExportNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExportNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ExportNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified global table already exists. type GlobalTableAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,7 +212,10 @@ func (e *GlobalTableAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *GlobalTableAlreadyExistsException) ErrorCode() string { - return "GlobalTableAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "GlobalTableAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *GlobalTableAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -173,6 +223,8 @@ func (e *GlobalTableAlreadyExistsException) ErrorFault() smithy.ErrorFault { ret type GlobalTableNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -185,7 +237,12 @@ func (e *GlobalTableNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *GlobalTableNotFoundException) ErrorCode() string { return "GlobalTableNotFoundException" } +func (e *GlobalTableNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GlobalTableNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *GlobalTableNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DynamoDB rejected the request because you retried a request with a different @@ -193,6 +250,8 @@ func (e *GlobalTableNotFoundException) ErrorFault() smithy.ErrorFault { return s type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,7 +265,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -218,6 +280,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type ImportConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -230,13 +294,20 @@ func (e *ImportConflictException) ErrorMessage() string { } return *e.Message } -func (e *ImportConflictException) ErrorCode() string { return "ImportConflictException" } +func (e *ImportConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImportConflictException" + } + return *e.ErrorCodeOverride +} func (e *ImportConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified import was not found. type ImportNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -249,13 +320,20 @@ func (e *ImportNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ImportNotFoundException) ErrorCode() string { return "ImportNotFoundException" } +func (e *ImportNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImportNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ImportNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation tried to access a nonexistent index. type IndexNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -268,13 +346,20 @@ func (e *IndexNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *IndexNotFoundException) ErrorCode() string { return "IndexNotFoundException" } +func (e *IndexNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IndexNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *IndexNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -287,12 +372,19 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidEndpointException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -305,13 +397,20 @@ func (e *InvalidEndpointException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEndpointException) ErrorCode() string { return "InvalidEndpointException" } +func (e *InvalidEndpointException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEndpointException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ExportTime is outside of the point in time recovery window. type InvalidExportTimeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -324,7 +423,12 @@ func (e *InvalidExportTimeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportTimeException) ErrorCode() string { return "InvalidExportTimeException" } +func (e *InvalidExportTimeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExportTimeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidExportTimeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid restore time was specified. RestoreDateTime must be between @@ -332,6 +436,8 @@ func (e *InvalidExportTimeException) ErrorFault() smithy.ErrorFault { return smi type InvalidRestoreTimeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -344,7 +450,12 @@ func (e *InvalidRestoreTimeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRestoreTimeException) ErrorCode() string { return "InvalidRestoreTimeException" } +func (e *InvalidRestoreTimeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRestoreTimeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRestoreTimeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An item collection is too large. This exception is only returned for tables that @@ -352,6 +463,8 @@ func (e *InvalidRestoreTimeException) ErrorFault() smithy.ErrorFault { return sm type ItemCollectionSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -365,7 +478,10 @@ func (e *ItemCollectionSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ItemCollectionSizeLimitExceededException) ErrorCode() string { - return "ItemCollectionSizeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ItemCollectionSizeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ItemCollectionSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -384,6 +500,8 @@ func (e *ItemCollectionSizeLimitExceededException) ErrorFault() smithy.ErrorFaul type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -396,13 +514,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Point in time recovery has not yet been enabled for this source table. type PointInTimeRecoveryUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -416,7 +541,10 @@ func (e *PointInTimeRecoveryUnavailableException) ErrorMessage() string { return *e.Message } func (e *PointInTimeRecoveryUnavailableException) ErrorCode() string { - return "PointInTimeRecoveryUnavailableException" + if e.ErrorCodeOverride == nil { + return "PointInTimeRecoveryUnavailableException" + } + return *e.ErrorCodeOverride } func (e *PointInTimeRecoveryUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -432,6 +560,8 @@ func (e *PointInTimeRecoveryUnavailableException) ErrorFault() smithy.ErrorFault type ProvisionedThroughputExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -445,7 +575,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.ErrorCodeOverride == nil { + return "ProvisionedThroughputExceededException" + } + return *e.ErrorCodeOverride } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -455,6 +588,8 @@ func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault type ReplicaAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -467,13 +602,20 @@ func (e *ReplicaAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ReplicaAlreadyExistsException) ErrorCode() string { return "ReplicaAlreadyExistsException" } +func (e *ReplicaAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReplicaAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ReplicaAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified replica is no longer part of the global table. type ReplicaNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -486,7 +628,12 @@ func (e *ReplicaNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ReplicaNotFoundException) ErrorCode() string { return "ReplicaNotFoundException" } +func (e *ReplicaNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReplicaNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ReplicaNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Throughput exceeds the current throughput quota for your account. Please contact @@ -495,6 +642,8 @@ func (e *ReplicaNotFoundException) ErrorFault() smithy.ErrorFault { return smith type RequestLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -507,7 +656,12 @@ func (e *RequestLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *RequestLimitExceeded) ErrorCode() string { return "RequestLimitExceeded" } +func (e *RequestLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *RequestLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation conflicts with the resource's availability. For example, you @@ -516,6 +670,8 @@ func (e *RequestLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.Fa type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -528,7 +684,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation tried to access a nonexistent table or index. The resource might @@ -536,6 +697,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -548,13 +711,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A target table with the specified name already exists. type TableAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -567,13 +737,20 @@ func (e *TableAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *TableAlreadyExistsException) ErrorCode() string { return "TableAlreadyExistsException" } +func (e *TableAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TableAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *TableAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A target table with the specified name is either being created or deleted. type TableInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -586,7 +763,12 @@ func (e *TableInUseException) ErrorMessage() string { } return *e.Message } -func (e *TableInUseException) ErrorCode() string { return "TableInUseException" } +func (e *TableInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TableInUseException" + } + return *e.ErrorCodeOverride +} func (e *TableInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A source table with the name TableName does not currently exist within the @@ -595,6 +777,8 @@ func (e *TableInUseException) ErrorFault() smithy.ErrorFault { return smithy.Fau type TableNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -607,7 +791,12 @@ func (e *TableNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TableNotFoundException) ErrorCode() string { return "TableNotFoundException" } +func (e *TableNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TableNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TableNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The entire transaction request was canceled. DynamoDB cancels a @@ -761,6 +950,8 @@ func (e *TableNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type TransactionCanceledException struct { Message *string + ErrorCodeOverride *string + CancellationReasons []CancellationReason noSmithyDocumentSerde @@ -775,13 +966,20 @@ func (e *TransactionCanceledException) ErrorMessage() string { } return *e.Message } -func (e *TransactionCanceledException) ErrorCode() string { return "TransactionCanceledException" } +func (e *TransactionCanceledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TransactionCanceledException" + } + return *e.ErrorCodeOverride +} func (e *TransactionCanceledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Operation was rejected because there is an ongoing transaction for the item. type TransactionConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -794,13 +992,20 @@ func (e *TransactionConflictException) ErrorMessage() string { } return *e.Message } -func (e *TransactionConflictException) ErrorCode() string { return "TransactionConflictException" } +func (e *TransactionConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TransactionConflictException" + } + return *e.ErrorCodeOverride +} func (e *TransactionConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The transaction with the given request token is already in progress. type TransactionInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -813,5 +1018,10 @@ func (e *TransactionInProgressException) ErrorMessage() string { } return *e.Message } -func (e *TransactionInProgressException) ErrorCode() string { return "TransactionInProgressException" } +func (e *TransactionInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TransactionInProgressException" + } + return *e.ErrorCodeOverride +} func (e *TransactionInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/dynamodbstreams/types/errors.go b/service/dynamodbstreams/types/errors.go index 70882df91d1..1de894131a5 100644 --- a/service/dynamodbstreams/types/errors.go +++ b/service/dynamodbstreams/types/errors.go @@ -13,6 +13,8 @@ import ( type ExpiredIteratorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *ExpiredIteratorException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredIteratorException) ErrorCode() string { return "ExpiredIteratorException" } +func (e *ExpiredIteratorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredIteratorException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredIteratorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // There is no limit to the number of daily on-demand backups that can be taken. @@ -60,6 +74,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -72,7 +88,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation tried to access a nonexistent table or index. The resource might @@ -80,6 +101,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -92,7 +115,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation attempted to read past the oldest stream record in a shard. In @@ -110,6 +138,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TrimmedDataAccessException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,5 +152,10 @@ func (e *TrimmedDataAccessException) ErrorMessage() string { } return *e.Message } -func (e *TrimmedDataAccessException) ErrorCode() string { return "TrimmedDataAccessException" } +func (e *TrimmedDataAccessException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrimmedDataAccessException" + } + return *e.ErrorCodeOverride +} func (e *TrimmedDataAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ebs/types/errors.go b/service/ebs/types/errors.go index 5c48d52d095..a6fe75f64b2 100644 --- a/service/ebs/types/errors.go +++ b/service/ebs/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Reason AccessDeniedExceptionReason noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the limit for concurrent API requests. For more information, @@ -35,6 +42,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConcurrentLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -48,7 +57,10 @@ func (e *ConcurrentLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ConcurrentLimitExceededException) ErrorCode() string { - return "ConcurrentLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ConcurrentLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -56,6 +68,8 @@ func (e *ConcurrentLimitExceededException) ErrorFault() smithy.ErrorFault { retu type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -68,13 +82,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +108,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The number of API requests has exceed the maximum allowed API request throttling @@ -95,6 +121,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type RequestThrottledException struct { Message *string + ErrorCodeOverride *string + Reason RequestThrottledExceptionReason noSmithyDocumentSerde @@ -109,13 +137,20 @@ func (e *RequestThrottledException) ErrorMessage() string { } return *e.Message } -func (e *RequestThrottledException) ErrorCode() string { return "RequestThrottledException" } +func (e *RequestThrottledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestThrottledException" + } + return *e.ErrorCodeOverride +} func (e *RequestThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Reason ResourceNotFoundExceptionReason noSmithyDocumentSerde @@ -130,13 +165,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your current service quotas do not allow you to perform this action. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Reason ServiceQuotaExceededExceptionReason noSmithyDocumentSerde @@ -151,13 +193,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints of the EBS direct APIs. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason noSmithyDocumentSerde @@ -172,5 +221,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ec2instanceconnect/types/errors.go b/service/ec2instanceconnect/types/errors.go index eebed5ca320..d056926d5fa 100644 --- a/service/ec2instanceconnect/types/errors.go +++ b/service/ec2instanceconnect/types/errors.go @@ -12,6 +12,8 @@ import ( type AuthException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AuthException) ErrorMessage() string { } return *e.Message } -func (e *AuthException) ErrorCode() string { return "AuthException" } +func (e *AuthException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthException" + } + return *e.ErrorCodeOverride +} func (e *AuthException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance was not found. type EC2InstanceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *EC2InstanceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EC2InstanceNotFoundException) ErrorCode() string { return "EC2InstanceNotFoundException" } +func (e *EC2InstanceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EC2InstanceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EC2InstanceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to connect because the instance is not in a valid state. Connecting to a @@ -52,6 +66,8 @@ func (e *EC2InstanceNotFoundException) ErrorFault() smithy.ErrorFault { return s type EC2InstanceStateInvalidException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,10 @@ func (e *EC2InstanceStateInvalidException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceStateInvalidException) ErrorCode() string { - return "EC2InstanceStateInvalidException" + if e.ErrorCodeOverride == nil { + return "EC2InstanceStateInvalidException" + } + return *e.ErrorCodeOverride } func (e *EC2InstanceStateInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -74,6 +93,8 @@ func (e *EC2InstanceStateInvalidException) ErrorFault() smithy.ErrorFault { retu type EC2InstanceTypeInvalidException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +108,10 @@ func (e *EC2InstanceTypeInvalidException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceTypeInvalidException) ErrorCode() string { - return "EC2InstanceTypeInvalidException" + if e.ErrorCodeOverride == nil { + return "EC2InstanceTypeInvalidException" + } + return *e.ErrorCodeOverride } func (e *EC2InstanceTypeInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -95,6 +119,8 @@ func (e *EC2InstanceTypeInvalidException) ErrorFault() smithy.ErrorFault { retur type EC2InstanceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +134,10 @@ func (e *EC2InstanceUnavailableException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceUnavailableException) ErrorCode() string { - return "EC2InstanceUnavailableException" + if e.ErrorCodeOverride == nil { + return "EC2InstanceUnavailableException" + } + return *e.ErrorCodeOverride } func (e *EC2InstanceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -116,6 +145,8 @@ func (e *EC2InstanceUnavailableException) ErrorFault() smithy.ErrorFault { retur type InvalidArgsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,7 +159,12 @@ func (e *InvalidArgsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgsException) ErrorCode() string { return "InvalidArgsException" } +func (e *InvalidArgsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your account is not authorized to use the EC2 Serial Console. To authorize your @@ -139,6 +175,8 @@ func (e *InvalidArgsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type SerialConsoleAccessDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -152,7 +190,10 @@ func (e *SerialConsoleAccessDisabledException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleAccessDisabledException) ErrorCode() string { - return "SerialConsoleAccessDisabledException" + if e.ErrorCodeOverride == nil { + return "SerialConsoleAccessDisabledException" + } + return *e.ErrorCodeOverride } func (e *SerialConsoleAccessDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -163,6 +204,8 @@ func (e *SerialConsoleAccessDisabledException) ErrorFault() smithy.ErrorFault { type SerialConsoleSessionLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -176,7 +219,10 @@ func (e *SerialConsoleSessionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleSessionLimitExceededException) ErrorCode() string { - return "SerialConsoleSessionLimitExceededException" + if e.ErrorCodeOverride == nil { + return "SerialConsoleSessionLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *SerialConsoleSessionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -186,6 +232,8 @@ func (e *SerialConsoleSessionLimitExceededException) ErrorFault() smithy.ErrorFa type SerialConsoleSessionUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -199,7 +247,10 @@ func (e *SerialConsoleSessionUnavailableException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleSessionUnavailableException) ErrorCode() string { - return "SerialConsoleSessionUnavailableException" + if e.ErrorCodeOverride == nil { + return "SerialConsoleSessionUnavailableException" + } + return *e.ErrorCodeOverride } func (e *SerialConsoleSessionUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -210,6 +261,8 @@ func (e *SerialConsoleSessionUnavailableException) ErrorFault() smithy.ErrorFaul type ServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -222,7 +275,12 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceException" + } + return *e.ErrorCodeOverride +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requests were made too frequently and have been throttled. Wait a while and @@ -230,6 +288,8 @@ func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultS type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -242,5 +302,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ecr/types/errors.go b/service/ecr/types/errors.go index 944907efd14..d41db5c5bec 100644 --- a/service/ecr/types/errors.go +++ b/service/ecr/types/errors.go @@ -11,6 +11,8 @@ import ( type EmptyUploadException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *EmptyUploadException) ErrorMessage() string { } return *e.Message } -func (e *EmptyUploadException) ErrorCode() string { return "EmptyUploadException" } +func (e *EmptyUploadException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EmptyUploadException" + } + return *e.ErrorCodeOverride +} func (e *EmptyUploadException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified image has already been pushed, and there were no changes to the @@ -31,6 +38,8 @@ func (e *EmptyUploadException) ErrorFault() smithy.ErrorFault { return smithy.Fa type ImageAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *ImageAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ImageAlreadyExistsException) ErrorCode() string { return "ImageAlreadyExistsException" } +func (e *ImageAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImageAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ImageAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified image digest does not match the digest that Amazon ECR calculated @@ -51,6 +65,8 @@ func (e *ImageAlreadyExistsException) ErrorFault() smithy.ErrorFault { return sm type ImageDigestDoesNotMatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ImageDigestDoesNotMatchException) ErrorMessage() string { return *e.Message } func (e *ImageDigestDoesNotMatchException) ErrorCode() string { - return "ImageDigestDoesNotMatchException" + if e.ErrorCodeOverride == nil { + return "ImageDigestDoesNotMatchException" + } + return *e.ErrorCodeOverride } func (e *ImageDigestDoesNotMatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -72,6 +91,8 @@ func (e *ImageDigestDoesNotMatchException) ErrorFault() smithy.ErrorFault { retu type ImageNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +105,12 @@ func (e *ImageNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ImageNotFoundException) ErrorCode() string { return "ImageNotFoundException" } +func (e *ImageNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImageNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ImageNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified image is tagged with a tag that already exists. The repository is @@ -92,6 +118,8 @@ func (e *ImageNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type ImageTagAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +132,12 @@ func (e *ImageTagAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ImageTagAlreadyExistsException) ErrorCode() string { return "ImageTagAlreadyExistsException" } +func (e *ImageTagAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImageTagAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ImageTagAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The layer digest calculation performed by Amazon ECR upon receipt of the image @@ -112,6 +145,8 @@ func (e *ImageTagAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type InvalidLayerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +159,12 @@ func (e *InvalidLayerException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLayerException) ErrorCode() string { return "InvalidLayerException" } +func (e *InvalidLayerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLayerException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLayerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The layer part size is not valid, or the first byte specified is not consecutive @@ -132,6 +172,8 @@ func (e *InvalidLayerException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidLayerPartException struct { Message *string + ErrorCodeOverride *string + RegistryId *string RepositoryName *string UploadId *string @@ -149,7 +191,12 @@ func (e *InvalidLayerPartException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLayerPartException) ErrorCode() string { return "InvalidLayerPartException" } +func (e *InvalidLayerPartException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLayerPartException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLayerPartException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified parameter is invalid. Review the available parameters for the API @@ -157,6 +204,8 @@ func (e *InvalidLayerPartException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +218,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid parameter has been specified. Tag keys can have a maximum character @@ -178,6 +232,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidTagParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,13 +246,20 @@ func (e *InvalidTagParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagParameterException) ErrorCode() string { return "InvalidTagParameterException" } +func (e *InvalidTagParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed due to a KMS exception. type KmsException struct { Message *string + ErrorCodeOverride *string + KmsError *string noSmithyDocumentSerde @@ -211,13 +274,20 @@ func (e *KmsException) ErrorMessage() string { } return *e.Message } -func (e *KmsException) ErrorCode() string { return "KmsException" } +func (e *KmsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KmsException" + } + return *e.ErrorCodeOverride +} func (e *KmsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The image layer already exists in the associated repository. type LayerAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -230,7 +300,12 @@ func (e *LayerAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *LayerAlreadyExistsException) ErrorCode() string { return "LayerAlreadyExistsException" } +func (e *LayerAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LayerAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *LayerAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified layer is not available because it is not associated with an image. @@ -238,6 +313,8 @@ func (e *LayerAlreadyExistsException) ErrorFault() smithy.ErrorFault { return sm type LayerInaccessibleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -250,13 +327,20 @@ func (e *LayerInaccessibleException) ErrorMessage() string { } return *e.Message } -func (e *LayerInaccessibleException) ErrorCode() string { return "LayerInaccessibleException" } +func (e *LayerInaccessibleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LayerInaccessibleException" + } + return *e.ErrorCodeOverride +} func (e *LayerInaccessibleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Layer parts must be at least 5 MiB in size. type LayerPartTooSmallException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -269,7 +353,12 @@ func (e *LayerPartTooSmallException) ErrorMessage() string { } return *e.Message } -func (e *LayerPartTooSmallException) ErrorCode() string { return "LayerPartTooSmallException" } +func (e *LayerPartTooSmallException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LayerPartTooSmallException" + } + return *e.ErrorCodeOverride +} func (e *LayerPartTooSmallException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified layers could not be found, or the specified layer is not valid for @@ -277,6 +366,8 @@ func (e *LayerPartTooSmallException) ErrorFault() smithy.ErrorFault { return smi type LayersNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -289,13 +380,20 @@ func (e *LayersNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *LayersNotFoundException) ErrorCode() string { return "LayersNotFoundException" } +func (e *LayersNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LayersNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *LayersNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The lifecycle policy could not be found, and no policy is set to the repository. type LifecyclePolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -309,7 +407,10 @@ func (e *LifecyclePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyNotFoundException) ErrorCode() string { - return "LifecyclePolicyNotFoundException" + if e.ErrorCodeOverride == nil { + return "LifecyclePolicyNotFoundException" + } + return *e.ErrorCodeOverride } func (e *LifecyclePolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -318,6 +419,8 @@ func (e *LifecyclePolicyNotFoundException) ErrorFault() smithy.ErrorFault { retu type LifecyclePolicyPreviewInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -331,7 +434,10 @@ func (e *LifecyclePolicyPreviewInProgressException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyPreviewInProgressException) ErrorCode() string { - return "LifecyclePolicyPreviewInProgressException" + if e.ErrorCodeOverride == nil { + return "LifecyclePolicyPreviewInProgressException" + } + return *e.ErrorCodeOverride } func (e *LifecyclePolicyPreviewInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -341,6 +447,8 @@ func (e *LifecyclePolicyPreviewInProgressException) ErrorFault() smithy.ErrorFau type LifecyclePolicyPreviewNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -354,7 +462,10 @@ func (e *LifecyclePolicyPreviewNotFoundException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyPreviewNotFoundException) ErrorCode() string { - return "LifecyclePolicyPreviewNotFoundException" + if e.ErrorCodeOverride == nil { + return "LifecyclePolicyPreviewNotFoundException" + } + return *e.ErrorCodeOverride } func (e *LifecyclePolicyPreviewNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -367,6 +478,8 @@ func (e *LifecyclePolicyPreviewNotFoundException) ErrorFault() smithy.ErrorFault type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -379,7 +492,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A pull through cache rule with these settings already exists for the private @@ -387,6 +505,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type PullThroughCacheRuleAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -400,7 +520,10 @@ func (e *PullThroughCacheRuleAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *PullThroughCacheRuleAlreadyExistsException) ErrorCode() string { - return "PullThroughCacheRuleAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "PullThroughCacheRuleAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *PullThroughCacheRuleAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -411,6 +534,8 @@ func (e *PullThroughCacheRuleAlreadyExistsException) ErrorFault() smithy.ErrorFa type PullThroughCacheRuleNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -424,7 +549,10 @@ func (e *PullThroughCacheRuleNotFoundException) ErrorMessage() string { return *e.Message } func (e *PullThroughCacheRuleNotFoundException) ErrorCode() string { - return "PullThroughCacheRuleNotFoundException" + if e.ErrorCodeOverride == nil { + return "PullThroughCacheRuleNotFoundException" + } + return *e.ErrorCodeOverride } func (e *PullThroughCacheRuleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -434,6 +562,8 @@ func (e *PullThroughCacheRuleNotFoundException) ErrorFault() smithy.ErrorFault { type ReferencedImagesNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -447,7 +577,10 @@ func (e *ReferencedImagesNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReferencedImagesNotFoundException) ErrorCode() string { - return "ReferencedImagesNotFoundException" + if e.ErrorCodeOverride == nil { + return "ReferencedImagesNotFoundException" + } + return *e.ErrorCodeOverride } func (e *ReferencedImagesNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -455,6 +588,8 @@ func (e *ReferencedImagesNotFoundException) ErrorFault() smithy.ErrorFault { ret type RegistryPolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -468,7 +603,10 @@ func (e *RegistryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RegistryPolicyNotFoundException) ErrorCode() string { - return "RegistryPolicyNotFoundException" + if e.ErrorCodeOverride == nil { + return "RegistryPolicyNotFoundException" + } + return *e.ErrorCodeOverride } func (e *RegistryPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -476,6 +614,8 @@ func (e *RegistryPolicyNotFoundException) ErrorFault() smithy.ErrorFault { retur type RepositoryAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -489,7 +629,10 @@ func (e *RepositoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *RepositoryAlreadyExistsException) ErrorCode() string { - return "RepositoryAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "RepositoryAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *RepositoryAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -498,6 +641,8 @@ func (e *RepositoryAlreadyExistsException) ErrorFault() smithy.ErrorFault { retu type RepositoryNotEmptyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -510,7 +655,12 @@ func (e *RepositoryNotEmptyException) ErrorMessage() string { } return *e.Message } -func (e *RepositoryNotEmptyException) ErrorCode() string { return "RepositoryNotEmptyException" } +func (e *RepositoryNotEmptyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RepositoryNotEmptyException" + } + return *e.ErrorCodeOverride +} func (e *RepositoryNotEmptyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified repository could not be found. Check the spelling of the specified @@ -519,6 +669,8 @@ func (e *RepositoryNotEmptyException) ErrorFault() smithy.ErrorFault { return sm type RepositoryNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -531,7 +683,12 @@ func (e *RepositoryNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *RepositoryNotFoundException) ErrorCode() string { return "RepositoryNotFoundException" } +func (e *RepositoryNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RepositoryNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *RepositoryNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified repository and registry combination does not have an associated @@ -539,6 +696,8 @@ func (e *RepositoryNotFoundException) ErrorFault() smithy.ErrorFault { return sm type RepositoryPolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -552,7 +711,10 @@ func (e *RepositoryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryPolicyNotFoundException) ErrorCode() string { - return "RepositoryPolicyNotFoundException" + if e.ErrorCodeOverride == nil { + return "RepositoryPolicyNotFoundException" + } + return *e.ErrorCodeOverride } func (e *RepositoryPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -561,6 +723,8 @@ func (e *RepositoryPolicyNotFoundException) ErrorFault() smithy.ErrorFault { ret type ScanNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -573,13 +737,20 @@ func (e *ScanNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ScanNotFoundException) ErrorCode() string { return "ScanNotFoundException" } +func (e *ScanNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ScanNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ScanNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a server-side issue. type ServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -592,7 +763,12 @@ func (e *ServerException) ErrorMessage() string { } return *e.Message } -func (e *ServerException) ErrorCode() string { return "ServerException" } +func (e *ServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerException" + } + return *e.ErrorCodeOverride +} func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The list of tags on the repository is over the limit. The maximum number of tags @@ -600,6 +776,8 @@ func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultSe type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -612,13 +790,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The image is of a type that cannot be scanned. type UnsupportedImageTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -631,13 +816,20 @@ func (e *UnsupportedImageTypeException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedImageTypeException) ErrorCode() string { return "UnsupportedImageTypeException" } +func (e *UnsupportedImageTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedImageTypeException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedImageTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified upstream registry isn't supported. type UnsupportedUpstreamRegistryException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -651,7 +843,10 @@ func (e *UnsupportedUpstreamRegistryException) ErrorMessage() string { return *e.Message } func (e *UnsupportedUpstreamRegistryException) ErrorCode() string { - return "UnsupportedUpstreamRegistryException" + if e.ErrorCodeOverride == nil { + return "UnsupportedUpstreamRegistryException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedUpstreamRegistryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -662,6 +857,8 @@ func (e *UnsupportedUpstreamRegistryException) ErrorFault() smithy.ErrorFault { type UploadNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -674,13 +871,20 @@ func (e *UploadNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *UploadNotFoundException) ErrorCode() string { return "UploadNotFoundException" } +func (e *UploadNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UploadNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *UploadNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an exception validating this request. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -693,5 +897,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ecrpublic/types/errors.go b/service/ecrpublic/types/errors.go index 485ac0c1df2..8c084ad6bee 100644 --- a/service/ecrpublic/types/errors.go +++ b/service/ecrpublic/types/errors.go @@ -11,6 +11,8 @@ import ( type EmptyUploadException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *EmptyUploadException) ErrorMessage() string { } return *e.Message } -func (e *EmptyUploadException) ErrorCode() string { return "EmptyUploadException" } +func (e *EmptyUploadException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EmptyUploadException" + } + return *e.ErrorCodeOverride +} func (e *EmptyUploadException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified image has already been pushed, and there were no changes to the @@ -31,6 +38,8 @@ func (e *EmptyUploadException) ErrorFault() smithy.ErrorFault { return smithy.Fa type ImageAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *ImageAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ImageAlreadyExistsException) ErrorCode() string { return "ImageAlreadyExistsException" } +func (e *ImageAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImageAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ImageAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified image digest does not match the digest that Amazon ECR calculated @@ -51,6 +65,8 @@ func (e *ImageAlreadyExistsException) ErrorFault() smithy.ErrorFault { return sm type ImageDigestDoesNotMatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ImageDigestDoesNotMatchException) ErrorMessage() string { return *e.Message } func (e *ImageDigestDoesNotMatchException) ErrorCode() string { - return "ImageDigestDoesNotMatchException" + if e.ErrorCodeOverride == nil { + return "ImageDigestDoesNotMatchException" + } + return *e.ErrorCodeOverride } func (e *ImageDigestDoesNotMatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -72,6 +91,8 @@ func (e *ImageDigestDoesNotMatchException) ErrorFault() smithy.ErrorFault { retu type ImageNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +105,12 @@ func (e *ImageNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ImageNotFoundException) ErrorCode() string { return "ImageNotFoundException" } +func (e *ImageNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImageNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ImageNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified image is tagged with a tag that already exists. The repository is @@ -92,6 +118,8 @@ func (e *ImageNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type ImageTagAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +132,12 @@ func (e *ImageTagAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ImageTagAlreadyExistsException) ErrorCode() string { return "ImageTagAlreadyExistsException" } +func (e *ImageTagAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImageTagAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ImageTagAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The layer digest calculation performed by Amazon ECR upon receipt of the image @@ -112,6 +145,8 @@ func (e *ImageTagAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type InvalidLayerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +159,12 @@ func (e *InvalidLayerException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLayerException) ErrorCode() string { return "InvalidLayerException" } +func (e *InvalidLayerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLayerException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLayerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The layer part size is not valid, or the first byte specified is not consecutive @@ -132,6 +172,8 @@ func (e *InvalidLayerException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidLayerPartException struct { Message *string + ErrorCodeOverride *string + RegistryId *string RepositoryName *string UploadId *string @@ -149,7 +191,12 @@ func (e *InvalidLayerPartException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLayerPartException) ErrorCode() string { return "InvalidLayerPartException" } +func (e *InvalidLayerPartException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLayerPartException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLayerPartException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified parameter is invalid. Review the available parameters for the API @@ -157,6 +204,8 @@ func (e *InvalidLayerPartException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +218,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid parameter has been specified. Tag keys can have a maximum character @@ -178,6 +232,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidTagParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,13 +246,20 @@ func (e *InvalidTagParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagParameterException) ErrorCode() string { return "InvalidTagParameterException" } +func (e *InvalidTagParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The image layer already exists in the associated repository. type LayerAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,13 +272,20 @@ func (e *LayerAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *LayerAlreadyExistsException) ErrorCode() string { return "LayerAlreadyExistsException" } +func (e *LayerAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LayerAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *LayerAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Layer parts must be at least 5 MiB in size. type LayerPartTooSmallException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,7 +298,12 @@ func (e *LayerPartTooSmallException) ErrorMessage() string { } return *e.Message } -func (e *LayerPartTooSmallException) ErrorCode() string { return "LayerPartTooSmallException" } +func (e *LayerPartTooSmallException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LayerPartTooSmallException" + } + return *e.ErrorCodeOverride +} func (e *LayerPartTooSmallException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified layers could not be found, or the specified layer is not valid for @@ -236,6 +311,8 @@ func (e *LayerPartTooSmallException) ErrorFault() smithy.ErrorFault { return smi type LayersNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -248,7 +325,12 @@ func (e *LayersNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *LayersNotFoundException) ErrorCode() string { return "LayersNotFoundException" } +func (e *LayersNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LayersNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *LayersNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because it would have exceeded a service limit for @@ -258,6 +340,8 @@ func (e *LayersNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -270,13 +354,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The manifest list is referencing an image that does not exist. type ReferencedImagesNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -290,7 +381,10 @@ func (e *ReferencedImagesNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReferencedImagesNotFoundException) ErrorCode() string { - return "ReferencedImagesNotFoundException" + if e.ErrorCodeOverride == nil { + return "ReferencedImagesNotFoundException" + } + return *e.ErrorCodeOverride } func (e *ReferencedImagesNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -298,6 +392,8 @@ func (e *ReferencedImagesNotFoundException) ErrorFault() smithy.ErrorFault { ret type RegistryNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -310,13 +406,20 @@ func (e *RegistryNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *RegistryNotFoundException) ErrorCode() string { return "RegistryNotFoundException" } +func (e *RegistryNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RegistryNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *RegistryNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified repository already exists in the specified registry. type RepositoryAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -330,7 +433,10 @@ func (e *RepositoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *RepositoryAlreadyExistsException) ErrorCode() string { - return "RepositoryAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "RepositoryAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *RepositoryAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -339,6 +445,8 @@ func (e *RepositoryAlreadyExistsException) ErrorFault() smithy.ErrorFault { retu type RepositoryNotEmptyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -351,7 +459,12 @@ func (e *RepositoryNotEmptyException) ErrorMessage() string { } return *e.Message } -func (e *RepositoryNotEmptyException) ErrorCode() string { return "RepositoryNotEmptyException" } +func (e *RepositoryNotEmptyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RepositoryNotEmptyException" + } + return *e.ErrorCodeOverride +} func (e *RepositoryNotEmptyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified repository could not be found. Check the spelling of the specified @@ -360,6 +473,8 @@ func (e *RepositoryNotEmptyException) ErrorFault() smithy.ErrorFault { return sm type RepositoryNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -372,7 +487,12 @@ func (e *RepositoryNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *RepositoryNotFoundException) ErrorCode() string { return "RepositoryNotFoundException" } +func (e *RepositoryNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RepositoryNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *RepositoryNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified repository and registry combination does not have an associated @@ -380,6 +500,8 @@ func (e *RepositoryNotFoundException) ErrorFault() smithy.ErrorFault { return sm type RepositoryPolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -393,7 +515,10 @@ func (e *RepositoryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryPolicyNotFoundException) ErrorCode() string { - return "RepositoryPolicyNotFoundException" + if e.ErrorCodeOverride == nil { + return "RepositoryPolicyNotFoundException" + } + return *e.ErrorCodeOverride } func (e *RepositoryPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -401,6 +526,8 @@ func (e *RepositoryPolicyNotFoundException) ErrorFault() smithy.ErrorFault { ret type ServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -413,7 +540,12 @@ func (e *ServerException) ErrorMessage() string { } return *e.Message } -func (e *ServerException) ErrorCode() string { return "ServerException" } +func (e *ServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerException" + } + return *e.ErrorCodeOverride +} func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The list of tags on the repository is over the limit. The maximum number of tags @@ -421,6 +553,8 @@ func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultSe type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -433,13 +567,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action is not supported in this Region. type UnsupportedCommandException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -452,7 +593,12 @@ func (e *UnsupportedCommandException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedCommandException) ErrorCode() string { return "UnsupportedCommandException" } +func (e *UnsupportedCommandException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedCommandException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedCommandException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The upload could not be found, or the specified upload ID is not valid for this @@ -460,6 +606,8 @@ func (e *UnsupportedCommandException) ErrorFault() smithy.ErrorFault { return sm type UploadNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -472,5 +620,10 @@ func (e *UploadNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *UploadNotFoundException) ErrorCode() string { return "UploadNotFoundException" } +func (e *UploadNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UploadNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *UploadNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ecs/types/errors.go b/service/ecs/types/errors.go index ce55e2cff12..e49b2218096 100644 --- a/service/ecs/types/errors.go +++ b/service/ecs/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can apply up to 10 custom attributes for each resource. You can view the @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AttributeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *AttributeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AttributeLimitExceededException) ErrorCode() string { - return "AttributeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "AttributeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *AttributeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -54,6 +66,8 @@ func (e *AttributeLimitExceededException) ErrorFault() smithy.ErrorFault { retur type BlockedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +80,12 @@ func (e *BlockedException) ErrorMessage() string { } return *e.Message } -func (e *BlockedException) ErrorCode() string { return "BlockedException" } +func (e *BlockedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BlockedException" + } + return *e.ErrorCodeOverride +} func (e *BlockedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a client action. This client action might be @@ -76,6 +95,8 @@ func (e *BlockedException) ErrorFault() smithy.ErrorFault { return smithy.FaultC type ClientException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -88,7 +109,12 @@ func (e *ClientException) ErrorMessage() string { } return *e.Message } -func (e *ClientException) ErrorCode() string { return "ClientException" } +func (e *ClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientException" + } + return *e.ErrorCodeOverride +} func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't delete a cluster that has registered container instances. First, @@ -97,6 +123,8 @@ func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type ClusterContainsContainerInstancesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -110,7 +138,10 @@ func (e *ClusterContainsContainerInstancesException) ErrorMessage() string { return *e.Message } func (e *ClusterContainsContainerInstancesException) ErrorCode() string { - return "ClusterContainsContainerInstancesException" + if e.ErrorCodeOverride == nil { + return "ClusterContainsContainerInstancesException" + } + return *e.ErrorCodeOverride } func (e *ClusterContainsContainerInstancesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -122,6 +153,8 @@ func (e *ClusterContainsContainerInstancesException) ErrorFault() smithy.ErrorFa type ClusterContainsServicesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -135,7 +168,10 @@ func (e *ClusterContainsServicesException) ErrorMessage() string { return *e.Message } func (e *ClusterContainsServicesException) ErrorCode() string { - return "ClusterContainsServicesException" + if e.ErrorCodeOverride == nil { + return "ClusterContainsServicesException" + } + return *e.ErrorCodeOverride } func (e *ClusterContainsServicesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -143,6 +179,8 @@ func (e *ClusterContainsServicesException) ErrorFault() smithy.ErrorFault { retu type ClusterContainsTasksException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -155,7 +193,12 @@ func (e *ClusterContainsTasksException) ErrorMessage() string { } return *e.Message } -func (e *ClusterContainsTasksException) ErrorCode() string { return "ClusterContainsTasksException" } +func (e *ClusterContainsTasksException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterContainsTasksException" + } + return *e.ErrorCodeOverride +} func (e *ClusterContainsTasksException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified cluster wasn't found. You can view your available clusters with @@ -163,6 +206,8 @@ func (e *ClusterContainsTasksException) ErrorFault() smithy.ErrorFault { return type ClusterNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -175,7 +220,12 @@ func (e *ClusterNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ClusterNotFoundException) ErrorCode() string { return "ClusterNotFoundException" } +func (e *ClusterNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ClusterNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified parameter isn't valid. Review the available parameters for the API @@ -183,6 +233,8 @@ func (e *ClusterNotFoundException) ErrorFault() smithy.ErrorFault { return smith type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -195,13 +247,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit for the resource was exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -214,7 +273,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon ECS can't determine the current version of the Amazon ECS container agent @@ -224,6 +288,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MissingVersionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -236,13 +302,20 @@ func (e *MissingVersionException) ErrorMessage() string { } return *e.Message } -func (e *MissingVersionException) ErrorCode() string { return "MissingVersionException" } +func (e *MissingVersionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingVersionException" + } + return *e.ErrorCodeOverride +} func (e *MissingVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified namespace wasn't found. type NamespaceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -255,7 +328,12 @@ func (e *NamespaceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NamespaceNotFoundException) ErrorCode() string { return "NamespaceNotFoundException" } +func (e *NamespaceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NamespaceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NamespaceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There's no update available for this Amazon ECS container agent. This might be @@ -264,6 +342,8 @@ func (e *NamespaceNotFoundException) ErrorFault() smithy.ErrorFault { return smi type NoUpdateAvailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -276,7 +356,12 @@ func (e *NoUpdateAvailableException) ErrorMessage() string { } return *e.Message } -func (e *NoUpdateAvailableException) ErrorCode() string { return "NoUpdateAvailableException" } +func (e *NoUpdateAvailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoUpdateAvailableException" + } + return *e.ErrorCodeOverride +} func (e *NoUpdateAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified platform version doesn't satisfy the required capabilities of the @@ -284,6 +369,8 @@ func (e *NoUpdateAvailableException) ErrorFault() smithy.ErrorFault { return smi type PlatformTaskDefinitionIncompatibilityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -297,7 +384,10 @@ func (e *PlatformTaskDefinitionIncompatibilityException) ErrorMessage() string { return *e.Message } func (e *PlatformTaskDefinitionIncompatibilityException) ErrorCode() string { - return "PlatformTaskDefinitionIncompatibilityException" + if e.ErrorCodeOverride == nil { + return "PlatformTaskDefinitionIncompatibilityException" + } + return *e.ErrorCodeOverride } func (e *PlatformTaskDefinitionIncompatibilityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -307,6 +397,8 @@ func (e *PlatformTaskDefinitionIncompatibilityException) ErrorFault() smithy.Err type PlatformUnknownException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -319,13 +411,20 @@ func (e *PlatformUnknownException) ErrorMessage() string { } return *e.Message } -func (e *PlatformUnknownException) ErrorCode() string { return "PlatformUnknownException" } +func (e *PlatformUnknownException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PlatformUnknownException" + } + return *e.ErrorCodeOverride +} func (e *PlatformUnknownException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in-use and can't be removed. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -338,13 +437,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource wasn't found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -357,13 +463,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a server issue. type ServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -376,7 +489,12 @@ func (e *ServerException) ErrorMessage() string { } return *e.Message } -func (e *ServerException) ErrorCode() string { return "ServerException" } +func (e *ServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerException" + } + return *e.ErrorCodeOverride +} func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified service isn't active. You can't update a service that's inactive. @@ -385,6 +503,8 @@ func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultSe type ServiceNotActiveException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -397,7 +517,12 @@ func (e *ServiceNotActiveException) ErrorMessage() string { } return *e.Message } -func (e *ServiceNotActiveException) ErrorCode() string { return "ServiceNotActiveException" } +func (e *ServiceNotActiveException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceNotActiveException" + } + return *e.ErrorCodeOverride +} func (e *ServiceNotActiveException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified service wasn't found. You can view your available services with @@ -405,6 +530,8 @@ func (e *ServiceNotActiveException) ErrorFault() smithy.ErrorFault { return smit type ServiceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -417,7 +544,12 @@ func (e *ServiceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ServiceNotFoundException) ErrorCode() string { return "ServiceNotFoundException" } +func (e *ServiceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ServiceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The execute command cannot run. This error can be caused by any of the following @@ -439,6 +571,8 @@ func (e *ServiceNotFoundException) ErrorFault() smithy.ErrorFault { return smith type TargetNotConnectedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -451,7 +585,12 @@ func (e *TargetNotConnectedException) ErrorMessage() string { } return *e.Message } -func (e *TargetNotConnectedException) ErrorCode() string { return "TargetNotConnectedException" } +func (e *TargetNotConnectedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetNotConnectedException" + } + return *e.ErrorCodeOverride +} func (e *TargetNotConnectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified target wasn't found. You can view your available container @@ -460,6 +599,8 @@ func (e *TargetNotConnectedException) ErrorFault() smithy.ErrorFault { return sm type TargetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -472,7 +613,12 @@ func (e *TargetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TargetNotFoundException) ErrorCode() string { return "TargetNotFoundException" } +func (e *TargetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TargetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified task set wasn't found. You can view your available task sets with @@ -480,6 +626,8 @@ func (e *TargetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type TaskSetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -492,13 +640,20 @@ func (e *TaskSetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TaskSetNotFoundException) ErrorCode() string { return "TaskSetNotFoundException" } +func (e *TaskSetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TaskSetNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TaskSetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified task isn't supported in this Region. type UnsupportedFeatureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -511,7 +666,12 @@ func (e *UnsupportedFeatureException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedFeatureException) ErrorCode() string { return "UnsupportedFeatureException" } +func (e *UnsupportedFeatureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedFeatureException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedFeatureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There's already a current Amazon ECS container agent update in progress on the @@ -522,6 +682,8 @@ func (e *UnsupportedFeatureException) ErrorFault() smithy.ErrorFault { return sm type UpdateInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -534,5 +696,10 @@ func (e *UpdateInProgressException) ErrorMessage() string { } return *e.Message } -func (e *UpdateInProgressException) ErrorCode() string { return "UpdateInProgressException" } +func (e *UpdateInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UpdateInProgressException" + } + return *e.ErrorCodeOverride +} func (e *UpdateInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/efs/types/errors.go b/service/efs/types/errors.go index 37f5470b97f..69cf4615d2e 100644 --- a/service/efs/types/errors.go +++ b/service/efs/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessPointAlreadyExists struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string AccessPointId *string @@ -27,7 +29,12 @@ func (e *AccessPointAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *AccessPointAlreadyExists) ErrorCode() string { return "AccessPointAlreadyExists" } +func (e *AccessPointAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessPointAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *AccessPointAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the Amazon Web Services account has already created the maximum @@ -37,6 +44,8 @@ func (e *AccessPointAlreadyExists) ErrorFault() smithy.ErrorFault { return smith type AccessPointLimitExceeded struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -51,7 +60,12 @@ func (e *AccessPointLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *AccessPointLimitExceeded) ErrorCode() string { return "AccessPointLimitExceeded" } +func (e *AccessPointLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessPointLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *AccessPointLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the specified AccessPointId value doesn't exist in the requester's @@ -59,6 +73,8 @@ func (e *AccessPointLimitExceeded) ErrorFault() smithy.ErrorFault { return smith type AccessPointNotFound struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -73,7 +89,12 @@ func (e *AccessPointNotFound) ErrorMessage() string { } return *e.Message } -func (e *AccessPointNotFound) ErrorCode() string { return "AccessPointNotFound" } +func (e *AccessPointNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessPointNotFound" + } + return *e.ErrorCodeOverride +} func (e *AccessPointNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the Availability Zone that was specified for a mount target is @@ -83,6 +104,8 @@ func (e *AccessPointNotFound) ErrorFault() smithy.ErrorFault { return smithy.Fau type AvailabilityZonesMismatch struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -97,7 +120,12 @@ func (e *AvailabilityZonesMismatch) ErrorMessage() string { } return *e.Message } -func (e *AvailabilityZonesMismatch) ErrorCode() string { return "AvailabilityZonesMismatch" } +func (e *AvailabilityZonesMismatch) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AvailabilityZonesMismatch" + } + return *e.ErrorCodeOverride +} func (e *AvailabilityZonesMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the request is malformed or contains an error such as an invalid @@ -105,6 +133,8 @@ func (e *AvailabilityZonesMismatch) ErrorFault() smithy.ErrorFault { return smit type BadRequest struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -119,7 +149,12 @@ func (e *BadRequest) ErrorMessage() string { } return *e.Message } -func (e *BadRequest) ErrorCode() string { return "BadRequest" } +func (e *BadRequest) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequest" + } + return *e.ErrorCodeOverride +} func (e *BadRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service timed out trying to fulfill the request, and the client should try @@ -127,6 +162,8 @@ func (e *BadRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type DependencyTimeout struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -141,7 +178,12 @@ func (e *DependencyTimeout) ErrorMessage() string { } return *e.Message } -func (e *DependencyTimeout) ErrorCode() string { return "DependencyTimeout" } +func (e *DependencyTimeout) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyTimeout" + } + return *e.ErrorCodeOverride +} func (e *DependencyTimeout) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returned if the file system you are trying to create already exists, with the @@ -149,6 +191,8 @@ func (e *DependencyTimeout) ErrorFault() smithy.ErrorFault { return smithy.Fault type FileSystemAlreadyExists struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string FileSystemId *string @@ -164,13 +208,20 @@ func (e *FileSystemAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *FileSystemAlreadyExists) ErrorCode() string { return "FileSystemAlreadyExists" } +func (e *FileSystemAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileSystemAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *FileSystemAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a file system has mount targets. type FileSystemInUse struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -185,7 +236,12 @@ func (e *FileSystemInUse) ErrorMessage() string { } return *e.Message } -func (e *FileSystemInUse) ErrorCode() string { return "FileSystemInUse" } +func (e *FileSystemInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileSystemInUse" + } + return *e.ErrorCodeOverride +} func (e *FileSystemInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the Amazon Web Services account has already created the maximum @@ -193,6 +249,8 @@ func (e *FileSystemInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type FileSystemLimitExceeded struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -207,7 +265,12 @@ func (e *FileSystemLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *FileSystemLimitExceeded) ErrorCode() string { return "FileSystemLimitExceeded" } +func (e *FileSystemLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileSystemLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *FileSystemLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the specified FileSystemId value doesn't exist in the requester's @@ -215,6 +278,8 @@ func (e *FileSystemLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy type FileSystemNotFound struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -229,13 +294,20 @@ func (e *FileSystemNotFound) ErrorMessage() string { } return *e.Message } -func (e *FileSystemNotFound) ErrorCode() string { return "FileSystemNotFound" } +func (e *FileSystemNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileSystemNotFound" + } + return *e.ErrorCodeOverride +} func (e *FileSystemNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the file system's lifecycle state is not "available". type IncorrectFileSystemLifeCycleState struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -251,7 +323,10 @@ func (e *IncorrectFileSystemLifeCycleState) ErrorMessage() string { return *e.Message } func (e *IncorrectFileSystemLifeCycleState) ErrorCode() string { - return "IncorrectFileSystemLifeCycleState" + if e.ErrorCodeOverride == nil { + return "IncorrectFileSystemLifeCycleState" + } + return *e.ErrorCodeOverride } func (e *IncorrectFileSystemLifeCycleState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -259,6 +334,8 @@ func (e *IncorrectFileSystemLifeCycleState) ErrorFault() smithy.ErrorFault { ret type IncorrectMountTargetState struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -273,7 +350,12 @@ func (e *IncorrectMountTargetState) ErrorMessage() string { } return *e.Message } -func (e *IncorrectMountTargetState) ErrorCode() string { return "IncorrectMountTargetState" } +func (e *IncorrectMountTargetState) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncorrectMountTargetState" + } + return *e.ErrorCodeOverride +} func (e *IncorrectMountTargetState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if there's not enough capacity to provision additional throughput. This @@ -284,6 +366,8 @@ func (e *IncorrectMountTargetState) ErrorFault() smithy.ErrorFault { return smit type InsufficientThroughputCapacity struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -298,13 +382,20 @@ func (e *InsufficientThroughputCapacity) ErrorMessage() string { } return *e.Message } -func (e *InsufficientThroughputCapacity) ErrorCode() string { return "InsufficientThroughputCapacity" } +func (e *InsufficientThroughputCapacity) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InsufficientThroughputCapacity" + } + return *e.ErrorCodeOverride +} func (e *InsufficientThroughputCapacity) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returned if an error occurred on the server side. type InternalServerError struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -319,7 +410,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returned if the FileSystemPolicy is malformed or contains an error such as a @@ -328,6 +424,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidPolicyException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -342,7 +440,12 @@ func (e *InvalidPolicyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPolicyException) ErrorCode() string { return "InvalidPolicyException" } +func (e *InvalidPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPolicyException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the request specified an IpAddress that is already in use in the @@ -350,6 +453,8 @@ func (e *InvalidPolicyException) ErrorFault() smithy.ErrorFault { return smithy. type IpAddressInUse struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -364,7 +469,12 @@ func (e *IpAddressInUse) ErrorMessage() string { } return *e.Message } -func (e *IpAddressInUse) ErrorCode() string { return "IpAddressInUse" } +func (e *IpAddressInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IpAddressInUse" + } + return *e.ErrorCodeOverride +} func (e *IpAddressInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the mount target would violate one of the specified restrictions @@ -372,6 +482,8 @@ func (e *IpAddressInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultCli type MountTargetConflict struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -386,7 +498,12 @@ func (e *MountTargetConflict) ErrorMessage() string { } return *e.Message } -func (e *MountTargetConflict) ErrorCode() string { return "MountTargetConflict" } +func (e *MountTargetConflict) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MountTargetConflict" + } + return *e.ErrorCodeOverride +} func (e *MountTargetConflict) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if there is no mount target with the specified ID found in the caller's @@ -394,6 +511,8 @@ func (e *MountTargetConflict) ErrorFault() smithy.ErrorFault { return smithy.Fau type MountTargetNotFound struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -408,7 +527,12 @@ func (e *MountTargetNotFound) ErrorMessage() string { } return *e.Message } -func (e *MountTargetNotFound) ErrorCode() string { return "MountTargetNotFound" } +func (e *MountTargetNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MountTargetNotFound" + } + return *e.ErrorCodeOverride +} func (e *MountTargetNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The calling account has reached the limit for elastic network interfaces for the @@ -421,6 +545,8 @@ func (e *MountTargetNotFound) ErrorFault() smithy.ErrorFault { return smithy.Fau type NetworkInterfaceLimitExceeded struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -435,7 +561,12 @@ func (e *NetworkInterfaceLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *NetworkInterfaceLimitExceeded) ErrorCode() string { return "NetworkInterfaceLimitExceeded" } +func (e *NetworkInterfaceLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NetworkInterfaceLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *NetworkInterfaceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if IpAddress was not specified in the request and there are no free IP @@ -443,6 +574,8 @@ func (e *NetworkInterfaceLimitExceeded) ErrorFault() smithy.ErrorFault { return type NoFreeAddressesInSubnet struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -457,7 +590,12 @@ func (e *NoFreeAddressesInSubnet) ErrorMessage() string { } return *e.Message } -func (e *NoFreeAddressesInSubnet) ErrorCode() string { return "NoFreeAddressesInSubnet" } +func (e *NoFreeAddressesInSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoFreeAddressesInSubnet" + } + return *e.ErrorCodeOverride +} func (e *NoFreeAddressesInSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the default file system policy is in effect for the EFS file system @@ -465,6 +603,8 @@ func (e *NoFreeAddressesInSubnet) ErrorFault() smithy.ErrorFault { return smithy type PolicyNotFound struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -479,13 +619,20 @@ func (e *PolicyNotFound) ErrorMessage() string { } return *e.Message } -func (e *PolicyNotFound) ErrorCode() string { return "PolicyNotFound" } +func (e *PolicyNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyNotFound" + } + return *e.ErrorCodeOverride +} func (e *PolicyNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the specified file system does not have a replication configuration. type ReplicationNotFound struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -500,7 +647,12 @@ func (e *ReplicationNotFound) ErrorMessage() string { } return *e.Message } -func (e *ReplicationNotFound) ErrorCode() string { return "ReplicationNotFound" } +func (e *ReplicationNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReplicationNotFound" + } + return *e.ErrorCodeOverride +} func (e *ReplicationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the size of SecurityGroups specified in the request is greater than @@ -508,6 +660,8 @@ func (e *ReplicationNotFound) ErrorFault() smithy.ErrorFault { return smithy.Fau type SecurityGroupLimitExceeded struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -522,7 +676,12 @@ func (e *SecurityGroupLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *SecurityGroupLimitExceeded) ErrorCode() string { return "SecurityGroupLimitExceeded" } +func (e *SecurityGroupLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SecurityGroupLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *SecurityGroupLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if one of the specified security groups doesn't exist in the subnet's @@ -530,6 +689,8 @@ func (e *SecurityGroupLimitExceeded) ErrorFault() smithy.ErrorFault { return smi type SecurityGroupNotFound struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -544,13 +705,20 @@ func (e *SecurityGroupNotFound) ErrorMessage() string { } return *e.Message } -func (e *SecurityGroupNotFound) ErrorCode() string { return "SecurityGroupNotFound" } +func (e *SecurityGroupNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SecurityGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *SecurityGroupNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if there is no subnet with ID SubnetId provided in the request. type SubnetNotFound struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -565,7 +733,12 @@ func (e *SubnetNotFound) ErrorMessage() string { } return *e.Message } -func (e *SubnetNotFound) ErrorCode() string { return "SubnetNotFound" } +func (e *SubnetNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubnetNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the CreateAccessPoint API action is called too quickly and the @@ -574,6 +747,8 @@ func (e *SubnetNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultCli type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -588,7 +763,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the throughput mode or amount of provisioned throughput can't be @@ -596,6 +776,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ThroughputLimitExceeded struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -610,7 +792,12 @@ func (e *ThroughputLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ThroughputLimitExceeded) ErrorCode() string { return "ThroughputLimitExceeded" } +func (e *ThroughputLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThroughputLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ThroughputLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if you don’t wait at least 24 hours before either changing the @@ -618,6 +805,8 @@ func (e *ThroughputLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy type TooManyRequests struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -632,7 +821,12 @@ func (e *TooManyRequests) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequests) ErrorCode() string { return "TooManyRequests" } +func (e *TooManyRequests) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequests" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequests) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the requested Amazon EFS functionality is not available in the @@ -640,6 +834,8 @@ func (e *TooManyRequests) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type UnsupportedAvailabilityZone struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -654,7 +850,12 @@ func (e *UnsupportedAvailabilityZone) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedAvailabilityZone) ErrorCode() string { return "UnsupportedAvailabilityZone" } +func (e *UnsupportedAvailabilityZone) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedAvailabilityZone" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedAvailabilityZone) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the Backup service is not available in the Amazon Web Services @@ -662,6 +863,8 @@ func (e *UnsupportedAvailabilityZone) ErrorFault() smithy.ErrorFault { return sm type ValidationException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -676,5 +879,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/eks/types/errors.go b/service/eks/types/errors.go index fbfe84fdeee..9d7128d3e8e 100644 --- a/service/eks/types/errors.go +++ b/service/eks/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -27,7 +29,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown if the request contains a semantic error. The precise @@ -35,6 +42,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,7 +56,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a client action. Actions can include using an @@ -56,6 +70,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ClientException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string AddonName *string @@ -72,7 +88,12 @@ func (e *ClientException) ErrorMessage() string { } return *e.Message } -func (e *ClientException) ErrorCode() string { return "ClientException" } +func (e *ClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientException" + } + return *e.ErrorCodeOverride +} func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified parameter is invalid. Review the available parameters for the API @@ -80,6 +101,8 @@ func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string FargateProfileName *string @@ -97,7 +120,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is invalid given the state of the cluster. Check the state of the @@ -105,6 +133,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string AddonName *string @@ -121,7 +151,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service resource associated with the request could not be found. Clients @@ -129,6 +164,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,13 +178,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string AddonName *string @@ -164,13 +208,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have encountered a service limit on the specified resource. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string @@ -186,7 +237,12 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource could not be found. You can view your available clusters @@ -195,6 +251,8 @@ func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string FargateProfileName *string @@ -212,7 +270,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Required resources (such as service-linked roles) were created and are still @@ -220,6 +283,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourcePropagationDelayException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -233,7 +298,10 @@ func (e *ResourcePropagationDelayException) ErrorMessage() string { return *e.Message } func (e *ResourcePropagationDelayException) ErrorCode() string { - return "ResourcePropagationDelayException" + if e.ErrorCodeOverride == nil { + return "ResourcePropagationDelayException" + } + return *e.ErrorCodeOverride } func (e *ResourcePropagationDelayException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -241,6 +309,8 @@ func (e *ResourcePropagationDelayException) ErrorFault() smithy.ErrorFault { ret type ServerException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string AddonName *string @@ -257,13 +327,20 @@ func (e *ServerException) ErrorMessage() string { } return *e.Message } -func (e *ServerException) ErrorCode() string { return "ServerException" } +func (e *ServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerException" + } + return *e.ErrorCodeOverride +} func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is unavailable. Back off and retry the operation. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -276,7 +353,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // At least one of your specified cluster subnets is in an Availability Zone that @@ -286,6 +368,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type UnsupportedAvailabilityZoneException struct { Message *string + ErrorCodeOverride *string + ClusterName *string NodegroupName *string ValidZones []string @@ -303,7 +387,10 @@ func (e *UnsupportedAvailabilityZoneException) ErrorMessage() string { return *e.Message } func (e *UnsupportedAvailabilityZoneException) ErrorCode() string { - return "UnsupportedAvailabilityZoneException" + if e.ErrorCodeOverride == nil { + return "UnsupportedAvailabilityZoneException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedAvailabilityZoneException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/elasticache/types/errors.go b/service/elasticache/types/errors.go index 02a5f1fbcb5..e8ede5d0d92 100644 --- a/service/elasticache/types/errors.go +++ b/service/elasticache/types/errors.go @@ -11,6 +11,8 @@ import ( type APICallRateForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *APICallRateForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *APICallRateForCustomerExceededFault) ErrorCode() string { - return "APICallRateForCustomerExceeded" + if e.ErrorCodeOverride == nil { + return "APICallRateForCustomerExceeded" + } + return *e.ErrorCodeOverride } func (e *APICallRateForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -35,6 +40,8 @@ func (e *APICallRateForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type AuthorizationAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,7 +54,12 @@ func (e *AuthorizationAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { return "AuthorizationAlreadyExists" } +func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon EC2 security group is not authorized for the specified @@ -55,6 +67,8 @@ func (e *AuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type AuthorizationNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +81,20 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationNotFoundFault) ErrorCode() string { return "AuthorizationNotFound" } +func (e *AuthorizationNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationNotFound" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a cluster with the given identifier. type CacheClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,13 +107,20 @@ func (e *CacheClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *CacheClusterAlreadyExistsFault) ErrorCode() string { return "CacheClusterAlreadyExists" } +func (e *CacheClusterAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CacheClusterAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *CacheClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested cluster ID does not refer to an existing cluster. type CacheClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +133,20 @@ func (e *CacheClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CacheClusterNotFoundFault) ErrorCode() string { return "CacheClusterNotFound" } +func (e *CacheClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CacheClusterNotFound" + } + return *e.ErrorCodeOverride +} func (e *CacheClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cache parameter group with the requested name already exists. type CacheParameterGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,7 +160,10 @@ func (e *CacheParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheParameterGroupAlreadyExistsFault) ErrorCode() string { - return "CacheParameterGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "CacheParameterGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *CacheParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -136,6 +174,8 @@ func (e *CacheParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type CacheParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,7 +188,12 @@ func (e *CacheParameterGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CacheParameterGroupNotFoundFault) ErrorCode() string { return "CacheParameterGroupNotFound" } +func (e *CacheParameterGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CacheParameterGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *CacheParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the maximum number of @@ -156,6 +201,8 @@ func (e *CacheParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { retu type CacheParameterGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +216,10 @@ func (e *CacheParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheParameterGroupQuotaExceededFault) ErrorCode() string { - return "CacheParameterGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "CacheParameterGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *CacheParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -179,6 +229,8 @@ func (e *CacheParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type CacheSecurityGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -192,7 +244,10 @@ func (e *CacheSecurityGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheSecurityGroupAlreadyExistsFault) ErrorCode() string { - return "CacheSecurityGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "CacheSecurityGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *CacheSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -203,6 +258,8 @@ func (e *CacheSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type CacheSecurityGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -215,7 +272,12 @@ func (e *CacheSecurityGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CacheSecurityGroupNotFoundFault) ErrorCode() string { return "CacheSecurityGroupNotFound" } +func (e *CacheSecurityGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CacheSecurityGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *CacheSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the allowed number of @@ -223,6 +285,8 @@ func (e *CacheSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { retur type CacheSecurityGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -236,7 +300,10 @@ func (e *CacheSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheSecurityGroupQuotaExceededFault) ErrorCode() string { - return "QuotaExceeded.CacheSecurityGroup" + if e.ErrorCodeOverride == nil { + return "QuotaExceeded.CacheSecurityGroup" + } + return *e.ErrorCodeOverride } func (e *CacheSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -247,6 +314,8 @@ func (e *CacheSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type CacheSubnetGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -260,7 +329,10 @@ func (e *CacheSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupAlreadyExistsFault) ErrorCode() string { - return "CacheSubnetGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "CacheSubnetGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *CacheSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +342,8 @@ func (e *CacheSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type CacheSubnetGroupInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -282,7 +356,12 @@ func (e *CacheSubnetGroupInUse) ErrorMessage() string { } return *e.Message } -func (e *CacheSubnetGroupInUse) ErrorCode() string { return "CacheSubnetGroupInUse" } +func (e *CacheSubnetGroupInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CacheSubnetGroupInUse" + } + return *e.ErrorCodeOverride +} func (e *CacheSubnetGroupInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested cache subnet group name does not refer to an existing cache subnet @@ -290,6 +369,8 @@ func (e *CacheSubnetGroupInUse) ErrorFault() smithy.ErrorFault { return smithy.F type CacheSubnetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -302,7 +383,12 @@ func (e *CacheSubnetGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CacheSubnetGroupNotFoundFault) ErrorCode() string { return "CacheSubnetGroupNotFoundFault" } +func (e *CacheSubnetGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CacheSubnetGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *CacheSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the allowed number of @@ -310,6 +396,8 @@ func (e *CacheSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return type CacheSubnetGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -323,7 +411,10 @@ func (e *CacheSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupQuotaExceededFault) ErrorCode() string { - return "CacheSubnetGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "CacheSubnetGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *CacheSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -334,6 +425,8 @@ func (e *CacheSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type CacheSubnetQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -346,7 +439,12 @@ func (e *CacheSubnetQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *CacheSubnetQuotaExceededFault) ErrorCode() string { return "CacheSubnetQuotaExceededFault" } +func (e *CacheSubnetQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CacheSubnetQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *CacheSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the allowed number of @@ -354,6 +452,8 @@ func (e *CacheSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return type ClusterQuotaForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -367,7 +467,10 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - return "ClusterQuotaForCustomerExceeded" + if e.ErrorCodeOverride == nil { + return "ClusterQuotaForCustomerExceeded" + } + return *e.ErrorCodeOverride } func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -377,6 +480,8 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type DefaultUserAssociatedToUserGroupFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -390,7 +495,10 @@ func (e *DefaultUserAssociatedToUserGroupFault) ErrorMessage() string { return *e.Message } func (e *DefaultUserAssociatedToUserGroupFault) ErrorCode() string { - return "DefaultUserAssociatedToUserGroup" + if e.ErrorCodeOverride == nil { + return "DefaultUserAssociatedToUserGroup" + } + return *e.ErrorCodeOverride } func (e *DefaultUserAssociatedToUserGroupFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -400,6 +508,8 @@ func (e *DefaultUserAssociatedToUserGroupFault) ErrorFault() smithy.ErrorFault { type DefaultUserRequired struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -412,13 +522,20 @@ func (e *DefaultUserRequired) ErrorMessage() string { } return *e.Message } -func (e *DefaultUserRequired) ErrorCode() string { return "DefaultUserRequired" } +func (e *DefaultUserRequired) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DefaultUserRequired" + } + return *e.ErrorCodeOverride +} func (e *DefaultUserRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A user with this username already exists. type DuplicateUserNameFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -431,13 +548,20 @@ func (e *DuplicateUserNameFault) ErrorMessage() string { } return *e.Message } -func (e *DuplicateUserNameFault) ErrorCode() string { return "DuplicateUserName" } +func (e *DuplicateUserNameFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateUserName" + } + return *e.ErrorCodeOverride +} func (e *DuplicateUserNameFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Global datastore name already exists. type GlobalReplicationGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -451,7 +575,10 @@ func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorCode() string { - return "GlobalReplicationGroupAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "GlobalReplicationGroupAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -461,6 +588,8 @@ func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFaul type GlobalReplicationGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -474,7 +603,10 @@ func (e *GlobalReplicationGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *GlobalReplicationGroupNotFoundFault) ErrorCode() string { - return "GlobalReplicationGroupNotFoundFault" + if e.ErrorCodeOverride == nil { + return "GlobalReplicationGroupNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *GlobalReplicationGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -487,6 +619,8 @@ func (e *GlobalReplicationGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type InsufficientCacheClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -500,7 +634,10 @@ func (e *InsufficientCacheClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientCacheClusterCapacityFault) ErrorCode() string { - return "InsufficientCacheClusterCapacity" + if e.ErrorCodeOverride == nil { + return "InsufficientCacheClusterCapacity" + } + return *e.ErrorCodeOverride } func (e *InsufficientCacheClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -510,6 +647,8 @@ func (e *InsufficientCacheClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InvalidARNFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -522,13 +661,20 @@ func (e *InvalidARNFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidARNFault) ErrorCode() string { return "InvalidARN" } +func (e *InvalidARNFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidARN" + } + return *e.ErrorCodeOverride +} func (e *InvalidARNFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested cluster is not in the available state. type InvalidCacheClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -541,7 +687,12 @@ func (e *InvalidCacheClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidCacheClusterStateFault) ErrorCode() string { return "InvalidCacheClusterState" } +func (e *InvalidCacheClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCacheClusterState" + } + return *e.ErrorCodeOverride +} func (e *InvalidCacheClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The current state of the cache parameter group does not allow the requested @@ -549,6 +700,8 @@ func (e *InvalidCacheClusterStateFault) ErrorFault() smithy.ErrorFault { return type InvalidCacheParameterGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -562,7 +715,10 @@ func (e *InvalidCacheParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCacheParameterGroupStateFault) ErrorCode() string { - return "InvalidCacheParameterGroupState" + if e.ErrorCodeOverride == nil { + return "InvalidCacheParameterGroupState" + } + return *e.ErrorCodeOverride } func (e *InvalidCacheParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -572,6 +728,8 @@ func (e *InvalidCacheParameterGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidCacheSecurityGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -585,7 +743,10 @@ func (e *InvalidCacheSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCacheSecurityGroupStateFault) ErrorCode() string { - return "InvalidCacheSecurityGroupState" + if e.ErrorCodeOverride == nil { + return "InvalidCacheSecurityGroupState" + } + return *e.ErrorCodeOverride } func (e *InvalidCacheSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -595,6 +756,8 @@ func (e *InvalidCacheSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidGlobalReplicationGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -608,7 +771,10 @@ func (e *InvalidGlobalReplicationGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidGlobalReplicationGroupStateFault) ErrorCode() string { - return "InvalidGlobalReplicationGroupState" + if e.ErrorCodeOverride == nil { + return "InvalidGlobalReplicationGroupState" + } + return *e.ErrorCodeOverride } func (e *InvalidGlobalReplicationGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -618,6 +784,8 @@ func (e *InvalidGlobalReplicationGroupStateFault) ErrorFault() smithy.ErrorFault type InvalidKMSKeyFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -630,13 +798,20 @@ func (e *InvalidKMSKeyFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSKeyFault) ErrorCode() string { return "InvalidKMSKeyFault" } +func (e *InvalidKMSKeyFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKMSKeyFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidKMSKeyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two or more incompatible parameters were specified. type InvalidParameterCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -650,7 +825,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombination" + if e.ErrorCodeOverride == nil { + return "InvalidParameterCombination" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -660,6 +838,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -672,13 +852,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValue" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValue" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested replication group is not in the available state. type InvalidReplicationGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -691,7 +878,12 @@ func (e *InvalidReplicationGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidReplicationGroupStateFault) ErrorCode() string { return "InvalidReplicationGroupState" } +func (e *InvalidReplicationGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidReplicationGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidReplicationGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The current state of the snapshot does not allow the requested operation to @@ -699,6 +891,8 @@ func (e *InvalidReplicationGroupStateFault) ErrorFault() smithy.ErrorFault { ret type InvalidSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -711,13 +905,20 @@ func (e *InvalidSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidSnapshotStateFault) ErrorCode() string { return "InvalidSnapshotState" } +func (e *InvalidSnapshotStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSnapshotState" + } + return *e.ErrorCodeOverride +} func (e *InvalidSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid subnet identifier was specified. type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -730,13 +931,20 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user group is not in an active state. type InvalidUserGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -749,13 +957,20 @@ func (e *InvalidUserGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidUserGroupStateFault) ErrorCode() string { return "InvalidUserGroupState" } +func (e *InvalidUserGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUserGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidUserGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user is not in active state. type InvalidUserStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -768,13 +983,20 @@ func (e *InvalidUserStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidUserStateFault) ErrorCode() string { return "InvalidUserState" } +func (e *InvalidUserStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUserState" + } + return *e.ErrorCodeOverride +} func (e *InvalidUserStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The VPC network is in an invalid state. type InvalidVPCNetworkStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -787,7 +1009,12 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The node group specified by the NodeGroupId parameter could not be found. Please @@ -796,6 +1023,8 @@ func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return sm type NodeGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -808,7 +1037,12 @@ func (e *NodeGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *NodeGroupNotFoundFault) ErrorCode() string { return "NodeGroupNotFoundFault" } +func (e *NodeGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NodeGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *NodeGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the maximum allowed @@ -817,6 +1051,8 @@ func (e *NodeGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy. type NodeGroupsPerReplicationGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -830,7 +1066,10 @@ func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorMessage() string return *e.Message } func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorCode() string { - return "NodeGroupsPerReplicationGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "NodeGroupsPerReplicationGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -841,6 +1080,8 @@ func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorFault() smithy.Er type NodeQuotaForClusterExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -853,7 +1094,12 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { } return *e.Message } -func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { return "NodeQuotaForClusterExceeded" } +func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NodeQuotaForClusterExceeded" + } + return *e.ErrorCodeOverride +} func (e *NodeQuotaForClusterExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the allowed number of @@ -861,6 +1107,8 @@ func (e *NodeQuotaForClusterExceededFault) ErrorFault() smithy.ErrorFault { retu type NodeQuotaForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -873,13 +1121,20 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { } return *e.Message } -func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { return "NodeQuotaForCustomerExceeded" } +func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NodeQuotaForCustomerExceeded" + } + return *e.ErrorCodeOverride +} func (e *NodeQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation was not performed because no changes were required. type NoOperationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -892,13 +1147,20 @@ func (e *NoOperationFault) ErrorMessage() string { } return *e.Message } -func (e *NoOperationFault) ErrorCode() string { return "NoOperationFault" } +func (e *NoOperationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoOperationFault" + } + return *e.ErrorCodeOverride +} func (e *NoOperationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified replication group already exists. type ReplicationGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -912,7 +1174,10 @@ func (e *ReplicationGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupAlreadyExistsFault) ErrorCode() string { - return "ReplicationGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ReplicationGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -922,6 +1187,8 @@ func (e *ReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ReplicationGroupAlreadyUnderMigrationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -935,7 +1202,10 @@ func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorCode() string { - return "ReplicationGroupAlreadyUnderMigrationFault" + if e.ErrorCodeOverride == nil { + return "ReplicationGroupAlreadyUnderMigrationFault" + } + return *e.ErrorCodeOverride } func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -945,6 +1215,8 @@ func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorFault() smithy.ErrorFa type ReplicationGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -957,13 +1229,20 @@ func (e *ReplicationGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReplicationGroupNotFoundFault) ErrorCode() string { return "ReplicationGroupNotFoundFault" } +func (e *ReplicationGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReplicationGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ReplicationGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated replication group is not available for data migration. type ReplicationGroupNotUnderMigrationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -977,7 +1256,10 @@ func (e *ReplicationGroupNotUnderMigrationFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupNotUnderMigrationFault) ErrorCode() string { - return "ReplicationGroupNotUnderMigrationFault" + if e.ErrorCodeOverride == nil { + return "ReplicationGroupNotUnderMigrationFault" + } + return *e.ErrorCodeOverride } func (e *ReplicationGroupNotUnderMigrationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -987,6 +1269,8 @@ func (e *ReplicationGroupNotUnderMigrationFault) ErrorFault() smithy.ErrorFault type ReservedCacheNodeAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1000,7 +1284,10 @@ func (e *ReservedCacheNodeAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodeAlreadyExistsFault) ErrorCode() string { - return "ReservedCacheNodeAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ReservedCacheNodeAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ReservedCacheNodeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1010,6 +1297,8 @@ func (e *ReservedCacheNodeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ReservedCacheNodeNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1022,7 +1311,12 @@ func (e *ReservedCacheNodeNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedCacheNodeNotFoundFault) ErrorCode() string { return "ReservedCacheNodeNotFound" } +func (e *ReservedCacheNodeNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedCacheNodeNotFound" + } + return *e.ErrorCodeOverride +} func (e *ReservedCacheNodeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the user's cache node @@ -1030,6 +1324,8 @@ func (e *ReservedCacheNodeNotFoundFault) ErrorFault() smithy.ErrorFault { return type ReservedCacheNodeQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1043,7 +1339,10 @@ func (e *ReservedCacheNodeQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodeQuotaExceededFault) ErrorCode() string { - return "ReservedCacheNodeQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "ReservedCacheNodeQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *ReservedCacheNodeQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1053,6 +1352,8 @@ func (e *ReservedCacheNodeQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ReservedCacheNodesOfferingNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1066,7 +1367,10 @@ func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorCode() string { - return "ReservedCacheNodesOfferingNotFound" + if e.ErrorCodeOverride == nil { + return "ReservedCacheNodesOfferingNotFound" + } + return *e.ErrorCodeOverride } func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1076,6 +1380,8 @@ func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault type ServiceLinkedRoleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1088,13 +1394,20 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { return "ServiceLinkedRoleNotFoundFault" } +func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLinkedRoleNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ServiceLinkedRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service update doesn't exist type ServiceUpdateNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1107,13 +1420,20 @@ func (e *ServiceUpdateNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceUpdateNotFoundFault) ErrorCode() string { return "ServiceUpdateNotFoundFault" } +func (e *ServiceUpdateNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUpdateNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ServiceUpdateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a snapshot with the given name. type SnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1126,7 +1446,12 @@ func (e *SnapshotAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotAlreadyExistsFault) ErrorCode() string { return "SnapshotAlreadyExistsFault" } +func (e *SnapshotAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You attempted one of the following operations: @@ -1142,6 +1467,8 @@ func (e *SnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smi type SnapshotFeatureNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1155,7 +1482,10 @@ func (e *SnapshotFeatureNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *SnapshotFeatureNotSupportedFault) ErrorCode() string { - return "SnapshotFeatureNotSupportedFault" + if e.ErrorCodeOverride == nil { + return "SnapshotFeatureNotSupportedFault" + } + return *e.ErrorCodeOverride } func (e *SnapshotFeatureNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1163,6 +1493,8 @@ func (e *SnapshotFeatureNotSupportedFault) ErrorFault() smithy.ErrorFault { retu type SnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1175,7 +1507,12 @@ func (e *SnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotNotFoundFault) ErrorCode() string { return "SnapshotNotFoundFault" } +func (e *SnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the maximum number of @@ -1183,6 +1520,8 @@ func (e *SnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.F type SnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1195,13 +1534,20 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotQuotaExceededFault) ErrorCode() string { return "SnapshotQuotaExceededFault" } +func (e *SnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet is being used by another cache subnet group. type SubnetInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1214,7 +1560,12 @@ func (e *SubnetInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetInUse) ErrorCode() string { return "SubnetInUse" } +func (e *SubnetInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // At least one subnet ID does not match the other subnet IDs. This mismatch @@ -1224,6 +1575,8 @@ func (e *SubnetInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type SubnetNotAllowedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1236,13 +1589,20 @@ func (e *SubnetNotAllowedFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetNotAllowedFault) ErrorCode() string { return "SubnetNotAllowedFault" } +func (e *SubnetNotAllowedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetNotAllowedFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetNotAllowedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested tag was not found on this resource. type TagNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1255,7 +1615,12 @@ func (e *TagNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *TagNotFoundFault) ErrorCode() string { return "TagNotFound" } +func (e *TagNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagNotFound" + } + return *e.ErrorCodeOverride +} func (e *TagNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would cause the resource to have more @@ -1264,6 +1629,8 @@ func (e *TagNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultC type TagQuotaPerResourceExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1276,13 +1643,20 @@ func (e *TagQuotaPerResourceExceeded) ErrorMessage() string { } return *e.Message } -func (e *TagQuotaPerResourceExceeded) ErrorCode() string { return "TagQuotaPerResourceExceeded" } +func (e *TagQuotaPerResourceExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagQuotaPerResourceExceeded" + } + return *e.ErrorCodeOverride +} func (e *TagQuotaPerResourceExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The TestFailover action is not available. type TestFailoverNotAvailableFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1295,13 +1669,20 @@ func (e *TestFailoverNotAvailableFault) ErrorMessage() string { } return *e.Message } -func (e *TestFailoverNotAvailableFault) ErrorCode() string { return "TestFailoverNotAvailableFault" } +func (e *TestFailoverNotAvailableFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TestFailoverNotAvailableFault" + } + return *e.ErrorCodeOverride +} func (e *TestFailoverNotAvailableFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A user with this ID already exists. type UserAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1314,13 +1695,20 @@ func (e *UserAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *UserAlreadyExistsFault) ErrorCode() string { return "UserAlreadyExists" } +func (e *UserAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *UserAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user group with this ID already exists. type UserGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1333,13 +1721,20 @@ func (e *UserGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *UserGroupAlreadyExistsFault) ErrorCode() string { return "UserGroupAlreadyExists" } +func (e *UserGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserGroupAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *UserGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user group was not found or does not exist type UserGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1352,13 +1747,20 @@ func (e *UserGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *UserGroupNotFoundFault) ErrorCode() string { return "UserGroupNotFound" } +func (e *UserGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *UserGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of users exceeds the user group limit. type UserGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1371,13 +1773,20 @@ func (e *UserGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *UserGroupQuotaExceededFault) ErrorCode() string { return "UserGroupQuotaExceeded" } +func (e *UserGroupQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserGroupQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *UserGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user does not exist or could not be found. type UserNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1390,13 +1799,20 @@ func (e *UserNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *UserNotFoundFault) ErrorCode() string { return "UserNotFound" } +func (e *UserNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserNotFound" + } + return *e.ErrorCodeOverride +} func (e *UserNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota of users has been exceeded. type UserQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1409,5 +1825,10 @@ func (e *UserQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *UserQuotaExceededFault) ErrorCode() string { return "UserQuotaExceeded" } +func (e *UserQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *UserQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/elasticbeanstalk/types/errors.go b/service/elasticbeanstalk/types/errors.go index 747cae602f3..ceabfa3cc0f 100644 --- a/service/elasticbeanstalk/types/errors.go +++ b/service/elasticbeanstalk/types/errors.go @@ -11,6 +11,8 @@ import ( type CodeBuildNotInServiceRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *CodeBuildNotInServiceRegionException) ErrorMessage() string { return *e.Message } func (e *CodeBuildNotInServiceRegionException) ErrorCode() string { - return "CodeBuildNotInServiceRegionException" + if e.ErrorCodeOverride == nil { + return "CodeBuildNotInServiceRegionException" + } + return *e.ErrorCodeOverride } func (e *CodeBuildNotInServiceRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -34,6 +39,8 @@ func (e *CodeBuildNotInServiceRegionException) ErrorFault() smithy.ErrorFault { type ElasticBeanstalkServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,7 +54,10 @@ func (e *ElasticBeanstalkServiceException) ErrorMessage() string { return *e.Message } func (e *ElasticBeanstalkServiceException) ErrorCode() string { - return "ElasticBeanstalkServiceException" + if e.ErrorCodeOverride == nil { + return "ElasticBeanstalkServiceException" + } + return *e.ErrorCodeOverride } func (e *ElasticBeanstalkServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -56,6 +66,8 @@ func (e *ElasticBeanstalkServiceException) ErrorFault() smithy.ErrorFault { retu type InsufficientPrivilegesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -69,7 +81,10 @@ func (e *InsufficientPrivilegesException) ErrorMessage() string { return *e.Message } func (e *InsufficientPrivilegesException) ErrorCode() string { - return "InsufficientPrivilegesException" + if e.ErrorCodeOverride == nil { + return "InsufficientPrivilegesException" + } + return *e.ErrorCodeOverride } func (e *InsufficientPrivilegesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -78,6 +93,8 @@ func (e *InsufficientPrivilegesException) ErrorFault() smithy.ErrorFault { retur type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -90,13 +107,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot modify the managed action in its current state. type ManagedActionInvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -110,7 +134,10 @@ func (e *ManagedActionInvalidStateException) ErrorMessage() string { return *e.Message } func (e *ManagedActionInvalidStateException) ErrorCode() string { - return "ManagedActionInvalidStateException" + if e.ErrorCodeOverride == nil { + return "ManagedActionInvalidStateException" + } + return *e.ErrorCodeOverride } func (e *ManagedActionInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -121,6 +148,8 @@ func (e *ManagedActionInvalidStateException) ErrorFault() smithy.ErrorFault { type OperationInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -133,7 +162,12 @@ func (e *OperationInProgressException) ErrorMessage() string { } return *e.Message } -func (e *OperationInProgressException) ErrorCode() string { return "OperationInProgressFailure" } +func (e *OperationInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationInProgressFailure" + } + return *e.ErrorCodeOverride +} func (e *OperationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot delete the platform version because there are still environments @@ -141,6 +175,8 @@ func (e *OperationInProgressException) ErrorFault() smithy.ErrorFault { return s type PlatformVersionStillReferencedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -154,7 +190,10 @@ func (e *PlatformVersionStillReferencedException) ErrorMessage() string { return *e.Message } func (e *PlatformVersionStillReferencedException) ErrorCode() string { - return "PlatformVersionStillReferencedException" + if e.ErrorCodeOverride == nil { + return "PlatformVersionStillReferencedException" + } + return *e.ErrorCodeOverride } func (e *PlatformVersionStillReferencedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -164,6 +203,8 @@ func (e *PlatformVersionStillReferencedException) ErrorFault() smithy.ErrorFault type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -176,7 +217,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The type of the specified Amazon Resource Name (ARN) isn't supported for this @@ -184,6 +230,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceTypeNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -197,7 +245,10 @@ func (e *ResourceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ResourceTypeNotSupportedException) ErrorCode() string { - return "ResourceTypeNotSupportedException" + if e.ErrorCodeOverride == nil { + return "ResourceTypeNotSupportedException" + } + return *e.ErrorCodeOverride } func (e *ResourceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -213,6 +264,8 @@ func (e *ResourceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { ret type S3LocationNotInServiceRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -226,7 +279,10 @@ func (e *S3LocationNotInServiceRegionException) ErrorMessage() string { return *e.Message } func (e *S3LocationNotInServiceRegionException) ErrorCode() string { - return "S3LocationNotInServiceRegionException" + if e.ErrorCodeOverride == nil { + return "S3LocationNotInServiceRegionException" + } + return *e.ErrorCodeOverride } func (e *S3LocationNotInServiceRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -236,6 +292,8 @@ func (e *S3LocationNotInServiceRegionException) ErrorFault() smithy.ErrorFault { type S3SubscriptionRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -249,7 +307,10 @@ func (e *S3SubscriptionRequiredException) ErrorMessage() string { return *e.Message } func (e *S3SubscriptionRequiredException) ErrorCode() string { - return "S3SubscriptionRequiredException" + if e.ErrorCodeOverride == nil { + return "S3SubscriptionRequiredException" + } + return *e.ErrorCodeOverride } func (e *S3SubscriptionRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -258,6 +319,8 @@ func (e *S3SubscriptionRequiredException) ErrorFault() smithy.ErrorFault { retur type SourceBundleDeletionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -270,13 +333,20 @@ func (e *SourceBundleDeletionException) ErrorMessage() string { } return *e.Message } -func (e *SourceBundleDeletionException) ErrorCode() string { return "SourceBundleDeletionFailure" } +func (e *SourceBundleDeletionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceBundleDeletionFailure" + } + return *e.ErrorCodeOverride +} func (e *SourceBundleDeletionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account has reached its limit of applications. type TooManyApplicationsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -289,13 +359,20 @@ func (e *TooManyApplicationsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyApplicationsException) ErrorCode() string { return "TooManyApplicationsException" } +func (e *TooManyApplicationsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyApplicationsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyApplicationsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account has reached its limit of application versions. type TooManyApplicationVersionsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -309,7 +386,10 @@ func (e *TooManyApplicationVersionsException) ErrorMessage() string { return *e.Message } func (e *TooManyApplicationVersionsException) ErrorCode() string { - return "TooManyApplicationVersionsException" + if e.ErrorCodeOverride == nil { + return "TooManyApplicationVersionsException" + } + return *e.ErrorCodeOverride } func (e *TooManyApplicationVersionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -319,6 +399,8 @@ func (e *TooManyApplicationVersionsException) ErrorFault() smithy.ErrorFault { type TooManyBucketsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -331,13 +413,20 @@ func (e *TooManyBucketsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyBucketsException) ErrorCode() string { return "TooManyBucketsException" } +func (e *TooManyBucketsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyBucketsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyBucketsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account has reached its limit of configuration templates. type TooManyConfigurationTemplatesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -351,7 +440,10 @@ func (e *TooManyConfigurationTemplatesException) ErrorMessage() string { return *e.Message } func (e *TooManyConfigurationTemplatesException) ErrorCode() string { - return "TooManyConfigurationTemplatesException" + if e.ErrorCodeOverride == nil { + return "TooManyConfigurationTemplatesException" + } + return *e.ErrorCodeOverride } func (e *TooManyConfigurationTemplatesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -361,6 +453,8 @@ func (e *TooManyConfigurationTemplatesException) ErrorFault() smithy.ErrorFault type TooManyEnvironmentsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -373,7 +467,12 @@ func (e *TooManyEnvironmentsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyEnvironmentsException) ErrorCode() string { return "TooManyEnvironmentsException" } +func (e *TooManyEnvironmentsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyEnvironmentsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyEnvironmentsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of allowed platforms associated with the @@ -381,6 +480,8 @@ func (e *TooManyEnvironmentsException) ErrorFault() smithy.ErrorFault { return s type TooManyPlatformsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -393,7 +494,12 @@ func (e *TooManyPlatformsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyPlatformsException) ErrorCode() string { return "TooManyPlatformsException" } +func (e *TooManyPlatformsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyPlatformsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyPlatformsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of tags in the resource would exceed the number of tags that each @@ -403,6 +509,8 @@ func (e *TooManyPlatformsException) ErrorFault() smithy.ErrorFault { return smit type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -415,5 +523,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/elasticinference/types/errors.go b/service/elasticinference/types/errors.go index 81242ae1752..a6a9a196b8d 100644 --- a/service/elasticinference/types/errors.go +++ b/service/elasticinference/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Raised when an unexpected error occurred during request processing. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Raised when the requested resource cannot be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,5 +77,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/elasticloadbalancing/types/errors.go b/service/elasticloadbalancing/types/errors.go index 019d8fae190..9deec0715be 100644 --- a/service/elasticloadbalancing/types/errors.go +++ b/service/elasticloadbalancing/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessPointNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessPointNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *AccessPointNotFoundException) ErrorCode() string { return "LoadBalancerNotFound" } +func (e *AccessPointNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LoadBalancerNotFound" + } + return *e.ErrorCodeOverride +} func (e *AccessPointNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ARN does not refer to a valid SSL certificate in AWS Identity and @@ -33,6 +40,8 @@ func (e *AccessPointNotFoundException) ErrorFault() smithy.ErrorFault { return s type CertificateNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *CertificateNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *CertificateNotFoundException) ErrorCode() string { return "CertificateNotFound" } +func (e *CertificateNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateNotFound" + } + return *e.ErrorCodeOverride +} func (e *CertificateNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A request made by Elastic Load Balancing to another service exceeds the maximum @@ -53,6 +67,8 @@ func (e *CertificateNotFoundException) ErrorFault() smithy.ErrorFault { return s type DependencyThrottleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +81,20 @@ func (e *DependencyThrottleException) ErrorMessage() string { } return *e.Message } -func (e *DependencyThrottleException) ErrorCode() string { return "DependencyThrottle" } +func (e *DependencyThrottleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyThrottle" + } + return *e.ErrorCodeOverride +} func (e *DependencyThrottleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified load balancer name already exists for this account. type DuplicateAccessPointNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +107,12 @@ func (e *DuplicateAccessPointNameException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateAccessPointNameException) ErrorCode() string { return "DuplicateLoadBalancerName" } +func (e *DuplicateAccessPointNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateLoadBalancerName" + } + return *e.ErrorCodeOverride +} func (e *DuplicateAccessPointNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A listener already exists for the specified load balancer name and port, but @@ -92,6 +120,8 @@ func (e *DuplicateAccessPointNameException) ErrorFault() smithy.ErrorFault { ret type DuplicateListenerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,13 +134,20 @@ func (e *DuplicateListenerException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateListenerException) ErrorCode() string { return "DuplicateListener" } +func (e *DuplicateListenerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateListener" + } + return *e.ErrorCodeOverride +} func (e *DuplicateListenerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A policy with the specified name already exists for this load balancer. type DuplicatePolicyNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,13 +160,20 @@ func (e *DuplicatePolicyNameException) ErrorMessage() string { } return *e.Message } -func (e *DuplicatePolicyNameException) ErrorCode() string { return "DuplicatePolicyName" } +func (e *DuplicatePolicyNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicatePolicyName" + } + return *e.ErrorCodeOverride +} func (e *DuplicatePolicyNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A tag key was specified more than once. type DuplicateTagKeysException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,13 +186,20 @@ func (e *DuplicateTagKeysException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateTagKeysException) ErrorCode() string { return "DuplicateTagKeys" } +func (e *DuplicateTagKeysException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateTagKeys" + } + return *e.ErrorCodeOverride +} func (e *DuplicateTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested configuration change is not valid. type InvalidConfigurationRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -162,7 +213,10 @@ func (e *InvalidConfigurationRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRequestException) ErrorCode() string { - return "InvalidConfigurationRequest" + if e.ErrorCodeOverride == nil { + return "InvalidConfigurationRequest" + } + return *e.ErrorCodeOverride } func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -172,6 +226,8 @@ func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { type InvalidEndPointException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,7 +240,12 @@ func (e *InvalidEndPointException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEndPointException) ErrorCode() string { return "InvalidInstance" } +func (e *InvalidEndPointException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInstance" + } + return *e.ErrorCodeOverride +} func (e *InvalidEndPointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified value for the schema is not valid. You can only specify a scheme @@ -192,6 +253,8 @@ func (e *InvalidEndPointException) ErrorFault() smithy.ErrorFault { return smith type InvalidSchemeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -204,13 +267,20 @@ func (e *InvalidSchemeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSchemeException) ErrorCode() string { return "InvalidScheme" } +func (e *InvalidSchemeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidScheme" + } + return *e.ErrorCodeOverride +} func (e *InvalidSchemeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified security groups do not exist. type InvalidSecurityGroupException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -223,13 +293,20 @@ func (e *InvalidSecurityGroupException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSecurityGroupException) ErrorCode() string { return "InvalidSecurityGroup" } +func (e *InvalidSecurityGroupException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSecurityGroup" + } + return *e.ErrorCodeOverride +} func (e *InvalidSecurityGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified VPC has no associated Internet gateway. type InvalidSubnetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -242,13 +319,20 @@ func (e *InvalidSubnetException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnetException) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The load balancer does not have a listener configured at the specified port. type ListenerNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -261,13 +345,20 @@ func (e *ListenerNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ListenerNotFoundException) ErrorCode() string { return "ListenerNotFound" } +func (e *ListenerNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ListenerNotFound" + } + return *e.ErrorCodeOverride +} func (e *ListenerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified load balancer attribute does not exist. type LoadBalancerAttributeNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -281,7 +372,10 @@ func (e *LoadBalancerAttributeNotFoundException) ErrorMessage() string { return *e.Message } func (e *LoadBalancerAttributeNotFoundException) ErrorCode() string { - return "LoadBalancerAttributeNotFound" + if e.ErrorCodeOverride == nil { + return "LoadBalancerAttributeNotFound" + } + return *e.ErrorCodeOverride } func (e *LoadBalancerAttributeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -291,6 +385,8 @@ func (e *LoadBalancerAttributeNotFoundException) ErrorFault() smithy.ErrorFault type OperationNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -303,13 +399,20 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermitted" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermitted" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified policies do not exist. type PolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -322,13 +425,20 @@ func (e *PolicyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *PolicyNotFoundException) ErrorCode() string { return "PolicyNotFound" } +func (e *PolicyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyNotFound" + } + return *e.ErrorCodeOverride +} func (e *PolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified policy types do not exist. type PolicyTypeNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -341,13 +451,20 @@ func (e *PolicyTypeNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *PolicyTypeNotFoundException) ErrorCode() string { return "PolicyTypeNotFound" } +func (e *PolicyTypeNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyTypeNotFound" + } + return *e.ErrorCodeOverride +} func (e *PolicyTypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified subnets do not exist. type SubnetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -360,13 +477,20 @@ func (e *SubnetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *SubnetNotFoundException) ErrorCode() string { return "SubnetNotFound" } +func (e *SubnetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubnetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for the number of load balancers has been reached. type TooManyAccessPointsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -379,13 +503,20 @@ func (e *TooManyAccessPointsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyAccessPointsException) ErrorCode() string { return "TooManyLoadBalancers" } +func (e *TooManyAccessPointsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyLoadBalancers" + } + return *e.ErrorCodeOverride +} func (e *TooManyAccessPointsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for the number of policies for this load balancer has been reached. type TooManyPoliciesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -398,7 +529,12 @@ func (e *TooManyPoliciesException) ErrorMessage() string { } return *e.Message } -func (e *TooManyPoliciesException) ErrorCode() string { return "TooManyPolicies" } +func (e *TooManyPoliciesException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyPolicies" + } + return *e.ErrorCodeOverride +} func (e *TooManyPoliciesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for the number of tags that can be assigned to a load balancer has @@ -406,6 +542,8 @@ func (e *TooManyPoliciesException) ErrorFault() smithy.ErrorFault { return smith type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -418,13 +556,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTags" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTags" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified protocol or signature version is not supported. type UnsupportedProtocolException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -437,5 +582,10 @@ func (e *UnsupportedProtocolException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedProtocolException) ErrorCode() string { return "UnsupportedProtocol" } +func (e *UnsupportedProtocolException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedProtocol" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedProtocolException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/elasticloadbalancingv2/types/errors.go b/service/elasticloadbalancingv2/types/errors.go index 4040e8870c2..395cce3055d 100644 --- a/service/elasticloadbalancingv2/types/errors.go +++ b/service/elasticloadbalancingv2/types/errors.go @@ -11,6 +11,8 @@ import ( type AllocationIdNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AllocationIdNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *AllocationIdNotFoundException) ErrorCode() string { return "AllocationIdNotFound" } +func (e *AllocationIdNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AllocationIdNotFound" + } + return *e.ErrorCodeOverride +} func (e *AllocationIdNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ALPN policy is not supported. type ALPNPolicyNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ALPNPolicyNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *ALPNPolicyNotSupportedException) ErrorCode() string { return "ALPNPolicyNotFound" } +func (e *ALPNPolicyNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ALPNPolicyNotFound" + } + return *e.ErrorCodeOverride +} func (e *ALPNPolicyNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Availability Zone is not supported. type AvailabilityZoneNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *AvailabilityZoneNotSupportedException) ErrorMessage() string { return *e.Message } func (e *AvailabilityZoneNotSupportedException) ErrorCode() string { - return "AvailabilityZoneNotSupported" + if e.ErrorCodeOverride == nil { + return "AvailabilityZoneNotSupported" + } + return *e.ErrorCodeOverride } func (e *AvailabilityZoneNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -72,6 +91,8 @@ func (e *AvailabilityZoneNotSupportedException) ErrorFault() smithy.ErrorFault { type CertificateNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,13 +105,20 @@ func (e *CertificateNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *CertificateNotFoundException) ErrorCode() string { return "CertificateNotFound" } +func (e *CertificateNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateNotFound" + } + return *e.ErrorCodeOverride +} func (e *CertificateNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A listener with the specified port already exists. type DuplicateListenerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +131,20 @@ func (e *DuplicateListenerException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateListenerException) ErrorCode() string { return "DuplicateListener" } +func (e *DuplicateListenerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateListener" + } + return *e.ErrorCodeOverride +} func (e *DuplicateListenerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A load balancer with the specified name already exists. type DuplicateLoadBalancerNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +157,12 @@ func (e *DuplicateLoadBalancerNameException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateLoadBalancerNameException) ErrorCode() string { return "DuplicateLoadBalancerName" } +func (e *DuplicateLoadBalancerNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateLoadBalancerName" + } + return *e.ErrorCodeOverride +} func (e *DuplicateLoadBalancerNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -131,6 +171,8 @@ func (e *DuplicateLoadBalancerNameException) ErrorFault() smithy.ErrorFault { type DuplicateTagKeysException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -143,13 +185,20 @@ func (e *DuplicateTagKeysException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateTagKeysException) ErrorCode() string { return "DuplicateTagKeys" } +func (e *DuplicateTagKeysException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateTagKeys" + } + return *e.ErrorCodeOverride +} func (e *DuplicateTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A target group with the specified name already exists. type DuplicateTargetGroupNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -162,7 +211,12 @@ func (e *DuplicateTargetGroupNameException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateTargetGroupNameException) ErrorCode() string { return "DuplicateTargetGroupName" } +func (e *DuplicateTargetGroupNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateTargetGroupName" + } + return *e.ErrorCodeOverride +} func (e *DuplicateTargetGroupNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The health of the specified targets could not be retrieved due to an internal @@ -170,6 +224,8 @@ func (e *DuplicateTargetGroupNameException) ErrorFault() smithy.ErrorFault { ret type HealthUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -182,13 +238,20 @@ func (e *HealthUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *HealthUnavailableException) ErrorCode() string { return "HealthUnavailable" } +func (e *HealthUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HealthUnavailable" + } + return *e.ErrorCodeOverride +} func (e *HealthUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified configuration is not valid with this protocol. type IncompatibleProtocolsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -201,13 +264,20 @@ func (e *IncompatibleProtocolsException) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleProtocolsException) ErrorCode() string { return "IncompatibleProtocols" } +func (e *IncompatibleProtocolsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleProtocols" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleProtocolsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested configuration is not valid. type InvalidConfigurationRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -221,7 +291,10 @@ func (e *InvalidConfigurationRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRequestException) ErrorCode() string { - return "InvalidConfigurationRequest" + if e.ErrorCodeOverride == nil { + return "InvalidConfigurationRequest" + } + return *e.ErrorCodeOverride } func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -231,6 +304,8 @@ func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { type InvalidLoadBalancerActionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -243,7 +318,12 @@ func (e *InvalidLoadBalancerActionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLoadBalancerActionException) ErrorCode() string { return "InvalidLoadBalancerAction" } +func (e *InvalidLoadBalancerActionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLoadBalancerAction" + } + return *e.ErrorCodeOverride +} func (e *InvalidLoadBalancerActionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -252,6 +332,8 @@ func (e *InvalidLoadBalancerActionException) ErrorFault() smithy.ErrorFault { type InvalidSchemeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -264,13 +346,20 @@ func (e *InvalidSchemeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSchemeException) ErrorCode() string { return "InvalidScheme" } +func (e *InvalidSchemeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidScheme" + } + return *e.ErrorCodeOverride +} func (e *InvalidSchemeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified security group does not exist. type InvalidSecurityGroupException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -283,13 +372,20 @@ func (e *InvalidSecurityGroupException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSecurityGroupException) ErrorCode() string { return "InvalidSecurityGroup" } +func (e *InvalidSecurityGroupException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSecurityGroup" + } + return *e.ErrorCodeOverride +} func (e *InvalidSecurityGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet is out of available addresses. type InvalidSubnetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -302,7 +398,12 @@ func (e *InvalidSubnetException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnetException) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified target does not exist, is not in the same VPC as the target group, @@ -310,6 +411,8 @@ func (e *InvalidSubnetException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidTargetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -322,13 +425,20 @@ func (e *InvalidTargetException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTargetException) ErrorCode() string { return "InvalidTarget" } +func (e *InvalidTargetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTarget" + } + return *e.ErrorCodeOverride +} func (e *InvalidTargetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified listener does not exist. type ListenerNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -341,13 +451,20 @@ func (e *ListenerNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ListenerNotFoundException) ErrorCode() string { return "ListenerNotFound" } +func (e *ListenerNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ListenerNotFound" + } + return *e.ErrorCodeOverride +} func (e *ListenerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified load balancer does not exist. type LoadBalancerNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -360,13 +477,20 @@ func (e *LoadBalancerNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *LoadBalancerNotFoundException) ErrorCode() string { return "LoadBalancerNotFound" } +func (e *LoadBalancerNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LoadBalancerNotFound" + } + return *e.ErrorCodeOverride +} func (e *LoadBalancerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not allowed. type OperationNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -379,13 +503,20 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermitted" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermitted" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified priority is in use. type PriorityInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -398,13 +529,20 @@ func (e *PriorityInUseException) ErrorMessage() string { } return *e.Message } -func (e *PriorityInUseException) ErrorCode() string { return "PriorityInUse" } +func (e *PriorityInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PriorityInUse" + } + return *e.ErrorCodeOverride +} func (e *PriorityInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -417,13 +555,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUse" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUse" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified rule does not exist. type RuleNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -436,13 +581,20 @@ func (e *RuleNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *RuleNotFoundException) ErrorCode() string { return "RuleNotFound" } +func (e *RuleNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RuleNotFound" + } + return *e.ErrorCodeOverride +} func (e *RuleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified SSL policy does not exist. type SSLPolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -455,13 +607,20 @@ func (e *SSLPolicyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *SSLPolicyNotFoundException) ErrorCode() string { return "SSLPolicyNotFound" } +func (e *SSLPolicyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SSLPolicyNotFound" + } + return *e.ErrorCodeOverride +} func (e *SSLPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet does not exist. type SubnetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -474,13 +633,20 @@ func (e *SubnetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *SubnetNotFoundException) ErrorCode() string { return "SubnetNotFound" } +func (e *SubnetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubnetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of load balancers per target group. type TargetGroupAssociationLimitException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -494,7 +660,10 @@ func (e *TargetGroupAssociationLimitException) ErrorMessage() string { return *e.Message } func (e *TargetGroupAssociationLimitException) ErrorCode() string { - return "TargetGroupAssociationLimit" + if e.ErrorCodeOverride == nil { + return "TargetGroupAssociationLimit" + } + return *e.ErrorCodeOverride } func (e *TargetGroupAssociationLimitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -504,6 +673,8 @@ func (e *TargetGroupAssociationLimitException) ErrorFault() smithy.ErrorFault { type TargetGroupNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -516,13 +687,20 @@ func (e *TargetGroupNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TargetGroupNotFoundException) ErrorCode() string { return "TargetGroupNotFound" } +func (e *TargetGroupNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *TargetGroupNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of actions per rule. type TooManyActionsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -535,13 +713,20 @@ func (e *TooManyActionsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyActionsException) ErrorCode() string { return "TooManyActions" } +func (e *TooManyActionsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyActions" + } + return *e.ErrorCodeOverride +} func (e *TooManyActionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of certificates per load balancer. type TooManyCertificatesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -554,13 +739,20 @@ func (e *TooManyCertificatesException) ErrorMessage() string { } return *e.Message } -func (e *TooManyCertificatesException) ErrorCode() string { return "TooManyCertificates" } +func (e *TooManyCertificatesException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyCertificates" + } + return *e.ErrorCodeOverride +} func (e *TooManyCertificatesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of listeners per load balancer. type TooManyListenersException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -573,7 +765,12 @@ func (e *TooManyListenersException) ErrorMessage() string { } return *e.Message } -func (e *TooManyListenersException) ErrorCode() string { return "TooManyListeners" } +func (e *TooManyListenersException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyListeners" + } + return *e.ErrorCodeOverride +} func (e *TooManyListenersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of load balancers for your Amazon Web @@ -581,6 +778,8 @@ func (e *TooManyListenersException) ErrorFault() smithy.ErrorFault { return smit type TooManyLoadBalancersException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -593,7 +792,12 @@ func (e *TooManyLoadBalancersException) ErrorMessage() string { } return *e.Message } -func (e *TooManyLoadBalancersException) ErrorCode() string { return "TooManyLoadBalancers" } +func (e *TooManyLoadBalancersException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyLoadBalancers" + } + return *e.ErrorCodeOverride +} func (e *TooManyLoadBalancersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of times a target can be registered with @@ -601,6 +805,8 @@ func (e *TooManyLoadBalancersException) ErrorFault() smithy.ErrorFault { return type TooManyRegistrationsForTargetIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -614,7 +820,10 @@ func (e *TooManyRegistrationsForTargetIdException) ErrorMessage() string { return *e.Message } func (e *TooManyRegistrationsForTargetIdException) ErrorCode() string { - return "TooManyRegistrationsForTargetId" + if e.ErrorCodeOverride == nil { + return "TooManyRegistrationsForTargetId" + } + return *e.ErrorCodeOverride } func (e *TooManyRegistrationsForTargetIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -624,6 +833,8 @@ func (e *TooManyRegistrationsForTargetIdException) ErrorFault() smithy.ErrorFaul type TooManyRulesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -636,13 +847,20 @@ func (e *TooManyRulesException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRulesException) ErrorCode() string { return "TooManyRules" } +func (e *TooManyRulesException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRules" + } + return *e.ErrorCodeOverride +} func (e *TooManyRulesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of tags per load balancer. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -655,7 +873,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTags" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTags" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of target groups for your Amazon Web @@ -663,6 +886,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type TooManyTargetGroupsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -675,13 +900,20 @@ func (e *TooManyTargetGroupsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTargetGroupsException) ErrorCode() string { return "TooManyTargetGroups" } +func (e *TooManyTargetGroupsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTargetGroups" + } + return *e.ErrorCodeOverride +} func (e *TooManyTargetGroupsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of targets. type TooManyTargetsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -694,7 +926,12 @@ func (e *TooManyTargetsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTargetsException) ErrorCode() string { return "TooManyTargets" } +func (e *TooManyTargetsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTargets" + } + return *e.ErrorCodeOverride +} func (e *TooManyTargetsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of unique target groups per load balancer @@ -703,6 +940,8 @@ func (e *TooManyTargetsException) ErrorFault() smithy.ErrorFault { return smithy type TooManyUniqueTargetGroupsPerLoadBalancerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -716,7 +955,10 @@ func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorMessage() strin return *e.Message } func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorCode() string { - return "TooManyUniqueTargetGroupsPerLoadBalancer" + if e.ErrorCodeOverride == nil { + return "TooManyUniqueTargetGroupsPerLoadBalancer" + } + return *e.ErrorCodeOverride } func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -726,6 +968,8 @@ func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorFault() smithy. type UnsupportedProtocolException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -738,5 +982,10 @@ func (e *UnsupportedProtocolException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedProtocolException) ErrorCode() string { return "UnsupportedProtocol" } +func (e *UnsupportedProtocolException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedProtocol" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedProtocolException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/elasticsearchservice/types/errors.go b/service/elasticsearchservice/types/errors.go index 518cd6bbe66..dc9b52d6d8c 100644 --- a/service/elasticsearchservice/types/errors.go +++ b/service/elasticsearchservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred while processing the request. type BaseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *BaseException) ErrorMessage() string { } return *e.Message } -func (e *BaseException) ErrorCode() string { return "BaseException" } +func (e *BaseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BaseException" + } + return *e.ErrorCodeOverride +} func (e *BaseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred because the client attempts to remove a resource that is @@ -51,6 +65,8 @@ func (e *BaseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occured because the client wanted to access a not supported operation. @@ -71,6 +92,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DisabledOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +106,12 @@ func (e *DisabledOperationException) ErrorMessage() string { } return *e.Message } -func (e *DisabledOperationException) ErrorCode() string { return "DisabledOperationException" } +func (e *DisabledOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DisabledOperationException" + } + return *e.ErrorCodeOverride +} func (e *DisabledOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -92,6 +120,8 @@ func (e *DisabledOperationException) ErrorFault() smithy.ErrorFault { return smi type InternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +134,12 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request processing has failed because of invalid pagination token provided @@ -112,6 +147,8 @@ func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InvalidPaginationTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,7 +162,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidPaginationTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -134,6 +174,8 @@ func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { retur type InvalidTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +188,12 @@ func (e *InvalidTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTypeException) ErrorCode() string { return "InvalidTypeException" } +func (e *InvalidTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTypeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for trying to create more than allowed resources or sub-resources. @@ -154,6 +201,8 @@ func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.Fa type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -166,7 +215,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for creating a resource that already exists. Gives http status code @@ -174,6 +228,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -186,7 +242,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for accessing or deleting a resource that does not exist. Gives @@ -194,6 +255,8 @@ func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,13 +269,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for missing / invalid input fields. Gives http status code of 400. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -225,5 +295,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/elastictranscoder/types/errors.go b/service/elastictranscoder/types/errors.go index 6ec08a3d778..60721f6c431 100644 --- a/service/elastictranscoder/types/errors.go +++ b/service/elastictranscoder/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,12 +25,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type IncompatibleVersionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -41,7 +50,12 @@ func (e *IncompatibleVersionException) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleVersionException) ErrorCode() string { return "IncompatibleVersionException" } +func (e *IncompatibleVersionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleVersionException" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Elastic Transcoder encountered an unexpected exception while trying to fulfill @@ -49,6 +63,8 @@ func (e *IncompatibleVersionException) ErrorFault() smithy.ErrorFault { return s type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Too many operations for a given AWS account. For example, the number of @@ -69,6 +90,8 @@ func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,7 +104,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you are attempting to change is in use. For example, you are @@ -89,6 +117,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,7 +131,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource does not exist or is not available. For example, the @@ -110,6 +145,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,13 +159,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more required parameter values were not provided in the request. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,5 +185,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/emr/types/errors.go b/service/emr/types/errors.go index 6a18ed2fdc3..f40efafe092 100644 --- a/service/emr/types/errors.go +++ b/service/emr/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This exception occurs when there is an internal failure in the Amazon EMR @@ -32,6 +39,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This exception occurs when there is something wrong with user input. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -65,5 +81,10 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/emrcontainers/types/errors.go b/service/emrcontainers/types/errors.go index 03361a733ce..ab5728148c8 100644 --- a/service/emrcontainers/types/errors.go +++ b/service/emrcontainers/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are invalid parameters in the client request. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,5 +77,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/emrserverless/types/errors.go b/service/emrserverless/types/errors.go index d2f72abaefa..d173c84f2f4 100644 --- a/service/emrserverless/types/errors.go +++ b/service/emrserverless/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request processing failed because of an error or failure with the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of resources per account has been reached. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,5 +130,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/eventbridge/types/errors.go b/service/eventbridge/types/errors.go index 27b7248226c..427c4c046b4 100644 --- a/service/eventbridge/types/errors.go +++ b/service/eventbridge/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -33,6 +38,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type IllegalStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,13 +52,20 @@ func (e *IllegalStatusException) ErrorMessage() string { } return *e.Message } -func (e *IllegalStatusException) ErrorCode() string { return "IllegalStatusException" } +func (e *IllegalStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalStatusException" + } + return *e.ErrorCodeOverride +} func (e *IllegalStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs due to unexpected causes. type InternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +78,20 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The event pattern is not valid. type InvalidEventPatternException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +104,20 @@ func (e *InvalidEventPatternException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEventPatternException) ErrorCode() string { return "InvalidEventPatternException" } +func (e *InvalidEventPatternException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEventPatternException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEventPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified state is not a valid state for an event source. type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +130,12 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it attempted to create resource beyond the allowed @@ -110,6 +143,8 @@ func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.F type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +157,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This rule was created by an Amazon Web Services service on behalf of your @@ -134,6 +174,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ManagedRuleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,13 +188,20 @@ func (e *ManagedRuleException) ErrorMessage() string { } return *e.Message } -func (e *ManagedRuleException) ErrorCode() string { return "ManagedRuleException" } +func (e *ManagedRuleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ManagedRuleException" + } + return *e.ErrorCodeOverride +} func (e *ManagedRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation you are attempting is not available in this region. type OperationDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,13 +214,20 @@ func (e *OperationDisabledException) ErrorMessage() string { } return *e.Message } -func (e *OperationDisabledException) ErrorCode() string { return "OperationDisabledException" } +func (e *OperationDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationDisabledException" + } + return *e.ErrorCodeOverride +} func (e *OperationDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The event bus policy is too long. For more information, see the limits. type PolicyLengthExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,13 +240,20 @@ func (e *PolicyLengthExceededException) ErrorMessage() string { } return *e.Message } -func (e *PolicyLengthExceededException) ErrorCode() string { return "PolicyLengthExceededException" } +func (e *PolicyLengthExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyLengthExceededException" + } + return *e.ErrorCodeOverride +} func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you are trying to create already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -203,13 +266,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity that you specified does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -222,5 +292,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/evidently/types/errors.go b/service/evidently/types/errors.go index 50d0baea40d..f03e01d3f85 100644 --- a/service/evidently/types/errors.go +++ b/service/evidently/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource was in an inconsistent state during an update or a deletion. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error while processing the request. Retry the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -86,13 +109,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ServiceCode *string @@ -110,13 +140,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service was unavailable. Retry the request. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,13 +166,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied because of request throttling. Retry the request. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string @@ -151,13 +195,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of a parameter in the request caused an error. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -173,5 +224,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/finspace/types/errors.go b/service/finspace/types/errors.go index 558ffccce86..5cd2162b319 100644 --- a/service/finspace/types/errors.go +++ b/service/finspace/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is invalid. Something is wrong with the input to the request. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service limit or quota is exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,7 +130,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded your service quota. To perform the requested action, remove @@ -109,6 +144,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +158,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,13 +184,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -159,5 +210,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/finspacedata/types/errors.go b/service/finspacedata/types/errors.go index 8fc9979ddc7..a6d109a92fc 100644 --- a/service/finspacedata/types/errors.go +++ b/service/finspacedata/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request conflicts with an existing resource. type ConflictException struct { Message *string + ErrorCodeOverride *string + Reason *string noSmithyDocumentSerde @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -52,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A limit has exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Reason *string noSmithyDocumentSerde @@ -104,13 +134,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,13 +160,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason *string noSmithyDocumentSerde @@ -144,5 +188,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/firehose/types/errors.go b/service/firehose/types/errors.go index 647e8b59f42..8145d792097 100644 --- a/service/firehose/types/errors.go +++ b/service/firehose/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -33,6 +38,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +52,12 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Kinesis Data Firehose throws this exception when an attempt to put records or to @@ -55,6 +67,8 @@ func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smith type InvalidKMSResourceException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -69,13 +83,20 @@ func (e *InvalidKMSResourceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSResourceException) ErrorCode() string { return "InvalidKMSResourceException" } +func (e *InvalidKMSResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKMSResourceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidKMSResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have already reached the limit for a requested resource. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -88,13 +109,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is already in use and not available for this operation. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +135,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,7 +161,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is unavailable. Back off and retry the operation. If you continue to @@ -137,6 +177,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -149,5 +191,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/fis/types/errors.go b/service/fis/types/errors.go index c71aee653b7..9b8ea588bdb 100644 --- a/service/fis/types/errors.go +++ b/service/fis/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource cannot be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded your service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified input is not valid, or fails to satisfy the constraints for the @@ -69,6 +90,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,5 +104,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/fms/types/errors.go b/service/fms/types/errors.go index b2aab72d22d..34b529cd9e6 100644 --- a/service/fms/types/errors.go +++ b/service/fms/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters of the request were invalid. type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because there was nothing to do or the operation wasn't @@ -55,6 +69,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +83,20 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of the Type parameter is invalid. type InvalidTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +109,12 @@ func (e *InvalidTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTypeException) ErrorCode() string { return "InvalidTypeException" } +func (e *InvalidTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTypeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation exceeds a resource limit, for example, the maximum number of @@ -97,6 +125,8 @@ func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.Fa type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -109,13 +139,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,5 +165,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/forecast/types/errors.go b/service/forecast/types/errors.go index b4f3a5b3801..115974e4e50 100644 --- a/service/forecast/types/errors.go +++ b/service/forecast/types/errors.go @@ -12,6 +12,8 @@ import ( type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token is not valid. Tokens expire after 24 hours. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit on the number of resources per account has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is already a resource with this name. Try again with a different name. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,7 +130,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and @@ -108,6 +143,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,5 +157,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/forecastquery/types/errors.go b/service/forecastquery/types/errors.go index 6086a34c537..1052732123e 100644 --- a/service/forecastquery/types/errors.go +++ b/service/forecastquery/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token is not valid. Tokens expire after 24 hours. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit on the number of requests per second has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find that resource. Check the information that you've provided and try @@ -88,6 +116,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,5 +130,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/frauddetector/types/errors.go b/service/frauddetector/types/errors.go index 8edca992f0a..7358278c82e 100644 --- a/service/frauddetector/types/errors.go +++ b/service/frauddetector/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating there was a conflict during a delete operation. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating an internal server error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An exception indicating the specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating that the attached customer-owned (external) model threw @@ -90,6 +118,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating a throttling error. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +158,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating a specified value is not allowed. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,5 +184,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/fsx/types/errors.go b/service/fsx/types/errors.go index 24ab8371932..c0b80322295 100644 --- a/service/fsx/types/errors.go +++ b/service/fsx/types/errors.go @@ -11,6 +11,8 @@ import ( type ActiveDirectoryError struct { Message *string + ErrorCodeOverride *string + ActiveDirectoryId *string Type ActiveDirectoryErrorType @@ -26,13 +28,20 @@ func (e *ActiveDirectoryError) ErrorMessage() string { } return *e.Message } -func (e *ActiveDirectoryError) ErrorCode() string { return "ActiveDirectoryError" } +func (e *ActiveDirectoryError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ActiveDirectoryError" + } + return *e.ErrorCodeOverride +} func (e *ActiveDirectoryError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't delete a backup while it's being copied. type BackupBeingCopied struct { Message *string + ErrorCodeOverride *string + BackupId *string noSmithyDocumentSerde @@ -47,7 +56,12 @@ func (e *BackupBeingCopied) ErrorMessage() string { } return *e.Message } -func (e *BackupBeingCopied) ErrorCode() string { return "BackupBeingCopied" } +func (e *BackupBeingCopied) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BackupBeingCopied" + } + return *e.ErrorCodeOverride +} func (e *BackupBeingCopied) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Another backup is already under way. Wait for completion before initiating @@ -55,6 +69,8 @@ func (e *BackupBeingCopied) ErrorFault() smithy.ErrorFault { return smithy.Fault type BackupInProgress struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +83,20 @@ func (e *BackupInProgress) ErrorMessage() string { } return *e.Message } -func (e *BackupInProgress) ErrorCode() string { return "BackupInProgress" } +func (e *BackupInProgress) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BackupInProgress" + } + return *e.ErrorCodeOverride +} func (e *BackupInProgress) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No Amazon FSx backups were found based upon the supplied parameters. type BackupNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,13 +109,20 @@ func (e *BackupNotFound) ErrorMessage() string { } return *e.Message } -func (e *BackupNotFound) ErrorCode() string { return "BackupNotFound" } +func (e *BackupNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BackupNotFound" + } + return *e.ErrorCodeOverride +} func (e *BackupNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't delete a backup while it's being used to restore a file system. type BackupRestoring struct { Message *string + ErrorCodeOverride *string + FileSystemId *string noSmithyDocumentSerde @@ -107,13 +137,20 @@ func (e *BackupRestoring) ErrorMessage() string { } return *e.Message } -func (e *BackupRestoring) ErrorCode() string { return "BackupRestoring" } +func (e *BackupRestoring) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BackupRestoring" + } + return *e.ErrorCodeOverride +} func (e *BackupRestoring) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A generic error indicating a failure with a client request. type BadRequest struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +163,20 @@ func (e *BadRequest) ErrorMessage() string { } return *e.Message } -func (e *BadRequest) ErrorCode() string { return "BadRequest" } +func (e *BadRequest) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequest" + } + return *e.ErrorCodeOverride +} func (e *BadRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No data repository associations were found based upon the supplied parameters. type DataRepositoryAssociationNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +190,10 @@ func (e *DataRepositoryAssociationNotFound) ErrorMessage() string { return *e.Message } func (e *DataRepositoryAssociationNotFound) ErrorCode() string { - return "DataRepositoryAssociationNotFound" + if e.ErrorCodeOverride == nil { + return "DataRepositoryAssociationNotFound" + } + return *e.ErrorCodeOverride } func (e *DataRepositoryAssociationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -155,6 +202,8 @@ func (e *DataRepositoryAssociationNotFound) ErrorFault() smithy.ErrorFault { ret type DataRepositoryTaskEnded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,7 +216,12 @@ func (e *DataRepositoryTaskEnded) ErrorMessage() string { } return *e.Message } -func (e *DataRepositoryTaskEnded) ErrorCode() string { return "DataRepositoryTaskEnded" } +func (e *DataRepositoryTaskEnded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DataRepositoryTaskEnded" + } + return *e.ErrorCodeOverride +} func (e *DataRepositoryTaskEnded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An existing data repository task is currently executing on the file system. Wait @@ -175,6 +229,8 @@ func (e *DataRepositoryTaskEnded) ErrorFault() smithy.ErrorFault { return smithy type DataRepositoryTaskExecuting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,13 +243,20 @@ func (e *DataRepositoryTaskExecuting) ErrorMessage() string { } return *e.Message } -func (e *DataRepositoryTaskExecuting) ErrorCode() string { return "DataRepositoryTaskExecuting" } +func (e *DataRepositoryTaskExecuting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DataRepositoryTaskExecuting" + } + return *e.ErrorCodeOverride +} func (e *DataRepositoryTaskExecuting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The data repository task or tasks you specified could not be found. type DataRepositoryTaskNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,13 +269,20 @@ func (e *DataRepositoryTaskNotFound) ErrorMessage() string { } return *e.Message } -func (e *DataRepositoryTaskNotFound) ErrorCode() string { return "DataRepositoryTaskNotFound" } +func (e *DataRepositoryTaskNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DataRepositoryTaskNotFound" + } + return *e.ErrorCodeOverride +} func (e *DataRepositoryTaskNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No caches were found based upon supplied parameters. type FileCacheNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -225,13 +295,20 @@ func (e *FileCacheNotFound) ErrorMessage() string { } return *e.Message } -func (e *FileCacheNotFound) ErrorCode() string { return "FileCacheNotFound" } +func (e *FileCacheNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileCacheNotFound" + } + return *e.ErrorCodeOverride +} func (e *FileCacheNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No Amazon FSx file systems were found based upon supplied parameters. type FileSystemNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -244,7 +321,12 @@ func (e *FileSystemNotFound) ErrorMessage() string { } return *e.Message } -func (e *FileSystemNotFound) ErrorCode() string { return "FileSystemNotFound" } +func (e *FileSystemNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FileSystemNotFound" + } + return *e.ErrorCodeOverride +} func (e *FileSystemNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The error returned when a second request is received with the same client @@ -253,6 +335,8 @@ func (e *FileSystemNotFound) ErrorFault() smithy.ErrorFault { return smithy.Faul type IncompatibleParameterError struct { Message *string + ErrorCodeOverride *string + Parameter *string noSmithyDocumentSerde @@ -267,7 +351,12 @@ func (e *IncompatibleParameterError) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleParameterError) ErrorCode() string { return "IncompatibleParameterError" } +func (e *IncompatibleParameterError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleParameterError" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleParameterError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon FSx doesn't support Multi-AZ Windows File Server copy backup in the @@ -275,6 +364,8 @@ func (e *IncompatibleParameterError) ErrorFault() smithy.ErrorFault { return smi type IncompatibleRegionForMultiAZ struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -287,13 +378,20 @@ func (e *IncompatibleRegionForMultiAZ) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleRegionForMultiAZ) ErrorCode() string { return "IncompatibleRegionForMultiAZ" } +func (e *IncompatibleRegionForMultiAZ) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleRegionForMultiAZ" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleRegionForMultiAZ) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A generic error indicating a server-side failure. type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -306,13 +404,20 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // You have filtered the response to a data repository type that is not supported. type InvalidDataRepositoryType struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -325,13 +430,20 @@ func (e *InvalidDataRepositoryType) ErrorMessage() string { } return *e.Message } -func (e *InvalidDataRepositoryType) ErrorCode() string { return "InvalidDataRepositoryType" } +func (e *InvalidDataRepositoryType) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDataRepositoryType" + } + return *e.ErrorCodeOverride +} func (e *InvalidDataRepositoryType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Key Management Service (KMS) key of the destination backup is not valid. type InvalidDestinationKmsKey struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -344,13 +456,20 @@ func (e *InvalidDestinationKmsKey) ErrorMessage() string { } return *e.Message } -func (e *InvalidDestinationKmsKey) ErrorCode() string { return "InvalidDestinationKmsKey" } +func (e *InvalidDestinationKmsKey) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDestinationKmsKey" + } + return *e.ErrorCodeOverride +} func (e *InvalidDestinationKmsKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The path provided for data repository export isn't valid. type InvalidExportPath struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -363,13 +482,20 @@ func (e *InvalidExportPath) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportPath) ErrorCode() string { return "InvalidExportPath" } +func (e *InvalidExportPath) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExportPath" + } + return *e.ErrorCodeOverride +} func (e *InvalidExportPath) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The path provided for data repository import isn't valid. type InvalidImportPath struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -382,13 +508,20 @@ func (e *InvalidImportPath) ErrorMessage() string { } return *e.Message } -func (e *InvalidImportPath) ErrorCode() string { return "InvalidImportPath" } +func (e *InvalidImportPath) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidImportPath" + } + return *e.ErrorCodeOverride +} func (e *InvalidImportPath) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more network settings specified in the request are invalid. type InvalidNetworkSettings struct { Message *string + ErrorCodeOverride *string + InvalidSubnetId *string InvalidSecurityGroupId *string InvalidRouteTableId *string @@ -405,7 +538,12 @@ func (e *InvalidNetworkSettings) ErrorMessage() string { } return *e.Message } -func (e *InvalidNetworkSettings) ErrorCode() string { return "InvalidNetworkSettings" } +func (e *InvalidNetworkSettings) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNetworkSettings" + } + return *e.ErrorCodeOverride +} func (e *InvalidNetworkSettings) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid value for PerUnitStorageThroughput was provided. Please create your @@ -413,6 +551,8 @@ func (e *InvalidNetworkSettings) ErrorFault() smithy.ErrorFault { return smithy. type InvalidPerUnitStorageThroughput struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -426,7 +566,10 @@ func (e *InvalidPerUnitStorageThroughput) ErrorMessage() string { return *e.Message } func (e *InvalidPerUnitStorageThroughput) ErrorCode() string { - return "InvalidPerUnitStorageThroughput" + if e.ErrorCodeOverride == nil { + return "InvalidPerUnitStorageThroughput" + } + return *e.ErrorCodeOverride } func (e *InvalidPerUnitStorageThroughput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -435,6 +578,8 @@ func (e *InvalidPerUnitStorageThroughput) ErrorFault() smithy.ErrorFault { retur type InvalidRegion struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -447,13 +592,20 @@ func (e *InvalidRegion) ErrorMessage() string { } return *e.Message } -func (e *InvalidRegion) ErrorCode() string { return "InvalidRegion" } +func (e *InvalidRegion) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRegion" + } + return *e.ErrorCodeOverride +} func (e *InvalidRegion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Key Management Service (KMS) key of the source backup is not valid. type InvalidSourceKmsKey struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -466,13 +618,20 @@ func (e *InvalidSourceKmsKey) ErrorMessage() string { } return *e.Message } -func (e *InvalidSourceKmsKey) ErrorCode() string { return "InvalidSourceKmsKey" } +func (e *InvalidSourceKmsKey) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSourceKmsKey" + } + return *e.ErrorCodeOverride +} func (e *InvalidSourceKmsKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cache configuration is required for this operation. type MissingFileCacheConfiguration struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -485,13 +644,20 @@ func (e *MissingFileCacheConfiguration) ErrorMessage() string { } return *e.Message } -func (e *MissingFileCacheConfiguration) ErrorCode() string { return "MissingFileCacheConfiguration" } +func (e *MissingFileCacheConfiguration) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingFileCacheConfiguration" + } + return *e.ErrorCodeOverride +} func (e *MissingFileCacheConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A file system configuration is required for this operation. type MissingFileSystemConfiguration struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -504,13 +670,20 @@ func (e *MissingFileSystemConfiguration) ErrorMessage() string { } return *e.Message } -func (e *MissingFileSystemConfiguration) ErrorCode() string { return "MissingFileSystemConfiguration" } +func (e *MissingFileSystemConfiguration) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingFileSystemConfiguration" + } + return *e.ErrorCodeOverride +} func (e *MissingFileSystemConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A volume configuration is required for this operation. type MissingVolumeConfiguration struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -523,7 +696,12 @@ func (e *MissingVolumeConfiguration) ErrorMessage() string { } return *e.Message } -func (e *MissingVolumeConfiguration) ErrorCode() string { return "MissingVolumeConfiguration" } +func (e *MissingVolumeConfiguration) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingVolumeConfiguration" + } + return *e.ErrorCodeOverride +} func (e *MissingVolumeConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified for the tagging operation is not a resource type owned by @@ -531,6 +709,8 @@ func (e *MissingVolumeConfiguration) ErrorFault() smithy.ErrorFault { return smi type NotServiceResourceError struct { Message *string + ErrorCodeOverride *string + ResourceARN *string noSmithyDocumentSerde @@ -545,13 +725,20 @@ func (e *NotServiceResourceError) ErrorMessage() string { } return *e.Message } -func (e *NotServiceResourceError) ErrorCode() string { return "NotServiceResourceError" } +func (e *NotServiceResourceError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotServiceResourceError" + } + return *e.ErrorCodeOverride +} func (e *NotServiceResourceError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified does not support tagging. type ResourceDoesNotSupportTagging struct { Message *string + ErrorCodeOverride *string + ResourceARN *string noSmithyDocumentSerde @@ -566,13 +753,20 @@ func (e *ResourceDoesNotSupportTagging) ErrorMessage() string { } return *e.Message } -func (e *ResourceDoesNotSupportTagging) ErrorCode() string { return "ResourceDoesNotSupportTagging" } +func (e *ResourceDoesNotSupportTagging) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceDoesNotSupportTagging" + } + return *e.ErrorCodeOverride +} func (e *ResourceDoesNotSupportTagging) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified by the Amazon Resource Name (ARN) can't be found. type ResourceNotFound struct { Message *string + ErrorCodeOverride *string + ResourceARN *string noSmithyDocumentSerde @@ -587,7 +781,12 @@ func (e *ResourceNotFound) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFound) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error indicating that a particular service limit was exceeded. You can @@ -595,6 +794,8 @@ func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultC type ServiceLimitExceeded struct { Message *string + ErrorCodeOverride *string + Limit ServiceLimit noSmithyDocumentSerde @@ -609,13 +810,20 @@ func (e *ServiceLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ServiceLimitExceeded) ErrorCode() string { return "ServiceLimitExceeded" } +func (e *ServiceLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ServiceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No Amazon FSx snapshots were found based on the supplied parameters. type SnapshotNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -628,7 +836,12 @@ func (e *SnapshotNotFound) ErrorMessage() string { } return *e.Message } -func (e *SnapshotNotFound) ErrorCode() string { return "SnapshotNotFound" } +func (e *SnapshotNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotNotFound" + } + return *e.ErrorCodeOverride +} func (e *SnapshotNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the lifecycle status of the source backup isn't @@ -636,6 +849,8 @@ func (e *SnapshotNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultC type SourceBackupUnavailable struct { Message *string + ErrorCodeOverride *string + BackupId *string noSmithyDocumentSerde @@ -650,13 +865,20 @@ func (e *SourceBackupUnavailable) ErrorMessage() string { } return *e.Message } -func (e *SourceBackupUnavailable) ErrorCode() string { return "SourceBackupUnavailable" } +func (e *SourceBackupUnavailable) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceBackupUnavailable" + } + return *e.ErrorCodeOverride +} func (e *SourceBackupUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No FSx for ONTAP SVMs were found based upon the supplied parameters. type StorageVirtualMachineNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -669,13 +891,20 @@ func (e *StorageVirtualMachineNotFound) ErrorMessage() string { } return *e.Message } -func (e *StorageVirtualMachineNotFound) ErrorCode() string { return "StorageVirtualMachineNotFound" } +func (e *StorageVirtualMachineNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageVirtualMachineNotFound" + } + return *e.ErrorCodeOverride +} func (e *StorageVirtualMachineNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not supported for this resource or API. type UnsupportedOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -688,13 +917,20 @@ func (e *UnsupportedOperation) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperation) ErrorCode() string { return "UnsupportedOperation" } +func (e *UnsupportedOperation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperation" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No Amazon FSx volumes were found based upon the supplied parameters. type VolumeNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -707,5 +943,10 @@ func (e *VolumeNotFound) ErrorMessage() string { } return *e.Message } -func (e *VolumeNotFound) ErrorCode() string { return "VolumeNotFound" } +func (e *VolumeNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VolumeNotFound" + } + return *e.ErrorCodeOverride +} func (e *VolumeNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/gamelift/types/errors.go b/service/gamelift/types/errors.go index 8d0b7384745..43745c927b6 100644 --- a/service/gamelift/types/errors.go +++ b/service/gamelift/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified fleet has no available instances to fulfill a CreateGameSession @@ -33,6 +40,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type FleetCapacityExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *FleetCapacityExceededException) ErrorMessage() string { } return *e.Message } -func (e *FleetCapacityExceededException) ErrorCode() string { return "FleetCapacityExceededException" } +func (e *FleetCapacityExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FleetCapacityExceededException" + } + return *e.ErrorCodeOverride +} func (e *FleetCapacityExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The game instance is currently full and cannot allow the requested player(s) to @@ -53,6 +67,8 @@ func (e *FleetCapacityExceededException) ErrorFault() smithy.ErrorFault { return type GameSessionFullException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *GameSessionFullException) ErrorMessage() string { } return *e.Message } -func (e *GameSessionFullException) ErrorCode() string { return "GameSessionFullException" } +func (e *GameSessionFullException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GameSessionFullException" + } + return *e.ErrorCodeOverride +} func (e *GameSessionFullException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A game session with this custom ID string already exists in this fleet. Resolve @@ -73,6 +94,8 @@ func (e *GameSessionFullException) ErrorFault() smithy.ErrorFault { return smith type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +109,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -97,6 +123,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -109,7 +137,12 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested operation would cause a conflict with the current state of a @@ -118,6 +151,8 @@ func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smith type InvalidFleetStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,7 +165,12 @@ func (e *InvalidFleetStatusException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFleetStatusException) ErrorCode() string { return "InvalidFleetStatusException" } +func (e *InvalidFleetStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFleetStatusException" + } + return *e.ErrorCodeOverride +} func (e *InvalidFleetStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation would cause a conflict with the current state of a @@ -139,6 +179,8 @@ func (e *InvalidFleetStatusException) ErrorFault() smithy.ErrorFault { return sm type InvalidGameSessionStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -152,7 +194,10 @@ func (e *InvalidGameSessionStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidGameSessionStatusException) ErrorCode() string { - return "InvalidGameSessionStatusException" + if e.ErrorCodeOverride == nil { + return "InvalidGameSessionStatusException" + } + return *e.ErrorCodeOverride } func (e *InvalidGameSessionStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -161,6 +206,8 @@ func (e *InvalidGameSessionStatusException) ErrorFault() smithy.ErrorFault { ret type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +220,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation would cause the resource to exceed the allowed service @@ -181,6 +233,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -193,7 +247,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // THe requested resources was not found. The resource was either not created yet @@ -201,6 +260,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -213,7 +274,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified game server group has no available game servers to fulfill a @@ -222,6 +288,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type OutOfCapacityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -234,7 +302,12 @@ func (e *OutOfCapacityException) ErrorMessage() string { } return *e.Message } -func (e *OutOfCapacityException) ErrorCode() string { return "OutOfCapacityException" } +func (e *OutOfCapacityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OutOfCapacityException" + } + return *e.ErrorCodeOverride +} func (e *OutOfCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested tagging operation did not succeed. This may be due to invalid tag @@ -243,6 +316,8 @@ func (e *OutOfCapacityException) ErrorFault() smithy.ErrorFault { return smithy. type TaggingFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -255,7 +330,12 @@ func (e *TaggingFailedException) ErrorMessage() string { } return *e.Message } -func (e *TaggingFailedException) ErrorCode() string { return "TaggingFailedException" } +func (e *TaggingFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TaggingFailedException" + } + return *e.ErrorCodeOverride +} func (e *TaggingFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is unable to resolve the routing for a particular alias because it @@ -266,6 +346,8 @@ func (e *TaggingFailedException) ErrorFault() smithy.ErrorFault { return smithy. type TerminalRoutingStrategyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -279,7 +361,10 @@ func (e *TerminalRoutingStrategyException) ErrorMessage() string { return *e.Message } func (e *TerminalRoutingStrategyException) ErrorCode() string { - return "TerminalRoutingStrategyException" + if e.ErrorCodeOverride == nil { + return "TerminalRoutingStrategyException" + } + return *e.ErrorCodeOverride } func (e *TerminalRoutingStrategyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -287,6 +372,8 @@ func (e *TerminalRoutingStrategyException) ErrorFault() smithy.ErrorFault { retu type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -299,13 +386,20 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not supported in the Region specified. type UnsupportedRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -318,5 +412,10 @@ func (e *UnsupportedRegionException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedRegionException) ErrorCode() string { return "UnsupportedRegionException" } +func (e *UnsupportedRegionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedRegionException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/gamesparks/types/errors.go b/service/gamesparks/types/errors.go index 0aec5f46718..4b7d9c6095d 100644 --- a/service/gamesparks/types/errors.go +++ b/service/gamesparks/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists, or another operation is in progress. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an internal error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource specified in the request does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in exceeding service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request throughput limit was exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the parameters in the request is invalid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,5 +181,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/glacier/types/errors.go b/service/glacier/types/errors.go index f925e3beb00..0b3ac9baddb 100644 --- a/service/glacier/types/errors.go +++ b/service/glacier/types/errors.go @@ -13,6 +13,8 @@ import ( type InsufficientCapacityException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -28,13 +30,20 @@ func (e *InsufficientCapacityException) ErrorMessage() string { } return *e.Message } -func (e *InsufficientCapacityException) ErrorCode() string { return "InsufficientCapacityException" } +func (e *InsufficientCapacityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InsufficientCapacityException" + } + return *e.ErrorCodeOverride +} func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a parameter of the request is incorrectly specified. type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -50,13 +59,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the request results in a vault or account limit being exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -72,13 +88,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a required header or parameter is missing from the request. type MissingParameterValueException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -94,7 +117,12 @@ func (e *MissingParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *MissingParameterValueException) ErrorCode() string { return "MissingParameterValueException" } +func (e *MissingParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *MissingParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a retrieval job would exceed the current data policy's retrieval @@ -102,6 +130,8 @@ func (e *MissingParameterValueException) ErrorFault() smithy.ErrorFault { return type PolicyEnforcedException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -117,7 +147,12 @@ func (e *PolicyEnforcedException) ErrorMessage() string { } return *e.Message } -func (e *PolicyEnforcedException) ErrorCode() string { return "PolicyEnforcedException" } +func (e *PolicyEnforcedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyEnforcedException" + } + return *e.ErrorCodeOverride +} func (e *PolicyEnforcedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if, when uploading an archive, Amazon S3 Glacier times out while @@ -125,6 +160,8 @@ func (e *PolicyEnforcedException) ErrorFault() smithy.ErrorFault { return smithy type RequestTimeoutException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -140,7 +177,12 @@ func (e *RequestTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *RequestTimeoutException) ErrorCode() string { return "RequestTimeoutException" } +func (e *RequestTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the specified resource (such as a vault, upload ID, or job ID) @@ -148,6 +190,8 @@ func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -163,13 +207,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the service cannot complete the request. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Type *string Code *string @@ -185,5 +236,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/globalaccelerator/types/errors.go b/service/globalaccelerator/types/errors.go index d9d0371ff30..7a6038ff1a8 100644 --- a/service/globalaccelerator/types/errors.go +++ b/service/globalaccelerator/types/errors.go @@ -11,6 +11,8 @@ import ( type AcceleratorNotDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *AcceleratorNotDisabledException) ErrorMessage() string { return *e.Message } func (e *AcceleratorNotDisabledException) ErrorCode() string { - return "AcceleratorNotDisabledException" + if e.ErrorCodeOverride == nil { + return "AcceleratorNotDisabledException" + } + return *e.ErrorCodeOverride } func (e *AcceleratorNotDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -32,6 +37,8 @@ func (e *AcceleratorNotDisabledException) ErrorFault() smithy.ErrorFault { retur type AcceleratorNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +51,20 @@ func (e *AcceleratorNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *AcceleratorNotFoundException) ErrorCode() string { return "AcceleratorNotFoundException" } +func (e *AcceleratorNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AcceleratorNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *AcceleratorNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have access permission. type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +77,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The listener that you specified has an endpoint group associated with it. You @@ -71,6 +90,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AssociatedEndpointGroupFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +105,10 @@ func (e *AssociatedEndpointGroupFoundException) ErrorMessage() string { return *e.Message } func (e *AssociatedEndpointGroupFoundException) ErrorCode() string { - return "AssociatedEndpointGroupFoundException" + if e.ErrorCodeOverride == nil { + return "AssociatedEndpointGroupFoundException" + } + return *e.ErrorCodeOverride } func (e *AssociatedEndpointGroupFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -95,6 +119,8 @@ func (e *AssociatedEndpointGroupFoundException) ErrorFault() smithy.ErrorFault { type AssociatedListenerFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +134,10 @@ func (e *AssociatedListenerFoundException) ErrorMessage() string { return *e.Message } func (e *AssociatedListenerFoundException) ErrorCode() string { - return "AssociatedListenerFoundException" + if e.ErrorCodeOverride == nil { + return "AssociatedListenerFoundException" + } + return *e.ErrorCodeOverride } func (e *AssociatedListenerFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -116,6 +145,8 @@ func (e *AssociatedListenerFoundException) ErrorFault() smithy.ErrorFault { retu type ByoipCidrNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,13 +159,20 @@ func (e *ByoipCidrNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ByoipCidrNotFoundException) ErrorCode() string { return "ByoipCidrNotFoundException" } +func (e *ByoipCidrNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ByoipCidrNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ByoipCidrNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't use both of those options. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,13 +185,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The endpoint that you specified doesn't exist. type EndpointAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -166,13 +211,20 @@ func (e *EndpointAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *EndpointAlreadyExistsException) ErrorCode() string { return "EndpointAlreadyExistsException" } +func (e *EndpointAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EndpointAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *EndpointAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The endpoint group that you specified already exists. type EndpointGroupAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -186,7 +238,10 @@ func (e *EndpointGroupAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EndpointGroupAlreadyExistsException) ErrorCode() string { - return "EndpointGroupAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "EndpointGroupAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *EndpointGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -196,6 +251,8 @@ func (e *EndpointGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { type EndpointGroupNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -208,13 +265,20 @@ func (e *EndpointGroupNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EndpointGroupNotFoundException) ErrorCode() string { return "EndpointGroupNotFoundException" } +func (e *EndpointGroupNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EndpointGroupNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EndpointGroupNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The endpoint that you specified doesn't exist. type EndpointNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -227,7 +291,12 @@ func (e *EndpointNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EndpointNotFoundException) ErrorCode() string { return "EndpointNotFoundException" } +func (e *EndpointNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EndpointNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EndpointNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The CIDR that you specified is not valid for this action. For example, the state @@ -235,6 +304,8 @@ func (e *EndpointNotFoundException) ErrorFault() smithy.ErrorFault { return smit type IncorrectCidrStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -247,13 +318,20 @@ func (e *IncorrectCidrStateException) ErrorMessage() string { } return *e.Message } -func (e *IncorrectCidrStateException) ErrorCode() string { return "IncorrectCidrStateException" } +func (e *IncorrectCidrStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncorrectCidrStateException" + } + return *e.ErrorCodeOverride +} func (e *IncorrectCidrStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal error for Global Accelerator. type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,13 +344,20 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An argument that you specified is invalid. type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -285,13 +370,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There isn't another item to return. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -304,7 +396,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The port numbers that you specified are not valid numbers or are not unique for @@ -312,6 +409,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidPortRangeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -324,13 +423,20 @@ func (e *InvalidPortRangeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPortRangeException) ErrorCode() string { return "InvalidPortRangeException" } +func (e *InvalidPortRangeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPortRangeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPortRangeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Processing your request would cause you to exceed an Global Accelerator limit. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -343,13 +449,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The listener that you specified doesn't exist. type ListenerNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -362,7 +475,12 @@ func (e *ListenerNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ListenerNotFoundException) ErrorCode() string { return "ListenerNotFoundException" } +func (e *ListenerNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ListenerNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ListenerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There's already a transaction in progress. Another transaction can't be @@ -370,6 +488,8 @@ func (e *ListenerNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TransactionInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -382,5 +502,10 @@ func (e *TransactionInProgressException) ErrorMessage() string { } return *e.Message } -func (e *TransactionInProgressException) ErrorCode() string { return "TransactionInProgressException" } +func (e *TransactionInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TransactionInProgressException" + } + return *e.ErrorCodeOverride +} func (e *TransactionInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/glue/types/errors.go b/service/glue/types/errors.go index 50d8ae355fc..a5797c4804d 100644 --- a/service/glue/types/errors.go +++ b/service/glue/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource to be created or added already exists. type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two processes are trying to modify a resource simultaneously. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -70,6 +89,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConcurrentRunsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +104,10 @@ func (e *ConcurrentRunsExceededException) ErrorMessage() string { return *e.Message } func (e *ConcurrentRunsExceededException) ErrorCode() string { - return "ConcurrentRunsExceededException" + if e.ErrorCodeOverride == nil { + return "ConcurrentRunsExceededException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentRunsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -91,6 +115,8 @@ func (e *ConcurrentRunsExceededException) ErrorFault() smithy.ErrorFault { retur type ConditionCheckFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +129,20 @@ func (e *ConditionCheckFailureException) ErrorMessage() string { } return *e.Message } -func (e *ConditionCheckFailureException) ErrorCode() string { return "ConditionCheckFailureException" } +func (e *ConditionCheckFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConditionCheckFailureException" + } + return *e.ErrorCodeOverride +} func (e *ConditionCheckFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The CreatePartitions API was called on a table that has indexes enabled. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,13 +155,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified crawler is not running. type CrawlerNotRunningException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,13 +181,20 @@ func (e *CrawlerNotRunningException) ErrorMessage() string { } return *e.Message } -func (e *CrawlerNotRunningException) ErrorCode() string { return "CrawlerNotRunningException" } +func (e *CrawlerNotRunningException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CrawlerNotRunningException" + } + return *e.ErrorCodeOverride +} func (e *CrawlerNotRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation cannot be performed because the crawler is already running. type CrawlerRunningException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -160,13 +207,20 @@ func (e *CrawlerRunningException) ErrorMessage() string { } return *e.Message } -func (e *CrawlerRunningException) ErrorCode() string { return "CrawlerRunningException" } +func (e *CrawlerRunningException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CrawlerRunningException" + } + return *e.ErrorCodeOverride +} func (e *CrawlerRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified crawler is stopping. type CrawlerStoppingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -179,13 +233,20 @@ func (e *CrawlerStoppingException) ErrorMessage() string { } return *e.Message } -func (e *CrawlerStoppingException) ErrorCode() string { return "CrawlerStoppingException" } +func (e *CrawlerStoppingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CrawlerStoppingException" + } + return *e.ErrorCodeOverride +} func (e *CrawlerStoppingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified entity does not exist type EntityNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -198,13 +259,20 @@ func (e *EntityNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EntityNotFoundException) ErrorCode() string { return "EntityNotFoundException" } +func (e *EntityNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An encryption operation failed. type GlueEncryptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -217,13 +285,20 @@ func (e *GlueEncryptionException) ErrorMessage() string { } return *e.Message } -func (e *GlueEncryptionException) ErrorCode() string { return "GlueEncryptionException" } +func (e *GlueEncryptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GlueEncryptionException" + } + return *e.ErrorCodeOverride +} func (e *GlueEncryptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The same unique identifier was associated with two different records. type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -237,7 +312,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -247,6 +325,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type IllegalBlueprintStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -259,13 +339,20 @@ func (e *IllegalBlueprintStateException) ErrorMessage() string { } return *e.Message } -func (e *IllegalBlueprintStateException) ErrorCode() string { return "IllegalBlueprintStateException" } +func (e *IllegalBlueprintStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalBlueprintStateException" + } + return *e.ErrorCodeOverride +} func (e *IllegalBlueprintStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The session is in an invalid state to perform a requested operation. type IllegalSessionStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -278,13 +365,20 @@ func (e *IllegalSessionStateException) ErrorMessage() string { } return *e.Message } -func (e *IllegalSessionStateException) ErrorCode() string { return "IllegalSessionStateException" } +func (e *IllegalSessionStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalSessionStateException" + } + return *e.ErrorCodeOverride +} func (e *IllegalSessionStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The workflow is in an invalid state to perform a requested operation. type IllegalWorkflowStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -297,13 +391,20 @@ func (e *IllegalWorkflowStateException) ErrorMessage() string { } return *e.Message } -func (e *IllegalWorkflowStateException) ErrorCode() string { return "IllegalWorkflowStateException" } +func (e *IllegalWorkflowStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalWorkflowStateException" + } + return *e.ErrorCodeOverride +} func (e *IllegalWorkflowStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -316,13 +417,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input provided was not valid. type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -335,13 +443,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error that indicates your data is in an invalid state. type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -354,13 +469,20 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The machine learning transform is not ready to run. type MLTransformNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -373,13 +495,20 @@ func (e *MLTransformNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *MLTransformNotReadyException) ErrorCode() string { return "MLTransformNotReadyException" } +func (e *MLTransformNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MLTransformNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *MLTransformNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is no applicable schedule. type NoScheduleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -392,13 +521,20 @@ func (e *NoScheduleException) ErrorMessage() string { } return *e.Message } -func (e *NoScheduleException) ErrorCode() string { return "NoScheduleException" } +func (e *NoScheduleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoScheduleException" + } + return *e.ErrorCodeOverride +} func (e *NoScheduleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation timed out. type OperationTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -411,12 +547,19 @@ func (e *OperationTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *OperationTimeoutException) ErrorCode() string { return "OperationTimeoutException" } +func (e *OperationTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *OperationTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type PermissionTypeMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -430,7 +573,10 @@ func (e *PermissionTypeMismatchException) ErrorMessage() string { return *e.Message } func (e *PermissionTypeMismatchException) ErrorCode() string { - return "PermissionTypeMismatchException" + if e.ErrorCodeOverride == nil { + return "PermissionTypeMismatchException" + } + return *e.ErrorCodeOverride } func (e *PermissionTypeMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -438,6 +584,8 @@ func (e *PermissionTypeMismatchException) ErrorFault() smithy.ErrorFault { retur type ResourceNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -450,13 +598,20 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource numerical limit was exceeded. type ResourceNumberLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -470,7 +625,10 @@ func (e *ResourceNumberLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceNumberLimitExceededException) ErrorCode() string { - return "ResourceNumberLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ResourceNumberLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -480,6 +638,8 @@ func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { type SchedulerNotRunningException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -492,13 +652,20 @@ func (e *SchedulerNotRunningException) ErrorMessage() string { } return *e.Message } -func (e *SchedulerNotRunningException) ErrorCode() string { return "SchedulerNotRunningException" } +func (e *SchedulerNotRunningException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SchedulerNotRunningException" + } + return *e.ErrorCodeOverride +} func (e *SchedulerNotRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified scheduler is already running. type SchedulerRunningException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -511,13 +678,20 @@ func (e *SchedulerRunningException) ErrorMessage() string { } return *e.Message } -func (e *SchedulerRunningException) ErrorCode() string { return "SchedulerRunningException" } +func (e *SchedulerRunningException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SchedulerRunningException" + } + return *e.ErrorCodeOverride +} func (e *SchedulerRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified scheduler is transitioning. type SchedulerTransitioningException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -531,7 +705,10 @@ func (e *SchedulerTransitioningException) ErrorMessage() string { return *e.Message } func (e *SchedulerTransitioningException) ErrorCode() string { - return "SchedulerTransitioningException" + if e.ErrorCodeOverride == nil { + return "SchedulerTransitioningException" + } + return *e.ErrorCodeOverride } func (e *SchedulerTransitioningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -539,6 +716,8 @@ func (e *SchedulerTransitioningException) ErrorFault() smithy.ErrorFault { retur type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -551,13 +730,20 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a version conflict. type VersionMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -570,5 +756,10 @@ func (e *VersionMismatchException) ErrorMessage() string { } return *e.Message } -func (e *VersionMismatchException) ErrorCode() string { return "VersionMismatchException" } +func (e *VersionMismatchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VersionMismatchException" + } + return *e.ErrorCodeOverride +} func (e *VersionMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/grafana/types/errors.go b/service/grafana/types/errors.go index 566936beb61..889aee13c08 100644 --- a/service/grafana/types/errors.go +++ b/service/grafana/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource was in an inconsistent state during an update or a deletion. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error while processing the request. Retry the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -88,13 +111,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ServiceCode *string @@ -112,13 +142,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because of request throttling. Retry the request. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *int32 @@ -135,13 +172,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of a parameter in the request caused an error. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -157,5 +201,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/greengrass/types/errors.go b/service/greengrass/types/errors.go index 855fc45836d..1bf8185fec0 100644 --- a/service/greengrass/types/errors.go +++ b/service/greengrass/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + ErrorDetails []ErrorDetail noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // General error information. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + ErrorDetails []ErrorDetail noSmithyDocumentSerde @@ -46,5 +55,10 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/greengrassv2/types/errors.go b/service/greengrassv2/types/errors.go index 2a27239cbbd..d4b8aa6cd7f 100644 --- a/service/greengrassv2/types/errors.go +++ b/service/greengrassv2/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request has conflicting operations. This can occur if you're trying to @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // IoT Greengrass can't process your request right now. Try again later. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -67,7 +83,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is already in progress. This exception occurs when you use a client @@ -76,6 +97,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type RequestAlreadyInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -89,7 +112,10 @@ func (e *RequestAlreadyInProgressException) ErrorMessage() string { return *e.Message } func (e *RequestAlreadyInProgressException) ErrorCode() string { - return "RequestAlreadyInProgressException" + if e.ErrorCodeOverride == nil { + return "RequestAlreadyInProgressException" + } + return *e.ErrorCodeOverride } func (e *RequestAlreadyInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -97,6 +123,8 @@ func (e *RequestAlreadyInProgressException) ErrorFault() smithy.ErrorFault { ret type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -112,7 +140,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request exceeds a service quota. For example, you might have the maximum @@ -120,6 +153,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string QuotaCode *string @@ -137,7 +172,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request exceeded a request rate quota. For example, you might have exceeded @@ -146,6 +186,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + QuotaCode *string ServiceCode *string RetryAfterSeconds int32 @@ -162,7 +204,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request isn't valid. This can occur if your request contains malformed JSON @@ -170,6 +217,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -185,5 +234,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/groundstation/types/errors.go b/service/groundstation/types/errors.go index 924cc7515a9..384102b6309 100644 --- a/service/groundstation/types/errors.go +++ b/service/groundstation/types/errors.go @@ -11,6 +11,8 @@ import ( type DependencyException struct { Message *string + ErrorCodeOverride *string + ParameterName *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *DependencyException) ErrorMessage() string { } return *e.Message } -func (e *DependencyException) ErrorCode() string { return "DependencyException" } +func (e *DependencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyException" + } + return *e.ErrorCodeOverride +} func (e *DependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One or more parameters are not valid. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + ParameterName *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Account limits for this resource have been exceeded. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + ParameterName *string noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,5 +109,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/guardduty/types/errors.go b/service/guardduty/types/errors.go index 4aec6682a49..b2094921572 100644 --- a/service/guardduty/types/errors.go +++ b/service/guardduty/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal server error exception object. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -46,5 +55,10 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/health/types/errors.go b/service/health/types/errors.go index 7b2b3d2bf4b..8f03a6b4af7 100644 --- a/service/health/types/errors.go +++ b/service/health/types/errors.go @@ -16,6 +16,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -29,7 +31,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -37,6 +42,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type InvalidPaginationToken struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -49,13 +56,20 @@ func (e *InvalidPaginationToken) ErrorMessage() string { } return *e.Message } -func (e *InvalidPaginationToken) ErrorCode() string { return "InvalidPaginationToken" } +func (e *InvalidPaginationToken) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPaginationToken" + } + return *e.ErrorCodeOverride +} func (e *InvalidPaginationToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified locale is not supported. type UnsupportedLocale struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -68,5 +82,10 @@ func (e *UnsupportedLocale) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedLocale) ErrorCode() string { return "UnsupportedLocale" } +func (e *UnsupportedLocale) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedLocale" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedLocale) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/healthlake/types/errors.go b/service/healthlake/types/errors.go index 91182796f13..8d15c3f00c2 100644 --- a/service/healthlake/types/errors.go +++ b/service/healthlake/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Data Store is in a transition state and the user requested action can not be @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unknown error occurs in the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested Data Store was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user has exceeded their maximum number of allowed calls to the given API. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user input parameter was invalid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,5 +156,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/honeycode/types/errors.go b/service/honeycode/types/errors.go index a6c82fdef23..d77b55ab996 100644 --- a/service/honeycode/types/errors.go +++ b/service/honeycode/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The automation execution did not end successfully. type AutomationExecutionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *AutomationExecutionException) ErrorMessage() string { } return *e.Message } -func (e *AutomationExecutionException) ErrorCode() string { return "AutomationExecutionException" } +func (e *AutomationExecutionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AutomationExecutionException" + } + return *e.ErrorCodeOverride +} func (e *AutomationExecutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The automation execution timed out. type AutomationExecutionTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *AutomationExecutionTimeoutException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionTimeoutException) ErrorCode() string { - return "AutomationExecutionTimeoutException" + if e.ErrorCodeOverride == nil { + return "AutomationExecutionTimeoutException" + } + return *e.ErrorCodeOverride } func (e *AutomationExecutionTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -74,6 +93,8 @@ func (e *AutomationExecutionTimeoutException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,13 +107,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request timed out. type RequestTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,7 +133,12 @@ func (e *RequestTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *RequestTimeoutException) ErrorCode() string { return "RequestTimeoutException" } +func (e *RequestTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A Workbook, Table, App, Screen or Screen Automation was not found with the given @@ -113,6 +146,8 @@ func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,13 +160,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request caused service quota to be breached. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,13 +186,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Remote service is unreachable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,13 +212,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Tps(transactions per second) rate reached. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -182,7 +238,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request is invalid. The message in the response contains details on why the @@ -190,6 +251,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -202,5 +265,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iam/types/errors.go b/service/iam/types/errors.go index 9b0f391651d..8e39c7d63d1 100644 --- a/service/iam/types/errors.go +++ b/service/iam/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *ConcurrentModificationException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentModificationException) ErrorCode() string { return "ConcurrentModification" } +func (e *ConcurrentModificationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentModification" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the most recent credential report has expired. @@ -35,6 +42,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type CredentialReportExpiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,7 +56,12 @@ func (e *CredentialReportExpiredException) ErrorMessage() string { } return *e.Message } -func (e *CredentialReportExpiredException) ErrorCode() string { return "ReportExpired" } +func (e *CredentialReportExpiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReportExpired" + } + return *e.ErrorCodeOverride +} func (e *CredentialReportExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the credential report does not exist. To @@ -55,6 +69,8 @@ func (e *CredentialReportExpiredException) ErrorFault() smithy.ErrorFault { retu type CredentialReportNotPresentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +83,12 @@ func (e *CredentialReportNotPresentException) ErrorMessage() string { } return *e.Message } -func (e *CredentialReportNotPresentException) ErrorCode() string { return "ReportNotPresent" } +func (e *CredentialReportNotPresentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReportNotPresent" + } + return *e.ErrorCodeOverride +} func (e *CredentialReportNotPresentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -76,6 +97,8 @@ func (e *CredentialReportNotPresentException) ErrorFault() smithy.ErrorFault { type CredentialReportNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -88,7 +111,12 @@ func (e *CredentialReportNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *CredentialReportNotReadyException) ErrorCode() string { return "ReportInProgress" } +func (e *CredentialReportNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReportInProgress" + } + return *e.ErrorCodeOverride +} func (e *CredentialReportNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to delete a resource that has @@ -96,6 +124,8 @@ func (e *CredentialReportNotReadyException) ErrorFault() smithy.ErrorFault { ret type DeleteConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +138,12 @@ func (e *DeleteConflictException) ErrorMessage() string { } return *e.Message } -func (e *DeleteConflictException) ErrorCode() string { return "DeleteConflict" } +func (e *DeleteConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeleteConflict" + } + return *e.ErrorCodeOverride +} func (e *DeleteConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the same certificate is associated with an IAM @@ -116,6 +151,8 @@ func (e *DeleteConflictException) ErrorFault() smithy.ErrorFault { return smithy type DuplicateCertificateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,7 +165,12 @@ func (e *DuplicateCertificateException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateCertificateException) ErrorCode() string { return "DuplicateCertificate" } +func (e *DuplicateCertificateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateCertificate" + } + return *e.ErrorCodeOverride +} func (e *DuplicateCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the SSH public key is already associated with @@ -136,6 +178,8 @@ func (e *DuplicateCertificateException) ErrorFault() smithy.ErrorFault { return type DuplicateSSHPublicKeyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,7 +192,12 @@ func (e *DuplicateSSHPublicKeyException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateSSHPublicKeyException) ErrorCode() string { return "DuplicateSSHPublicKey" } +func (e *DuplicateSSHPublicKeyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateSSHPublicKey" + } + return *e.ErrorCodeOverride +} func (e *DuplicateSSHPublicKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create a resource that already @@ -156,6 +205,8 @@ func (e *DuplicateSSHPublicKeyException) ErrorFault() smithy.ErrorFault { return type EntityAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -168,7 +219,12 @@ func (e *EntityAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *EntityAlreadyExistsException) ErrorCode() string { return "EntityAlreadyExists" } +func (e *EntityAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it referenced an entity that is temporarily @@ -178,6 +234,8 @@ func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return s type EntityTemporarilyUnmodifiableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -191,7 +249,10 @@ func (e *EntityTemporarilyUnmodifiableException) ErrorMessage() string { return *e.Message } func (e *EntityTemporarilyUnmodifiableException) ErrorCode() string { - return "EntityTemporarilyUnmodifiable" + if e.ErrorCodeOverride == nil { + return "EntityTemporarilyUnmodifiable" + } + return *e.ErrorCodeOverride } func (e *EntityTemporarilyUnmodifiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -202,6 +263,8 @@ func (e *EntityTemporarilyUnmodifiableException) ErrorFault() smithy.ErrorFault type InvalidAuthenticationCodeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -214,7 +277,12 @@ func (e *InvalidAuthenticationCodeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAuthenticationCodeException) ErrorCode() string { return "InvalidAuthenticationCode" } +func (e *InvalidAuthenticationCodeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAuthenticationCode" + } + return *e.ErrorCodeOverride +} func (e *InvalidAuthenticationCodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -223,6 +291,8 @@ func (e *InvalidAuthenticationCodeException) ErrorFault() smithy.ErrorFault { type InvalidCertificateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -235,7 +305,12 @@ func (e *InvalidCertificateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCertificateException) ErrorCode() string { return "InvalidCertificate" } +func (e *InvalidCertificateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCertificate" + } + return *e.ErrorCodeOverride +} func (e *InvalidCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because an invalid or out-of-range value was supplied @@ -243,6 +318,8 @@ func (e *InvalidCertificateException) ErrorFault() smithy.ErrorFault { return sm type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -255,7 +332,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInput" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInput" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the public key is malformed or otherwise @@ -263,6 +345,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidPublicKeyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -275,7 +359,12 @@ func (e *InvalidPublicKeyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPublicKeyException) ErrorCode() string { return "InvalidPublicKey" } +func (e *InvalidPublicKeyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPublicKey" + } + return *e.ErrorCodeOverride +} func (e *InvalidPublicKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the type of user for the transaction was @@ -283,6 +372,8 @@ func (e *InvalidPublicKeyException) ErrorFault() smithy.ErrorFault { return smit type InvalidUserTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -295,7 +386,12 @@ func (e *InvalidUserTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidUserTypeException) ErrorCode() string { return "InvalidUserType" } +func (e *InvalidUserTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUserType" + } + return *e.ErrorCodeOverride +} func (e *InvalidUserTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the public key certificate and the private key @@ -303,6 +399,8 @@ func (e *InvalidUserTypeException) ErrorFault() smithy.ErrorFault { return smith type KeyPairMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -315,7 +413,12 @@ func (e *KeyPairMismatchException) ErrorMessage() string { } return *e.Message } -func (e *KeyPairMismatchException) ErrorCode() string { return "KeyPairMismatch" } +func (e *KeyPairMismatchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KeyPairMismatch" + } + return *e.ErrorCodeOverride +} func (e *KeyPairMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create resources beyond the @@ -324,6 +427,8 @@ func (e *KeyPairMismatchException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -336,7 +441,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceeded" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the certificate was malformed or expired. The @@ -344,6 +454,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MalformedCertificateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -356,7 +468,12 @@ func (e *MalformedCertificateException) ErrorMessage() string { } return *e.Message } -func (e *MalformedCertificateException) ErrorCode() string { return "MalformedCertificate" } +func (e *MalformedCertificateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedCertificate" + } + return *e.ErrorCodeOverride +} func (e *MalformedCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the policy document was malformed. The error @@ -364,6 +481,8 @@ func (e *MalformedCertificateException) ErrorFault() smithy.ErrorFault { return type MalformedPolicyDocumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -376,7 +495,12 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { } return *e.Message } -func (e *MalformedPolicyDocumentException) ErrorCode() string { return "MalformedPolicyDocument" } +func (e *MalformedPolicyDocumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedPolicyDocument" + } + return *e.ErrorCodeOverride +} func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it referenced a resource entity that does not @@ -384,6 +508,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type NoSuchEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -396,7 +522,12 @@ func (e *NoSuchEntityException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchEntityException) ErrorCode() string { return "NoSuchEntity" } +func (e *NoSuchEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchEntity" + } + return *e.ErrorCodeOverride +} func (e *NoSuchEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the provided password did not meet the @@ -404,6 +535,8 @@ func (e *NoSuchEntityException) ErrorFault() smithy.ErrorFault { return smithy.F type PasswordPolicyViolationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -416,7 +549,12 @@ func (e *PasswordPolicyViolationException) ErrorMessage() string { } return *e.Message } -func (e *PasswordPolicyViolationException) ErrorCode() string { return "PasswordPolicyViolation" } +func (e *PasswordPolicyViolationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PasswordPolicyViolation" + } + return *e.ErrorCodeOverride +} func (e *PasswordPolicyViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because a provided policy could not be successfully @@ -424,6 +562,8 @@ func (e *PasswordPolicyViolationException) ErrorFault() smithy.ErrorFault { retu type PolicyEvaluationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -436,7 +576,12 @@ func (e *PolicyEvaluationException) ErrorMessage() string { } return *e.Message } -func (e *PolicyEvaluationException) ErrorCode() string { return "PolicyEvaluation" } +func (e *PolicyEvaluationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyEvaluation" + } + return *e.ErrorCodeOverride +} func (e *PolicyEvaluationException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request failed because Amazon Web Services service role policies can only be @@ -444,6 +589,8 @@ func (e *PolicyEvaluationException) ErrorFault() smithy.ErrorFault { return smit type PolicyNotAttachableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -456,7 +603,12 @@ func (e *PolicyNotAttachableException) ErrorMessage() string { } return *e.Message } -func (e *PolicyNotAttachableException) ErrorCode() string { return "PolicyNotAttachable" } +func (e *PolicyNotAttachableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyNotAttachable" + } + return *e.ErrorCodeOverride +} func (e *PolicyNotAttachableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because the maximum number of concurrent requests for this @@ -464,6 +616,8 @@ func (e *PolicyNotAttachableException) ErrorFault() smithy.ErrorFault { return s type ReportGenerationLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -477,7 +631,10 @@ func (e *ReportGenerationLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ReportGenerationLimitExceededException) ErrorCode() string { - return "ReportGenerationLimitExceeded" + if e.ErrorCodeOverride == nil { + return "ReportGenerationLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *ReportGenerationLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -488,6 +645,8 @@ func (e *ReportGenerationLimitExceededException) ErrorFault() smithy.ErrorFault type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -500,13 +659,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailure" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailure" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified service does not support service-specific credentials. type ServiceNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -519,7 +685,12 @@ func (e *ServiceNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *ServiceNotSupportedException) ErrorCode() string { return "NotSupportedService" } +func (e *ServiceNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotSupportedService" + } + return *e.ErrorCodeOverride +} func (e *ServiceNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because only the service that depends on the @@ -529,6 +700,8 @@ func (e *ServiceNotSupportedException) ErrorFault() smithy.ErrorFault { return s type UnmodifiableEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -541,7 +714,12 @@ func (e *UnmodifiableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnmodifiableEntityException) ErrorCode() string { return "UnmodifiableEntity" } +func (e *UnmodifiableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnmodifiableEntity" + } + return *e.ErrorCodeOverride +} func (e *UnmodifiableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the public key encoding format is unsupported @@ -549,6 +727,8 @@ func (e *UnmodifiableEntityException) ErrorFault() smithy.ErrorFault { return sm type UnrecognizedPublicKeyEncodingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -562,7 +742,10 @@ func (e *UnrecognizedPublicKeyEncodingException) ErrorMessage() string { return *e.Message } func (e *UnrecognizedPublicKeyEncodingException) ErrorCode() string { - return "UnrecognizedPublicKeyEncoding" + if e.ErrorCodeOverride == nil { + return "UnrecognizedPublicKeyEncoding" + } + return *e.ErrorCodeOverride } func (e *UnrecognizedPublicKeyEncodingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/identitystore/types/errors.go b/service/identitystore/types/errors.go index 1aa9de47b5f..82c2dd6de5e 100644 --- a/service/identitystore/types/errors.go +++ b/service/identitystore/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request cannot be completed for one of the following reasons: @@ -39,6 +46,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + RequestId *string Reason ConflictExceptionReason @@ -54,7 +63,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -62,6 +76,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + RequestId *string RetryAfterSeconds int32 @@ -77,13 +93,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that a requested resource is not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType ResourceType ResourceId *string RequestId *string @@ -100,7 +123,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause the number of users or groups in the identity store to @@ -108,6 +136,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -122,7 +152,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the principal has crossed the throttling limits of the API @@ -130,6 +165,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RequestId *string RetryAfterSeconds int32 @@ -145,13 +182,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it contains a syntax error. type ValidationException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -166,5 +210,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/imagebuilder/types/errors.go b/service/imagebuilder/types/errors.go index 36d205b6d33..bfba7e92954 100644 --- a/service/imagebuilder/types/errors.go +++ b/service/imagebuilder/types/errors.go @@ -11,6 +11,8 @@ import ( type CallRateLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *CallRateLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *CallRateLimitExceededException) ErrorCode() string { return "CallRateLimitExceededException" } +func (e *CallRateLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CallRateLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *CallRateLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a client action, such as using an action or @@ -32,6 +39,8 @@ func (e *CallRateLimitExceededException) ErrorFault() smithy.ErrorFault { return type ClientException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ClientException) ErrorMessage() string { } return *e.Message } -func (e *ClientException) ErrorCode() string { return "ClientException" } +func (e *ClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientException" + } + return *e.ErrorCodeOverride +} func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform the requested operation. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have specified a client token for an operation using parameter values that @@ -71,6 +92,8 @@ func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.Faul type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +107,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -94,6 +120,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InvalidPaginationTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +135,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidPaginationTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -116,6 +147,8 @@ func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { retur type InvalidParameterCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,7 +162,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidParameterCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -140,6 +176,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -152,13 +190,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value that you provided for the specified parameter is invalid. type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -171,13 +216,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have made a request for an action that is not supported by the service. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,13 +242,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your version number is out of bounds or does not follow the required syntax. type InvalidVersionNumberException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,13 +268,20 @@ func (e *InvalidVersionNumberException) ErrorMessage() string { } return *e.Message } -func (e *InvalidVersionNumberException) ErrorCode() string { return "InvalidVersionNumberException" } +func (e *InvalidVersionNumberException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVersionNumberException" + } + return *e.ErrorCodeOverride +} func (e *InvalidVersionNumberException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you are trying to create already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,7 +294,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have attempted to mutate or delete a resource with a dependency that @@ -236,6 +307,8 @@ func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type ResourceDependencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -248,7 +321,12 @@ func (e *ResourceDependencyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceDependencyException) ErrorCode() string { return "ResourceDependencyException" } +func (e *ResourceDependencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceDependencyException" + } + return *e.ErrorCodeOverride +} func (e *ResourceDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you are trying to operate on is currently in use. Review the @@ -256,6 +334,8 @@ func (e *ResourceDependencyException) ErrorFault() smithy.ErrorFault { return sm type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -268,13 +348,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // At least one of the resources referenced by your request does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -287,13 +374,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the service encounters an unrecoverable exception. type ServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -306,7 +400,12 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceException" + } + return *e.ErrorCodeOverride +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // You have exceeded the number of permitted resources or operations for this @@ -315,6 +414,8 @@ func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultS type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -327,13 +428,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is unable to process your request at this time. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -346,5 +454,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/inspector/types/errors.go b/service/inspector/types/errors.go index 1e2561cb803..891619de1d7 100644 --- a/service/inspector/types/errors.go +++ b/service/inspector/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ AccessDeniedErrorCode CanRetry *bool @@ -26,7 +28,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You started an assessment run, but one of the instances is already participating @@ -34,6 +41,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AgentsAlreadyRunningAssessmentException struct { Message *string + ErrorCodeOverride *string + Agents []AgentAlreadyRunningAssessment AgentsTruncated *bool CanRetry *bool @@ -51,7 +60,10 @@ func (e *AgentsAlreadyRunningAssessmentException) ErrorMessage() string { return *e.Message } func (e *AgentsAlreadyRunningAssessmentException) ErrorCode() string { - return "AgentsAlreadyRunningAssessmentException" + if e.ErrorCodeOverride == nil { + return "AgentsAlreadyRunningAssessmentException" + } + return *e.ErrorCodeOverride } func (e *AgentsAlreadyRunningAssessmentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -62,6 +74,8 @@ func (e *AgentsAlreadyRunningAssessmentException) ErrorFault() smithy.ErrorFault type AssessmentRunInProgressException struct { Message *string + ErrorCodeOverride *string + AssessmentRunArns []string AssessmentRunArnsTruncated *bool CanRetry *bool @@ -79,7 +93,10 @@ func (e *AssessmentRunInProgressException) ErrorMessage() string { return *e.Message } func (e *AssessmentRunInProgressException) ErrorCode() string { - return "AssessmentRunInProgressException" + if e.ErrorCodeOverride == nil { + return "AssessmentRunInProgressException" + } + return *e.ErrorCodeOverride } func (e *AssessmentRunInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -87,6 +104,8 @@ func (e *AssessmentRunInProgressException) ErrorFault() smithy.ErrorFault { retu type InternalException struct { Message *string + ErrorCodeOverride *string + CanRetry *bool noSmithyDocumentSerde @@ -101,7 +120,12 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Amazon Inspector cannot assume the cross-account role that it needs to list your @@ -109,6 +133,8 @@ func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InvalidCrossAccountRoleException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ InvalidCrossAccountRoleErrorCode CanRetry *bool @@ -125,7 +151,10 @@ func (e *InvalidCrossAccountRoleException) ErrorMessage() string { return *e.Message } func (e *InvalidCrossAccountRoleException) ErrorCode() string { - return "InvalidCrossAccountRoleException" + if e.ErrorCodeOverride == nil { + return "InvalidCrossAccountRoleException" + } + return *e.ErrorCodeOverride } func (e *InvalidCrossAccountRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -134,6 +163,8 @@ func (e *InvalidCrossAccountRoleException) ErrorFault() smithy.ErrorFault { retu type InvalidInputException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ InvalidInputErrorCode CanRetry *bool @@ -149,7 +180,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create resources beyond the @@ -157,6 +193,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type LimitExceededException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ LimitExceededErrorCode CanRetry *bool @@ -172,7 +210,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it referenced an entity that does not exist. @@ -180,6 +223,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NoSuchEntityException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ NoSuchEntityErrorCode CanRetry *bool @@ -195,7 +240,12 @@ func (e *NoSuchEntityException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchEntityException) ErrorCode() string { return "NoSuchEntityException" } +func (e *NoSuchEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchEntityException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is rejected. The specified assessment template is currently @@ -203,6 +253,8 @@ func (e *NoSuchEntityException) ErrorFault() smithy.ErrorFault { return smithy.F type PreviewGenerationInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -216,7 +268,10 @@ func (e *PreviewGenerationInProgressException) ErrorMessage() string { return *e.Message } func (e *PreviewGenerationInProgressException) ErrorCode() string { - return "PreviewGenerationInProgressException" + if e.ErrorCodeOverride == nil { + return "PreviewGenerationInProgressException" + } + return *e.ErrorCodeOverride } func (e *PreviewGenerationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -226,6 +281,8 @@ func (e *PreviewGenerationInProgressException) ErrorFault() smithy.ErrorFault { type ServiceTemporarilyUnavailableException struct { Message *string + ErrorCodeOverride *string + CanRetry *bool noSmithyDocumentSerde @@ -241,7 +298,10 @@ func (e *ServiceTemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceTemporarilyUnavailableException) ErrorCode() string { - return "ServiceTemporarilyUnavailableException" + if e.ErrorCodeOverride == nil { + return "ServiceTemporarilyUnavailableException" + } + return *e.ErrorCodeOverride } func (e *ServiceTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -255,6 +315,8 @@ func (e *ServiceTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault type UnsupportedFeatureException struct { Message *string + ErrorCodeOverride *string + CanRetry *bool noSmithyDocumentSerde @@ -269,5 +331,10 @@ func (e *UnsupportedFeatureException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedFeatureException) ErrorCode() string { return "UnsupportedFeatureException" } +func (e *UnsupportedFeatureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedFeatureException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedFeatureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/inspector2/types/errors.go b/service/inspector2/types/errors.go index 4fa6a89c319..0164993fa2f 100644 --- a/service/inspector2/types/errors.go +++ b/service/inspector2/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more tags submitted as part of the request is not valid. type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict occurred. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -64,7 +80,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed due to an internal failure of the Amazon Inspector @@ -72,6 +93,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -86,7 +109,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation tried to access an invalid resource. Make sure the resource is @@ -94,6 +122,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,7 +136,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded your service quota. To perform the requested action, remove @@ -115,6 +150,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -129,13 +166,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit on the number of requests per second was exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -150,7 +194,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed validation due to missing required fields or having @@ -158,6 +207,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -173,5 +224,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iot/types/errors.go b/service/iot/types/errors.go index fe6cdc3f95e..316c7c55b75 100644 --- a/service/iot/types/errors.go +++ b/service/iot/types/errors.go @@ -13,6 +13,8 @@ import ( type CertificateConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *CertificateConflictException) ErrorMessage() string { } return *e.Message } -func (e *CertificateConflictException) ErrorCode() string { return "CertificateConflictException" } +func (e *CertificateConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateConflictException" + } + return *e.ErrorCodeOverride +} func (e *CertificateConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate operation is not allowed. type CertificateStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *CertificateStateException) ErrorMessage() string { } return *e.Message } -func (e *CertificateStateException) ErrorCode() string { return "CertificateStateException" } +func (e *CertificateStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateStateException" + } + return *e.ErrorCodeOverride +} func (e *CertificateStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate is invalid. type CertificateValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *CertificateValidationException) ErrorMessage() string { } return *e.Message } -func (e *CertificateValidationException) ErrorCode() string { return "CertificateValidationException" } +func (e *CertificateValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateValidationException" + } + return *e.ErrorCodeOverride +} func (e *CertificateValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the same name already exists. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflicting resource update exception. This exception is thrown when two @@ -90,6 +118,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ConflictingResourceUpdateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,7 +133,10 @@ func (e *ConflictingResourceUpdateException) ErrorMessage() string { return *e.Message } func (e *ConflictingResourceUpdateException) ErrorCode() string { - return "ConflictingResourceUpdateException" + if e.ErrorCodeOverride == nil { + return "ConflictingResourceUpdateException" + } + return *e.ErrorCodeOverride } func (e *ConflictingResourceUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -113,6 +146,8 @@ func (e *ConflictingResourceUpdateException) ErrorFault() smithy.ErrorFault { type DeleteConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,13 +160,20 @@ func (e *DeleteConflictException) ErrorMessage() string { } return *e.Message } -func (e *DeleteConflictException) ErrorCode() string { return "DeleteConflictException" } +func (e *DeleteConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DeleteConflictException" + } + return *e.ErrorCodeOverride +} func (e *DeleteConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The index is not ready. type IndexNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,13 +186,20 @@ func (e *IndexNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *IndexNotReadyException) ErrorCode() string { return "IndexNotReadyException" } +func (e *IndexNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IndexNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *IndexNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,13 +212,20 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An unexpected error has occurred. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -182,7 +238,12 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Internal error from the service that indicates an unexpected error or that the @@ -190,6 +251,8 @@ func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smith type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -202,13 +265,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The aggregation is invalid. type InvalidAggregationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -221,13 +291,20 @@ func (e *InvalidAggregationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAggregationException) ErrorCode() string { return "InvalidAggregationException" } +func (e *InvalidAggregationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAggregationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAggregationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query is invalid. type InvalidQueryException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -240,13 +317,20 @@ func (e *InvalidQueryException) ErrorMessage() string { } return *e.Message } -func (e *InvalidQueryException) ErrorCode() string { return "InvalidQueryException" } +func (e *InvalidQueryException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidQueryException" + } + return *e.ErrorCodeOverride +} func (e *InvalidQueryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -259,13 +343,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The response is invalid. type InvalidResponseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -278,7 +369,12 @@ func (e *InvalidResponseException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResponseException) ErrorCode() string { return "InvalidResponseException" } +func (e *InvalidResponseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResponseException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResponseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An attempt was made to change to an invalid state, for example by deleting a job @@ -286,6 +382,8 @@ func (e *InvalidResponseException) ErrorFault() smithy.ErrorFault { return smith type InvalidStateTransitionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -299,7 +397,10 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - return "InvalidStateTransitionException" + if e.ErrorCodeOverride == nil { + return "InvalidStateTransitionException" + } + return *e.ErrorCodeOverride } func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -307,6 +408,8 @@ func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { retur type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -319,13 +422,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The policy documentation is not valid. type MalformedPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -338,13 +448,20 @@ func (e *MalformedPolicyException) ErrorMessage() string { } return *e.Message } -func (e *MalformedPolicyException) ErrorCode() string { return "MalformedPolicyException" } +func (e *MalformedPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedPolicyException" + } + return *e.ErrorCodeOverride +} func (e *MalformedPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is not configured. type NotConfiguredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -357,13 +474,20 @@ func (e *NotConfiguredException) ErrorMessage() string { } return *e.Message } -func (e *NotConfiguredException) ErrorCode() string { return "NotConfiguredException" } +func (e *NotConfiguredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotConfiguredException" + } + return *e.ErrorCodeOverride +} func (e *NotConfiguredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The registration code is invalid. type RegistrationCodeValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -377,7 +501,10 @@ func (e *RegistrationCodeValidationException) ErrorMessage() string { return *e.Message } func (e *RegistrationCodeValidationException) ErrorCode() string { - return "RegistrationCodeValidationException" + if e.ErrorCodeOverride == nil { + return "RegistrationCodeValidationException" + } + return *e.ErrorCodeOverride } func (e *RegistrationCodeValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -387,6 +514,8 @@ func (e *RegistrationCodeValidationException) ErrorFault() smithy.ErrorFault { type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceArn *string @@ -402,13 +531,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -421,13 +557,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource registration failed. type ResourceRegistrationFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -441,7 +584,10 @@ func (e *ResourceRegistrationFailureException) ErrorMessage() string { return *e.Message } func (e *ResourceRegistrationFailureException) ErrorCode() string { - return "ResourceRegistrationFailureException" + if e.ErrorCodeOverride == nil { + return "ResourceRegistrationFailureException" + } + return *e.ErrorCodeOverride } func (e *ResourceRegistrationFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -451,6 +597,8 @@ func (e *ResourceRegistrationFailureException) ErrorFault() smithy.ErrorFault { type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -463,13 +611,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The Rule-SQL expression can't be parsed correctly. type SqlParseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -482,7 +637,12 @@ func (e *SqlParseException) ErrorMessage() string { } return *e.Message } -func (e *SqlParseException) ErrorCode() string { return "SqlParseException" } +func (e *SqlParseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SqlParseException" + } + return *e.ErrorCodeOverride +} func (e *SqlParseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs if you attempt to start a task with the same task-id as an @@ -490,6 +650,8 @@ func (e *SqlParseException) ErrorFault() smithy.ErrorFault { return smithy.Fault type TaskAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -502,13 +664,20 @@ func (e *TaskAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *TaskAlreadyExistsException) ErrorCode() string { return "TaskAlreadyExistsException" } +func (e *TaskAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TaskAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *TaskAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -521,7 +690,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't revert the certificate transfer because the transfer is already @@ -529,6 +703,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type TransferAlreadyCompletedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -542,7 +718,10 @@ func (e *TransferAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *TransferAlreadyCompletedException) ErrorCode() string { - return "TransferAlreadyCompletedException" + if e.ErrorCodeOverride == nil { + return "TransferAlreadyCompletedException" + } + return *e.ErrorCodeOverride } func (e *TransferAlreadyCompletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -551,6 +730,8 @@ func (e *TransferAlreadyCompletedException) ErrorFault() smithy.ErrorFault { ret type TransferConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -563,13 +744,20 @@ func (e *TransferConflictException) ErrorMessage() string { } return *e.Message } -func (e *TransferConflictException) ErrorCode() string { return "TransferConflictException" } +func (e *TransferConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TransferConflictException" + } + return *e.ErrorCodeOverride +} func (e *TransferConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform this operation. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -582,7 +770,12 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception thrown when the version of an entity specified with the @@ -590,6 +783,8 @@ func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.F type VersionConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -602,13 +797,20 @@ func (e *VersionConflictException) ErrorMessage() string { } return *e.Message } -func (e *VersionConflictException) ErrorCode() string { return "VersionConflictException" } +func (e *VersionConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VersionConflictException" + } + return *e.ErrorCodeOverride +} func (e *VersionConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of policy versions exceeds the limit. type VersionsLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -621,5 +823,10 @@ func (e *VersionsLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *VersionsLimitExceededException) ErrorCode() string { return "VersionsLimitExceededException" } +func (e *VersionsLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VersionsLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *VersionsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iot1clickdevicesservice/types/errors.go b/service/iot1clickdevicesservice/types/errors.go index 3c6e6624d72..02ba170cfe2 100644 --- a/service/iot1clickdevicesservice/types/errors.go +++ b/service/iot1clickdevicesservice/types/errors.go @@ -10,6 +10,8 @@ import ( type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -24,12 +26,19 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalFailureException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -44,12 +53,19 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -64,12 +80,19 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type PreconditionFailedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -84,12 +107,19 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionFailedException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type RangeNotSatisfiableException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -104,12 +134,19 @@ func (e *RangeNotSatisfiableException) ErrorMessage() string { } return *e.Message } -func (e *RangeNotSatisfiableException) ErrorCode() string { return "RangeNotSatisfiableException" } +func (e *RangeNotSatisfiableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RangeNotSatisfiableException" + } + return *e.ErrorCodeOverride +} func (e *RangeNotSatisfiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -124,12 +161,19 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -144,5 +188,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iot1clickprojects/types/errors.go b/service/iot1clickprojects/types/errors.go index 14340696bb5..8a0860b3213 100644 --- a/service/iot1clickprojects/types/errors.go +++ b/service/iot1clickprojects/types/errors.go @@ -10,6 +10,8 @@ import ( type InternalFailureException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -24,12 +26,19 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -44,12 +53,19 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -64,12 +80,19 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -84,12 +107,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -104,5 +134,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotanalytics/types/errors.go b/service/iotanalytics/types/errors.go index a250ae15cc3..a3ced429347 100644 --- a/service/iotanalytics/types/errors.go +++ b/service/iotanalytics/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The command caused an internal limit to be exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the same name already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceArn *string @@ -83,13 +106,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified name could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +158,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,5 +184,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotdataplane/types/errors.go b/service/iotdataplane/types/errors.go index 6fe1d9531e5..88b395d2b84 100644 --- a/service/iotdataplane/types/errors.go +++ b/service/iotdataplane/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified combination of HTTP verb and URI is not supported. type MethodNotAllowedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *MethodNotAllowedException) ErrorMessage() string { } return *e.Message } -func (e *MethodNotAllowedException) ErrorCode() string { return "MethodNotAllowedException" } +func (e *MethodNotAllowedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MethodNotAllowedException" + } + return *e.ErrorCodeOverride +} func (e *MethodNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The payload exceeds the maximum size allowed. type RequestEntityTooLargeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *RequestEntityTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *RequestEntityTooLargeException) ErrorCode() string { return "RequestEntityTooLargeException" } +func (e *RequestEntityTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestEntityTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *RequestEntityTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,13 +181,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The rate exceeds the limit. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,13 +207,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform this operation. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -175,13 +233,20 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document encoding is not supported. type UnsupportedDocumentEncodingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -195,7 +260,10 @@ func (e *UnsupportedDocumentEncodingException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDocumentEncodingException) ErrorCode() string { - return "UnsupportedDocumentEncodingException" + if e.ErrorCodeOverride == nil { + return "UnsupportedDocumentEncodingException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedDocumentEncodingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/iotdeviceadvisor/types/errors.go b/service/iotdeviceadvisor/types/errors.go index ce6243a3093..781b83f6061 100644 --- a/service/iotdeviceadvisor/types/errors.go +++ b/service/iotdeviceadvisor/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Sends an Internal Failure exception. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Sends a Resource Not Found exception. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Sends a validation exception. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,5 +103,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotevents/types/errors.go b/service/iotevents/types/errors.go index 068fc9f5d09..c16be292e42 100644 --- a/service/iotevents/types/errors.go +++ b/service/iotevents/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was invalid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit was exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceArn *string @@ -83,13 +106,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +158,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,13 +184,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request could not be completed due to throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -159,13 +210,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not supported. type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -178,5 +236,10 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/ioteventsdata/types/errors.go b/service/ioteventsdata/types/errors.go index 1d935e23c33..d4ddd8b525e 100644 --- a/service/ioteventsdata/types/errors.go +++ b/service/ioteventsdata/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was invalid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request could not be completed due to throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,5 +129,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotfleethub/types/errors.go b/service/iotfleethub/types/errors.go index 005530d6ff8..63bd88526ff 100644 --- a/service/iotfleethub/types/errors.go +++ b/service/iotfleethub/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,5 +155,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotfleetwise/types/errors.go b/service/iotfleetwise/types/errors.go index 2635154ae29..53978a2c986 100644 --- a/service/iotfleetwise/types/errors.go +++ b/service/iotfleetwise/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has conflicting operations. This can occur if you're trying to @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + Resource *string ResourceType *string @@ -46,7 +55,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be completed because it contains signal decoders with one @@ -54,6 +68,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DecoderManifestValidationException struct { Message *string + ErrorCodeOverride *string + InvalidSignals []InvalidSignalDecoder InvalidNetworkInterfaces []InvalidNetworkInterface @@ -70,7 +86,10 @@ func (e *DecoderManifestValidationException) ErrorMessage() string { return *e.Message } func (e *DecoderManifestValidationException) ErrorCode() string { - return "DecoderManifestValidationException" + if e.ErrorCodeOverride == nil { + return "DecoderManifestValidationException" + } + return *e.ErrorCodeOverride } func (e *DecoderManifestValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -80,6 +99,8 @@ func (e *DecoderManifestValidationException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -94,7 +115,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified node type doesn't match the expected node type for a node. You can @@ -102,6 +128,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidNodeException struct { Message *string + ErrorCodeOverride *string + InvalidNodes []Node Reason *string @@ -117,13 +145,20 @@ func (e *InvalidNodeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNodeException) ErrorCode() string { return "InvalidNodeException" } +func (e *InvalidNodeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNodeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be completed because it contains signals that aren't valid. type InvalidSignalsException struct { Message *string + ErrorCodeOverride *string + InvalidSignals []InvalidSignal noSmithyDocumentSerde @@ -138,13 +173,20 @@ func (e *InvalidSignalsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSignalsException) ErrorCode() string { return "InvalidSignalsException" } +func (e *InvalidSignalsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSignalsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSignalsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service quota was exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -160,13 +202,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource wasn't found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -182,13 +231,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be completed due to throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + QuotaCode *string ServiceCode *string RetryAfterSeconds int32 @@ -205,7 +261,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an Amazon Web Services @@ -213,6 +274,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -228,5 +291,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotjobsdataplane/types/errors.go b/service/iotjobsdataplane/types/errors.go index 0999b19ef52..91f7a456961 100644 --- a/service/iotjobsdataplane/types/errors.go +++ b/service/iotjobsdataplane/types/errors.go @@ -11,6 +11,8 @@ import ( type CertificateValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *CertificateValidationException) ErrorMessage() string { } return *e.Message } -func (e *CertificateValidationException) ErrorCode() string { return "CertificateValidationException" } +func (e *CertificateValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateValidationException" + } + return *e.ErrorCodeOverride +} func (e *CertificateValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The contents of the request were invalid. For example, this code is returned @@ -32,6 +39,8 @@ func (e *CertificateValidationException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An update attempted to change the job execution to a state that is invalid @@ -54,6 +68,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type InvalidStateTransitionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +83,10 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - return "InvalidStateTransitionException" + if e.ErrorCodeOverride == nil { + return "InvalidStateTransitionException" + } + return *e.ErrorCodeOverride } func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -75,6 +94,8 @@ func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { retur type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,13 +108,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,13 +134,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The job is in a terminal state. type TerminalStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,13 +160,20 @@ func (e *TerminalStateException) ErrorMessage() string { } return *e.Message } -func (e *TerminalStateException) ErrorCode() string { return "TerminalStateException" } +func (e *TerminalStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TerminalStateException" + } + return *e.ErrorCodeOverride +} func (e *TerminalStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + Payload []byte noSmithyDocumentSerde @@ -146,5 +188,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotroborunner/types/errors.go b/service/iotroborunner/types/errors.go index e73e4550068..1139247dfa8 100644 --- a/service/iotroborunner/types/errors.go +++ b/service/iotroborunner/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown if a resource in a create request already exists. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown if something goes wrong within the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exception thrown if a resource referenced in the request doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown if the user's AWS account has reached a service limit and the @@ -88,6 +116,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown if the api has been called too quickly be the client. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,13 +156,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown if an invalid parameter is provided to an API. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,5 +182,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotsecuretunneling/types/errors.go b/service/iotsecuretunneling/types/errors.go index 50c02876670..d40a919f5ca 100644 --- a/service/iotsecuretunneling/types/errors.go +++ b/service/iotsecuretunneling/types/errors.go @@ -11,6 +11,8 @@ import ( type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when an operation is attempted on a resource that does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,5 +51,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotsitewise/types/errors.go b/service/iotsitewise/types/errors.go index e53be3c4968..f6f7653f2bb 100644 --- a/service/iotsitewise/types/errors.go +++ b/service/iotsitewise/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictingOperationException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceArn *string @@ -27,13 +29,20 @@ func (e *ConflictingOperationException) ErrorMessage() string { } return *e.Message } -func (e *ConflictingOperationException) ErrorCode() string { return "ConflictingOperationException" } +func (e *ConflictingOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictingOperationException" + } + return *e.ErrorCodeOverride +} func (e *ConflictingOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // IoT SiteWise can't process your request right now. Try again later. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,12 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request isn't valid. This can occur if your request contains malformed JSON @@ -54,6 +68,8 @@ func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smith type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +82,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit for a resource. For example, this can occur if you're @@ -78,6 +99,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -90,13 +113,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceArn *string @@ -112,13 +142,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -131,13 +168,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested service is unavailable. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,7 +194,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Your request exceeded a rate limit. For example, you might have exceeded the @@ -161,6 +210,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +224,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit for the number of tags allowed for a resource. For more @@ -183,6 +239,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -197,13 +255,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -216,5 +281,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotthingsgraph/types/errors.go b/service/iotthingsgraph/types/errors.go index f93c711952c..c7c166c578a 100644 --- a/service/iotthingsgraph/types/errors.go +++ b/service/iotthingsgraph/types/errors.go @@ -10,6 +10,8 @@ import ( type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,12 +24,19 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -40,12 +49,19 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -58,12 +74,19 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -76,12 +99,19 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -94,12 +124,19 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -112,12 +149,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,5 +174,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iottwinmaker/types/errors.go b/service/iottwinmaker/types/errors.go index 9e77c6a91b1..627f504e433 100644 --- a/service/iottwinmaker/types/errors.go +++ b/service/iottwinmaker/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict occurred. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The connector failed. type ConnectorFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ConnectorFailureException) ErrorMessage() string { } return *e.Message } -func (e *ConnectorFailureException) ErrorCode() string { return "ConnectorFailureException" } +func (e *ConnectorFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConnectorFailureException" + } + return *e.ErrorCodeOverride +} func (e *ConnectorFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The connector timed out. type ConnectorTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ConnectorTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *ConnectorTimeoutException) ErrorCode() string { return "ConnectorTimeoutException" } +func (e *ConnectorTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConnectorTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *ConnectorTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The query timeout exception. type QueryTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *QueryTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *QueryTimeoutException) ErrorCode() string { return "QueryTimeoutException" } +func (e *QueryTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "QueryTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *QueryTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource wasn't found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,13 +181,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota was exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,13 +207,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -175,13 +233,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of tags exceeds the limit. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -194,13 +259,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Failed type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -213,5 +285,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotwireless/types/errors.go b/service/iotwireless/types/errors.go index 78c95db3259..c9931b6676b 100644 --- a/service/iotwireless/types/errors.go +++ b/service/iotwireless/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Adding, updating, or deleting the resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing a request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -86,13 +109,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because it exceeded the allowed API request rate. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +135,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because the resource can't have any more tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -126,13 +163,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input did not meet the specified constraints. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,5 +189,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ivs/types/errors.go b/service/ivs/types/errors.go index 8136acf0750..6d94f5558e8 100644 --- a/service/ivs/types/errors.go +++ b/service/ivs/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -24,12 +26,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ChannelNotBroadcasting struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -44,12 +53,19 @@ func (e *ChannelNotBroadcasting) ErrorMessage() string { } return *e.Message } -func (e *ChannelNotBroadcasting) ErrorCode() string { return "ChannelNotBroadcasting" } +func (e *ChannelNotBroadcasting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ChannelNotBroadcasting" + } + return *e.ErrorCodeOverride +} func (e *ChannelNotBroadcasting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -64,12 +80,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServerException struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -84,12 +107,19 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type PendingVerification struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -104,12 +134,19 @@ func (e *PendingVerification) ErrorMessage() string { } return *e.Message } -func (e *PendingVerification) ErrorCode() string { return "PendingVerification" } +func (e *PendingVerification) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PendingVerification" + } + return *e.ErrorCodeOverride +} func (e *PendingVerification) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -124,12 +161,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -144,12 +188,19 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type StreamUnavailable struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -164,12 +215,19 @@ func (e *StreamUnavailable) ErrorMessage() string { } return *e.Message } -func (e *StreamUnavailable) ErrorCode() string { return "StreamUnavailable" } +func (e *StreamUnavailable) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StreamUnavailable" + } + return *e.ErrorCodeOverride +} func (e *StreamUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -184,12 +242,19 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ValidationException struct { Message *string + ErrorCodeOverride *string + ExceptionMessage *string noSmithyDocumentSerde @@ -204,5 +269,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ivschat/types/errors.go b/service/ivschat/types/errors.go index 27ea388364f..c9b048ff96f 100644 --- a/service/ivschat/types/errors.go +++ b/service/ivschat/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,12 +24,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -43,12 +52,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,12 +77,19 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type PendingVerification struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -79,12 +102,19 @@ func (e *PendingVerification) ErrorMessage() string { } return *e.Message } -func (e *PendingVerification) ErrorCode() string { return "PendingVerification" } +func (e *PendingVerification) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PendingVerification" + } + return *e.ErrorCodeOverride +} func (e *PendingVerification) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -100,12 +130,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType Limit int32 @@ -122,12 +159,19 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType Limit int32 @@ -144,12 +188,19 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -165,5 +216,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kafka/types/errors.go b/service/kafka/types/errors.go index 0dcf9202b2f..f88d7573603 100644 --- a/service/kafka/types/errors.go +++ b/service/kafka/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ConflictException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -88,13 +111,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returns information about an error. type NotFoundException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -109,13 +139,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -130,13 +167,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returns information about an error. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -151,13 +195,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + InvalidParameter *string noSmithyDocumentSerde @@ -172,5 +223,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kafkaconnect/types/errors.go b/service/kafkaconnect/types/errors.go index 8ff198370af..0b2ea8c5af7 100644 --- a/service/kafkaconnect/types/errors.go +++ b/service/kafkaconnect/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // HTTP Status Code 409: Conflict. A resource with this name already exists. Retry @@ -32,6 +39,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // HTTP Status Code 403: Access forbidden. Correct your credentials and then retry @@ -52,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // HTTP Status Code 500: Unexpected internal server error. Retrying your request @@ -72,6 +93,8 @@ func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.Faul type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +107,12 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // HTTP Status Code 404: Resource not found due to incorrect input. Correct your @@ -92,6 +120,8 @@ func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return s type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +134,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // HTTP Status Code 503: Service Unavailable. Retrying your request in some time @@ -112,6 +147,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,13 +161,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // HTTP Status Code 429: Limit exceeded. Resource limit reached. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -143,7 +187,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be @@ -151,6 +200,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,5 +214,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kendra/types/errors.go b/service/kendra/types/errors.go index adb7e503982..88aa5a38581 100644 --- a/service/kendra/types/errors.go +++ b/service/kendra/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict occurred with the request. Please fix any inconsistences with your @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An issue occurred with the internal server used for your Amazon Kendra service. @@ -53,6 +67,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input to the request is not valid. Please provide the correct input and try @@ -73,6 +94,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +108,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you want to use already exists. Please check you have provided the @@ -93,6 +121,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type ResourceAlreadyExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,7 +135,12 @@ func (e *ResourceAlreadyExistException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistException) ErrorCode() string { return "ResourceAlreadyExistException" } +func (e *ResourceAlreadyExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you want to use is currently in use. Please check you have provided @@ -113,6 +148,8 @@ func (e *ResourceAlreadyExistException) ErrorFault() smithy.ErrorFault { return type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,7 +162,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you want to use doesn’t exist. Please check you have provided the @@ -133,6 +175,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,7 +189,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you want to use isn't available. Please check you have provided the @@ -153,6 +202,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,7 +216,12 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the set limits for your Amazon Kendra service. Please see @@ -175,6 +231,8 @@ func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return s type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,7 +245,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. Please reduce the number of @@ -195,6 +258,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -207,7 +272,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints set by the Amazon Kendra service. @@ -215,6 +285,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -227,5 +299,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/keyspaces/types/errors.go b/service/keyspaces/types/errors.go index ec68324c06c..a1f9b708f92 100644 --- a/service/keyspaces/types/errors.go +++ b/service/keyspaces/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Keyspaces could not complete the requested action. This error may occur @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Keyspaces was unable to fully process this request because of an internal @@ -52,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation tried to access a keyspace or table that doesn't exist. The @@ -72,6 +93,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceArn *string noSmithyDocumentSerde @@ -86,7 +109,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation exceeded the service quota for this resource. For more information @@ -96,6 +124,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,13 +138,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed due to an invalid or malformed request. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,5 +164,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesis/types/errors.go b/service/kinesis/types/errors.go index 54ee33f3ff1..097267554db 100644 --- a/service/kinesis/types/errors.go +++ b/service/kinesis/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided iterator exceeds the maximum age allowed. type ExpiredIteratorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *ExpiredIteratorException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredIteratorException) ErrorCode() string { return "ExpiredIteratorException" } +func (e *ExpiredIteratorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredIteratorException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredIteratorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pagination token passed to the operation is expired. type ExpiredNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,12 @@ func (e *ExpiredNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredNextTokenException) ErrorCode() string { return "ExpiredNextTokenException" } +func (e *ExpiredNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The processing of the request failed because of an unknown error, exception, or @@ -70,6 +91,8 @@ func (e *ExpiredNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A specified parameter exceeds its restrictions, is not supported, or can't be @@ -90,6 +118,8 @@ func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smith type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +132,12 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ciphertext references a key that doesn't exist or that you don't have access @@ -110,6 +145,8 @@ func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smith type KMSAccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +159,12 @@ func (e *KMSAccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *KMSAccessDeniedException) ErrorCode() string { return "KMSAccessDeniedException" } +func (e *KMSAccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSAccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified customer master key (CMK) isn't @@ -130,6 +172,8 @@ func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smith type KMSDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,7 +186,12 @@ func (e *KMSDisabledException) ErrorMessage() string { } return *e.Message } -func (e *KMSDisabledException) ErrorCode() string { return "KMSDisabledException" } +func (e *KMSDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSDisabledException" + } + return *e.ErrorCodeOverride +} func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the state of the specified resource isn't valid @@ -153,6 +202,8 @@ func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.Fa type KMSInvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,7 +216,12 @@ func (e *KMSInvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidStateException) ErrorCode() string { return "KMSInvalidStateException" } +func (e *KMSInvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified entity or resource can't be @@ -173,6 +229,8 @@ func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smith type KMSNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -185,13 +243,20 @@ func (e *KMSNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *KMSNotFoundException) ErrorCode() string { return "KMSNotFoundException" } +func (e *KMSNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Web Services access key ID needs a subscription for the service. type KMSOptInRequired struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -204,7 +269,12 @@ func (e *KMSOptInRequired) ErrorMessage() string { } return *e.Message } -func (e *KMSOptInRequired) ErrorCode() string { return "KMSOptInRequired" } +func (e *KMSOptInRequired) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSOptInRequired" + } + return *e.ErrorCodeOverride +} func (e *KMSOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. For more information about @@ -214,6 +284,8 @@ func (e *KMSOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultC type KMSThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -226,7 +298,12 @@ func (e *KMSThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *KMSThrottlingException) ErrorCode() string { return "KMSThrottlingException" } +func (e *KMSThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *KMSThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource exceeds the maximum number allowed, or the number of @@ -234,6 +311,8 @@ func (e *KMSThrottlingException) ErrorFault() smithy.ErrorFault { return smithy. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -246,7 +325,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request rate for the stream is too high, or the requested data is too large @@ -260,6 +344,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ProvisionedThroughputExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -273,7 +359,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.ErrorCodeOverride == nil { + return "ProvisionedThroughputExceededException" + } + return *e.ErrorCodeOverride } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -284,6 +373,8 @@ func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -296,7 +387,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource could not be found. The stream might not be specified @@ -304,6 +400,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -316,7 +414,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Specifies that you tried to invoke this API for a data stream with the on-demand @@ -325,6 +428,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -337,5 +442,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisanalytics/types/errors.go b/service/kinesisanalytics/types/errors.go index b3f2eee04e0..74a0b66866c 100644 --- a/service/kinesisanalytics/types/errors.go +++ b/service/kinesisanalytics/types/errors.go @@ -12,6 +12,8 @@ import ( type CodeValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *CodeValidationException) ErrorMessage() string { } return *e.Message } -func (e *CodeValidationException) ErrorCode() string { return "CodeValidationException" } +func (e *CodeValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CodeValidationException" + } + return *e.ErrorCodeOverride +} func (e *CodeValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown as a result of concurrent modification to an application. For @@ -33,6 +40,8 @@ func (e *CodeValidationException) ErrorFault() smithy.ErrorFault { return smithy type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -54,6 +66,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type InvalidApplicationConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *InvalidApplicationConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationConfigurationException) ErrorCode() string { - return "InvalidApplicationConfigurationException" + if e.ErrorCodeOverride == nil { + return "InvalidApplicationConfigurationException" + } + return *e.ErrorCodeOverride } func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -77,6 +94,8 @@ func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFaul type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -89,13 +108,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exceeded the number of applications allowed. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,13 +134,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Application is not available for this operation. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,13 +160,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Specified application can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +186,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Discovery failed to get a record from the streaming source because of the Amazon @@ -157,6 +202,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceProvisionedThroughputExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -170,7 +217,10 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceProvisionedThroughputExceededException) ErrorCode() string { - return "ResourceProvisionedThroughputExceededException" + if e.ErrorCodeOverride == nil { + return "ResourceProvisionedThroughputExceededException" + } + return *e.ErrorCodeOverride } func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -180,6 +230,8 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.Err type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -192,7 +244,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Application created with too many tags, or too many tags added to an @@ -201,6 +258,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -213,7 +272,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Data format is not valid. Amazon Kinesis Analytics is not able to detect schema @@ -221,6 +285,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type UnableToDetectSchemaException struct { Message *string + ErrorCodeOverride *string + RawInputRecords []string ProcessedInputRecords []string @@ -236,7 +302,12 @@ func (e *UnableToDetectSchemaException) ErrorMessage() string { } return *e.Message } -func (e *UnableToDetectSchemaException) ErrorCode() string { return "UnableToDetectSchemaException" } +func (e *UnableToDetectSchemaException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnableToDetectSchemaException" + } + return *e.ErrorCodeOverride +} func (e *UnableToDetectSchemaException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because a specified parameter is not supported or a @@ -244,6 +315,8 @@ func (e *UnableToDetectSchemaException) ErrorFault() smithy.ErrorFault { return type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -256,5 +329,10 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisanalyticsv2/types/errors.go b/service/kinesisanalyticsv2/types/errors.go index 2f984d7176c..a1a1ca5e402 100644 --- a/service/kinesisanalyticsv2/types/errors.go +++ b/service/kinesisanalyticsv2/types/errors.go @@ -12,6 +12,8 @@ import ( type CodeValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *CodeValidationException) ErrorMessage() string { } return *e.Message } -func (e *CodeValidationException) ErrorCode() string { return "CodeValidationException" } +func (e *CodeValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CodeValidationException" + } + return *e.ErrorCodeOverride +} func (e *CodeValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown as a result of concurrent modifications to an application. This @@ -33,6 +40,8 @@ func (e *CodeValidationException) ErrorFault() smithy.ErrorFault { return smithy type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -54,6 +66,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type InvalidApplicationConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *InvalidApplicationConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationConfigurationException) ErrorCode() string { - return "InvalidApplicationConfigurationException" + if e.ErrorCodeOverride == nil { + return "InvalidApplicationConfigurationException" + } + return *e.ErrorCodeOverride } func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -77,6 +94,8 @@ func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFaul type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -89,13 +108,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request JSON is not valid for the operation. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,13 +134,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of allowed resources has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,13 +160,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The application is not available for this operation. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,13 +186,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Specified application can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,7 +212,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Discovery failed to get a record from the streaming source because of the @@ -176,6 +228,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceProvisionedThroughputExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -189,7 +243,10 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceProvisionedThroughputExceededException) ErrorCode() string { - return "ResourceProvisionedThroughputExceededException" + if e.ErrorCodeOverride == nil { + return "ResourceProvisionedThroughputExceededException" + } + return *e.ErrorCodeOverride } func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -199,6 +256,8 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.Err type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -211,7 +270,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Application created with too many tags, or too many tags added to an @@ -220,6 +284,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -232,7 +298,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The data format is not valid. Kinesis Data Analytics cannot detect the schema @@ -240,6 +311,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type UnableToDetectSchemaException struct { Message *string + ErrorCodeOverride *string + RawInputRecords []string ProcessedInputRecords []string @@ -255,7 +328,12 @@ func (e *UnableToDetectSchemaException) ErrorMessage() string { } return *e.Message } -func (e *UnableToDetectSchemaException) ErrorCode() string { return "UnableToDetectSchemaException" } +func (e *UnableToDetectSchemaException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnableToDetectSchemaException" + } + return *e.ErrorCodeOverride +} func (e *UnableToDetectSchemaException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because a specified parameter is not supported or a @@ -263,6 +341,8 @@ func (e *UnableToDetectSchemaException) ErrorFault() smithy.ErrorFault { return type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -275,5 +355,10 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisvideo/types/errors.go b/service/kinesisvideo/types/errors.go index 84d2fa4a58e..d2c2a99cb3b 100644 --- a/service/kinesisvideo/types/errors.go +++ b/service/kinesisvideo/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum limit of active signaling channels for this Amazon @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AccountChannelLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *AccountChannelLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AccountChannelLimitExceededException) ErrorCode() string { - return "AccountChannelLimitExceededException" + if e.ErrorCodeOverride == nil { + return "AccountChannelLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *AccountChannelLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *AccountChannelLimitExceededException) ErrorFault() smithy.ErrorFault { type AccountStreamLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *AccountStreamLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AccountStreamLimitExceededException) ErrorCode() string { - return "AccountStreamLimitExceededException" + if e.ErrorCodeOverride == nil { + return "AccountStreamLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *AccountStreamLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -78,6 +95,8 @@ func (e *AccountStreamLimitExceededException) ErrorFault() smithy.ErrorFault { type ClientLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -90,13 +109,20 @@ func (e *ClientLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ClientLimitExceededException) ErrorCode() string { return "ClientLimitExceededException" } +func (e *ClientLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Not implemented. type DeviceStreamLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -110,7 +136,10 @@ func (e *DeviceStreamLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeviceStreamLimitExceededException) ErrorCode() string { - return "DeviceStreamLimitExceededException" + if e.ErrorCodeOverride == nil { + return "DeviceStreamLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *DeviceStreamLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -120,6 +149,8 @@ func (e *DeviceStreamLimitExceededException) ErrorFault() smithy.ErrorFault { type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -132,13 +163,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Not implemented. type InvalidDeviceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -151,13 +189,20 @@ func (e *InvalidDeviceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidDeviceException) ErrorCode() string { return "InvalidDeviceException" } +func (e *InvalidDeviceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDeviceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidDeviceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The format of the StreamARN is invalid. type InvalidResourceFormatException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -170,13 +215,20 @@ func (e *InvalidResourceFormatException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceFormatException) ErrorCode() string { return "InvalidResourceFormatException" } +func (e *InvalidResourceFormatException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceFormatException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceFormatException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Stream data retention in hours is equal to zero. type NoDataRetentionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -189,13 +241,20 @@ func (e *NoDataRetentionException) ErrorMessage() string { } return *e.Message } -func (e *NoDataRetentionException) ErrorCode() string { return "NoDataRetentionException" } +func (e *NoDataRetentionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoDataRetentionException" + } + return *e.ErrorCodeOverride +} func (e *NoDataRetentionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller is not authorized to perform this operation. type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -208,7 +267,12 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // When the input StreamARN or ChannelARN in CLOUD_STORAGE_MODE is already mapped @@ -227,6 +291,8 @@ func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -239,13 +305,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Kinesis Video Streams can't find the stream that you specified. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -258,7 +331,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Exception rendered when the Amazon Kinesis Video Stream can't find a @@ -266,6 +344,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type StreamEdgeConfigurationNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -279,7 +359,10 @@ func (e *StreamEdgeConfigurationNotFoundException) ErrorMessage() string { return *e.Message } func (e *StreamEdgeConfigurationNotFoundException) ErrorCode() string { - return "StreamEdgeConfigurationNotFoundException" + if e.ErrorCodeOverride == nil { + return "StreamEdgeConfigurationNotFoundException" + } + return *e.ErrorCodeOverride } func (e *StreamEdgeConfigurationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -290,6 +373,8 @@ func (e *StreamEdgeConfigurationNotFoundException) ErrorFault() smithy.ErrorFaul type TagsPerResourceExceededLimitException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -303,7 +388,10 @@ func (e *TagsPerResourceExceededLimitException) ErrorMessage() string { return *e.Message } func (e *TagsPerResourceExceededLimitException) ErrorCode() string { - return "TagsPerResourceExceededLimitException" + if e.ErrorCodeOverride == nil { + return "TagsPerResourceExceededLimitException" + } + return *e.ErrorCodeOverride } func (e *TagsPerResourceExceededLimitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -316,6 +404,8 @@ func (e *TagsPerResourceExceededLimitException) ErrorFault() smithy.ErrorFault { type VersionMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -328,5 +418,10 @@ func (e *VersionMismatchException) ErrorMessage() string { } return *e.Message } -func (e *VersionMismatchException) ErrorCode() string { return "VersionMismatchException" } +func (e *VersionMismatchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VersionMismatchException" + } + return *e.ErrorCodeOverride +} func (e *VersionMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisvideoarchivedmedia/types/errors.go b/service/kinesisvideoarchivedmedia/types/errors.go index 2a409570c92..a822f603365 100644 --- a/service/kinesisvideoarchivedmedia/types/errors.go +++ b/service/kinesisvideoarchivedmedia/types/errors.go @@ -14,6 +14,8 @@ import ( type ClientLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -26,7 +28,12 @@ func (e *ClientLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ClientLimitExceededException) ErrorCode() string { return "ClientLimitExceededException" } +func (e *ClientLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified parameter exceeds its restrictions, is not supported, or can't be @@ -34,6 +41,8 @@ func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return s type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,12 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The codec private data in at least one of the tracks of the video stream is not @@ -54,6 +68,8 @@ func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smith type InvalidCodecPrivateDataException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +83,10 @@ func (e *InvalidCodecPrivateDataException) ErrorMessage() string { return *e.Message } func (e *InvalidCodecPrivateDataException) ErrorCode() string { - return "InvalidCodecPrivateDataException" + if e.ErrorCodeOverride == nil { + return "InvalidCodecPrivateDataException" + } + return *e.ErrorCodeOverride } func (e *InvalidCodecPrivateDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -76,6 +95,8 @@ func (e *InvalidCodecPrivateDataException) ErrorFault() smithy.ErrorFault { retu type InvalidMediaFrameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -88,13 +109,20 @@ func (e *InvalidMediaFrameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidMediaFrameException) ErrorCode() string { return "InvalidMediaFrameException" } +func (e *InvalidMediaFrameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMediaFrameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidMediaFrameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No codec private data was found in at least one of tracks of the video stream. type MissingCodecPrivateDataException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +136,10 @@ func (e *MissingCodecPrivateDataException) ErrorMessage() string { return *e.Message } func (e *MissingCodecPrivateDataException) ErrorCode() string { - return "MissingCodecPrivateDataException" + if e.ErrorCodeOverride == nil { + return "MissingCodecPrivateDataException" + } + return *e.ErrorCodeOverride } func (e *MissingCodecPrivateDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -117,6 +148,8 @@ func (e *MissingCodecPrivateDataException) ErrorFault() smithy.ErrorFault { retu type NoDataRetentionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,7 +162,12 @@ func (e *NoDataRetentionException) ErrorMessage() string { } return *e.Message } -func (e *NoDataRetentionException) ErrorCode() string { return "NoDataRetentionException" } +func (e *NoDataRetentionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoDataRetentionException" + } + return *e.ErrorCodeOverride +} func (e *NoDataRetentionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Status Code: 403, The caller is not authorized to perform an operation on the @@ -137,6 +175,8 @@ func (e *NoDataRetentionException) ErrorFault() smithy.ErrorFault { return smith type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -149,7 +189,12 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // GetMedia throws this error when Kinesis Video Streams can't find the stream that @@ -161,6 +206,8 @@ func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +220,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The type of the media (for example, h.264 or h.265 video or ACC or G.711 audio) @@ -183,6 +235,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type UnsupportedStreamMediaTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -196,7 +250,10 @@ func (e *UnsupportedStreamMediaTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedStreamMediaTypeException) ErrorCode() string { - return "UnsupportedStreamMediaTypeException" + if e.ErrorCodeOverride == nil { + return "UnsupportedStreamMediaTypeException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedStreamMediaTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/kinesisvideomedia/types/errors.go b/service/kinesisvideomedia/types/errors.go index 1ad5afd5f0e..7749368f3c6 100644 --- a/service/kinesisvideomedia/types/errors.go +++ b/service/kinesisvideomedia/types/errors.go @@ -12,6 +12,8 @@ import ( type ClientLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *ClientLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ClientLimitExceededException) ErrorCode() string { return "ClientLimitExceededException" } +func (e *ClientLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Kinesis Video Streams has throttled the request because you have exceeded the @@ -32,6 +39,8 @@ func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return s type ConnectionLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *ConnectionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ConnectionLimitExceededException) ErrorCode() string { - return "ConnectionLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ConnectionLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ConnectionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -53,6 +65,8 @@ func (e *ConnectionLimitExceededException) ErrorFault() smithy.ErrorFault { retu type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +79,12 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Status Code: 400, Caller used wrong endpoint to write data to a stream. On @@ -75,6 +94,8 @@ func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smith type InvalidEndpointException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +108,12 @@ func (e *InvalidEndpointException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEndpointException) ErrorCode() string { return "InvalidEndpointException" } +func (e *InvalidEndpointException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEndpointException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Status Code: 403, The caller is not authorized to perform an operation on the @@ -95,6 +121,8 @@ func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smith type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +135,20 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Status Code: 404, The stream with the given name does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,5 +161,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisvideosignaling/types/errors.go b/service/kinesisvideosignaling/types/errors.go index d6e2656ee07..fc7d1589e58 100644 --- a/service/kinesisvideosignaling/types/errors.go +++ b/service/kinesisvideosignaling/types/errors.go @@ -12,6 +12,8 @@ import ( type ClientLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *ClientLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ClientLimitExceededException) ErrorCode() string { return "ClientLimitExceededException" } +func (e *ClientLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value for this input parameter is invalid. type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified client is invalid. type InvalidClientException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InvalidClientException) ErrorMessage() string { } return *e.Message } -func (e *InvalidClientException) ErrorCode() string { return "InvalidClientException" } +func (e *InvalidClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClientException" + } + return *e.ErrorCodeOverride +} func (e *InvalidClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller is not authorized to perform this operation. type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,7 +130,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // If the client session is expired. Once the client is connected, the session is @@ -109,6 +144,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type SessionExpiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,5 +158,10 @@ func (e *SessionExpiredException) ErrorMessage() string { } return *e.Message } -func (e *SessionExpiredException) ErrorCode() string { return "SessionExpiredException" } +func (e *SessionExpiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SessionExpiredException" + } + return *e.ErrorCodeOverride +} func (e *SessionExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisvideowebrtcstorage/types/errors.go b/service/kinesisvideowebrtcstorage/types/errors.go index 7c58a704835..34d1df5c577 100644 --- a/service/kinesisvideowebrtcstorage/types/errors.go +++ b/service/kinesisvideowebrtcstorage/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Kinesis Video Streams has throttled the request because you have exceeded the @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ClientLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *ClientLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ClientLimitExceededException) ErrorCode() string { return "ClientLimitExceededException" } +func (e *ClientLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClientLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value for this input parameter is invalid. type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,5 +104,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kms/types/errors.go b/service/kms/types/errors.go index 0bfaed5cb18..07e8e4929fc 100644 --- a/service/kms/types/errors.go +++ b/service/kms/types/errors.go @@ -12,6 +12,8 @@ import ( type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified CloudHSM cluster is already @@ -38,6 +45,8 @@ func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy. type CloudHsmClusterInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -50,7 +59,12 @@ func (e *CloudHsmClusterInUseException) ErrorMessage() string { } return *e.Message } -func (e *CloudHsmClusterInUseException) ErrorCode() string { return "CloudHsmClusterInUseException" } +func (e *CloudHsmClusterInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CloudHsmClusterInUseException" + } + return *e.ErrorCodeOverride +} func (e *CloudHsmClusterInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the associated CloudHSM cluster did not meet @@ -93,6 +107,8 @@ func (e *CloudHsmClusterInUseException) ErrorFault() smithy.ErrorFault { return type CloudHsmClusterInvalidConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,7 +122,10 @@ func (e *CloudHsmClusterInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterInvalidConfigurationException) ErrorCode() string { - return "CloudHsmClusterInvalidConfigurationException" + if e.ErrorCodeOverride == nil { + return "CloudHsmClusterInvalidConfigurationException" + } + return *e.ErrorCodeOverride } func (e *CloudHsmClusterInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -120,6 +139,8 @@ func (e *CloudHsmClusterInvalidConfigurationException) ErrorFault() smithy.Error type CloudHsmClusterNotActiveException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -133,7 +154,10 @@ func (e *CloudHsmClusterNotActiveException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotActiveException) ErrorCode() string { - return "CloudHsmClusterNotActiveException" + if e.ErrorCodeOverride == nil { + return "CloudHsmClusterNotActiveException" + } + return *e.ErrorCodeOverride } func (e *CloudHsmClusterNotActiveException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -142,6 +166,8 @@ func (e *CloudHsmClusterNotActiveException) ErrorFault() smithy.ErrorFault { ret type CloudHsmClusterNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -155,7 +181,10 @@ func (e *CloudHsmClusterNotFoundException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotFoundException) ErrorCode() string { - return "CloudHsmClusterNotFoundException" + if e.ErrorCodeOverride == nil { + return "CloudHsmClusterNotFoundException" + } + return *e.ErrorCodeOverride } func (e *CloudHsmClusterNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -172,6 +201,8 @@ func (e *CloudHsmClusterNotFoundException) ErrorFault() smithy.ErrorFault { retu type CloudHsmClusterNotRelatedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -185,7 +216,10 @@ func (e *CloudHsmClusterNotRelatedException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotRelatedException) ErrorCode() string { - return "CloudHsmClusterNotRelatedException" + if e.ErrorCodeOverride == nil { + return "CloudHsmClusterNotRelatedException" + } + return *e.ErrorCodeOverride } func (e *CloudHsmClusterNotRelatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -198,6 +232,8 @@ func (e *CloudHsmClusterNotRelatedException) ErrorFault() smithy.ErrorFault { type CustomKeyStoreHasCMKsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -210,7 +246,12 @@ func (e *CustomKeyStoreHasCMKsException) ErrorMessage() string { } return *e.Message } -func (e *CustomKeyStoreHasCMKsException) ErrorCode() string { return "CustomKeyStoreHasCMKsException" } +func (e *CustomKeyStoreHasCMKsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CustomKeyStoreHasCMKsException" + } + return *e.ErrorCodeOverride +} func (e *CustomKeyStoreHasCMKsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because of the ConnectionState of the custom key store. @@ -244,6 +285,8 @@ func (e *CustomKeyStoreHasCMKsException) ErrorFault() smithy.ErrorFault { return type CustomKeyStoreInvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -257,7 +300,10 @@ func (e *CustomKeyStoreInvalidStateException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreInvalidStateException) ErrorCode() string { - return "CustomKeyStoreInvalidStateException" + if e.ErrorCodeOverride == nil { + return "CustomKeyStoreInvalidStateException" + } + return *e.ErrorCodeOverride } func (e *CustomKeyStoreInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -269,6 +315,8 @@ func (e *CustomKeyStoreInvalidStateException) ErrorFault() smithy.ErrorFault { type CustomKeyStoreNameInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -282,7 +330,10 @@ func (e *CustomKeyStoreNameInUseException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreNameInUseException) ErrorCode() string { - return "CustomKeyStoreNameInUseException" + if e.ErrorCodeOverride == nil { + return "CustomKeyStoreNameInUseException" + } + return *e.ErrorCodeOverride } func (e *CustomKeyStoreNameInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -291,6 +342,8 @@ func (e *CustomKeyStoreNameInUseException) ErrorFault() smithy.ErrorFault { retu type CustomKeyStoreNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -304,7 +357,10 @@ func (e *CustomKeyStoreNotFoundException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreNotFoundException) ErrorCode() string { - return "CustomKeyStoreNotFoundException" + if e.ErrorCodeOverride == nil { + return "CustomKeyStoreNotFoundException" + } + return *e.ErrorCodeOverride } func (e *CustomKeyStoreNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -313,6 +369,8 @@ func (e *CustomKeyStoreNotFoundException) ErrorFault() smithy.ErrorFault { retur type DependencyTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -325,13 +383,20 @@ func (e *DependencyTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *DependencyTimeoutException) ErrorCode() string { return "DependencyTimeoutException" } +func (e *DependencyTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *DependencyTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was rejected because the specified KMS key is not enabled. type DisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -344,7 +409,12 @@ func (e *DisabledException) ErrorMessage() string { } return *e.Message } -func (e *DisabledException) ErrorCode() string { return "DisabledException" } +func (e *DisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DisabledException" + } + return *e.ErrorCodeOverride +} func (e *DisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified import token is expired. Use @@ -353,6 +423,8 @@ func (e *DisabledException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ExpiredImportTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -365,7 +437,12 @@ func (e *ExpiredImportTokenException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredImportTokenException) ErrorCode() string { return "ExpiredImportTokenException" } +func (e *ExpiredImportTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredImportTokenException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredImportTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified KMS key cannot decrypt the data. @@ -374,6 +451,8 @@ func (e *ExpiredImportTokenException) ErrorFault() smithy.ErrorFault { return sm type IncorrectKeyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -386,7 +465,12 @@ func (e *IncorrectKeyException) ErrorMessage() string { } return *e.Message } -func (e *IncorrectKeyException) ErrorCode() string { return "IncorrectKeyException" } +func (e *IncorrectKeyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncorrectKeyException" + } + return *e.ErrorCodeOverride +} func (e *IncorrectKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the key material in the request is, expired, @@ -395,6 +479,8 @@ func (e *IncorrectKeyException) ErrorFault() smithy.ErrorFault { return smithy.F type IncorrectKeyMaterialException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -407,7 +493,12 @@ func (e *IncorrectKeyMaterialException) ErrorMessage() string { } return *e.Message } -func (e *IncorrectKeyMaterialException) ErrorCode() string { return "IncorrectKeyMaterialException" } +func (e *IncorrectKeyMaterialException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncorrectKeyMaterialException" + } + return *e.ErrorCodeOverride +} func (e *IncorrectKeyMaterialException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the trust anchor certificate in the request to @@ -418,6 +509,8 @@ func (e *IncorrectKeyMaterialException) ErrorFault() smithy.ErrorFault { return type IncorrectTrustAnchorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -430,13 +523,20 @@ func (e *IncorrectTrustAnchorException) ErrorMessage() string { } return *e.Message } -func (e *IncorrectTrustAnchorException) ErrorCode() string { return "IncorrectTrustAnchorException" } +func (e *IncorrectTrustAnchorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncorrectTrustAnchorException" + } + return *e.ErrorCodeOverride +} func (e *IncorrectTrustAnchorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified alias name is not valid. type InvalidAliasNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -449,7 +549,12 @@ func (e *InvalidAliasNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAliasNameException) ErrorCode() string { return "InvalidAliasNameException" } +func (e *InvalidAliasNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAliasNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAliasNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because a specified ARN, or an ARN in a key policy, is @@ -457,6 +562,8 @@ func (e *InvalidAliasNameException) ErrorFault() smithy.ErrorFault { return smit type InvalidArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -469,7 +576,12 @@ func (e *InvalidArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArnException) ErrorCode() string { return "InvalidArnException" } +func (e *InvalidArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // From the Decrypt or ReEncrypt operation, the request was rejected because the @@ -480,6 +592,8 @@ func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidCiphertextException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -492,13 +606,20 @@ func (e *InvalidCiphertextException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCiphertextException) ErrorCode() string { return "InvalidCiphertextException" } +func (e *InvalidCiphertextException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCiphertextException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCiphertextException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified GrantId is not valid. type InvalidGrantIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -511,13 +632,20 @@ func (e *InvalidGrantIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidGrantIdException) ErrorCode() string { return "InvalidGrantIdException" } +func (e *InvalidGrantIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGrantIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidGrantIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified grant token is not valid. type InvalidGrantTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -530,7 +658,12 @@ func (e *InvalidGrantTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidGrantTokenException) ErrorCode() string { return "InvalidGrantTokenException" } +func (e *InvalidGrantTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGrantTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidGrantTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the provided import token is invalid or is @@ -538,6 +671,8 @@ func (e *InvalidGrantTokenException) ErrorFault() smithy.ErrorFault { return smi type InvalidImportTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -550,7 +685,12 @@ func (e *InvalidImportTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidImportTokenException) ErrorCode() string { return "InvalidImportTokenException" } +func (e *InvalidImportTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidImportTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidImportTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected for one of the following reasons: @@ -572,6 +712,8 @@ func (e *InvalidImportTokenException) ErrorFault() smithy.ErrorFault { return sm type InvalidKeyUsageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -584,7 +726,12 @@ func (e *InvalidKeyUsageException) ErrorMessage() string { } return *e.Message } -func (e *InvalidKeyUsageException) ErrorCode() string { return "InvalidKeyUsageException" } +func (e *InvalidKeyUsageException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKeyUsageException" + } + return *e.ErrorCodeOverride +} func (e *InvalidKeyUsageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the marker that specifies where pagination @@ -592,6 +739,8 @@ func (e *InvalidKeyUsageException) ErrorFault() smithy.ErrorFault { return smith type InvalidMarkerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -604,7 +753,12 @@ func (e *InvalidMarkerException) ErrorMessage() string { } return *e.Message } -func (e *InvalidMarkerException) ErrorCode() string { return "InvalidMarkerException" } +func (e *InvalidMarkerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMarkerException" + } + return *e.ErrorCodeOverride +} func (e *InvalidMarkerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified KMS key was not available. You @@ -612,6 +766,8 @@ func (e *InvalidMarkerException) ErrorFault() smithy.ErrorFault { return smithy. type KeyUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -624,7 +780,12 @@ func (e *KeyUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *KeyUnavailableException) ErrorCode() string { return "KeyUnavailableException" } +func (e *KeyUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KeyUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *KeyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was rejected because an internal exception occurred. The request can @@ -632,6 +793,8 @@ func (e *KeyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy type KMSInternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -644,7 +807,12 @@ func (e *KMSInternalException) ErrorMessage() string { } return *e.Message } -func (e *KMSInternalException) ErrorCode() string { return "KMSInternalException" } +func (e *KMSInternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInternalException" + } + return *e.ErrorCodeOverride +} func (e *KMSInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was rejected because the HMAC verification failed. HMAC verification @@ -653,6 +821,8 @@ func (e *KMSInternalException) ErrorFault() smithy.ErrorFault { return smithy.Fa type KMSInvalidMacException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -665,7 +835,12 @@ func (e *KMSInvalidMacException) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidMacException) ErrorCode() string { return "KMSInvalidMacException" } +func (e *KMSInvalidMacException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidMacException" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidMacException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the signature verification failed. Signature @@ -674,6 +849,8 @@ func (e *KMSInvalidMacException) ErrorFault() smithy.ErrorFault { return smithy. type KMSInvalidSignatureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -686,7 +863,12 @@ func (e *KMSInvalidSignatureException) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidSignatureException) ErrorCode() string { return "KMSInvalidSignatureException" } +func (e *KMSInvalidSignatureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidSignatureException" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidSignatureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the state of the specified resource is not @@ -706,6 +888,8 @@ func (e *KMSInvalidSignatureException) ErrorFault() smithy.ErrorFault { return s type KMSInvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -718,7 +902,12 @@ func (e *KMSInvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidStateException) ErrorCode() string { return "KMSInvalidStateException" } +func (e *KMSInvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because a quota was exceeded. For more information, see @@ -727,6 +916,8 @@ func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -739,7 +930,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified policy is not syntactically or @@ -747,6 +943,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MalformedPolicyDocumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -760,7 +958,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.ErrorCodeOverride == nil { + return "MalformedPolicyDocumentException" + } + return *e.ErrorCodeOverride } func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -769,6 +970,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -781,13 +984,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because one or more tags are not valid. type TagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -800,7 +1010,12 @@ func (e *TagException) ErrorMessage() string { } return *e.Message } -func (e *TagException) ErrorCode() string { return "TagException" } +func (e *TagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagException" + } + return *e.ErrorCodeOverride +} func (e *TagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because a specified parameter is not supported or a @@ -808,6 +1023,8 @@ func (e *TagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -820,7 +1037,12 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the (XksKeyId) is already associated with a KMS @@ -829,6 +1051,8 @@ func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return type XksKeyAlreadyInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -841,7 +1065,12 @@ func (e *XksKeyAlreadyInUseException) ErrorMessage() string { } return *e.Message } -func (e *XksKeyAlreadyInUseException) ErrorCode() string { return "XksKeyAlreadyInUseException" } +func (e *XksKeyAlreadyInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "XksKeyAlreadyInUseException" + } + return *e.ErrorCodeOverride +} func (e *XksKeyAlreadyInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the external key specified by the XksKeyId @@ -851,6 +1080,8 @@ func (e *XksKeyAlreadyInUseException) ErrorFault() smithy.ErrorFault { return sm type XksKeyInvalidConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -864,7 +1095,10 @@ func (e *XksKeyInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *XksKeyInvalidConfigurationException) ErrorCode() string { - return "XksKeyInvalidConfigurationException" + if e.ErrorCodeOverride == nil { + return "XksKeyInvalidConfigurationException" + } + return *e.ErrorCodeOverride } func (e *XksKeyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -880,6 +1114,8 @@ func (e *XksKeyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { type XksKeyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -892,7 +1128,12 @@ func (e *XksKeyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *XksKeyNotFoundException) ErrorCode() string { return "XksKeyNotFoundException" } +func (e *XksKeyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "XksKeyNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *XksKeyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the proxy credentials failed to authenticate to @@ -903,6 +1144,8 @@ func (e *XksKeyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type XksProxyIncorrectAuthenticationCredentialException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -916,7 +1159,10 @@ func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorMessage() stri return *e.Message } func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorCode() string { - return "XksProxyIncorrectAuthenticationCredentialException" + if e.ErrorCodeOverride == nil { + return "XksProxyIncorrectAuthenticationCredentialException" + } + return *e.ErrorCodeOverride } func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -928,6 +1174,8 @@ func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorFault() smithy type XksProxyInvalidConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -941,7 +1189,10 @@ func (e *XksProxyInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *XksProxyInvalidConfigurationException) ErrorCode() string { - return "XksProxyInvalidConfigurationException" + if e.ErrorCodeOverride == nil { + return "XksProxyInvalidConfigurationException" + } + return *e.ErrorCodeOverride } func (e *XksProxyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -954,6 +1205,8 @@ func (e *XksProxyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { type XksProxyInvalidResponseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -967,7 +1220,10 @@ func (e *XksProxyInvalidResponseException) ErrorMessage() string { return *e.Message } func (e *XksProxyInvalidResponseException) ErrorCode() string { - return "XksProxyInvalidResponseException" + if e.ErrorCodeOverride == nil { + return "XksProxyInvalidResponseException" + } + return *e.ErrorCodeOverride } func (e *XksProxyInvalidResponseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -978,6 +1234,8 @@ func (e *XksProxyInvalidResponseException) ErrorFault() smithy.ErrorFault { retu type XksProxyUriEndpointInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -991,7 +1249,10 @@ func (e *XksProxyUriEndpointInUseException) ErrorMessage() string { return *e.Message } func (e *XksProxyUriEndpointInUseException) ErrorCode() string { - return "XksProxyUriEndpointInUseException" + if e.ErrorCodeOverride == nil { + return "XksProxyUriEndpointInUseException" + } + return *e.ErrorCodeOverride } func (e *XksProxyUriEndpointInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1002,6 +1263,8 @@ func (e *XksProxyUriEndpointInUseException) ErrorFault() smithy.ErrorFault { ret type XksProxyUriInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1014,7 +1277,12 @@ func (e *XksProxyUriInUseException) ErrorMessage() string { } return *e.Message } -func (e *XksProxyUriInUseException) ErrorCode() string { return "XksProxyUriInUseException" } +func (e *XksProxyUriInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "XksProxyUriInUseException" + } + return *e.ErrorCodeOverride +} func (e *XksProxyUriInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // KMS was unable to reach the specified XksProxyUriPath. The path must be @@ -1025,6 +1293,8 @@ func (e *XksProxyUriInUseException) ErrorFault() smithy.ErrorFault { return smit type XksProxyUriUnreachableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1038,7 +1308,10 @@ func (e *XksProxyUriUnreachableException) ErrorMessage() string { return *e.Message } func (e *XksProxyUriUnreachableException) ErrorCode() string { - return "XksProxyUriUnreachableException" + if e.ErrorCodeOverride == nil { + return "XksProxyUriUnreachableException" + } + return *e.ErrorCodeOverride } func (e *XksProxyUriUnreachableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1049,6 +1322,8 @@ func (e *XksProxyUriUnreachableException) ErrorFault() smithy.ErrorFault { retur type XksProxyVpcEndpointServiceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1062,7 +1337,10 @@ func (e *XksProxyVpcEndpointServiceInUseException) ErrorMessage() string { return *e.Message } func (e *XksProxyVpcEndpointServiceInUseException) ErrorCode() string { - return "XksProxyVpcEndpointServiceInUseException" + if e.ErrorCodeOverride == nil { + return "XksProxyVpcEndpointServiceInUseException" + } + return *e.ErrorCodeOverride } func (e *XksProxyVpcEndpointServiceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1075,6 +1353,8 @@ func (e *XksProxyVpcEndpointServiceInUseException) ErrorFault() smithy.ErrorFaul type XksProxyVpcEndpointServiceInvalidConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1088,7 +1368,10 @@ func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorMessage() return *e.Message } func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorCode() string { - return "XksProxyVpcEndpointServiceInvalidConfigurationException" + if e.ErrorCodeOverride == nil { + return "XksProxyVpcEndpointServiceInvalidConfigurationException" + } + return *e.ErrorCodeOverride } func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1102,6 +1385,8 @@ func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorFault() s type XksProxyVpcEndpointServiceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1115,7 +1400,10 @@ func (e *XksProxyVpcEndpointServiceNotFoundException) ErrorMessage() string { return *e.Message } func (e *XksProxyVpcEndpointServiceNotFoundException) ErrorCode() string { - return "XksProxyVpcEndpointServiceNotFoundException" + if e.ErrorCodeOverride == nil { + return "XksProxyVpcEndpointServiceNotFoundException" + } + return *e.ErrorCodeOverride } func (e *XksProxyVpcEndpointServiceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/lakeformation/types/errors.go b/service/lakeformation/types/errors.go index c417182d335..fb0a85607b6 100644 --- a/service/lakeformation/types/errors.go +++ b/service/lakeformation/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource to be created or added already exists. type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two processes are trying to modify a resource simultaneously. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -70,6 +89,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type EntityNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +103,20 @@ func (e *EntityNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EntityNotFoundException) ErrorCode() string { return "EntityNotFoundException" } +func (e *EntityNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Contains details about an error where the query request expired. type ExpiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +129,20 @@ func (e *ExpiredException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredException) ErrorCode() string { return "ExpiredException" } +func (e *ExpiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An encryption operation failed. type GlueEncryptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,13 +155,20 @@ func (e *GlueEncryptionException) ErrorMessage() string { } return *e.Message } -func (e *GlueEncryptionException) ErrorCode() string { return "GlueEncryptionException" } +func (e *GlueEncryptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GlueEncryptionException" + } + return *e.ErrorCodeOverride +} func (e *GlueEncryptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -139,13 +181,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input provided was not valid. type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -158,13 +207,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation timed out. type OperationTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -177,7 +233,12 @@ func (e *OperationTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *OperationTimeoutException) ErrorCode() string { return "OperationTimeoutException" } +func (e *OperationTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *OperationTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The engine does not support filtering data based on the enforced permissions. @@ -187,6 +248,8 @@ func (e *OperationTimeoutException) ErrorFault() smithy.ErrorFault { return smit type PermissionTypeMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -200,7 +263,10 @@ func (e *PermissionTypeMismatchException) ErrorMessage() string { return *e.Message } func (e *PermissionTypeMismatchException) ErrorCode() string { - return "PermissionTypeMismatchException" + if e.ErrorCodeOverride == nil { + return "PermissionTypeMismatchException" + } + return *e.ErrorCodeOverride } func (e *PermissionTypeMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -209,6 +275,8 @@ func (e *PermissionTypeMismatchException) ErrorFault() smithy.ErrorFault { retur type ResourceNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -221,13 +289,20 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource numerical limit was exceeded. type ResourceNumberLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -241,7 +316,10 @@ func (e *ResourceNumberLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceNumberLimitExceededException) ErrorCode() string { - return "ResourceNumberLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ResourceNumberLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -251,6 +329,8 @@ func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { type StatisticsNotReadyYetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -263,13 +343,20 @@ func (e *StatisticsNotReadyYetException) ErrorMessage() string { } return *e.Message } -func (e *StatisticsNotReadyYetException) ErrorCode() string { return "StatisticsNotReadyYetException" } +func (e *StatisticsNotReadyYetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StatisticsNotReadyYetException" + } + return *e.ErrorCodeOverride +} func (e *StatisticsNotReadyYetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Contains details about an error where the query request was throttled. type ThrottledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -282,13 +369,20 @@ func (e *ThrottledException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledException) ErrorCode() string { return "ThrottledException" } +func (e *ThrottledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Contains details about an error related to a transaction that was cancelled. type TransactionCanceledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -301,7 +395,12 @@ func (e *TransactionCanceledException) ErrorMessage() string { } return *e.Message } -func (e *TransactionCanceledException) ErrorCode() string { return "TransactionCanceledException" } +func (e *TransactionCanceledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TransactionCanceledException" + } + return *e.ErrorCodeOverride +} func (e *TransactionCanceledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Contains details about an error related to a transaction commit that was in @@ -309,6 +408,8 @@ func (e *TransactionCanceledException) ErrorFault() smithy.ErrorFault { return s type TransactionCommitInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -322,7 +423,10 @@ func (e *TransactionCommitInProgressException) ErrorMessage() string { return *e.Message } func (e *TransactionCommitInProgressException) ErrorCode() string { - return "TransactionCommitInProgressException" + if e.ErrorCodeOverride == nil { + return "TransactionCommitInProgressException" + } + return *e.ErrorCodeOverride } func (e *TransactionCommitInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -333,6 +437,8 @@ func (e *TransactionCommitInProgressException) ErrorFault() smithy.ErrorFault { type TransactionCommittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -345,13 +451,20 @@ func (e *TransactionCommittedException) ErrorMessage() string { } return *e.Message } -func (e *TransactionCommittedException) ErrorCode() string { return "TransactionCommittedException" } +func (e *TransactionCommittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TransactionCommittedException" + } + return *e.ErrorCodeOverride +} func (e *TransactionCommittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Contains details about an error related to work units not being ready. type WorkUnitsNotReadyYetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -364,5 +477,10 @@ func (e *WorkUnitsNotReadyYetException) ErrorMessage() string { } return *e.Message } -func (e *WorkUnitsNotReadyYetException) ErrorCode() string { return "WorkUnitsNotReadyYetException" } +func (e *WorkUnitsNotReadyYetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WorkUnitsNotReadyYetException" + } + return *e.ErrorCodeOverride +} func (e *WorkUnitsNotReadyYetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lambda/types/errors.go b/service/lambda/types/errors.go index e99f33efb3d..ad9e87dfed2 100644 --- a/service/lambda/types/errors.go +++ b/service/lambda/types/errors.go @@ -11,6 +11,8 @@ import ( type CodeSigningConfigNotFoundException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -26,7 +28,10 @@ func (e *CodeSigningConfigNotFoundException) ErrorMessage() string { return *e.Message } func (e *CodeSigningConfigNotFoundException) ErrorCode() string { - return "CodeSigningConfigNotFoundException" + if e.ErrorCodeOverride == nil { + return "CodeSigningConfigNotFoundException" + } + return *e.ErrorCodeOverride } func (e *CodeSigningConfigNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -38,6 +43,8 @@ func (e *CodeSigningConfigNotFoundException) ErrorFault() smithy.ErrorFault { type CodeStorageExceededException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -52,7 +59,12 @@ func (e *CodeStorageExceededException) ErrorMessage() string { } return *e.Message } -func (e *CodeStorageExceededException) ErrorCode() string { return "CodeStorageExceededException" } +func (e *CodeStorageExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CodeStorageExceededException" + } + return *e.ErrorCodeOverride +} func (e *CodeStorageExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The code signature failed one or more of the validation checks for signature @@ -61,6 +73,8 @@ func (e *CodeStorageExceededException) ErrorFault() smithy.ErrorFault { return s type CodeVerificationFailedException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -76,7 +90,10 @@ func (e *CodeVerificationFailedException) ErrorMessage() string { return *e.Message } func (e *CodeVerificationFailedException) ErrorCode() string { - return "CodeVerificationFailedException" + if e.ErrorCodeOverride == nil { + return "CodeVerificationFailedException" + } + return *e.ErrorCodeOverride } func (e *CodeVerificationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -84,6 +101,8 @@ func (e *CodeVerificationFailedException) ErrorFault() smithy.ErrorFault { retur type EC2AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -98,7 +117,12 @@ func (e *EC2AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *EC2AccessDeniedException) ErrorCode() string { return "EC2AccessDeniedException" } +func (e *EC2AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EC2AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *EC2AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Amazon EC2 throttled Lambda during Lambda function initialization using the @@ -106,6 +130,8 @@ func (e *EC2AccessDeniedException) ErrorFault() smithy.ErrorFault { return smith type EC2ThrottledException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -120,7 +146,12 @@ func (e *EC2ThrottledException) ErrorMessage() string { } return *e.Message } -func (e *EC2ThrottledException) ErrorCode() string { return "EC2ThrottledException" } +func (e *EC2ThrottledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EC2ThrottledException" + } + return *e.ErrorCodeOverride +} func (e *EC2ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lambda received an unexpected Amazon EC2 client exception while setting up for @@ -128,6 +159,8 @@ func (e *EC2ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.F type EC2UnexpectedException struct { Message *string + ErrorCodeOverride *string + Type *string EC2ErrorCode *string @@ -143,13 +176,20 @@ func (e *EC2UnexpectedException) ErrorMessage() string { } return *e.Message } -func (e *EC2UnexpectedException) ErrorCode() string { return "EC2UnexpectedException" } +func (e *EC2UnexpectedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EC2UnexpectedException" + } + return *e.ErrorCodeOverride +} func (e *EC2UnexpectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An error occurred when reading from or writing to a connected file system. type EFSIOException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -164,7 +204,12 @@ func (e *EFSIOException) ErrorMessage() string { } return *e.Message } -func (e *EFSIOException) ErrorCode() string { return "EFSIOException" } +func (e *EFSIOException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EFSIOException" + } + return *e.ErrorCodeOverride +} func (e *EFSIOException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Lambda function couldn't make a network connection to the configured file @@ -172,6 +217,8 @@ func (e *EFSIOException) ErrorFault() smithy.ErrorFault { return smithy.FaultCli type EFSMountConnectivityException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -186,7 +233,12 @@ func (e *EFSMountConnectivityException) ErrorMessage() string { } return *e.Message } -func (e *EFSMountConnectivityException) ErrorCode() string { return "EFSMountConnectivityException" } +func (e *EFSMountConnectivityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EFSMountConnectivityException" + } + return *e.ErrorCodeOverride +} func (e *EFSMountConnectivityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Lambda function couldn't mount the configured file system due to a @@ -194,6 +246,8 @@ func (e *EFSMountConnectivityException) ErrorFault() smithy.ErrorFault { return type EFSMountFailureException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -208,7 +262,12 @@ func (e *EFSMountFailureException) ErrorMessage() string { } return *e.Message } -func (e *EFSMountFailureException) ErrorCode() string { return "EFSMountFailureException" } +func (e *EFSMountFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EFSMountFailureException" + } + return *e.ErrorCodeOverride +} func (e *EFSMountFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Lambda function made a network connection to the configured file system, but @@ -216,6 +275,8 @@ func (e *EFSMountFailureException) ErrorFault() smithy.ErrorFault { return smith type EFSMountTimeoutException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -230,7 +291,12 @@ func (e *EFSMountTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *EFSMountTimeoutException) ErrorCode() string { return "EFSMountTimeoutException" } +func (e *EFSMountTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EFSMountTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *EFSMountTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lambda couldn't create an elastic network interface in the VPC, specified as @@ -240,6 +306,8 @@ func (e *EFSMountTimeoutException) ErrorFault() smithy.ErrorFault { return smith type ENILimitReachedException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -254,7 +322,12 @@ func (e *ENILimitReachedException) ErrorMessage() string { } return *e.Message } -func (e *ENILimitReachedException) ErrorCode() string { return "ENILimitReachedException" } +func (e *ENILimitReachedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ENILimitReachedException" + } + return *e.ErrorCodeOverride +} func (e *ENILimitReachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The code signature failed the integrity check. If the integrity check fails, @@ -262,6 +335,8 @@ func (e *ENILimitReachedException) ErrorFault() smithy.ErrorFault { return smith type InvalidCodeSignatureException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -276,13 +351,20 @@ func (e *InvalidCodeSignatureException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCodeSignatureException) ErrorCode() string { return "InvalidCodeSignatureException" } +func (e *InvalidCodeSignatureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCodeSignatureException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCodeSignatureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the parameters in the request is not valid. type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -297,13 +379,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request body could not be parsed as JSON. type InvalidRequestContentException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -318,13 +407,20 @@ func (e *InvalidRequestContentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestContentException) ErrorCode() string { return "InvalidRequestContentException" } +func (e *InvalidRequestContentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestContentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The runtime or runtime version specified is not supported. type InvalidRuntimeException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -339,7 +435,12 @@ func (e *InvalidRuntimeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRuntimeException) ErrorCode() string { return "InvalidRuntimeException" } +func (e *InvalidRuntimeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRuntimeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRuntimeException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The security group ID provided in the Lambda function VPC configuration is not @@ -347,6 +448,8 @@ func (e *InvalidRuntimeException) ErrorFault() smithy.ErrorFault { return smithy type InvalidSecurityGroupIDException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -362,7 +465,10 @@ func (e *InvalidSecurityGroupIDException) ErrorMessage() string { return *e.Message } func (e *InvalidSecurityGroupIDException) ErrorCode() string { - return "InvalidSecurityGroupIDException" + if e.ErrorCodeOverride == nil { + return "InvalidSecurityGroupIDException" + } + return *e.ErrorCodeOverride } func (e *InvalidSecurityGroupIDException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -370,6 +476,8 @@ func (e *InvalidSecurityGroupIDException) ErrorFault() smithy.ErrorFault { retur type InvalidSubnetIDException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -384,13 +492,20 @@ func (e *InvalidSubnetIDException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnetIDException) ErrorCode() string { return "InvalidSubnetIDException" } +func (e *InvalidSubnetIDException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnetIDException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnetIDException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lambda could not unzip the deployment package. type InvalidZipFileException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -405,7 +520,12 @@ func (e *InvalidZipFileException) ErrorMessage() string { } return *e.Message } -func (e *InvalidZipFileException) ErrorCode() string { return "InvalidZipFileException" } +func (e *InvalidZipFileException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidZipFileException" + } + return *e.ErrorCodeOverride +} func (e *InvalidZipFileException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lambda couldn't decrypt the environment variables because KMS access was denied. @@ -413,6 +533,8 @@ func (e *InvalidZipFileException) ErrorFault() smithy.ErrorFault { return smithy type KMSAccessDeniedException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -427,7 +549,12 @@ func (e *KMSAccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *KMSAccessDeniedException) ErrorCode() string { return "KMSAccessDeniedException" } +func (e *KMSAccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSAccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lambda couldn't decrypt the environment variables because the KMS key used is @@ -435,6 +562,8 @@ func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smith type KMSDisabledException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -449,7 +578,12 @@ func (e *KMSDisabledException) ErrorMessage() string { } return *e.Message } -func (e *KMSDisabledException) ErrorCode() string { return "KMSDisabledException" } +func (e *KMSDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSDisabledException" + } + return *e.ErrorCodeOverride +} func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lambda couldn't decrypt the environment variables because the state of the KMS @@ -457,6 +591,8 @@ func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.Fa type KMSInvalidStateException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -471,7 +607,12 @@ func (e *KMSInvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidStateException) ErrorCode() string { return "KMSInvalidStateException" } +func (e *KMSInvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lambda couldn't decrypt the environment variables because the KMS key was not @@ -479,6 +620,8 @@ func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smith type KMSNotFoundException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -493,7 +636,12 @@ func (e *KMSNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *KMSNotFoundException) ErrorCode() string { return "KMSNotFoundException" } +func (e *KMSNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The permissions policy for the resource is too large. For more information, see @@ -502,6 +650,8 @@ func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fa type PolicyLengthExceededException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -516,7 +666,12 @@ func (e *PolicyLengthExceededException) ErrorMessage() string { } return *e.Message } -func (e *PolicyLengthExceededException) ErrorCode() string { return "PolicyLengthExceededException" } +func (e *PolicyLengthExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyLengthExceededException" + } + return *e.ErrorCodeOverride +} func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The RevisionId provided does not match the latest RevisionId for the Lambda @@ -525,6 +680,8 @@ func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return type PreconditionFailedException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -539,13 +696,20 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionFailedException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration does not exist. type ProvisionedConcurrencyConfigNotFoundException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -561,7 +725,10 @@ func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorMessage() string { return *e.Message } func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorCode() string { - return "ProvisionedConcurrencyConfigNotFoundException" + if e.ErrorCodeOverride == nil { + return "ProvisionedConcurrencyConfigNotFoundException" + } + return *e.ErrorCodeOverride } func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -573,6 +740,8 @@ func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorFault() smithy.Erro type RequestTooLargeException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -587,13 +756,20 @@ func (e *RequestTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *RequestTooLargeException) ErrorCode() string { return "RequestTooLargeException" } +func (e *RequestTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *RequestTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists, or another operation is in progress. type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -608,7 +784,12 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation conflicts with the resource's availability. For example, you tried @@ -617,6 +798,8 @@ func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smit type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -631,13 +814,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -652,7 +842,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The function is inactive and its VPC connection is no longer available. Wait for @@ -660,6 +855,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceNotReadyException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -674,13 +871,20 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The Lambda service encountered an internal error. type ServiceException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -695,7 +899,12 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceException" + } + return *e.ErrorCodeOverride +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The runtime restore hook encountered an error. For more information, check the @@ -703,6 +912,8 @@ func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultS type SnapStartException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -717,7 +928,12 @@ func (e *SnapStartException) ErrorMessage() string { } return *e.Message } -func (e *SnapStartException) ErrorCode() string { return "SnapStartException" } +func (e *SnapStartException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapStartException" + } + return *e.ErrorCodeOverride +} func (e *SnapStartException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lambda is initializing your function. You can invoke the function when the @@ -727,6 +943,8 @@ func (e *SnapStartException) ErrorFault() smithy.ErrorFault { return smithy.Faul type SnapStartNotReadyException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -741,7 +959,12 @@ func (e *SnapStartNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *SnapStartNotReadyException) ErrorCode() string { return "SnapStartNotReadyException" } +func (e *SnapStartNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapStartNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *SnapStartNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The runtime restore hook failed to complete within the timeout limit (2 @@ -749,6 +972,8 @@ func (e *SnapStartNotReadyException) ErrorFault() smithy.ErrorFault { return smi type SnapStartTimeoutException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -763,7 +988,12 @@ func (e *SnapStartTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *SnapStartTimeoutException) ErrorCode() string { return "SnapStartTimeoutException" } +func (e *SnapStartTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapStartTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *SnapStartTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lambda couldn't set up VPC access for the Lambda function because one or more @@ -771,6 +1001,8 @@ func (e *SnapStartTimeoutException) ErrorFault() smithy.ErrorFault { return smit type SubnetIPAddressLimitReachedException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -786,7 +1018,10 @@ func (e *SubnetIPAddressLimitReachedException) ErrorMessage() string { return *e.Message } func (e *SubnetIPAddressLimitReachedException) ErrorCode() string { - return "SubnetIPAddressLimitReachedException" + if e.ErrorCodeOverride == nil { + return "SubnetIPAddressLimitReachedException" + } + return *e.ErrorCodeOverride } func (e *SubnetIPAddressLimitReachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -798,6 +1033,8 @@ func (e *SubnetIPAddressLimitReachedException) ErrorFault() smithy.ErrorFault { type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string Type *string Reason ThrottleReason @@ -814,13 +1051,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The content type of the Invoke request body is not JSON. type UnsupportedMediaTypeException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -835,5 +1079,10 @@ func (e *UnsupportedMediaTypeException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedMediaTypeException) ErrorCode() string { return "UnsupportedMediaTypeException" } +func (e *UnsupportedMediaTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedMediaTypeException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedMediaTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lexmodelbuildingservice/types/errors.go b/service/lexmodelbuildingservice/types/errors.go index 316372c9a7d..4ee1637eaec 100644 --- a/service/lexmodelbuildingservice/types/errors.go +++ b/service/lexmodelbuildingservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not well formed. For example, a value is invalid or a required @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict processing the request. Try your request again. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal Amazon Lex error occurred. Try your request again. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request exceeded a limit. Try your request again. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -103,7 +133,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request was not found. Check the resource and try @@ -111,6 +146,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,7 +160,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The checksum of the resource that you are trying to change does not match the @@ -131,6 +173,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type PreconditionFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -143,7 +187,12 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionFailedException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you are attempting to delete is referred to by another @@ -157,6 +206,8 @@ func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return sm type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + ReferenceType ReferenceType ExampleReference *ResourceReference @@ -172,5 +223,10 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lexmodelsv2/types/errors.go b/service/lexmodelsv2/types/errors.go index b89db30eebe..b50cc9d3f5b 100644 --- a/service/lexmodelsv2/types/errors.go +++ b/service/lexmodelsv2/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected condition. Try your request again. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Your request couldn't be completed because one or more request fields aren't @@ -52,6 +66,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type PreconditionFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionFailedException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You asked to describe a resource that doesn't exist. Check the resource that you @@ -72,6 +93,8 @@ func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return sm type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,13 +107,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached a quota for your bot. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +133,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request rate is too high. Reduce the frequency of requests. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -124,7 +161,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the input parameters in your request isn't valid. Check the parameters @@ -132,6 +174,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,5 +188,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lexruntimeservice/types/errors.go b/service/lexruntimeservice/types/errors.go index b51c233c2ed..66babc4aebe 100644 --- a/service/lexruntimeservice/types/errors.go +++ b/service/lexruntimeservice/types/errors.go @@ -12,6 +12,8 @@ import ( type BadGatewayException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *BadGatewayException) ErrorMessage() string { } return *e.Message } -func (e *BadGatewayException) ErrorCode() string { return "BadGatewayException" } +func (e *BadGatewayException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadGatewayException" + } + return *e.ErrorCodeOverride +} func (e *BadGatewayException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request validation failed, there is no usable message in the context, or the bot @@ -32,6 +39,8 @@ func (e *BadGatewayException) ErrorFault() smithy.ErrorFault { return smithy.Fau type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two clients are using the same AWS account, Amazon Lex bot, and user ID. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. @@ -80,6 +101,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DependencyFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -92,13 +115,20 @@ func (e *DependencyFailedException) ErrorMessage() string { } return *e.Message } -func (e *DependencyFailedException) ErrorCode() string { return "DependencyFailedException" } +func (e *DependencyFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyFailedException" + } + return *e.ErrorCodeOverride +} func (e *DependencyFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal service error. Retry the call. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -111,13 +141,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exceeded a limit. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -132,13 +169,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is not used. type LoopDetectedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -151,13 +195,20 @@ func (e *LoopDetectedException) ErrorMessage() string { } return *e.Message } -func (e *LoopDetectedException) ErrorCode() string { return "LoopDetectedException" } +func (e *LoopDetectedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LoopDetectedException" + } + return *e.ErrorCodeOverride +} func (e *LoopDetectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The accept header in the request does not have a valid value. type NotAcceptableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -170,7 +221,12 @@ func (e *NotAcceptableException) ErrorMessage() string { } return *e.Message } -func (e *NotAcceptableException) ErrorCode() string { return "NotAcceptableException" } +func (e *NotAcceptableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAcceptableException" + } + return *e.ErrorCodeOverride +} func (e *NotAcceptableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource (such as the Amazon Lex bot or an alias) that is referred to is not @@ -178,6 +234,8 @@ func (e *NotAcceptableException) ErrorFault() smithy.ErrorFault { return smithy. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,13 +248,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input speech is too long. type RequestTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,13 +274,20 @@ func (e *RequestTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *RequestTimeoutException) ErrorCode() string { return "RequestTimeoutException" } +func (e *RequestTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Content-Type header (PostContent API) has an invalid value. type UnsupportedMediaTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,5 +300,10 @@ func (e *UnsupportedMediaTypeException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedMediaTypeException) ErrorCode() string { return "UnsupportedMediaTypeException" } +func (e *UnsupportedMediaTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedMediaTypeException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedMediaTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lexruntimev2/types/errors.go b/service/lexruntimev2/types/errors.go index 20f31e1c0da..2d10ac89473 100644 --- a/service/lexruntimev2/types/errors.go +++ b/service/lexruntimev2/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,12 +24,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type BadGatewayException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -40,12 +49,19 @@ func (e *BadGatewayException) ErrorMessage() string { } return *e.Message } -func (e *BadGatewayException) ErrorCode() string { return "BadGatewayException" } +func (e *BadGatewayException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadGatewayException" + } + return *e.ErrorCodeOverride +} func (e *BadGatewayException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -58,12 +74,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type DependencyFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -76,12 +99,19 @@ func (e *DependencyFailedException) ErrorMessage() string { } return *e.Message } -func (e *DependencyFailedException) ErrorCode() string { return "DependencyFailedException" } +func (e *DependencyFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyFailedException" + } + return *e.ErrorCodeOverride +} func (e *DependencyFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -94,12 +124,19 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -112,12 +149,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,12 +174,19 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,5 +199,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/licensemanager/types/errors.go b/service/licensemanager/types/errors.go index 6d23d2e0ef8..c39912cc981 100644 --- a/service/licensemanager/types/errors.go +++ b/service/licensemanager/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Web Services user account does not have permission to perform the @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AuthorizationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *AuthorizationException) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationException) ErrorCode() string { return "AuthorizationException" } +func (e *AuthorizationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationException" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict processing the request. Try your request again. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The entitlement is not allowed. type EntitlementNotAllowedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *EntitlementNotAllowedException) ErrorMessage() string { } return *e.Message } -func (e *EntitlementNotAllowedException) ErrorCode() string { return "EntitlementNotAllowedException" } +func (e *EntitlementNotAllowedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntitlementNotAllowedException" + } + return *e.ErrorCodeOverride +} func (e *EntitlementNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A dependency required to run the API is missing. type FailedDependencyException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -102,13 +132,20 @@ func (e *FailedDependencyException) ErrorMessage() string { } return *e.Message } -func (e *FailedDependencyException) ErrorCode() string { return "FailedDependencyException" } +func (e *FailedDependencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FailedDependencyException" + } + return *e.ErrorCodeOverride +} func (e *FailedDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request uses too many filters or too many filter values. type FilterLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +158,20 @@ func (e *FilterLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *FilterLimitExceededException) ErrorCode() string { return "FilterLimitExceededException" } +func (e *FilterLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FilterLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *FilterLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameter values are not valid. type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,7 +184,12 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // License Manager cannot allocate a license to a resource because of its state. @@ -149,6 +198,8 @@ func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return type InvalidResourceStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -161,13 +212,20 @@ func (e *InvalidResourceStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceStateException) ErrorCode() string { return "InvalidResourceStateException" } +func (e *InvalidResourceStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You do not have enough licenses available to support a new resource launch. type LicenseUsageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -180,7 +238,12 @@ func (e *LicenseUsageException) ErrorMessage() string { } return *e.Message } -func (e *LicenseUsageException) ErrorCode() string { return "LicenseUsageException" } +func (e *LicenseUsageException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LicenseUsageException" + } + return *e.ErrorCodeOverride +} func (e *LicenseUsageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are no entitlements found for this license, or the entitlement maximum @@ -188,6 +251,8 @@ func (e *LicenseUsageException) ErrorFault() smithy.ErrorFault { return smithy.F type NoEntitlementsAllowedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -200,13 +265,20 @@ func (e *NoEntitlementsAllowedException) ErrorMessage() string { } return *e.Message } -func (e *NoEntitlementsAllowedException) ErrorCode() string { return "NoEntitlementsAllowedException" } +func (e *NoEntitlementsAllowedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoEntitlementsAllowedException" + } + return *e.ErrorCodeOverride +} func (e *NoEntitlementsAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests have been submitted. Try again after a brief wait. type RateLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -219,13 +291,20 @@ func (e *RateLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *RateLimitExceededException) ErrorCode() string { return "RateLimitExceededException" } +func (e *RateLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RateLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *RateLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This is not the correct Region for the resource. Try again. type RedirectException struct { Message *string + ErrorCodeOverride *string + Location *string noSmithyDocumentSerde @@ -240,13 +319,20 @@ func (e *RedirectException) ErrorMessage() string { } return *e.Message } -func (e *RedirectException) ErrorCode() string { return "RedirectException" } +func (e *RedirectException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RedirectException" + } + return *e.ErrorCodeOverride +} func (e *RedirectException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your resource limits have been exceeded. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -259,13 +345,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource cannot be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -278,13 +371,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server experienced an internal error. Try again. type ServerInternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -297,13 +397,20 @@ func (e *ServerInternalException) ErrorMessage() string { } return *e.Message } -func (e *ServerInternalException) ErrorCode() string { return "ServerInternalException" } +func (e *ServerInternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerInternalException" + } + return *e.ErrorCodeOverride +} func (e *ServerInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The digital signature method is unsupported. Try your request again. type UnsupportedDigitalSignatureMethodException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -317,7 +424,10 @@ func (e *UnsupportedDigitalSignatureMethodException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDigitalSignatureMethodException) ErrorCode() string { - return "UnsupportedDigitalSignatureMethodException" + if e.ErrorCodeOverride == nil { + return "UnsupportedDigitalSignatureMethodException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedDigitalSignatureMethodException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -327,6 +437,8 @@ func (e *UnsupportedDigitalSignatureMethodException) ErrorFault() smithy.ErrorFa type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -339,5 +451,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/licensemanagerlinuxsubscriptions/types/errors.go b/service/licensemanagerlinuxsubscriptions/types/errors.go index 983107a7dde..154b28edb77 100644 --- a/service/licensemanagerlinuxsubscriptions/types/errors.go +++ b/service/licensemanagerlinuxsubscriptions/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided input is not valid. Try your request again. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,5 +77,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/licensemanagerusersubscriptions/types/errors.go b/service/licensemanagerusersubscriptions/types/errors.go index 8f74dfb7fd0..4b91457ba7a 100644 --- a/service/licensemanagerusersubscriptions/types/errors.go +++ b/service/licensemanagerusersubscriptions/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be completed because it conflicted with the current state @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An exception occurred with the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource couldn't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because a service quota is exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because of request throttling. Retry the request. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,13 +156,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,5 +182,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lightsail/types/errors.go b/service/lightsail/types/errors.go index 437f3f916f3..1ed039609d6 100644 --- a/service/lightsail/types/errors.go +++ b/service/lightsail/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string Docs *string Tip *string @@ -28,7 +30,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lightsail throws this exception when an account is still in the setup in @@ -36,6 +43,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AccountSetupInProgressException struct { Message *string + ErrorCodeOverride *string + Code *string Docs *string Tip *string @@ -53,7 +62,10 @@ func (e *AccountSetupInProgressException) ErrorMessage() string { return *e.Message } func (e *AccountSetupInProgressException) ErrorCode() string { - return "AccountSetupInProgressException" + if e.ErrorCodeOverride == nil { + return "AccountSetupInProgressException" + } + return *e.ErrorCodeOverride } func (e *AccountSetupInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -65,6 +77,8 @@ func (e *AccountSetupInProgressException) ErrorFault() smithy.ErrorFault { retur type InvalidInputException struct { Message *string + ErrorCodeOverride *string + Code *string Docs *string Tip *string @@ -81,13 +95,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lightsail throws this exception when it cannot find a resource. type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string Docs *string Tip *string @@ -104,13 +125,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lightsail throws this exception when an operation fails to execute. type OperationFailureException struct { Message *string + ErrorCodeOverride *string + Code *string Docs *string Tip *string @@ -127,13 +155,20 @@ func (e *OperationFailureException) ErrorMessage() string { } return *e.Message } -func (e *OperationFailureException) ErrorCode() string { return "OperationFailureException" } +func (e *OperationFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationFailureException" + } + return *e.ErrorCodeOverride +} func (e *OperationFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A general service exception. type ServiceException struct { Message *string + ErrorCodeOverride *string + Code *string Docs *string Tip *string @@ -150,13 +185,20 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceException" + } + return *e.ErrorCodeOverride +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lightsail throws this exception when the user has not been authenticated. type UnauthenticatedException struct { Message *string + ErrorCodeOverride *string + Code *string Docs *string Tip *string @@ -173,5 +215,10 @@ func (e *UnauthenticatedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthenticatedException) ErrorCode() string { return "UnauthenticatedException" } +func (e *UnauthenticatedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthenticatedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthenticatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/location/types/errors.go b/service/location/types/errors.go index c797d704410..55afad4e593 100644 --- a/service/location/types/errors.go +++ b/service/location/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was unsuccessful because of a conflict. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed to process because of an unknown server error, exception, @@ -51,6 +65,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource that you've entered was not found in your AWS account. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation was denied because the request would exceed the maximum quota @@ -91,6 +119,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +133,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because of request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,13 +159,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input failed to meet the constraints specified by the AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -144,5 +188,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lookoutequipment/types/errors.go b/service/lookoutequipment/types/errors.go index 2a1d9f184ec..09e3d168e5e 100644 --- a/service/lookoutequipment/types/errors.go +++ b/service/lookoutequipment/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be completed due to a conflict with the current state of @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Processing of the request has failed because of an unknown error, exception or @@ -52,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource requested could not be found. Verify the resource ID and retry your @@ -72,6 +93,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,13 +107,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource limitations have been exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +133,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +159,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy constraints specified by Amazon Lookout for Equipment @@ -130,6 +172,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,5 +186,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lookoutmetrics/types/errors.go b/service/lookoutmetrics/types/errors.go index 351577afb69..ca712a81eef 100644 --- a/service/lookoutmetrics/types/errors.go +++ b/service/lookoutmetrics/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict processing the request. Try your request again. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,7 +54,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception, or @@ -53,6 +67,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource cannot be found. Check the ARN of the resource and try @@ -73,6 +94,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -88,7 +111,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeded the service's quotas. Check the service quotas and try @@ -96,6 +124,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string QuotaCode *string @@ -113,7 +143,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to too many requests being submitted at the same @@ -121,6 +156,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -133,7 +170,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by the AWS service. Check @@ -141,6 +183,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -156,5 +200,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lookoutvision/types/errors.go b/service/lookoutvision/types/errors.go index dfa38e820ee..3cd9343b2b7 100644 --- a/service/lookoutvision/types/errors.go +++ b/service/lookoutvision/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The update or deletion of a resource caused an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Lookout for Vision experienced a service issue. Try your call again. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -88,7 +111,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service quota was exceeded the allowed limit. For more information, see Limits @@ -96,6 +124,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType QuotaCode *string @@ -113,7 +143,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Lookout for Vision is temporarily unable to process the request. Try your @@ -121,6 +156,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + QuotaCode *string ServiceCode *string RetryAfterSeconds int32 @@ -137,7 +174,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An input validation error occured. For example, invalid characters in a project @@ -145,6 +187,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -157,5 +201,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/m2/types/errors.go b/service/m2/types/errors.go index 6117810b329..e38c397034e 100644 --- a/service/m2/types/errors.go +++ b/service/m2/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters provided in the request conflict with existing resources. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred during the processing of the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -88,7 +111,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more quotas for Amazon Web Services Mainframe Modernization exceeds the @@ -96,6 +124,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ServiceCode *string @@ -113,13 +143,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of requests made exceeds the limit. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds int32 @@ -136,13 +173,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters provided in the request is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -158,5 +202,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/machinelearning/types/errors.go b/service/machinelearning/types/errors.go index 31c4971fb2f..f2afe941a10 100644 --- a/service/machinelearning/types/errors.go +++ b/service/machinelearning/types/errors.go @@ -13,6 +13,8 @@ import ( type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + Code int32 noSmithyDocumentSerde @@ -28,7 +30,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -38,6 +43,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string + ErrorCodeOverride *string + Code int32 noSmithyDocumentSerde @@ -52,13 +59,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An error on the client occurred. Typically, the cause is an invalid input value. type InvalidInputException struct { Message *string + ErrorCodeOverride *string + Code int32 noSmithyDocumentSerde @@ -73,12 +87,19 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -91,7 +112,12 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subscriber exceeded the maximum number of operations. This exception can @@ -99,6 +125,8 @@ func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.Fau type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code int32 noSmithyDocumentSerde @@ -113,13 +141,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The exception is thrown when a predict request is made to an unmounted MLModel. type PredictorNotMountedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -132,13 +167,20 @@ func (e *PredictorNotMountedException) ErrorMessage() string { } return *e.Message } -func (e *PredictorNotMountedException) ErrorCode() string { return "PredictorNotMountedException" } +func (e *PredictorNotMountedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PredictorNotMountedException" + } + return *e.ErrorCodeOverride +} func (e *PredictorNotMountedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource cannot be located. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code int32 noSmithyDocumentSerde @@ -153,12 +195,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TagLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -171,5 +220,10 @@ func (e *TagLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TagLimitExceededException) ErrorCode() string { return "TagLimitExceededException" } +func (e *TagLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/macie/types/errors.go b/service/macie/types/errors.go index d0ecc4efd86..8867d81a081 100644 --- a/service/macie/types/errors.go +++ b/service/macie/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -26,13 +28,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // (Discontinued) Internal server error. type InternalException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -47,7 +56,12 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // (Discontinued) The request was rejected because an invalid or out-of-range value @@ -55,6 +69,8 @@ func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InvalidInputException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string FieldName *string @@ -70,7 +86,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // (Discontinued) The request was rejected because it attempted to create resources @@ -79,6 +100,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type LimitExceededException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string ResourceType *string @@ -94,5 +117,10 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/macie2/types/errors.go b/service/macie2/types/errors.go index c9b71346ed8..906d4c7e9f8 100644 --- a/service/macie2/types/errors.go +++ b/service/macie2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an error that occurred due to a versioning conflict @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an error that occurred due to an unknown internal @@ -52,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Provides information about an error that occurred because a specified resource @@ -72,6 +93,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +107,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an error that occurred due to one or more service @@ -92,6 +120,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +134,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an error that occurred because too many requests were @@ -112,6 +147,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +161,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an error that occurred due to an unprocessable @@ -132,6 +174,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type UnprocessableEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,7 +188,12 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnprocessableEntityException" + } + return *e.ErrorCodeOverride +} func (e *UnprocessableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an error that occurred due to a syntax error in a @@ -152,6 +201,8 @@ func (e *UnprocessableEntityException) ErrorFault() smithy.ErrorFault { return s type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,5 +215,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/managedblockchain/types/errors.go b/service/managedblockchain/types/errors.go index 5b99b93a69d..c4d653b060a 100644 --- a/service/managedblockchain/types/errors.go +++ b/service/managedblockchain/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,12 +25,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type IllegalActionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -41,7 +50,12 @@ func (e *IllegalActionException) ErrorMessage() string { } return *e.Message } -func (e *IllegalActionException) ErrorCode() string { return "IllegalActionException" } +func (e *IllegalActionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalActionException" + } + return *e.ErrorCodeOverride +} func (e *IllegalActionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -49,6 +63,8 @@ func (e *IllegalActionException) ErrorFault() smithy.ErrorFault { return smithy. type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The action or operation requested is invalid. Verify that the action is typed @@ -69,6 +90,8 @@ func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource request is issued for a resource that already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,7 +130,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of resources of that type already exist. Ensure the resources @@ -109,6 +144,8 @@ func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,7 +158,12 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A requested resource doesn't exist. It may have been deleted or referenced @@ -129,6 +171,8 @@ func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -143,7 +187,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource exists but isn't in a status that can complete the @@ -151,6 +200,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,7 +214,12 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request or operation couldn't be performed because a service is throttling @@ -173,6 +229,8 @@ func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smit type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -185,12 +243,19 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -205,5 +270,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/marketplacecatalog/types/errors.go b/service/marketplacecatalog/types/errors.go index f75af9e9c68..6498b10d24b 100644 --- a/service/marketplacecatalog/types/errors.go +++ b/service/marketplacecatalog/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal service exception. type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource is currently in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource wasn't found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Currently, the specified resource is not supported. type ResourceNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ResourceNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotSupportedException) ErrorCode() string { return "ResourceNotSupportedException" } +func (e *ResourceNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of open requests per account has been exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,13 +181,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred during validation. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,5 +207,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/marketplacecommerceanalytics/types/errors.go b/service/marketplacecommerceanalytics/types/errors.go index aa8bf3b3525..01e20970cfe 100644 --- a/service/marketplacecommerceanalytics/types/errors.go +++ b/service/marketplacecommerceanalytics/types/errors.go @@ -11,6 +11,8 @@ import ( type MarketplaceCommerceAnalyticsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *MarketplaceCommerceAnalyticsException) ErrorMessage() string { return *e.Message } func (e *MarketplaceCommerceAnalyticsException) ErrorCode() string { - return "MarketplaceCommerceAnalyticsException" + if e.ErrorCodeOverride == nil { + return "MarketplaceCommerceAnalyticsException" + } + return *e.ErrorCodeOverride } func (e *MarketplaceCommerceAnalyticsException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer diff --git a/service/marketplaceentitlementservice/types/errors.go b/service/marketplaceentitlementservice/types/errors.go index ba119ef2e81..14db49b7d8b 100644 --- a/service/marketplaceentitlementservice/types/errors.go +++ b/service/marketplaceentitlementservice/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One or more parameters in your request was invalid. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The calls to the GetEntitlements API are throttled. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,5 +78,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/marketplacemetering/types/errors.go b/service/marketplacemetering/types/errors.go index 43fbda5486f..85dd521d135 100644 --- a/service/marketplacemetering/types/errors.go +++ b/service/marketplacemetering/types/errors.go @@ -12,6 +12,8 @@ import ( type CustomerNotEntitledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *CustomerNotEntitledException) ErrorMessage() string { } return *e.Message } -func (e *CustomerNotEntitledException) ErrorCode() string { return "CustomerNotEntitledException" } +func (e *CustomerNotEntitledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CustomerNotEntitledException" + } + return *e.ErrorCodeOverride +} func (e *CustomerNotEntitledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The API is disabled in the Region. type DisabledApiException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *DisabledApiException) ErrorMessage() string { } return *e.Message } -func (e *DisabledApiException) ErrorCode() string { return "DisabledApiException" } +func (e *DisabledApiException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DisabledApiException" + } + return *e.ErrorCodeOverride +} func (e *DisabledApiException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A metering record has already been emitted by the same EC2 instance, ECS task, @@ -52,6 +66,8 @@ func (e *DisabledApiException) ErrorFault() smithy.ErrorFault { return smithy.Fa type DuplicateRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *DuplicateRequestException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateRequestException) ErrorCode() string { return "DuplicateRequestException" } +func (e *DuplicateRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateRequestException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The submitted registration token has expired. This can happen if the buyer's @@ -75,6 +96,8 @@ func (e *DuplicateRequestException) ErrorFault() smithy.ErrorFault { return smit type ExpiredTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +110,12 @@ func (e *ExpiredTokenException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredTokenException) ErrorCode() string { return "ExpiredTokenException" } +func (e *ExpiredTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredTokenException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. Retry your request. If the problem persists, @@ -95,6 +123,8 @@ func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.F type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +137,20 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // You have metered usage for a CustomerIdentifier that does not exist. type InvalidCustomerIdentifierException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,7 +164,10 @@ func (e *InvalidCustomerIdentifierException) ErrorMessage() string { return *e.Message } func (e *InvalidCustomerIdentifierException) ErrorCode() string { - return "InvalidCustomerIdentifierException" + if e.ErrorCodeOverride == nil { + return "InvalidCustomerIdentifierException" + } + return *e.ErrorCodeOverride } func (e *InvalidCustomerIdentifierException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -139,6 +179,8 @@ func (e *InvalidCustomerIdentifierException) ErrorFault() smithy.ErrorFault { type InvalidEndpointRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -151,7 +193,12 @@ func (e *InvalidEndpointRegionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEndpointRegionException) ErrorCode() string { return "InvalidEndpointRegionException" } +func (e *InvalidEndpointRegionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEndpointRegionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEndpointRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The product code passed does not match the product code used for publishing the @@ -159,6 +206,8 @@ func (e *InvalidEndpointRegionException) ErrorFault() smithy.ErrorFault { return type InvalidProductCodeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -171,13 +220,20 @@ func (e *InvalidProductCodeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidProductCodeException) ErrorCode() string { return "InvalidProductCodeException" } +func (e *InvalidProductCodeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidProductCodeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidProductCodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Public Key version is invalid. type InvalidPublicKeyVersionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -191,7 +247,10 @@ func (e *InvalidPublicKeyVersionException) ErrorMessage() string { return *e.Message } func (e *InvalidPublicKeyVersionException) ErrorCode() string { - return "InvalidPublicKeyVersionException" + if e.ErrorCodeOverride == nil { + return "InvalidPublicKeyVersionException" + } + return *e.ErrorCodeOverride } func (e *InvalidPublicKeyVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -201,6 +260,8 @@ func (e *InvalidPublicKeyVersionException) ErrorFault() smithy.ErrorFault { retu type InvalidRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -213,13 +274,20 @@ func (e *InvalidRegionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRegionException) ErrorCode() string { return "InvalidRegionException" } +func (e *InvalidRegionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRegionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag is invalid, or the number of tags is greater than 5. type InvalidTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -232,13 +300,20 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Registration token is invalid. type InvalidTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -251,7 +326,12 @@ func (e *InvalidTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTokenException) ErrorCode() string { return "InvalidTokenException" } +func (e *InvalidTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The usage allocation objects are invalid, or the number of allocations is @@ -259,6 +339,8 @@ func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidUsageAllocationsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -272,7 +354,10 @@ func (e *InvalidUsageAllocationsException) ErrorMessage() string { return *e.Message } func (e *InvalidUsageAllocationsException) ErrorCode() string { - return "InvalidUsageAllocationsException" + if e.ErrorCodeOverride == nil { + return "InvalidUsageAllocationsException" + } + return *e.ErrorCodeOverride } func (e *InvalidUsageAllocationsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -281,6 +366,8 @@ func (e *InvalidUsageAllocationsException) ErrorFault() smithy.ErrorFault { retu type InvalidUsageDimensionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -293,7 +380,12 @@ func (e *InvalidUsageDimensionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidUsageDimensionException) ErrorCode() string { return "InvalidUsageDimensionException" } +func (e *InvalidUsageDimensionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUsageDimensionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidUsageDimensionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AWS Marketplace does not support metering usage from the underlying platform. @@ -301,6 +393,8 @@ func (e *InvalidUsageDimensionException) ErrorFault() smithy.ErrorFault { return type PlatformNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -313,13 +407,20 @@ func (e *PlatformNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *PlatformNotSupportedException) ErrorCode() string { return "PlatformNotSupportedException" } +func (e *PlatformNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PlatformNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *PlatformNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The calls to the API are throttled. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -332,7 +433,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The timestamp value passed in the UsageRecord is out of allowed range. For @@ -341,6 +447,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type TimestampOutOfBoundsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -353,5 +461,10 @@ func (e *TimestampOutOfBoundsException) ErrorMessage() string { } return *e.Message } -func (e *TimestampOutOfBoundsException) ErrorCode() string { return "TimestampOutOfBoundsException" } +func (e *TimestampOutOfBoundsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TimestampOutOfBoundsException" + } + return *e.ErrorCodeOverride +} func (e *TimestampOutOfBoundsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mediaconnect/types/errors.go b/service/mediaconnect/types/errors.go index 1641e9a43f5..b680223fcf0 100644 --- a/service/mediaconnect/types/errors.go +++ b/service/mediaconnect/types/errors.go @@ -13,6 +13,8 @@ import ( type AddFlowOutputs420Exception struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,12 @@ func (e *AddFlowOutputs420Exception) ErrorMessage() string { } return *e.Message } -func (e *AddFlowOutputs420Exception) ErrorCode() string { return "AddFlowOutputs420Exception" } +func (e *AddFlowOutputs420Exception) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AddFlowOutputs420Exception" + } + return *e.ErrorCodeOverride +} func (e *AddFlowOutputs420Exception) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised by AWS Elemental MediaConnect. See the error message and @@ -34,6 +41,8 @@ func (e *AddFlowOutputs420Exception) ErrorFault() smithy.ErrorFault { return smi type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised by AWS Elemental MediaConnect. See the error message and @@ -55,6 +69,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type CreateFlow420Exception struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +83,12 @@ func (e *CreateFlow420Exception) ErrorMessage() string { } return *e.Message } -func (e *CreateFlow420Exception) ErrorCode() string { return "CreateFlow420Exception" } +func (e *CreateFlow420Exception) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CreateFlow420Exception" + } + return *e.ErrorCodeOverride +} func (e *CreateFlow420Exception) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised by AWS Elemental MediaConnect. See the error message and @@ -76,6 +97,8 @@ func (e *CreateFlow420Exception) ErrorFault() smithy.ErrorFault { return smithy. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -88,7 +111,12 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised by AWS Elemental MediaConnect. See the error message and @@ -97,6 +125,8 @@ func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.Faul type GrantFlowEntitlements420Exception struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -110,7 +140,10 @@ func (e *GrantFlowEntitlements420Exception) ErrorMessage() string { return *e.Message } func (e *GrantFlowEntitlements420Exception) ErrorCode() string { - return "GrantFlowEntitlements420Exception" + if e.ErrorCodeOverride == nil { + return "GrantFlowEntitlements420Exception" + } + return *e.ErrorCodeOverride } func (e *GrantFlowEntitlements420Exception) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -120,6 +153,8 @@ func (e *GrantFlowEntitlements420Exception) ErrorFault() smithy.ErrorFault { ret type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -132,7 +167,12 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exception raised by AWS Elemental MediaConnect. See the error message and @@ -141,6 +181,8 @@ func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return s type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -153,7 +195,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised by AWS Elemental MediaConnect. See the error message and @@ -162,6 +209,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -174,7 +223,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exception raised by AWS Elemental MediaConnect. See the error message and @@ -183,6 +237,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -195,5 +251,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mediaconvert/types/errors.go b/service/mediaconvert/types/errors.go index 5bfa2ade7d8..4307a526074 100644 --- a/service/mediaconvert/types/errors.go +++ b/service/mediaconvert/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service couldn't complete your request because there is a conflict with the @@ -32,6 +39,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have permissions for this action with the credentials you sent. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected condition and can't fulfill your request. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource you requested doesn't exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,7 +131,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests have been sent in too short of a time. The service limits the @@ -109,6 +144,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,5 +158,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/medialive/types/errors.go b/service/medialive/types/errors.go index 18578f98b79..87019e62ff3 100644 --- a/service/medialive/types/errors.go +++ b/service/medialive/types/errors.go @@ -11,6 +11,8 @@ import ( type BadGatewayException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *BadGatewayException) ErrorMessage() string { } return *e.Message } -func (e *BadGatewayException) ErrorCode() string { return "BadGatewayException" } +func (e *BadGatewayException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadGatewayException" + } + return *e.ErrorCodeOverride +} func (e *BadGatewayException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Placeholder documentation for BadRequestException type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for ConflictException type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for ForbiddenException type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for GatewayTimeoutException type GatewayTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *GatewayTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *GatewayTimeoutException) ErrorCode() string { return "GatewayTimeoutException" } +func (e *GatewayTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GatewayTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *GatewayTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Placeholder documentation for InternalServerErrorException type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Placeholder documentation for NotFoundException type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,13 +181,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for TooManyRequestsException type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,13 +207,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for UnprocessableEntityException type UnprocessableEntityException struct { Message *string + ErrorCodeOverride *string + ValidationErrors []ValidationError noSmithyDocumentSerde @@ -177,5 +235,10 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnprocessableEntityException" + } + return *e.ErrorCodeOverride +} func (e *UnprocessableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mediapackage/types/errors.go b/service/mediapackage/types/errors.go index 970af1184ac..5c684dd0061 100644 --- a/service/mediapackage/types/errors.go +++ b/service/mediapackage/types/errors.go @@ -11,6 +11,8 @@ import ( type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client has exceeded their resource or throttling limits. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters sent in the request are not valid. type UnprocessableEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,5 +155,10 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnprocessableEntityException" + } + return *e.ErrorCodeOverride +} func (e *UnprocessableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mediapackagevod/types/errors.go b/service/mediapackagevod/types/errors.go index 970af1184ac..5c684dd0061 100644 --- a/service/mediapackagevod/types/errors.go +++ b/service/mediapackagevod/types/errors.go @@ -11,6 +11,8 @@ import ( type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client has exceeded their resource or throttling limits. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters sent in the request are not valid. type UnprocessableEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,5 +155,10 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnprocessableEntityException" + } + return *e.ErrorCodeOverride +} func (e *UnprocessableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mediastore/types/errors.go b/service/mediastore/types/errors.go index 15ae7cba6b6..328e3eb2e98 100644 --- a/service/mediastore/types/errors.go +++ b/service/mediastore/types/errors.go @@ -12,6 +12,8 @@ import ( type ContainerInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *ContainerInUseException) ErrorMessage() string { } return *e.Message } -func (e *ContainerInUseException) ErrorCode() string { return "ContainerInUseException" } +func (e *ContainerInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ContainerInUseException" + } + return *e.ErrorCodeOverride +} func (e *ContainerInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The container that you specified in the request does not exist. type ContainerNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *ContainerNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ContainerNotFoundException) ErrorCode() string { return "ContainerNotFoundException" } +func (e *ContainerNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ContainerNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ContainerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The CORS policy that you specified in the request does not exist. type CorsPolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *CorsPolicyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *CorsPolicyNotFoundException) ErrorCode() string { return "CorsPolicyNotFoundException" } +func (e *CorsPolicyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CorsPolicyNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *CorsPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A service limit has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The policy that you specified in the request does not exist. type PolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,5 +156,10 @@ func (e *PolicyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *PolicyNotFoundException) ErrorCode() string { return "PolicyNotFoundException" } +func (e *PolicyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *PolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mediastoredata/types/errors.go b/service/mediastoredata/types/errors.go index b0a4bdd9455..0e6b950e26f 100644 --- a/service/mediastoredata/types/errors.go +++ b/service/mediastoredata/types/errors.go @@ -11,6 +11,8 @@ import ( type ContainerNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ContainerNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ContainerNotFoundException) ErrorCode() string { return "ContainerNotFoundException" } +func (e *ContainerNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ContainerNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ContainerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Could not perform an operation on an object that does not exist. type ObjectNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ObjectNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ObjectNotFoundException) ErrorCode() string { return "ObjectNotFoundException" } +func (e *ObjectNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ObjectNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ObjectNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested content range is not valid. type RequestedRangeNotSatisfiableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,7 +104,10 @@ func (e *RequestedRangeNotSatisfiableException) ErrorMessage() string { return *e.Message } func (e *RequestedRangeNotSatisfiableException) ErrorCode() string { - return "RequestedRangeNotSatisfiableException" + if e.ErrorCodeOverride == nil { + return "RequestedRangeNotSatisfiableException" + } + return *e.ErrorCodeOverride } func (e *RequestedRangeNotSatisfiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/mediatailor/types/errors.go b/service/mediatailor/types/errors.go index bbd8c8fdaa2..bde6cb7887e 100644 --- a/service/mediatailor/types/errors.go +++ b/service/mediatailor/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,5 +25,10 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/memorydb/types/errors.go b/service/memorydb/types/errors.go index 4117fa9efec..d27b520a965 100644 --- a/service/memorydb/types/errors.go +++ b/service/memorydb/types/errors.go @@ -10,6 +10,8 @@ import ( type ACLAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,12 +24,19 @@ func (e *ACLAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ACLAlreadyExistsFault) ErrorCode() string { return "ACLAlreadyExistsFault" } +func (e *ACLAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ACLAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *ACLAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ACLNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -40,12 +49,19 @@ func (e *ACLNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ACLNotFoundFault) ErrorCode() string { return "ACLNotFoundFault" } +func (e *ACLNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ACLNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ACLNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ACLQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -58,12 +74,19 @@ func (e *ACLQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ACLQuotaExceededFault) ErrorCode() string { return "ACLQuotaExceededFault" } +func (e *ACLQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ACLQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *ACLQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type APICallRateForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -77,7 +100,10 @@ func (e *APICallRateForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *APICallRateForCustomerExceededFault) ErrorCode() string { - return "APICallRateForCustomerExceededFault" + if e.ErrorCodeOverride == nil { + return "APICallRateForCustomerExceededFault" + } + return *e.ErrorCodeOverride } func (e *APICallRateForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -86,6 +112,8 @@ func (e *APICallRateForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type ClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -98,12 +126,19 @@ func (e *ClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterAlreadyExistsFault) ErrorCode() string { return "ClusterAlreadyExistsFault" } +func (e *ClusterAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *ClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -116,12 +151,19 @@ func (e *ClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterNotFoundFault) ErrorCode() string { return "ClusterNotFoundFault" } +func (e *ClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ClusterQuotaForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -135,7 +177,10 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - return "ClusterQuotaForCustomerExceededFault" + if e.ErrorCodeOverride == nil { + return "ClusterQuotaForCustomerExceededFault" + } + return *e.ErrorCodeOverride } func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -144,6 +189,8 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type DefaultUserRequired struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,12 +203,19 @@ func (e *DefaultUserRequired) ErrorMessage() string { } return *e.Message } -func (e *DefaultUserRequired) ErrorCode() string { return "DefaultUserRequired" } +func (e *DefaultUserRequired) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DefaultUserRequired" + } + return *e.ErrorCodeOverride +} func (e *DefaultUserRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type DuplicateUserNameFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -174,12 +228,19 @@ func (e *DuplicateUserNameFault) ErrorMessage() string { } return *e.Message } -func (e *DuplicateUserNameFault) ErrorCode() string { return "DuplicateUserNameFault" } +func (e *DuplicateUserNameFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateUserNameFault" + } + return *e.ErrorCodeOverride +} func (e *DuplicateUserNameFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InsufficientClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -193,13 +254,18 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientClusterCapacityFault) ErrorCode() string { - return "InsufficientClusterCapacityFault" + if e.ErrorCodeOverride == nil { + return "InsufficientClusterCapacityFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidACLStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -212,12 +278,19 @@ func (e *InvalidACLStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidACLStateFault) ErrorCode() string { return "InvalidACLStateFault" } +func (e *InvalidACLStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidACLStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidACLStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidARNFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -230,12 +303,19 @@ func (e *InvalidARNFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidARNFault) ErrorCode() string { return "InvalidARNFault" } +func (e *InvalidARNFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidARNFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidARNFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -248,12 +328,19 @@ func (e *InvalidClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidClusterStateFault) ErrorCode() string { return "InvalidClusterStateFault" } +func (e *InvalidClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidCredentialsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,12 +353,19 @@ func (e *InvalidCredentialsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCredentialsException) ErrorCode() string { return "InvalidCredentialsException" } +func (e *InvalidCredentialsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCredentialsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidCredentialsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidKMSKeyFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -284,12 +378,19 @@ func (e *InvalidKMSKeyFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSKeyFault) ErrorCode() string { return "InvalidKMSKeyFault" } +func (e *InvalidKMSKeyFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKMSKeyFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidKMSKeyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidNodeStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -302,12 +403,19 @@ func (e *InvalidNodeStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidNodeStateFault) ErrorCode() string { return "InvalidNodeStateFault" } +func (e *InvalidNodeStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNodeStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidNodeStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidParameterCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -321,7 +429,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidParameterCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -330,6 +441,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -343,13 +456,18 @@ func (e *InvalidParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidParameterGroupStateFault) ErrorCode() string { - return "InvalidParameterGroupStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidParameterGroupStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -362,12 +480,19 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -380,12 +505,19 @@ func (e *InvalidSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidSnapshotStateFault) ErrorCode() string { return "InvalidSnapshotStateFault" } +func (e *InvalidSnapshotStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSnapshotStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -398,12 +530,19 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidUserStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -416,12 +555,19 @@ func (e *InvalidUserStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidUserStateFault) ErrorCode() string { return "InvalidUserStateFault" } +func (e *InvalidUserStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUserStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidUserStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidVPCNetworkStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -434,12 +580,19 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type NodeQuotaForClusterExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -453,13 +606,18 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { - return "NodeQuotaForClusterExceededFault" + if e.ErrorCodeOverride == nil { + return "NodeQuotaForClusterExceededFault" + } + return *e.ErrorCodeOverride } func (e *NodeQuotaForClusterExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type NodeQuotaForCustomerExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -473,13 +631,18 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { - return "NodeQuotaForCustomerExceededFault" + if e.ErrorCodeOverride == nil { + return "NodeQuotaForCustomerExceededFault" + } + return *e.ErrorCodeOverride } func (e *NodeQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type NoOperationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -492,12 +655,19 @@ func (e *NoOperationFault) ErrorMessage() string { } return *e.Message } -func (e *NoOperationFault) ErrorCode() string { return "NoOperationFault" } +func (e *NoOperationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoOperationFault" + } + return *e.ErrorCodeOverride +} func (e *NoOperationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ParameterGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -511,13 +681,18 @@ func (e *ParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupAlreadyExistsFault) ErrorCode() string { - return "ParameterGroupAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "ParameterGroupAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *ParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -530,12 +705,19 @@ func (e *ParameterGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ParameterGroupNotFoundFault) ErrorCode() string { return "ParameterGroupNotFoundFault" } +func (e *ParameterGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParameterGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ParameterGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -549,7 +731,10 @@ func (e *ParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupQuotaExceededFault) ErrorCode() string { - return "ParameterGroupQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "ParameterGroupQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *ParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -557,6 +742,8 @@ func (e *ParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { retu type ReservedNodeAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -569,13 +756,20 @@ func (e *ReservedNodeAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeAlreadyExistsFault) ErrorCode() string { return "ReservedNodeAlreadyExistsFault" } +func (e *ReservedNodeAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested node does not exist. type ReservedNodeNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -588,13 +782,20 @@ func (e *ReservedNodeNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeNotFoundFault) ErrorCode() string { return "ReservedNodeNotFoundFault" } +func (e *ReservedNodeNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because it would exceed the user's node quota. type ReservedNodeQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -607,13 +808,20 @@ func (e *ReservedNodeQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeQuotaExceededFault) ErrorCode() string { return "ReservedNodeQuotaExceededFault" } +func (e *ReservedNodeQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested node offering does not exist. type ReservedNodesOfferingNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -627,7 +835,10 @@ func (e *ReservedNodesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodesOfferingNotFoundFault) ErrorCode() string { - return "ReservedNodesOfferingNotFoundFault" + if e.ErrorCodeOverride == nil { + return "ReservedNodesOfferingNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *ReservedNodesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -636,6 +847,8 @@ func (e *ReservedNodesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { type ServiceLinkedRoleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -648,12 +861,19 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { return "ServiceLinkedRoleNotFoundFault" } +func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLinkedRoleNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ServiceLinkedRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceUpdateNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -666,12 +886,19 @@ func (e *ServiceUpdateNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceUpdateNotFoundFault) ErrorCode() string { return "ServiceUpdateNotFoundFault" } +func (e *ServiceUpdateNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUpdateNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ServiceUpdateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ShardNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -684,12 +911,19 @@ func (e *ShardNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ShardNotFoundFault) ErrorCode() string { return "ShardNotFoundFault" } +func (e *ShardNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ShardNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ShardNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ShardsPerClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -703,7 +937,10 @@ func (e *ShardsPerClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ShardsPerClusterQuotaExceededFault) ErrorCode() string { - return "ShardsPerClusterQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "ShardsPerClusterQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *ShardsPerClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -712,6 +949,8 @@ func (e *ShardsPerClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { type SnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -724,12 +963,19 @@ func (e *SnapshotAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotAlreadyExistsFault) ErrorCode() string { return "SnapshotAlreadyExistsFault" } +func (e *SnapshotAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -742,12 +988,19 @@ func (e *SnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotNotFoundFault) ErrorCode() string { return "SnapshotNotFoundFault" } +func (e *SnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -760,12 +1013,19 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotQuotaExceededFault) ErrorCode() string { return "SnapshotQuotaExceededFault" } +func (e *SnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SubnetGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -778,12 +1038,19 @@ func (e *SubnetGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { return "SubnetGroupAlreadyExistsFault" } +func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SubnetGroupInUseFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -796,12 +1063,19 @@ func (e *SubnetGroupInUseFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupInUseFault) ErrorCode() string { return "SubnetGroupInUseFault" } +func (e *SubnetGroupInUseFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupInUseFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupInUseFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SubnetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -814,12 +1088,19 @@ func (e *SubnetGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupNotFoundFault) ErrorCode() string { return "SubnetGroupNotFoundFault" } +func (e *SubnetGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SubnetGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -832,12 +1113,19 @@ func (e *SubnetGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { return "SubnetGroupQuotaExceededFault" } +func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetGroupQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SubnetInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -850,12 +1138,19 @@ func (e *SubnetInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetInUse) ErrorCode() string { return "SubnetInUse" } +func (e *SubnetInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SubnetNotAllowedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -868,12 +1163,19 @@ func (e *SubnetNotAllowedFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetNotAllowedFault) ErrorCode() string { return "SubnetNotAllowedFault" } +func (e *SubnetNotAllowedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetNotAllowedFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetNotAllowedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type SubnetQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -886,12 +1188,19 @@ func (e *SubnetQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetQuotaExceededFault) ErrorCode() string { return "SubnetQuotaExceededFault" } +func (e *SubnetQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *SubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TagNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -904,12 +1213,19 @@ func (e *TagNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *TagNotFoundFault) ErrorCode() string { return "TagNotFoundFault" } +func (e *TagNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *TagNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TagQuotaPerResourceExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -922,12 +1238,19 @@ func (e *TagQuotaPerResourceExceeded) ErrorMessage() string { } return *e.Message } -func (e *TagQuotaPerResourceExceeded) ErrorCode() string { return "TagQuotaPerResourceExceeded" } +func (e *TagQuotaPerResourceExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagQuotaPerResourceExceeded" + } + return *e.ErrorCodeOverride +} func (e *TagQuotaPerResourceExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TestFailoverNotAvailableFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -940,12 +1263,19 @@ func (e *TestFailoverNotAvailableFault) ErrorMessage() string { } return *e.Message } -func (e *TestFailoverNotAvailableFault) ErrorCode() string { return "TestFailoverNotAvailableFault" } +func (e *TestFailoverNotAvailableFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TestFailoverNotAvailableFault" + } + return *e.ErrorCodeOverride +} func (e *TestFailoverNotAvailableFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type UserAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -958,12 +1288,19 @@ func (e *UserAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *UserAlreadyExistsFault) ErrorCode() string { return "UserAlreadyExistsFault" } +func (e *UserAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *UserAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type UserNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -976,12 +1313,19 @@ func (e *UserNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *UserNotFoundFault) ErrorCode() string { return "UserNotFoundFault" } +func (e *UserNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *UserNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type UserQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -994,5 +1338,10 @@ func (e *UserQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *UserQuotaExceededFault) ErrorCode() string { return "UserQuotaExceededFault" } +func (e *UserQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *UserQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mgn/types/errors.go b/service/mgn/types/errors.go index f069aace9d6..fd3bffae221 100644 --- a/service/mgn/types/errors.go +++ b/service/mgn/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be completed due to a conflict with the current state of @@ -33,6 +40,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceId *string ResourceType *string @@ -50,7 +59,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server encountered an unexpected condition that prevented it from fulfilling @@ -58,6 +72,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int64 noSmithyDocumentSerde @@ -72,13 +88,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Resource not found exception. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceId *string ResourceType *string @@ -95,13 +118,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be completed because its exceeded the service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Code *string ResourceId *string ResourceType *string @@ -121,13 +151,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Reached throttling quota exception. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *string @@ -144,13 +181,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Uninitialized account exception. type UninitializedAccountException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -165,13 +209,20 @@ func (e *UninitializedAccountException) ErrorMessage() string { } return *e.Message } -func (e *UninitializedAccountException) ErrorCode() string { return "UninitializedAccountException" } +func (e *UninitializedAccountException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UninitializedAccountException" + } + return *e.ErrorCodeOverride +} func (e *UninitializedAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Validate exception. type ValidationException struct { Message *string + ErrorCodeOverride *string + Code *string Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -188,5 +239,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/migrationhub/types/errors.go b/service/migrationhub/types/errors.go index 81c59326228..aaa6df2530e 100644 --- a/service/migrationhub/types/errors.go +++ b/service/migrationhub/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised to indicate a successfully authorized action when the DryRun @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type DryRunOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *DryRunOperation) ErrorMessage() string { } return *e.Message } -func (e *DryRunOperation) ErrorCode() string { return "DryRunOperation" } +func (e *DryRunOperation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DryRunOperation" + } + return *e.ErrorCodeOverride +} func (e *DryRunOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The home region is not set. Set the home region to continue. type HomeRegionNotSetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,7 +78,12 @@ func (e *HomeRegionNotSetException) ErrorMessage() string { } return *e.Message } -func (e *HomeRegionNotSetException) ErrorCode() string { return "HomeRegionNotSetException" } +func (e *HomeRegionNotSetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HomeRegionNotSetException" + } + return *e.ErrorCodeOverride +} func (e *HomeRegionNotSetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when an internal, configuration, or dependency error is @@ -70,6 +91,8 @@ func (e *HomeRegionNotSetException) ErrorFault() smithy.ErrorFault { return smit type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exception raised when the provided input violates a policy constraint or is @@ -90,6 +118,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +132,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when there are problems accessing Application Discovery Service @@ -111,6 +146,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type PolicyErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,7 +160,12 @@ func (e *PolicyErrorException) ErrorMessage() string { } return *e.Message } -func (e *PolicyErrorException) ErrorCode() string { return "PolicyErrorException" } +func (e *PolicyErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyErrorException" + } + return *e.ErrorCodeOverride +} func (e *PolicyErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when the request references a resource (Application Discovery @@ -133,6 +175,8 @@ func (e *PolicyErrorException) ErrorFault() smithy.ErrorFault { return smithy.Fa type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,7 +189,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when there is an internal, configuration, or dependency error @@ -153,6 +202,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,13 +216,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -186,7 +244,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised to indicate a request was not authorized when the DryRun flag @@ -194,6 +257,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type UnauthorizedOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,5 +271,10 @@ func (e *UnauthorizedOperation) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedOperation) ErrorCode() string { return "UnauthorizedOperation" } +func (e *UnauthorizedOperation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedOperation" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/migrationhubconfig/types/errors.go b/service/migrationhubconfig/types/errors.go index b9bd476288b..0e45ea8891d 100644 --- a/service/migrationhubconfig/types/errors.go +++ b/service/migrationhubconfig/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised to indicate that authorization of an action was successful, @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type DryRunOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *DryRunOperation) ErrorMessage() string { } return *e.Message } -func (e *DryRunOperation) ErrorCode() string { return "DryRunOperation" } +func (e *DryRunOperation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DryRunOperation" + } + return *e.ErrorCodeOverride +} func (e *DryRunOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when an internal, configuration, or dependency error is @@ -51,6 +65,8 @@ func (e *DryRunOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exception raised when the provided input violates a policy constraint or is @@ -71,6 +92,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +106,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception raised when a request fails due to temporary unavailability of the @@ -91,6 +119,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,13 +133,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -124,5 +161,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/migrationhuborchestrator/types/errors.go b/service/migrationhuborchestrator/types/errors.go index 4a8af28f7fe..83316ffc6ec 100644 --- a/service/migrationhuborchestrator/types/errors.go +++ b/service/migrationhuborchestrator/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource is not available. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,5 +129,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/migrationhubrefactorspaces/types/errors.go b/service/migrationhubrefactorspaces/types/errors.go index 398a22ebd52..4fcdee2d767 100644 --- a/service/migrationhubrefactorspaces/types/errors.go +++ b/service/migrationhubrefactorspaces/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource policy is not valid. type InvalidResourcePolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *InvalidResourcePolicyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourcePolicyException) ErrorCode() string { return "InvalidResourcePolicyException" } +func (e *InvalidResourcePolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourcePolicyException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourcePolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request references a resource that does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -105,13 +135,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string QuotaCode *string @@ -129,13 +166,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied because the request was throttled. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + QuotaCode *string ServiceCode *string RetryAfterSeconds int32 @@ -152,13 +196,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input does not satisfy the constraints specified by an Amazon Web Service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -171,5 +222,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/migrationhubstrategy/types/errors.go b/service/migrationhubstrategy/types/errors.go index 2fd0c36eff4..b6c928fb346 100644 --- a/service/migrationhubstrategy/types/errors.go +++ b/service/migrationhubstrategy/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception to indicate that there is an ongoing task when a new task is created. @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Dependency encountered an error. type DependencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *DependencyException) ErrorMessage() string { } return *e.Message } -func (e *DependencyException) ErrorCode() string { return "DependencyException" } +func (e *DependencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DependencyException" + } + return *e.ErrorCodeOverride +} func (e *DependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The server experienced an internal error. Try again. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified ID in the request is not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +131,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception to indicate that the service-linked role (SLR) is locked. type ServiceLinkedRoleLockClientException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,7 +158,10 @@ func (e *ServiceLinkedRoleLockClientException) ErrorMessage() string { return *e.Message } func (e *ServiceLinkedRoleLockClientException) ErrorCode() string { - return "ServiceLinkedRoleLockClientException" + if e.ErrorCodeOverride == nil { + return "ServiceLinkedRoleLockClientException" + } + return *e.ErrorCodeOverride } func (e *ServiceLinkedRoleLockClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -132,6 +172,8 @@ func (e *ServiceLinkedRoleLockClientException) ErrorFault() smithy.ErrorFault { type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,13 +186,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,13 +212,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request body isn't valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -182,5 +238,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mobile/types/errors.go b/service/mobile/types/errors.go index ec242b776f1..2403671fd0a 100644 --- a/service/mobile/types/errors.go +++ b/service/mobile/types/errors.go @@ -11,6 +11,8 @@ import ( type AccountActionRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccountActionRequiredException) ErrorMessage() string { } return *e.Message } -func (e *AccountActionRequiredException) ErrorCode() string { return "AccountActionRequiredException" } +func (e *AccountActionRequiredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountActionRequiredException" + } + return *e.ErrorCodeOverride +} func (e *AccountActionRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be processed because some parameter is not valid or the @@ -31,6 +38,8 @@ func (e *AccountActionRequiredException) ErrorFault() smithy.ErrorFault { return type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service has encountered an unexpected error condition which prevents it from @@ -51,6 +65,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // There are too many AWS Mobile Hub projects in the account or the account has @@ -73,6 +94,8 @@ func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -87,13 +110,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No entity can be found with the specified identifier. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,7 +136,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. The request should be retried after some @@ -114,6 +149,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -128,7 +165,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Too many requests have been received for this AWS account in too short a time. @@ -136,6 +178,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -150,13 +194,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Credentials of the caller are insufficient to authorize the request. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,5 +220,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mq/types/errors.go b/service/mq/types/errors.go index d4dc18ef616..f325774c7f5 100644 --- a/service/mq/types/errors.go +++ b/service/mq/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + ErrorAttribute *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ConflictException struct { Message *string + ErrorCodeOverride *string + ErrorAttribute *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + ErrorAttribute *string noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + ErrorAttribute *string noSmithyDocumentSerde @@ -88,13 +111,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returns information about an error. type NotFoundException struct { Message *string + ErrorCodeOverride *string + ErrorAttribute *string noSmithyDocumentSerde @@ -109,13 +139,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + ErrorAttribute *string noSmithyDocumentSerde @@ -130,5 +167,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/mturk/types/errors.go b/service/mturk/types/errors.go index c002cba5fdd..379106c7526 100644 --- a/service/mturk/types/errors.go +++ b/service/mturk/types/errors.go @@ -11,6 +11,8 @@ import ( type RequestError struct { Message *string + ErrorCodeOverride *string + TurkErrorCode *string noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *RequestError) ErrorMessage() string { } return *e.Message } -func (e *RequestError) ErrorCode() string { return "RequestError" } +func (e *RequestError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestError" + } + return *e.ErrorCodeOverride +} func (e *RequestError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Mechanical Turk is temporarily unable to process your request. Try your @@ -33,6 +40,8 @@ func (e *RequestError) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type ServiceFault struct { Message *string + ErrorCodeOverride *string + TurkErrorCode *string noSmithyDocumentSerde @@ -47,5 +56,10 @@ func (e *ServiceFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceFault) ErrorCode() string { return "ServiceFault" } +func (e *ServiceFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFault" + } + return *e.ErrorCodeOverride +} func (e *ServiceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/mwaa/types/errors.go b/service/mwaa/types/errors.go index ffa72a876c4..454f208b94c 100644 --- a/service/mwaa/types/errors.go +++ b/service/mwaa/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // InternalServerException: An internal error has occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // ResourceNotFoundException: The resource is not available. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // ValidationException: The provided input is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,5 +105,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/neptune/types/errors.go b/service/neptune/types/errors.go index 92595af3f4e..2992e8fc350 100644 --- a/service/neptune/types/errors.go +++ b/service/neptune/types/errors.go @@ -13,6 +13,8 @@ import ( type AuthorizationNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationNotFoundFault) ErrorCode() string { return "AuthorizationNotFound" } +func (e *AuthorizationNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationNotFound" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // CertificateIdentifier does not refer to an existing certificate. type CertificateNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *CertificateNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CertificateNotFoundFault) ErrorCode() string { return "CertificateNotFound" } +func (e *CertificateNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateNotFound" + } + return *e.ErrorCodeOverride +} func (e *CertificateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // User already has a DB cluster with the given identifier. type DBClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *DBClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterAlreadyExistsFault) ErrorCode() string { return "DBClusterAlreadyExistsFault" } +func (e *DBClusterAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified custom endpoint cannot be created because it already exists. type DBClusterEndpointAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +106,10 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointAlreadyExistsFault) ErrorCode() string { - return "DBClusterEndpointAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "DBClusterEndpointAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -93,6 +119,8 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterEndpointNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +133,20 @@ func (e *DBClusterEndpointNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterEndpointNotFoundFault) ErrorCode() string { return "DBClusterEndpointNotFoundFault" } +func (e *DBClusterEndpointNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterEndpointNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterEndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster already has the maximum number of custom endpoints. type DBClusterEndpointQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,7 +160,10 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointQuotaExceededFault) ErrorCode() string { - return "DBClusterEndpointQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "DBClusterEndpointQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -135,6 +173,8 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,7 +187,12 @@ func (e *DBClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterNotFoundFault) ErrorCode() string { return "DBClusterNotFoundFault" } +func (e *DBClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter @@ -155,6 +200,8 @@ func (e *DBClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy. type DBClusterParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -168,7 +215,10 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - return "DBClusterParameterGroupNotFound" + if e.ErrorCodeOverride == nil { + return "DBClusterParameterGroupNotFound" + } + return *e.ErrorCodeOverride } func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -179,6 +229,8 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type DBClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -191,7 +243,12 @@ func (e *DBClusterQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterQuotaExceededFault) ErrorCode() string { return "DBClusterQuotaExceededFault" } +func (e *DBClusterQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified IAM role Amazon Resource Name (ARN) is already associated with the @@ -199,6 +256,8 @@ func (e *DBClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return sm type DBClusterRoleAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -211,7 +270,12 @@ func (e *DBClusterRoleAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterRoleAlreadyExistsFault) ErrorCode() string { return "DBClusterRoleAlreadyExists" } +func (e *DBClusterRoleAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterRoleAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBClusterRoleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified IAM role Amazon Resource Name (ARN) is not associated with the @@ -219,6 +283,8 @@ func (e *DBClusterRoleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type DBClusterRoleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -231,7 +297,12 @@ func (e *DBClusterRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterRoleNotFoundFault) ErrorCode() string { return "DBClusterRoleNotFound" } +func (e *DBClusterRoleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterRoleNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBClusterRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of IAM roles that can be associated with @@ -239,6 +310,8 @@ func (e *DBClusterRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type DBClusterRoleQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -251,13 +324,20 @@ func (e *DBClusterRoleQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterRoleQuotaExceededFault) ErrorCode() string { return "DBClusterRoleQuotaExceeded" } +func (e *DBClusterRoleQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterRoleQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *DBClusterRoleQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // User already has a DB cluster snapshot with the given identifier. type DBClusterSnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -271,7 +351,10 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - return "DBClusterSnapshotAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "DBClusterSnapshotAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -281,6 +364,8 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterSnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -293,13 +378,20 @@ func (e *DBClusterSnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { return "DBClusterSnapshotNotFoundFault" } +func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterSnapshotNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // User already has a DB instance with the given identifier. type DBInstanceAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -312,13 +404,20 @@ func (e *DBInstanceAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { return "DBInstanceAlreadyExists" } +func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBInstanceIdentifier does not refer to an existing DB instance. type DBInstanceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -331,13 +430,20 @@ func (e *DBInstanceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceNotFoundFault) ErrorCode() string { return "DBInstanceNotFound" } +func (e *DBInstanceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A DB parameter group with the same name exists. type DBParameterGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -351,7 +457,10 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - return "DBParameterGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "DBParameterGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -361,6 +470,8 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -373,7 +484,12 @@ func (e *DBParameterGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBParameterGroupNotFoundFault) ErrorCode() string { return "DBParameterGroupNotFound" } +func (e *DBParameterGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBParameterGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would result in user exceeding the allowed number of DB parameter @@ -381,6 +497,8 @@ func (e *DBParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return type DBParameterGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -394,7 +512,10 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - return "DBParameterGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "DBParameterGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -404,6 +525,8 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBSecurityGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -416,13 +539,20 @@ func (e *DBSecurityGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { return "DBSecurityGroupNotFound" } +func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSecurityGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier is already used by an existing snapshot. type DBSnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -435,13 +565,20 @@ func (e *DBSnapshotAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { return "DBSnapshotAlreadyExists" } +func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSnapshotAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier does not refer to an existing DB snapshot. type DBSnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -454,13 +591,20 @@ func (e *DBSnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSnapshotNotFoundFault) ErrorCode() string { return "DBSnapshotNotFound" } +func (e *DBSnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSnapshotNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName is already used by an existing DB subnet group. type DBSubnetGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -473,7 +617,12 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { return "DBSubnetGroupAlreadyExists" } +func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Subnets in the DB subnet group should cover at least two Availability Zones @@ -481,6 +630,8 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type DBSubnetGroupDoesNotCoverEnoughAZs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -494,7 +645,10 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "DBSubnetGroupDoesNotCoverEnoughAZs" + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.ErrorCodeOverride } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -504,6 +658,8 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { type DBSubnetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -516,13 +672,20 @@ func (e *DBSubnetGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { return "DBSubnetGroupNotFoundFault" } +func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would result in user exceeding the allowed number of DB subnet groups. type DBSubnetGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -535,7 +698,12 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { return "DBSubnetGroupQuotaExceeded" } +func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would result in user exceeding the allowed number of subnets in a DB @@ -543,6 +711,8 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type DBSubnetQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -555,7 +725,12 @@ func (e *DBSubnetQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetQuotaExceededFault) ErrorCode() string { return "DBSubnetQuotaExceededFault" } +func (e *DBSubnetQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB upgrade failed because a resource the DB depends on could not be @@ -563,6 +738,8 @@ func (e *DBSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smi type DBUpgradeDependencyFailureFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -575,13 +752,20 @@ func (e *DBUpgradeDependencyFailureFault) ErrorMessage() string { } return *e.Message } -func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { return "DBUpgradeDependencyFailure" } +func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBUpgradeDependencyFailure" + } + return *e.ErrorCodeOverride +} func (e *DBUpgradeDependencyFailureFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Domain does not refer to an existing Active Directory Domain. type DomainNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -594,13 +778,20 @@ func (e *DomainNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DomainNotFoundFault) ErrorCode() string { return "DomainNotFoundFault" } +func (e *DomainNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DomainNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DomainNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the number of events you can subscribe to. type EventSubscriptionQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -614,7 +805,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -625,6 +819,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type GlobalClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -638,7 +834,10 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - return "GlobalClusterAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "GlobalClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -647,6 +846,8 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type GlobalClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -659,7 +860,12 @@ func (e *GlobalClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *GlobalClusterNotFoundFault) ErrorCode() string { return "GlobalClusterNotFoundFault" } +func (e *GlobalClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GlobalClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of global database clusters for this account is already at the @@ -667,6 +873,8 @@ func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type GlobalClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -680,7 +888,10 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - return "GlobalClusterQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "GlobalClusterQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -688,6 +899,8 @@ func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type InstanceQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -700,13 +913,20 @@ func (e *InstanceQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *InstanceQuotaExceededFault) ErrorCode() string { return "InstanceQuotaExceeded" } +func (e *InstanceQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *InstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB cluster does not have enough capacity for the current operation. type InsufficientDBClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -720,7 +940,10 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - return "InsufficientDBClusterCapacityFault" + if e.ErrorCodeOverride == nil { + return "InsufficientDBClusterCapacityFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -730,6 +953,8 @@ func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientDBInstanceCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -743,7 +968,10 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - return "InsufficientDBInstanceCapacity" + if e.ErrorCodeOverride == nil { + return "InsufficientDBInstanceCapacity" + } + return *e.ErrorCodeOverride } func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -755,6 +983,8 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientStorageClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -768,7 +998,10 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - return "InsufficientStorageClusterCapacity" + if e.ErrorCodeOverride == nil { + return "InsufficientStorageClusterCapacity" + } + return *e.ErrorCodeOverride } func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -779,6 +1012,8 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault type InvalidDBClusterEndpointStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -792,7 +1027,10 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterEndpointStateFault) ErrorCode() string { - return "InvalidDBClusterEndpointStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterEndpointStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -802,6 +1040,8 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -815,7 +1055,10 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - return "InvalidDBClusterSnapshotStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterSnapshotStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -825,6 +1068,8 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -837,13 +1082,20 @@ func (e *InvalidDBClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBClusterStateFault) ErrorCode() string { return "InvalidDBClusterStateFault" } +func (e *InvalidDBClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified DB instance is not in the available state. type InvalidDBInstanceStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -856,7 +1108,12 @@ func (e *InvalidDBInstanceStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBInstanceStateFault) ErrorCode() string { return "InvalidDBInstanceState" } +func (e *InvalidDBInstanceStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBInstanceState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBInstanceStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB parameter group is in use or is in an invalid state. If you are @@ -865,6 +1122,8 @@ func (e *InvalidDBInstanceStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidDBParameterGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -877,13 +1136,20 @@ func (e *InvalidDBParameterGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { return "InvalidDBParameterGroupState" } +func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBParameterGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the DB security group does not allow deletion. type InvalidDBSecurityGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -896,13 +1162,20 @@ func (e *InvalidDBSecurityGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { return "InvalidDBSecurityGroupState" } +func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSecurityGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the DB snapshot does not allow deletion. type InvalidDBSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -915,13 +1188,20 @@ func (e *InvalidDBSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSnapshotStateFault) ErrorCode() string { return "InvalidDBSnapshotState" } +func (e *InvalidDBSnapshotStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSnapshotState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet group cannot be deleted because it is in use. type InvalidDBSubnetGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -934,13 +1214,20 @@ func (e *InvalidDBSubnetGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { return "InvalidDBSubnetGroupStateFault" } +func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSubnetGroupStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet is not in the available state. type InvalidDBSubnetStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -953,13 +1240,20 @@ func (e *InvalidDBSubnetStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetStateFault) ErrorCode() string { return "InvalidDBSubnetStateFault" } +func (e *InvalidDBSubnetStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSubnetStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The event subscription is in an invalid state. type InvalidEventSubscriptionStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -973,7 +1267,10 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - return "InvalidEventSubscriptionState" + if e.ErrorCodeOverride == nil { + return "InvalidEventSubscriptionState" + } + return *e.ErrorCodeOverride } func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -984,6 +1281,8 @@ func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { type InvalidGlobalClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -996,13 +1295,20 @@ func (e *InvalidGlobalClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidGlobalClusterStateFault) ErrorCode() string { return "InvalidGlobalClusterStateFault" } +func (e *InvalidGlobalClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGlobalClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidGlobalClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot restore from vpc backup to non-vpc DB instance. type InvalidRestoreFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1015,7 +1321,12 @@ func (e *InvalidRestoreFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidRestoreFault) ErrorCode() string { return "InvalidRestoreFault" } +func (e *InvalidRestoreFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRestoreFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet is invalid, or multiple subnets were requested that are not @@ -1023,6 +1334,8 @@ func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1035,7 +1348,12 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DB subnet group does not cover all Availability Zones after it is created @@ -1043,6 +1361,8 @@ func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type InvalidVPCNetworkStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1055,13 +1375,20 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Error accessing KMS key. type KMSKeyNotAccessibleFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1074,13 +1401,20 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { } return *e.Message } -func (e *KMSKeyNotAccessibleFault) ErrorCode() string { return "KMSKeyNotAccessibleFault" } +func (e *KMSKeyNotAccessibleFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.ErrorCodeOverride +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated option group could not be found. type OptionGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1093,13 +1427,20 @@ func (e *OptionGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *OptionGroupNotFoundFault) ErrorCode() string { return "OptionGroupNotFoundFault" } +func (e *OptionGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OptionGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *OptionGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provisioned IOPS not available in the specified Availability Zone. type ProvisionedIopsNotAvailableInAZFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1113,7 +1454,10 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorMessage() string { return *e.Message } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorCode() string { - return "ProvisionedIopsNotAvailableInAZFault" + if e.ErrorCodeOverride == nil { + return "ProvisionedIopsNotAvailableInAZFault" + } + return *e.ErrorCodeOverride } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1123,6 +1467,8 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { type ResourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1135,7 +1481,12 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundFault) ErrorCode() string { return "ResourceNotFoundFault" } +func (e *ResourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of accounts that you can share a manual DB @@ -1143,6 +1494,8 @@ func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.F type SharedSnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1155,13 +1508,20 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { return "SharedSnapshotQuotaExceeded" } +func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SharedSnapshotQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *SharedSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would result in user exceeding the allowed number of DB snapshots. type SnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1174,13 +1534,20 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotQuotaExceededFault) ErrorCode() string { return "SnapshotQuotaExceeded" } +func (e *SnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *SnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic is invalid. type SNSInvalidTopicFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1193,13 +1560,20 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { } return *e.Message } -func (e *SNSInvalidTopicFault) ErrorCode() string { return "SNSInvalidTopic" } +func (e *SNSInvalidTopicFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSInvalidTopic" + } + return *e.ErrorCodeOverride +} func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is no SNS authorization. type SNSNoAuthorizationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1212,13 +1586,20 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { } return *e.Message } -func (e *SNSNoAuthorizationFault) ErrorCode() string { return "SNSNoAuthorization" } +func (e *SNSNoAuthorizationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSNoAuthorization" + } + return *e.ErrorCodeOverride +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ARN of the SNS topic could not be found. type SNSTopicArnNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1231,13 +1612,20 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SNSTopicArnNotFoundFault) ErrorCode() string { return "SNSTopicArnNotFound" } +func (e *SNSTopicArnNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSTopicArnNotFound" + } + return *e.ErrorCodeOverride +} func (e *SNSTopicArnNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The source could not be found. type SourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1250,7 +1638,12 @@ func (e *SourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SourceNotFoundFault) ErrorCode() string { return "SourceNotFound" } +func (e *SourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would result in user exceeding the allowed amount of storage available @@ -1258,6 +1651,8 @@ func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type StorageQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1270,13 +1665,20 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *StorageQuotaExceededFault) ErrorCode() string { return "StorageQuotaExceeded" } +func (e *StorageQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *StorageQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // StorageType specified cannot be associated with the DB Instance. type StorageTypeNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1289,13 +1691,20 @@ func (e *StorageTypeNotSupportedFault) ErrorMessage() string { } return *e.Message } -func (e *StorageTypeNotSupportedFault) ErrorCode() string { return "StorageTypeNotSupported" } +func (e *StorageTypeNotSupportedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageTypeNotSupported" + } + return *e.ErrorCodeOverride +} func (e *StorageTypeNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet is already in use in the Availability Zone. type SubnetAlreadyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1308,13 +1717,20 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetAlreadyInUse) ErrorCode() string { return "SubnetAlreadyInUse" } +func (e *SubnetAlreadyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetAlreadyInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This subscription already exists. type SubscriptionAlreadyExistFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1327,13 +1743,20 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionAlreadyExistFault) ErrorCode() string { return "SubscriptionAlreadyExist" } +func (e *SubscriptionAlreadyExistFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionAlreadyExist" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated subscription category could not be found. type SubscriptionCategoryNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1346,13 +1769,20 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { return "SubscriptionCategoryNotFound" } +func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionCategoryNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionCategoryNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated subscription could not be found. type SubscriptionNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1365,5 +1795,10 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionNotFoundFault) ErrorCode() string { return "SubscriptionNotFound" } +func (e *SubscriptionNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/networkfirewall/types/errors.go b/service/networkfirewall/types/errors.go index e60f73b6ad0..ed77d59d39e 100644 --- a/service/networkfirewall/types/errors.go +++ b/service/networkfirewall/types/errors.go @@ -12,6 +12,8 @@ import ( type InsufficientCapacityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *InsufficientCapacityException) ErrorMessage() string { } return *e.Message } -func (e *InsufficientCapacityException) ErrorCode() string { return "InsufficientCapacityException" } +func (e *InsufficientCapacityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InsufficientCapacityException" + } + return *e.ErrorCodeOverride +} func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Your request is valid, but Network Firewall couldn’t perform the operation @@ -32,6 +39,8 @@ func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation failed because it's not valid. For example, you might have tried @@ -52,6 +66,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because of a problem with your request. Examples @@ -81,6 +102,8 @@ func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smit type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -93,13 +116,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The policy statement failed validation. type InvalidResourcePolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -112,13 +142,20 @@ func (e *InvalidResourcePolicyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourcePolicyException) ErrorCode() string { return "InvalidResourcePolicyException" } +func (e *InvalidResourcePolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourcePolicyException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourcePolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token you provided is stale or isn't valid for the operation. type InvalidTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -131,13 +168,20 @@ func (e *InvalidTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTokenException) ErrorCode() string { return "InvalidTokenException" } +func (e *InvalidTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to perform the operation because doing so would violate a limit setting. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,13 +194,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to send logs to a configured logging destination. type LogDestinationPermissionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -170,7 +221,10 @@ func (e *LogDestinationPermissionException) ErrorMessage() string { return *e.Message } func (e *LogDestinationPermissionException) ErrorCode() string { - return "LogDestinationPermissionException" + if e.ErrorCodeOverride == nil { + return "LogDestinationPermissionException" + } + return *e.ErrorCodeOverride } func (e *LogDestinationPermissionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -178,6 +232,8 @@ func (e *LogDestinationPermissionException) ErrorFault() smithy.ErrorFault { ret type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,13 +246,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to change the resource because your account doesn't own it. type ResourceOwnerCheckException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,13 +272,20 @@ func (e *ResourceOwnerCheckException) ErrorMessage() string { } return *e.Message } -func (e *ResourceOwnerCheckException) ErrorCode() string { return "ResourceOwnerCheckException" } +func (e *ResourceOwnerCheckException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceOwnerCheckException" + } + return *e.ErrorCodeOverride +} func (e *ResourceOwnerCheckException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to process the request due to throttling limitations. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,13 +298,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation you requested isn't supported by Network Firewall. type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -247,5 +324,10 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/networkmanager/types/errors.go b/service/networkmanager/types/errors.go index c5ba3985c2c..554d902b6b4 100644 --- a/service/networkmanager/types/errors.go +++ b/service/networkmanager/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict processing the request. Updating or deleting the resource @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Describes a core network policy exception. type CoreNetworkPolicyException struct { Message *string + ErrorCodeOverride *string + Errors []CoreNetworkPolicyError noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *CoreNetworkPolicyException) ErrorMessage() string { } return *e.Message } -func (e *CoreNetworkPolicyException) ErrorCode() string { return "CoreNetworkPolicyException" } +func (e *CoreNetworkPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CoreNetworkPolicyException" + } + return *e.ErrorCodeOverride +} func (e *CoreNetworkPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed due to an internal error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -88,13 +111,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string Context map[string]string @@ -111,13 +141,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service limit was exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string LimitCode *string @@ -135,13 +172,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -156,13 +200,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -178,5 +229,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/nimble/types/errors.go b/service/nimble/types/errors.go index 77907d0ba3f..7aba3cd7776 100644 --- a/service/nimble/types/errors.go +++ b/service/nimble/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string Context map[string]string @@ -27,13 +29,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Another operation is in progress. type ConflictException struct { Message *string + ErrorCodeOverride *string + Code *string Context map[string]string @@ -49,13 +58,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. Please retry your request. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + Code *string Context map[string]string @@ -71,13 +87,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string Context map[string]string @@ -93,7 +116,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your current quota does not allow you to perform the request action. You can @@ -102,6 +130,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Code *string Context map[string]string @@ -117,13 +147,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request throughput limit was exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + Code *string Context map[string]string @@ -139,13 +176,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the parameters in the request is invalid. type ValidationException struct { Message *string + ErrorCodeOverride *string + Code *string Context map[string]string @@ -161,5 +205,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/oam/types/errors.go b/service/oam/types/errors.go index 9374763cc6f..3a878cd5134 100644 --- a/service/oam/types/errors.go +++ b/service/oam/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + AmznErrorType *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error while processing the request. Retry the request. type InternalServiceFault struct { Message *string + ErrorCodeOverride *string + AmznErrorType *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *InternalServiceFault) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceFault) ErrorCode() string { return "InternalServiceFault" } +func (e *InternalServiceFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceFault" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A parameter is specified incorrectly. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + AmznErrorType *string noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A required parameter is missing from the request. type MissingRequiredParameterException struct { Message *string + ErrorCodeOverride *string + AmznErrorType *string noSmithyDocumentSerde @@ -89,7 +112,10 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - return "MissingRequiredParameterException" + if e.ErrorCodeOverride == nil { + return "MissingRequiredParameterException" + } + return *e.ErrorCodeOverride } func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -97,6 +123,8 @@ func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { ret type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + AmznErrorType *string noSmithyDocumentSerde @@ -111,13 +139,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + AmznErrorType *string noSmithyDocumentSerde @@ -132,13 +167,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource can have no more than 50 tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -151,13 +193,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of a parameter in the request caused an error. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -170,5 +219,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/omics/types/errors.go b/service/omics/types/errors.go index 4f517be5afa..33ce75568cc 100644 --- a/service/omics/types/errors.go +++ b/service/omics/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be applied to the target resource in its current state. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. Try the request again. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The ranges specified in the request are not valid. type RangeNotSatisfiableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *RangeNotSatisfiableException) ErrorMessage() string { } return *e.Message } -func (e *RangeNotSatisfiableException) ErrorCode() string { return "RangeNotSatisfiableException" } +func (e *RangeNotSatisfiableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RangeNotSatisfiableException" + } + return *e.ErrorCodeOverride +} func (e *RangeNotSatisfiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request timed out. type RequestTimeoutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *RequestTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *RequestTimeoutException) ErrorCode() string { return "RequestTimeoutException" } +func (e *RequestTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target resource was not found in the current Region. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,13 +181,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,13 +207,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -175,5 +233,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/opensearch/types/errors.go b/service/opensearch/types/errors.go index 518cd6bbe66..dc9b52d6d8c 100644 --- a/service/opensearch/types/errors.go +++ b/service/opensearch/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred while processing the request. type BaseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *BaseException) ErrorMessage() string { } return *e.Message } -func (e *BaseException) ErrorCode() string { return "BaseException" } +func (e *BaseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BaseException" + } + return *e.ErrorCodeOverride +} func (e *BaseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred because the client attempts to remove a resource that is @@ -51,6 +65,8 @@ func (e *BaseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occured because the client wanted to access a not supported operation. @@ -71,6 +92,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DisabledOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,7 +106,12 @@ func (e *DisabledOperationException) ErrorMessage() string { } return *e.Message } -func (e *DisabledOperationException) ErrorCode() string { return "DisabledOperationException" } +func (e *DisabledOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DisabledOperationException" + } + return *e.ErrorCodeOverride +} func (e *DisabledOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -92,6 +120,8 @@ func (e *DisabledOperationException) ErrorFault() smithy.ErrorFault { return smi type InternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +134,12 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request processing has failed because of invalid pagination token provided @@ -112,6 +147,8 @@ func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InvalidPaginationTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,7 +162,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidPaginationTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -134,6 +174,8 @@ func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { retur type InvalidTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +188,12 @@ func (e *InvalidTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTypeException) ErrorCode() string { return "InvalidTypeException" } +func (e *InvalidTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTypeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for trying to create more than allowed resources or sub-resources. @@ -154,6 +201,8 @@ func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.Fa type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -166,7 +215,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for creating a resource that already exists. Gives http status code @@ -174,6 +228,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -186,7 +242,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for accessing or deleting a resource that does not exist. Gives @@ -194,6 +255,8 @@ func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -206,13 +269,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception for missing / invalid input fields. Gives http status code of 400. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -225,5 +295,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/opensearchserverless/types/errors.go b/service/opensearchserverless/types/errors.go index fff82cbb7e0..943c94f3028 100644 --- a/service/opensearchserverless/types/errors.go +++ b/service/opensearchserverless/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when an error internal to the service occurs while processing a request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Thrown when accessing or deleting a resource that does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when the HTTP request contains invalid input or is missing required @@ -71,6 +92,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,5 +106,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/opsworks/types/errors.go b/service/opsworks/types/errors.go index a4f4d92b638..790918c7155 100644 --- a/service/opsworks/types/errors.go +++ b/service/opsworks/types/errors.go @@ -11,6 +11,8 @@ import ( type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request was not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,5 +51,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/opsworkscm/types/errors.go b/service/opsworkscm/types/errors.go index ff254045929..b38810ff7f4 100644 --- a/service/opsworkscm/types/errors.go +++ b/service/opsworkscm/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is in a state that does not allow you to perform a specified @@ -31,6 +38,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit of servers or backups has been reached. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource cannot be created because it already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource does not exist, or access was denied. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the provided request parameters are not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,5 +156,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/organizations/types/errors.go b/service/organizations/types/errors.go index ce5d40df3ac..4343157216b 100644 --- a/service/organizations/types/errors.go +++ b/service/organizations/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -27,7 +29,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation that you attempted requires you to have the @@ -37,6 +44,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AccessDeniedForDependencyException struct { Message *string + ErrorCodeOverride *string + Reason AccessDeniedForDependencyExceptionReason noSmithyDocumentSerde @@ -52,7 +61,10 @@ func (e *AccessDeniedForDependencyException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedForDependencyException) ErrorCode() string { - return "AccessDeniedForDependencyException" + if e.ErrorCodeOverride == nil { + return "AccessDeniedForDependencyException" + } + return *e.ErrorCodeOverride } func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -62,6 +74,8 @@ func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { type AccountAlreadyClosedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -74,7 +88,12 @@ func (e *AccountAlreadyClosedException) ErrorMessage() string { } return *e.Message } -func (e *AccountAlreadyClosedException) ErrorCode() string { return "AccountAlreadyClosedException" } +func (e *AccountAlreadyClosedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountAlreadyClosedException" + } + return *e.ErrorCodeOverride +} func (e *AccountAlreadyClosedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account is already a delegated administrator for this Amazon Web @@ -82,6 +101,8 @@ func (e *AccountAlreadyClosedException) ErrorFault() smithy.ErrorFault { return type AccountAlreadyRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -95,7 +116,10 @@ func (e *AccountAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *AccountAlreadyRegisteredException) ErrorCode() string { - return "AccountAlreadyRegisteredException" + if e.ErrorCodeOverride == nil { + return "AccountAlreadyRegisteredException" + } + return *e.ErrorCodeOverride } func (e *AccountAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -105,6 +129,8 @@ func (e *AccountAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { ret type AccountNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -117,7 +143,12 @@ func (e *AccountNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *AccountNotFoundException) ErrorCode() string { return "AccountNotFoundException" } +func (e *AccountNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *AccountNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account is not a delegated administrator for this Amazon Web @@ -125,6 +156,8 @@ func (e *AccountNotFoundException) ErrorFault() smithy.ErrorFault { return smith type AccountNotRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,7 +170,12 @@ func (e *AccountNotRegisteredException) ErrorMessage() string { } return *e.Message } -func (e *AccountNotRegisteredException) ErrorCode() string { return "AccountNotRegisteredException" } +func (e *AccountNotRegisteredException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountNotRegisteredException" + } + return *e.ErrorCodeOverride +} func (e *AccountNotRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't invite an existing account to your organization until you verify that @@ -148,6 +186,8 @@ func (e *AccountNotRegisteredException) ErrorFault() smithy.ErrorFault { return type AccountOwnerNotVerifiedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -161,7 +201,10 @@ func (e *AccountOwnerNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *AccountOwnerNotVerifiedException) ErrorCode() string { - return "AccountOwnerNotVerifiedException" + if e.ErrorCodeOverride == nil { + return "AccountOwnerNotVerifiedException" + } + return *e.ErrorCodeOverride } func (e *AccountOwnerNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -170,6 +213,8 @@ func (e *AccountOwnerNotVerifiedException) ErrorFault() smithy.ErrorFault { retu type AlreadyInOrganizationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -182,7 +227,12 @@ func (e *AlreadyInOrganizationException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyInOrganizationException) ErrorCode() string { return "AlreadyInOrganizationException" } +func (e *AlreadyInOrganizationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyInOrganizationException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyInOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your account isn't a member of an organization. To make this request, you must @@ -190,6 +240,8 @@ func (e *AlreadyInOrganizationException) ErrorFault() smithy.ErrorFault { return type AWSOrganizationsNotInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -203,7 +255,10 @@ func (e *AWSOrganizationsNotInUseException) ErrorMessage() string { return *e.Message } func (e *AWSOrganizationsNotInUseException) ErrorCode() string { - return "AWSOrganizationsNotInUseException" + if e.ErrorCodeOverride == nil { + return "AWSOrganizationsNotInUseException" + } + return *e.ErrorCodeOverride } func (e *AWSOrganizationsNotInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -212,6 +267,8 @@ func (e *AWSOrganizationsNotInUseException) ErrorFault() smithy.ErrorFault { ret type ChildNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -224,7 +281,12 @@ func (e *ChildNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ChildNotFoundException) ErrorCode() string { return "ChildNotFoundException" } +func (e *ChildNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ChildNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ChildNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target of the operation is currently being modified by a different request. @@ -232,6 +294,8 @@ func (e *ChildNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -245,7 +309,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -254,6 +321,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,7 +335,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Performing this operation violates a minimum or maximum value limit. For @@ -446,6 +520,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type ConstraintViolationException struct { Message *string + ErrorCodeOverride *string + Reason ConstraintViolationExceptionReason noSmithyDocumentSerde @@ -460,7 +536,12 @@ func (e *ConstraintViolationException) ErrorMessage() string { } return *e.Message } -func (e *ConstraintViolationException) ErrorCode() string { return "ConstraintViolationException" } +func (e *ConstraintViolationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConstraintViolationException" + } + return *e.ErrorCodeOverride +} func (e *ConstraintViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find an create account request with the CreateAccountRequestId that you @@ -468,6 +549,8 @@ func (e *ConstraintViolationException) ErrorFault() smithy.ErrorFault { return s type CreateAccountStatusNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -481,7 +564,10 @@ func (e *CreateAccountStatusNotFoundException) ErrorMessage() string { return *e.Message } func (e *CreateAccountStatusNotFoundException) ErrorCode() string { - return "CreateAccountStatusNotFoundException" + if e.ErrorCodeOverride == nil { + return "CreateAccountStatusNotFoundException" + } + return *e.ErrorCodeOverride } func (e *CreateAccountStatusNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -492,6 +578,8 @@ func (e *CreateAccountStatusNotFoundException) ErrorFault() smithy.ErrorFault { type DestinationParentNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -505,7 +593,10 @@ func (e *DestinationParentNotFoundException) ErrorMessage() string { return *e.Message } func (e *DestinationParentNotFoundException) ErrorCode() string { - return "DestinationParentNotFoundException" + if e.ErrorCodeOverride == nil { + return "DestinationParentNotFoundException" + } + return *e.ErrorCodeOverride } func (e *DestinationParentNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -515,6 +606,8 @@ func (e *DestinationParentNotFoundException) ErrorFault() smithy.ErrorFault { type DuplicateAccountException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -527,7 +620,12 @@ func (e *DuplicateAccountException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateAccountException) ErrorCode() string { return "DuplicateAccountException" } +func (e *DuplicateAccountException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateAccountException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A handshake with the same action and target already exists. For example, if you @@ -538,6 +636,8 @@ func (e *DuplicateAccountException) ErrorFault() smithy.ErrorFault { return smit type DuplicateHandshakeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -550,13 +650,20 @@ func (e *DuplicateHandshakeException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateHandshakeException) ErrorCode() string { return "DuplicateHandshakeException" } +func (e *DuplicateHandshakeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateHandshakeException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateHandshakeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An OU with the same name already exists. type DuplicateOrganizationalUnitException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -570,7 +677,10 @@ func (e *DuplicateOrganizationalUnitException) ErrorMessage() string { return *e.Message } func (e *DuplicateOrganizationalUnitException) ErrorCode() string { - return "DuplicateOrganizationalUnitException" + if e.ErrorCodeOverride == nil { + return "DuplicateOrganizationalUnitException" + } + return *e.ErrorCodeOverride } func (e *DuplicateOrganizationalUnitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -580,6 +690,8 @@ func (e *DuplicateOrganizationalUnitException) ErrorFault() smithy.ErrorFault { type DuplicatePolicyAttachmentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -593,7 +705,10 @@ func (e *DuplicatePolicyAttachmentException) ErrorMessage() string { return *e.Message } func (e *DuplicatePolicyAttachmentException) ErrorCode() string { - return "DuplicatePolicyAttachmentException" + if e.ErrorCodeOverride == nil { + return "DuplicatePolicyAttachmentException" + } + return *e.ErrorCodeOverride } func (e *DuplicatePolicyAttachmentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -603,6 +718,8 @@ func (e *DuplicatePolicyAttachmentException) ErrorFault() smithy.ErrorFault { type DuplicatePolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -615,7 +732,12 @@ func (e *DuplicatePolicyException) ErrorMessage() string { } return *e.Message } -func (e *DuplicatePolicyException) ErrorCode() string { return "DuplicatePolicyException" } +func (e *DuplicatePolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicatePolicyException" + } + return *e.ErrorCodeOverride +} func (e *DuplicatePolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // If you ran this action on the management account, this policy type is not @@ -625,6 +747,8 @@ func (e *DuplicatePolicyException) ErrorFault() smithy.ErrorFault { return smith type EffectivePolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -638,7 +762,10 @@ func (e *EffectivePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *EffectivePolicyNotFoundException) ErrorCode() string { - return "EffectivePolicyNotFoundException" + if e.ErrorCodeOverride == nil { + return "EffectivePolicyNotFoundException" + } + return *e.ErrorCodeOverride } func (e *EffectivePolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -649,6 +776,8 @@ func (e *EffectivePolicyNotFoundException) ErrorFault() smithy.ErrorFault { retu type FinalizingOrganizationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -662,7 +791,10 @@ func (e *FinalizingOrganizationException) ErrorMessage() string { return *e.Message } func (e *FinalizingOrganizationException) ErrorCode() string { - return "FinalizingOrganizationException" + if e.ErrorCodeOverride == nil { + return "FinalizingOrganizationException" + } + return *e.ErrorCodeOverride } func (e *FinalizingOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -671,6 +803,8 @@ func (e *FinalizingOrganizationException) ErrorFault() smithy.ErrorFault { retur type HandshakeAlreadyInStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -684,7 +818,10 @@ func (e *HandshakeAlreadyInStateException) ErrorMessage() string { return *e.Message } func (e *HandshakeAlreadyInStateException) ErrorCode() string { - return "HandshakeAlreadyInStateException" + if e.ErrorCodeOverride == nil { + return "HandshakeAlreadyInStateException" + } + return *e.ErrorCodeOverride } func (e *HandshakeAlreadyInStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -737,6 +874,8 @@ func (e *HandshakeAlreadyInStateException) ErrorFault() smithy.ErrorFault { retu type HandshakeConstraintViolationException struct { Message *string + ErrorCodeOverride *string + Reason HandshakeConstraintViolationExceptionReason noSmithyDocumentSerde @@ -752,7 +891,10 @@ func (e *HandshakeConstraintViolationException) ErrorMessage() string { return *e.Message } func (e *HandshakeConstraintViolationException) ErrorCode() string { - return "HandshakeConstraintViolationException" + if e.ErrorCodeOverride == nil { + return "HandshakeConstraintViolationException" + } + return *e.ErrorCodeOverride } func (e *HandshakeConstraintViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -762,6 +904,8 @@ func (e *HandshakeConstraintViolationException) ErrorFault() smithy.ErrorFault { type HandshakeNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -774,7 +918,12 @@ func (e *HandshakeNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *HandshakeNotFoundException) ErrorCode() string { return "HandshakeNotFoundException" } +func (e *HandshakeNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HandshakeNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *HandshakeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't perform the operation on the handshake in its current state. For @@ -783,6 +932,8 @@ func (e *HandshakeNotFoundException) ErrorFault() smithy.ErrorFault { return smi type InvalidHandshakeTransitionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -796,7 +947,10 @@ func (e *InvalidHandshakeTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidHandshakeTransitionException) ErrorCode() string { - return "InvalidHandshakeTransitionException" + if e.ErrorCodeOverride == nil { + return "InvalidHandshakeTransitionException" + } + return *e.ErrorCodeOverride } func (e *InvalidHandshakeTransitionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -889,6 +1043,8 @@ func (e *InvalidHandshakeTransitionException) ErrorFault() smithy.ErrorFault { type InvalidInputException struct { Message *string + ErrorCodeOverride *string + Reason InvalidInputExceptionReason noSmithyDocumentSerde @@ -903,7 +1059,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided policy document doesn't meet the requirements of the specified @@ -914,6 +1075,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type MalformedPolicyDocumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -927,7 +1090,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.ErrorCodeOverride == nil { + return "MalformedPolicyDocumentException" + } + return *e.ErrorCodeOverride } func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -937,6 +1103,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type MasterCannotLeaveOrganizationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -950,7 +1118,10 @@ func (e *MasterCannotLeaveOrganizationException) ErrorMessage() string { return *e.Message } func (e *MasterCannotLeaveOrganizationException) ErrorCode() string { - return "MasterCannotLeaveOrganizationException" + if e.ErrorCodeOverride == nil { + return "MasterCannotLeaveOrganizationException" + } + return *e.ErrorCodeOverride } func (e *MasterCannotLeaveOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -961,6 +1132,8 @@ func (e *MasterCannotLeaveOrganizationException) ErrorFault() smithy.ErrorFault type OrganizationalUnitNotEmptyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -974,7 +1147,10 @@ func (e *OrganizationalUnitNotEmptyException) ErrorMessage() string { return *e.Message } func (e *OrganizationalUnitNotEmptyException) ErrorCode() string { - return "OrganizationalUnitNotEmptyException" + if e.ErrorCodeOverride == nil { + return "OrganizationalUnitNotEmptyException" + } + return *e.ErrorCodeOverride } func (e *OrganizationalUnitNotEmptyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -984,6 +1160,8 @@ func (e *OrganizationalUnitNotEmptyException) ErrorFault() smithy.ErrorFault { type OrganizationalUnitNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -997,7 +1175,10 @@ func (e *OrganizationalUnitNotFoundException) ErrorMessage() string { return *e.Message } func (e *OrganizationalUnitNotFoundException) ErrorCode() string { - return "OrganizationalUnitNotFoundException" + if e.ErrorCodeOverride == nil { + return "OrganizationalUnitNotFoundException" + } + return *e.ErrorCodeOverride } func (e *OrganizationalUnitNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1009,6 +1190,8 @@ func (e *OrganizationalUnitNotFoundException) ErrorFault() smithy.ErrorFault { type OrganizationNotEmptyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1021,13 +1204,20 @@ func (e *OrganizationNotEmptyException) ErrorMessage() string { } return *e.Message } -func (e *OrganizationNotEmptyException) ErrorCode() string { return "OrganizationNotEmptyException" } +func (e *OrganizationNotEmptyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OrganizationNotEmptyException" + } + return *e.ErrorCodeOverride +} func (e *OrganizationNotEmptyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find a root or OU with the ParentId that you specified. type ParentNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1040,7 +1230,12 @@ func (e *ParentNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ParentNotFoundException) ErrorCode() string { return "ParentNotFoundException" } +func (e *ParentNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParentNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ParentNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Changes to the effective policy are in progress, and its contents can't be @@ -1048,6 +1243,8 @@ func (e *ParentNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type PolicyChangesInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1061,7 +1258,10 @@ func (e *PolicyChangesInProgressException) ErrorMessage() string { return *e.Message } func (e *PolicyChangesInProgressException) ErrorCode() string { - return "PolicyChangesInProgressException" + if e.ErrorCodeOverride == nil { + return "PolicyChangesInProgressException" + } + return *e.ErrorCodeOverride } func (e *PolicyChangesInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1070,6 +1270,8 @@ func (e *PolicyChangesInProgressException) ErrorFault() smithy.ErrorFault { retu type PolicyInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1082,13 +1284,20 @@ func (e *PolicyInUseException) ErrorMessage() string { } return *e.Message } -func (e *PolicyInUseException) ErrorCode() string { return "PolicyInUseException" } +func (e *PolicyInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyInUseException" + } + return *e.ErrorCodeOverride +} func (e *PolicyInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The policy isn't attached to the specified target in the specified root. type PolicyNotAttachedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1101,13 +1310,20 @@ func (e *PolicyNotAttachedException) ErrorMessage() string { } return *e.Message } -func (e *PolicyNotAttachedException) ErrorCode() string { return "PolicyNotAttachedException" } +func (e *PolicyNotAttachedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyNotAttachedException" + } + return *e.ErrorCodeOverride +} func (e *PolicyNotAttachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find a policy with the PolicyId that you specified. type PolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1120,13 +1336,20 @@ func (e *PolicyNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *PolicyNotFoundException) ErrorCode() string { return "PolicyNotFoundException" } +func (e *PolicyNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *PolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified policy type is already enabled in the specified root. type PolicyTypeAlreadyEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1140,7 +1363,10 @@ func (e *PolicyTypeAlreadyEnabledException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeAlreadyEnabledException) ErrorCode() string { - return "PolicyTypeAlreadyEnabledException" + if e.ErrorCodeOverride == nil { + return "PolicyTypeAlreadyEnabledException" + } + return *e.ErrorCodeOverride } func (e *PolicyTypeAlreadyEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1153,6 +1379,8 @@ func (e *PolicyTypeAlreadyEnabledException) ErrorFault() smithy.ErrorFault { ret type PolicyTypeNotAvailableForOrganizationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1166,7 +1394,10 @@ func (e *PolicyTypeNotAvailableForOrganizationException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeNotAvailableForOrganizationException) ErrorCode() string { - return "PolicyTypeNotAvailableForOrganizationException" + if e.ErrorCodeOverride == nil { + return "PolicyTypeNotAvailableForOrganizationException" + } + return *e.ErrorCodeOverride } func (e *PolicyTypeNotAvailableForOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1181,6 +1412,8 @@ func (e *PolicyTypeNotAvailableForOrganizationException) ErrorFault() smithy.Err type PolicyTypeNotEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1193,13 +1426,20 @@ func (e *PolicyTypeNotEnabledException) ErrorMessage() string { } return *e.Message } -func (e *PolicyTypeNotEnabledException) ErrorCode() string { return "PolicyTypeNotEnabledException" } +func (e *PolicyTypeNotEnabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PolicyTypeNotEnabledException" + } + return *e.ErrorCodeOverride +} func (e *PolicyTypeNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find a resource policy request with the parameter that you specified. type ResourcePolicyNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1213,7 +1453,10 @@ func (e *ResourcePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyNotFoundException) ErrorCode() string { - return "ResourcePolicyNotFoundException" + if e.ErrorCodeOverride == nil { + return "ResourcePolicyNotFoundException" + } + return *e.ErrorCodeOverride } func (e *ResourcePolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1221,6 +1464,8 @@ func (e *ResourcePolicyNotFoundException) ErrorFault() smithy.ErrorFault { retur type RootNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1233,7 +1478,12 @@ func (e *RootNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *RootNotFoundException) ErrorCode() string { return "RootNotFoundException" } +func (e *RootNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RootNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *RootNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Organizations can't complete your request because of an internal service error. @@ -1241,6 +1491,8 @@ func (e *RootNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.F type ServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1253,13 +1505,20 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceException" + } + return *e.ErrorCodeOverride +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // We can't find a source root or OU with the ParentId that you specified. type SourceParentNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1272,7 +1531,12 @@ func (e *SourceParentNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *SourceParentNotFoundException) ErrorCode() string { return "SourceParentNotFoundException" } +func (e *SourceParentNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceParentNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *SourceParentNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find a root, OU, account, or policy with the TargetId that you @@ -1280,6 +1544,8 @@ func (e *SourceParentNotFoundException) ErrorFault() smithy.ErrorFault { return type TargetNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1292,7 +1558,12 @@ func (e *TargetNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *TargetNotFoundException) ErrorCode() string { return "TargetNotFoundException" } +func (e *TargetNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *TargetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have sent too many requests in too short a period of time. The quota helps @@ -1303,6 +1574,8 @@ func (e *TargetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + Type *string noSmithyDocumentSerde @@ -1317,13 +1590,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This action isn't available in the current Amazon Web Services Region. type UnsupportedAPIEndpointException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1337,6 +1617,9 @@ func (e *UnsupportedAPIEndpointException) ErrorMessage() string { return *e.Message } func (e *UnsupportedAPIEndpointException) ErrorCode() string { - return "UnsupportedAPIEndpointException" + if e.ErrorCodeOverride == nil { + return "UnsupportedAPIEndpointException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedAPIEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/outposts/types/errors.go b/service/outposts/types/errors.go index 8abca8116d1..2d6a72a42ce 100644 --- a/service/outposts/types/errors.go +++ b/service/outposts/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting this resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType ResourceType @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified request is not valid. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded a service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,5 +158,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/panorama/types/errors.go b/service/panorama/types/errors.go index 9fd7e2d8d36..fe90140bbd2 100644 --- a/service/panorama/types/errors.go +++ b/service/panorama/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target resource is in use. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ErrorId *string @@ -47,13 +56,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -68,13 +84,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The target resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -90,13 +113,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a limit to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string QuotaCode *string @@ -114,13 +144,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains an invalid parameter value. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason ErrorId *string ErrorArguments []ValidationExceptionErrorArgument @@ -138,5 +175,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/personalize/types/errors.go b/service/personalize/types/errors.go index 35f61efce3d..c1af84c17f1 100644 --- a/service/personalize/types/errors.go +++ b/service/personalize/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token is not valid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit on the number of requests per second has been exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Could not find the specified resource. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,7 +155,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains more tag keys than can be associated with a resource (50 @@ -126,6 +168,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TooManyTagKeysException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,13 +182,20 @@ func (e *TooManyTagKeysException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagKeysException) ErrorCode() string { return "TooManyTagKeysException" } +func (e *TooManyTagKeysException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagKeysException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of tags you can apply to this resource. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -157,5 +208,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/personalizeevents/types/errors.go b/service/personalizeevents/types/errors.go index 304f6e2f761..b6ab96a8653 100644 --- a/service/personalizeevents/types/errors.go +++ b/service/personalizeevents/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Could not find the specified resource. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,5 +77,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/personalizeruntime/types/errors.go b/service/personalizeruntime/types/errors.go index 6e94fbbc4aa..58031bd68aa 100644 --- a/service/personalizeruntime/types/errors.go +++ b/service/personalizeruntime/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,5 +51,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pi/types/errors.go b/service/pi/types/errors.go index 03343e35aa0..3936ccaa747 100644 --- a/service/pi/types/errors.go +++ b/service/pi/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServiceError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalServiceError) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceError) ErrorCode() string { return "InternalServiceError" } +func (e *InternalServiceError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceError" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One of the arguments provided is invalid for this request. type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user is not authorized to perform this request. type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,5 +77,10 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pinpoint/types/errors.go b/service/pinpoint/types/errors.go index 97e2922629c..0110dedfc75 100644 --- a/service/pinpoint/types/errors.go +++ b/service/pinpoint/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type ConflictException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -88,13 +111,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Provides information about an API request or response. type MethodNotAllowedException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -109,13 +139,20 @@ func (e *MethodNotAllowedException) ErrorMessage() string { } return *e.Message } -func (e *MethodNotAllowedException) ErrorCode() string { return "MethodNotAllowedException" } +func (e *MethodNotAllowedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MethodNotAllowedException" + } + return *e.ErrorCodeOverride +} func (e *MethodNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type NotFoundException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -130,13 +167,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type PayloadTooLargeException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -151,13 +195,20 @@ func (e *PayloadTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *PayloadTooLargeException) ErrorCode() string { return "PayloadTooLargeException" } +func (e *PayloadTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PayloadTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *PayloadTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + RequestID *string noSmithyDocumentSerde @@ -172,5 +223,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pinpointemail/types/errors.go b/service/pinpointemail/types/errors.go index 1e99b4b298b..3be3fa92861 100644 --- a/service/pinpointemail/types/errors.go +++ b/service/pinpointemail/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountSuspendedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccountSuspendedException) ErrorMessage() string { } return *e.Message } -func (e *AccountSuspendedException) ErrorCode() string { return "AccountSuspendedException" } +func (e *AccountSuspendedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountSuspendedException" + } + return *e.ErrorCodeOverride +} func (e *AccountSuspendedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in your request already exists. type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is being modified by another operation or thread. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -90,6 +116,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +130,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The message can't be sent because the sending domain isn't verified. type MailFromDomainNotVerifiedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +157,10 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - return "MailFromDomainNotVerifiedException" + if e.ErrorCodeOverride == nil { + return "MailFromDomainNotVerifiedException" + } + return *e.ErrorCodeOverride } func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -132,6 +170,8 @@ func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { type MessageRejected struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,13 +184,20 @@ func (e *MessageRejected) ErrorMessage() string { } return *e.Message } -func (e *MessageRejected) ErrorCode() string { return "MessageRejected" } +func (e *MessageRejected) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MessageRejected" + } + return *e.ErrorCodeOverride +} func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you attempted to access doesn't exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,7 +210,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The message can't be sent because the account's ability to send email is @@ -171,6 +223,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type SendingPausedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -183,13 +237,20 @@ func (e *SendingPausedException) ErrorMessage() string { } return *e.Message } -func (e *SendingPausedException) ErrorCode() string { return "SendingPausedException" } +func (e *SendingPausedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SendingPausedException" + } + return *e.ErrorCodeOverride +} func (e *SendingPausedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests have been made to the operation. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -202,5 +263,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pinpointsmsvoice/types/errors.go b/service/pinpointsmsvoice/types/errors.go index 46ed6f549d7..832c1051ad5 100644 --- a/service/pinpointsmsvoice/types/errors.go +++ b/service/pinpointsmsvoice/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The API encountered an unexpected error and couldn't complete the request. You @@ -50,6 +64,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // There are too many instances of the specified resource type. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you attempted to access doesn't exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,7 +130,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've issued too many requests to the resource. Wait a few minutes, and then @@ -108,6 +143,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,5 +157,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pinpointsmsvoicev2/types/errors.go b/service/pinpointsmsvoicev2/types/errors.go index 62bd83b90be..3b0305cd900 100644 --- a/service/pinpointsmsvoicev2/types/errors.go +++ b/service/pinpointsmsvoicev2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Reason AccessDeniedExceptionReason noSmithyDocumentSerde @@ -26,7 +28,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request has conflicting operations. This can occur if you're trying to @@ -36,6 +43,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + Reason ConflictExceptionReason ResourceType ResourceType ResourceId *string @@ -52,7 +61,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The API encountered an unexpected error and couldn't complete the request. You @@ -60,6 +74,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -74,13 +90,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A requested resource couldn't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType ResourceType ResourceId *string @@ -96,13 +119,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Reason ServiceQuotaExceededExceptionReason noSmithyDocumentSerde @@ -117,7 +147,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error that occurred because too many requests were sent during a certain @@ -125,6 +160,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,13 +174,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A validation exception for a field. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -159,5 +203,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pipes/types/errors.go b/service/pipes/types/errors.go index 8ded3f01a2f..cefcad660e1 100644 --- a/service/pipes/types/errors.go +++ b/service/pipes/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -26,13 +28,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs due to unexpected causes. type InternalException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -47,13 +56,20 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An entity that you specified does not exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,13 +82,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ServiceCode *string @@ -90,13 +113,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An action was throttled. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *int32 @@ -113,13 +143,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that an error has occurred while performing a validate operation. type ValidationException struct { Message *string + ErrorCodeOverride *string + FieldList []ValidationExceptionField noSmithyDocumentSerde @@ -134,5 +171,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/polly/types/errors.go b/service/polly/types/errors.go index 74692ff06f2..2b1a44eb5f6 100644 --- a/service/polly/types/errors.go +++ b/service/polly/types/errors.go @@ -13,6 +13,8 @@ import ( type EngineNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,12 @@ func (e *EngineNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *EngineNotSupportedException) ErrorCode() string { return "EngineNotSupportedException" } +func (e *EngineNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EngineNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *EngineNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is @@ -33,6 +40,8 @@ func (e *EngineNotSupportedException) ErrorFault() smithy.ErrorFault { return sm type InvalidLexiconException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *InvalidLexiconException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLexiconException) ErrorCode() string { return "InvalidLexiconException" } +func (e *InvalidLexiconException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLexiconException" + } + return *e.ErrorCodeOverride +} func (e *InvalidLexiconException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The NextToken is invalid. Verify that it's spelled correctly, and then try @@ -53,6 +67,8 @@ func (e *InvalidLexiconException) ErrorFault() smithy.ErrorFault { return smithy type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Amazon S3 bucket name is invalid. Please check your input with S3 @@ -73,6 +94,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidS3BucketException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +108,12 @@ func (e *InvalidS3BucketException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3BucketException) ErrorCode() string { return "InvalidS3BucketException" } +func (e *InvalidS3BucketException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3BucketException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3BucketException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object @@ -93,6 +121,8 @@ func (e *InvalidS3BucketException) ErrorFault() smithy.ErrorFault { return smith type InvalidS3KeyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +135,20 @@ func (e *InvalidS3KeyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3KeyException) ErrorCode() string { return "InvalidS3KeyException" } +func (e *InvalidS3KeyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3KeyException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3KeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified sample rate is not valid. type InvalidSampleRateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,7 +161,12 @@ func (e *InvalidSampleRateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSampleRateException) ErrorCode() string { return "InvalidSampleRateException" } +func (e *InvalidSampleRateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSampleRateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSampleRateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN and @@ -132,6 +174,8 @@ func (e *InvalidSampleRateException) ErrorFault() smithy.ErrorFault { return smi type InvalidSnsTopicArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,7 +188,12 @@ func (e *InvalidSnsTopicArnException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSnsTopicArnException) ErrorCode() string { return "InvalidSnsTopicArnException" } +func (e *InvalidSnsTopicArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSnsTopicArnException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSnsTopicArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and @@ -152,6 +201,8 @@ func (e *InvalidSnsTopicArnException) ErrorFault() smithy.ErrorFault { return sm type InvalidSsmlException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,13 +215,20 @@ func (e *InvalidSsmlException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSsmlException) ErrorCode() string { return "InvalidSsmlException" } +func (e *InvalidSsmlException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSsmlException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSsmlException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Task ID is not valid. Please provide a valid Task ID and try again. type InvalidTaskIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -183,7 +241,12 @@ func (e *InvalidTaskIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTaskIdException) ErrorCode() string { return "InvalidTaskIdException" } +func (e *InvalidTaskIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTaskIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTaskIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The language specified is not currently supported by Amazon Polly in this @@ -191,6 +254,8 @@ func (e *InvalidTaskIdException) ErrorFault() smithy.ErrorFault { return smithy. type LanguageNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -203,7 +268,12 @@ func (e *LanguageNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *LanguageNotSupportedException) ErrorCode() string { return "LanguageNotSupportedException" } +func (e *LanguageNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LanguageNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *LanguageNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Polly can't find the specified lexicon. This could be caused by a lexicon @@ -214,6 +284,8 @@ func (e *LanguageNotSupportedException) ErrorFault() smithy.ErrorFault { return type LexiconNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -226,13 +298,20 @@ func (e *LexiconNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *LexiconNotFoundException) ErrorCode() string { return "LexiconNotFoundException" } +func (e *LexiconNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LexiconNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *LexiconNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum size of the specified lexicon would be exceeded by this operation. type LexiconSizeExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -245,7 +324,12 @@ func (e *LexiconSizeExceededException) ErrorMessage() string { } return *e.Message } -func (e *LexiconSizeExceededException) ErrorCode() string { return "LexiconSizeExceededException" } +func (e *LexiconSizeExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LexiconSizeExceededException" + } + return *e.ErrorCodeOverride +} func (e *LexiconSizeExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Speech marks are not supported for the OutputFormat selected. Speech marks are @@ -253,6 +337,8 @@ func (e *LexiconSizeExceededException) ErrorFault() smithy.ErrorFault { return s type MarksNotSupportedForFormatException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,7 +352,10 @@ func (e *MarksNotSupportedForFormatException) ErrorMessage() string { return *e.Message } func (e *MarksNotSupportedForFormatException) ErrorCode() string { - return "MarksNotSupportedForFormatException" + if e.ErrorCodeOverride == nil { + return "MarksNotSupportedForFormatException" + } + return *e.ErrorCodeOverride } func (e *MarksNotSupportedForFormatException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -276,6 +365,8 @@ func (e *MarksNotSupportedForFormatException) ErrorFault() smithy.ErrorFault { type MaxLexemeLengthExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -289,7 +380,10 @@ func (e *MaxLexemeLengthExceededException) ErrorMessage() string { return *e.Message } func (e *MaxLexemeLengthExceededException) ErrorCode() string { - return "MaxLexemeLengthExceededException" + if e.ErrorCodeOverride == nil { + return "MaxLexemeLengthExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxLexemeLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -297,6 +391,8 @@ func (e *MaxLexemeLengthExceededException) ErrorFault() smithy.ErrorFault { retu type MaxLexiconsNumberExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -310,7 +406,10 @@ func (e *MaxLexiconsNumberExceededException) ErrorMessage() string { return *e.Message } func (e *MaxLexiconsNumberExceededException) ErrorCode() string { - return "MaxLexiconsNumberExceededException" + if e.ErrorCodeOverride == nil { + return "MaxLexiconsNumberExceededException" + } + return *e.ErrorCodeOverride } func (e *MaxLexiconsNumberExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -320,6 +419,8 @@ func (e *MaxLexiconsNumberExceededException) ErrorFault() smithy.ErrorFault { type ServiceFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -332,13 +433,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceFailureException" + } + return *e.ErrorCodeOverride +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // SSML speech marks are not supported for plain text-type input. type SsmlMarksNotSupportedForTextTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -352,7 +460,10 @@ func (e *SsmlMarksNotSupportedForTextTypeException) ErrorMessage() string { return *e.Message } func (e *SsmlMarksNotSupportedForTextTypeException) ErrorCode() string { - return "SsmlMarksNotSupportedForTextTypeException" + if e.ErrorCodeOverride == nil { + return "SsmlMarksNotSupportedForTextTypeException" + } + return *e.ErrorCodeOverride } func (e *SsmlMarksNotSupportedForTextTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -362,6 +473,8 @@ func (e *SsmlMarksNotSupportedForTextTypeException) ErrorFault() smithy.ErrorFau type SynthesisTaskNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -374,7 +487,12 @@ func (e *SynthesisTaskNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *SynthesisTaskNotFoundException) ErrorCode() string { return "SynthesisTaskNotFoundException" } +func (e *SynthesisTaskNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SynthesisTaskNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *SynthesisTaskNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of the "Text" parameter is longer than the accepted limits. For the @@ -386,6 +504,8 @@ func (e *SynthesisTaskNotFoundException) ErrorFault() smithy.ErrorFault { return type TextLengthExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -398,7 +518,12 @@ func (e *TextLengthExceededException) ErrorMessage() string { } return *e.Message } -func (e *TextLengthExceededException) ErrorCode() string { return "TextLengthExceededException" } +func (e *TextLengthExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TextLengthExceededException" + } + return *e.ErrorCodeOverride +} func (e *TextLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The alphabet specified by the lexicon is not a supported alphabet. Valid values @@ -406,6 +531,8 @@ func (e *TextLengthExceededException) ErrorFault() smithy.ErrorFault { return sm type UnsupportedPlsAlphabetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -419,7 +546,10 @@ func (e *UnsupportedPlsAlphabetException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPlsAlphabetException) ErrorCode() string { - return "UnsupportedPlsAlphabetException" + if e.ErrorCodeOverride == nil { + return "UnsupportedPlsAlphabetException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedPlsAlphabetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -429,6 +559,8 @@ func (e *UnsupportedPlsAlphabetException) ErrorFault() smithy.ErrorFault { retur type UnsupportedPlsLanguageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -442,6 +574,9 @@ func (e *UnsupportedPlsLanguageException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPlsLanguageException) ErrorCode() string { - return "UnsupportedPlsLanguageException" + if e.ErrorCodeOverride == nil { + return "UnsupportedPlsLanguageException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedPlsLanguageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pricing/types/errors.go b/service/pricing/types/errors.go index 73c44270c69..aebbdd02a36 100644 --- a/service/pricing/types/errors.go +++ b/service/pricing/types/errors.go @@ -11,6 +11,8 @@ import ( type ExpiredNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *ExpiredNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredNextTokenException) ErrorCode() string { return "ExpiredNextTokenException" } +func (e *ExpiredNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error on the server occurred during the processing of your request. Try again @@ -31,6 +38,8 @@ func (e *ExpiredNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The pagination token is invalid. Try again without a pagination token. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters had an invalid value. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource can't be found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,5 +130,10 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/privatenetworks/types/errors.go b/service/privatenetworks/types/errors.go index 5ae605762ab..c90c8c6cac5 100644 --- a/service/privatenetworks/types/errors.go +++ b/service/privatenetworks/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Information about an internal error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The limit was exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -85,13 +108,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,13 +134,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed validation. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -126,5 +163,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/proton/types/errors.go b/service/proton/types/errors.go index 2eff8040a66..7c5e4cdb2bb 100644 --- a/service/proton/types/errors.go +++ b/service/proton/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be made due to a conflicting operation or resource. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed to register with the service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource wasn't found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,7 +103,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A quota was exceeded. For more information, see Proton Quotas @@ -89,6 +117,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +131,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,7 +157,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input is invalid or an out-of-range value was supplied for the input @@ -128,6 +170,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,5 +184,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/qldb/types/errors.go b/service/qldb/types/errors.go index d1e221cbb0e..a1da465cd94 100644 --- a/service/qldb/types/errors.go +++ b/service/qldb/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + ParameterName *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the limit on the maximum number of resources allowed. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ResourceType *string ResourceName *string @@ -68,13 +84,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource can't be modified at this time. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + ResourceType *string ResourceName *string @@ -90,13 +113,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType *string ResourceName *string @@ -112,13 +142,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because a condition wasn't satisfied in advance. type ResourcePreconditionNotMetException struct { Message *string + ErrorCodeOverride *string + ResourceType *string ResourceName *string @@ -135,7 +172,10 @@ func (e *ResourcePreconditionNotMetException) ErrorMessage() string { return *e.Message } func (e *ResourcePreconditionNotMetException) ErrorCode() string { - return "ResourcePreconditionNotMetException" + if e.ErrorCodeOverride == nil { + return "ResourcePreconditionNotMetException" + } + return *e.ErrorCodeOverride } func (e *ResourcePreconditionNotMetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/qldbsession/types/errors.go b/service/qldbsession/types/errors.go index 1414a968264..242f123b0c1 100644 --- a/service/qldbsession/types/errors.go +++ b/service/qldbsession/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -26,13 +28,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the request exceeds the processing capacity of the ledger. type CapacityExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,13 +54,20 @@ func (e *CapacityExceededException) ErrorMessage() string { } return *e.Message } -func (e *CapacityExceededException) ErrorCode() string { return "CapacityExceededException" } +func (e *CapacityExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CapacityExceededException" + } + return *e.ErrorCodeOverride +} func (e *CapacityExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returned if the session doesn't exist anymore because it timed out or expired. type InvalidSessionException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InvalidSessionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSessionException) ErrorCode() string { return "InvalidSessionException" } +func (e *InvalidSessionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSessionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidSessionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a resource limit such as number of active sessions is exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +108,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when a transaction cannot be written to the journal due to a failure in @@ -93,6 +121,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type OccConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +135,20 @@ func (e *OccConflictException) ErrorMessage() string { } return *e.Message } -func (e *OccConflictException) ErrorCode() string { return "OccConflictException" } +func (e *OccConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OccConflictException" + } + return *e.ErrorCodeOverride +} func (e *OccConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the rate of requests exceeds the allowed throughput. type RateExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,5 +161,10 @@ func (e *RateExceededException) ErrorMessage() string { } return *e.Message } -func (e *RateExceededException) ErrorCode() string { return "RateExceededException" } +func (e *RateExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RateExceededException" + } + return *e.ErrorCodeOverride +} func (e *RateExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/quicksight/types/errors.go b/service/quicksight/types/errors.go index 98c41b0113f..04c097a77f1 100644 --- a/service/quicksight/types/errors.go +++ b/service/quicksight/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -29,7 +31,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource is already in a state that indicates an operation is happening that @@ -37,6 +44,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConcurrentUpdatingException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -51,13 +60,20 @@ func (e *ConcurrentUpdatingException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentUpdatingException) ErrorCode() string { return "ConcurrentUpdatingException" } +func (e *ConcurrentUpdatingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentUpdatingException" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentUpdatingException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -72,7 +88,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The domain specified isn't on the allow list. All domains for embedded @@ -80,6 +101,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DomainNotWhitelistedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -94,7 +117,12 @@ func (e *DomainNotWhitelistedException) ErrorMessage() string { } return *e.Message } -func (e *DomainNotWhitelistedException) ErrorCode() string { return "DomainNotWhitelistedException" } +func (e *DomainNotWhitelistedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DomainNotWhitelistedException" + } + return *e.ErrorCodeOverride +} func (e *DomainNotWhitelistedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The identity type specified isn't supported. Supported identity types include @@ -102,6 +130,8 @@ func (e *DomainNotWhitelistedException) ErrorFault() smithy.ErrorFault { return type IdentityTypeNotSupportedException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -117,7 +147,10 @@ func (e *IdentityTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *IdentityTypeNotSupportedException) ErrorCode() string { - return "IdentityTypeNotSupportedException" + if e.ErrorCodeOverride == nil { + return "IdentityTypeNotSupportedException" + } + return *e.ErrorCodeOverride } func (e *IdentityTypeNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -125,6 +158,8 @@ func (e *IdentityTypeNotSupportedException) ErrorFault() smithy.ErrorFault { ret type InternalFailureException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -139,13 +174,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The NextToken value isn't valid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -160,13 +202,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters has a value that isn't valid. type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -181,7 +230,12 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have this feature activated for your account. To fix this issue, @@ -189,6 +243,8 @@ func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -203,13 +259,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit is exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + ResourceType ExceptionResourceType RequestId *string @@ -225,13 +288,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more preconditions aren't met. type PreconditionNotMetException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -246,7 +316,12 @@ func (e *PreconditionNotMetException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionNotMetException) ErrorCode() string { return "PreconditionNotMetException" } +func (e *PreconditionNotMetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionNotMetException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user with the provided name isn't found. This error can happen in any @@ -255,6 +330,8 @@ func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return sm type QuickSightUserNotFoundException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -270,7 +347,10 @@ func (e *QuickSightUserNotFoundException) ErrorMessage() string { return *e.Message } func (e *QuickSightUserNotFoundException) ErrorCode() string { - return "QuickSightUserNotFoundException" + if e.ErrorCodeOverride == nil { + return "QuickSightUserNotFoundException" + } + return *e.ErrorCodeOverride } func (e *QuickSightUserNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -278,6 +358,8 @@ func (e *QuickSightUserNotFoundException) ErrorFault() smithy.ErrorFault { retur type ResourceExistsException struct { Message *string + ErrorCodeOverride *string + ResourceType ExceptionResourceType RequestId *string @@ -293,13 +375,20 @@ func (e *ResourceExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceExistsException) ErrorCode() string { return "ResourceExistsException" } +func (e *ResourceExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType ExceptionResourceType RequestId *string @@ -315,13 +404,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This resource is currently unavailable. type ResourceUnavailableException struct { Message *string + ErrorCodeOverride *string + ResourceType ExceptionResourceType RequestId *string @@ -337,7 +433,12 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The number of minutes specified for the lifetime of a session isn't valid. The @@ -345,6 +446,8 @@ func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return s type SessionLifetimeInMinutesInvalidException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -360,7 +463,10 @@ func (e *SessionLifetimeInMinutesInvalidException) ErrorMessage() string { return *e.Message } func (e *SessionLifetimeInMinutesInvalidException) ErrorCode() string { - return "SessionLifetimeInMinutesInvalidException" + if e.ErrorCodeOverride == nil { + return "SessionLifetimeInMinutesInvalidException" + } + return *e.ErrorCodeOverride } func (e *SessionLifetimeInMinutesInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -370,6 +476,8 @@ func (e *SessionLifetimeInMinutesInvalidException) ErrorFault() smithy.ErrorFaul type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -384,7 +492,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error indicates that you are calling an embedding operation in Amazon @@ -398,6 +511,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type UnsupportedPricingPlanException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -413,7 +528,10 @@ func (e *UnsupportedPricingPlanException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPricingPlanException) ErrorCode() string { - return "UnsupportedPricingPlanException" + if e.ErrorCodeOverride == nil { + return "UnsupportedPricingPlanException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedPricingPlanException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -424,6 +542,8 @@ func (e *UnsupportedPricingPlanException) ErrorFault() smithy.ErrorFault { retur type UnsupportedUserEditionException struct { Message *string + ErrorCodeOverride *string + RequestId *string noSmithyDocumentSerde @@ -439,6 +559,9 @@ func (e *UnsupportedUserEditionException) ErrorMessage() string { return *e.Message } func (e *UnsupportedUserEditionException) ErrorCode() string { - return "UnsupportedUserEditionException" + if e.ErrorCodeOverride == nil { + return "UnsupportedUserEditionException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedUserEditionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ram/types/errors.go b/service/ram/types/errors.go index 6ef1e42fbd6..55300682965 100644 --- a/service/ram/types/errors.go +++ b/service/ram/types/errors.go @@ -13,6 +13,8 @@ import ( type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -26,7 +28,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -36,6 +41,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InvalidClientTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -48,13 +55,20 @@ func (e *InvalidClientTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidClientTokenException) ErrorCode() string { return "InvalidClientTokenException" } +func (e *InvalidClientTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClientTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidClientTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified value for MaxResults is not valid. type InvalidMaxResultsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +81,20 @@ func (e *InvalidMaxResultsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidMaxResultsException) ErrorCode() string { return "InvalidMaxResultsException" } +func (e *InvalidMaxResultsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMaxResultsException" + } + return *e.ErrorCodeOverride +} func (e *InvalidMaxResultsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified value for NextToken is not valid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,13 +107,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is not valid. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +133,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource type is not valid. type InvalidResourceTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,13 +159,20 @@ func (e *InvalidResourceTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceTypeException) ErrorCode() string { return "InvalidResourceTypeException" } +func (e *InvalidResourceTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceTypeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested state transition is not valid. type InvalidStateTransitionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -144,7 +186,10 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - return "InvalidStateTransitionException" + if e.ErrorCodeOverride == nil { + return "InvalidStateTransitionException" + } + return *e.ErrorCodeOverride } func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -152,6 +197,8 @@ func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { retur type MalformedArnException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,13 +211,20 @@ func (e *MalformedArnException) ErrorMessage() string { } return *e.Message } -func (e *MalformedArnException) ErrorCode() string { return "MalformedArnException" } +func (e *MalformedArnException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedArnException" + } + return *e.ErrorCodeOverride +} func (e *MalformedArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A required input parameter is missing. type MissingRequiredParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,7 +238,10 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - return "MissingRequiredParameterException" + if e.ErrorCodeOverride == nil { + return "MissingRequiredParameterException" + } + return *e.ErrorCodeOverride } func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -192,6 +249,8 @@ func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { ret type OperationNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -204,13 +263,20 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermittedException" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermittedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Resource Name (ARN) was not found. type ResourceArnNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -223,13 +289,20 @@ func (e *ResourceArnNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceArnNotFoundException) ErrorCode() string { return "ResourceArnNotFoundException" } +func (e *ResourceArnNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceArnNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceArnNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified invitation was already accepted. type ResourceShareInvitationAlreadyAcceptedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -243,7 +316,10 @@ func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorMessage() string return *e.Message } func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorCode() string { - return "ResourceShareInvitationAlreadyAcceptedException" + if e.ErrorCodeOverride == nil { + return "ResourceShareInvitationAlreadyAcceptedException" + } + return *e.ErrorCodeOverride } func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -253,6 +329,8 @@ func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorFault() smithy.Er type ResourceShareInvitationAlreadyRejectedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -266,7 +344,10 @@ func (e *ResourceShareInvitationAlreadyRejectedException) ErrorMessage() string return *e.Message } func (e *ResourceShareInvitationAlreadyRejectedException) ErrorCode() string { - return "ResourceShareInvitationAlreadyRejectedException" + if e.ErrorCodeOverride == nil { + return "ResourceShareInvitationAlreadyRejectedException" + } + return *e.ErrorCodeOverride } func (e *ResourceShareInvitationAlreadyRejectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -276,6 +357,8 @@ func (e *ResourceShareInvitationAlreadyRejectedException) ErrorFault() smithy.Er type ResourceShareInvitationArnNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -289,7 +372,10 @@ func (e *ResourceShareInvitationArnNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceShareInvitationArnNotFoundException) ErrorCode() string { - return "ResourceShareInvitationArnNotFoundException" + if e.ErrorCodeOverride == nil { + return "ResourceShareInvitationArnNotFoundException" + } + return *e.ErrorCodeOverride } func (e *ResourceShareInvitationArnNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -299,6 +385,8 @@ func (e *ResourceShareInvitationArnNotFoundException) ErrorFault() smithy.ErrorF type ResourceShareInvitationExpiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -312,7 +400,10 @@ func (e *ResourceShareInvitationExpiredException) ErrorMessage() string { return *e.Message } func (e *ResourceShareInvitationExpiredException) ErrorCode() string { - return "ResourceShareInvitationExpiredException" + if e.ErrorCodeOverride == nil { + return "ResourceShareInvitationExpiredException" + } + return *e.ErrorCodeOverride } func (e *ResourceShareInvitationExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -322,6 +413,8 @@ func (e *ResourceShareInvitationExpiredException) ErrorFault() smithy.ErrorFault type ResourceShareLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -335,7 +428,10 @@ func (e *ResourceShareLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceShareLimitExceededException) ErrorCode() string { - return "ResourceShareLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ResourceShareLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ResourceShareLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -345,6 +441,8 @@ func (e *ResourceShareLimitExceededException) ErrorFault() smithy.ErrorFault { type ServerInternalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -357,13 +455,20 @@ func (e *ServerInternalException) ErrorMessage() string { } return *e.Message } -func (e *ServerInternalException) ErrorCode() string { return "ServerInternalException" } +func (e *ServerInternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServerInternalException" + } + return *e.ErrorCodeOverride +} func (e *ServerInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is not available. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -376,13 +481,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This request would exceed the limit for tags for your account. type TagLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -395,13 +507,20 @@ func (e *TagLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TagLimitExceededException) ErrorCode() string { return "TagLimitExceededException" } +func (e *TagLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified tag key is a reserved word and can't be used. type TagPolicyViolationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -414,7 +533,12 @@ func (e *TagPolicyViolationException) ErrorMessage() string { } return *e.Message } -func (e *TagPolicyViolationException) ErrorCode() string { return "TagPolicyViolationException" } +func (e *TagPolicyViolationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagPolicyViolationException" + } + return *e.ErrorCodeOverride +} func (e *TagPolicyViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded the rate at which you are allowed to perform this operation. Please @@ -422,6 +546,8 @@ func (e *TagPolicyViolationException) ErrorFault() smithy.ErrorFault { return sm type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -434,13 +560,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource was not found. type UnknownResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -453,5 +586,10 @@ func (e *UnknownResourceException) ErrorMessage() string { } return *e.Message } -func (e *UnknownResourceException) ErrorCode() string { return "UnknownResourceException" } +func (e *UnknownResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnknownResourceException" + } + return *e.ErrorCodeOverride +} func (e *UnknownResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rbin/types/errors.go b/service/rbin/types/errors.go index e27f282e3a7..84dfadfe250 100644 --- a/service/rbin/types/errors.go +++ b/service/rbin/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + Reason ConflictExceptionReason noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service could not respond to the request due to an internal problem. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Reason ResourceNotFoundExceptionReason noSmithyDocumentSerde @@ -65,7 +81,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota for the number of tags per resource to @@ -73,6 +94,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Reason ServiceQuotaExceededExceptionReason noSmithyDocumentSerde @@ -87,13 +110,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the parameters in the request is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason noSmithyDocumentSerde @@ -108,5 +138,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rds/types/errors.go b/service/rds/types/errors.go index 28a667b9c33..f25cd55b6c6 100644 --- a/service/rds/types/errors.go +++ b/service/rds/types/errors.go @@ -12,6 +12,8 @@ import ( type AuthorizationAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AuthorizationAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { return "AuthorizationAlreadyExists" } +func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified CIDR IP range or Amazon EC2 security group might not be authorized @@ -33,6 +40,8 @@ func (e *AuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type AuthorizationNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,13 +54,20 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationNotFoundFault) ErrorCode() string { return "AuthorizationNotFound" } +func (e *AuthorizationNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationNotFound" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB security group authorization quota has been reached. type AuthorizationQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,12 +80,19 @@ func (e *AuthorizationQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationQuotaExceededFault) ErrorCode() string { return "AuthorizationQuotaExceeded" } +func (e *AuthorizationQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type BackupPolicyNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *BackupPolicyNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *BackupPolicyNotFoundFault) ErrorCode() string { return "BackupPolicyNotFoundFault" } +func (e *BackupPolicyNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BackupPolicyNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *BackupPolicyNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A blue/green deployment with the specified name already exists. type BlueGreenDeploymentAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorCode() string { - return "BlueGreenDeploymentAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "BlueGreenDeploymentAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -113,6 +146,8 @@ func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type BlueGreenDeploymentNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,7 +161,10 @@ func (e *BlueGreenDeploymentNotFoundFault) ErrorMessage() string { return *e.Message } func (e *BlueGreenDeploymentNotFoundFault) ErrorCode() string { - return "BlueGreenDeploymentNotFoundFault" + if e.ErrorCodeOverride == nil { + return "BlueGreenDeploymentNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *BlueGreenDeploymentNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -134,6 +172,8 @@ func (e *BlueGreenDeploymentNotFoundFault) ErrorFault() smithy.ErrorFault { retu type CertificateNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +186,12 @@ func (e *CertificateNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *CertificateNotFoundFault) ErrorCode() string { return "CertificateNotFound" } +func (e *CertificateNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CertificateNotFound" + } + return *e.ErrorCodeOverride +} func (e *CertificateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // CustomAvailabilityZoneId doesn't refer to an existing custom Availability Zone @@ -154,6 +199,8 @@ func (e *CertificateNotFoundFault) ErrorFault() smithy.ErrorFault { return smith type CustomAvailabilityZoneNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,7 +214,10 @@ func (e *CustomAvailabilityZoneNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CustomAvailabilityZoneNotFoundFault) ErrorCode() string { - return "CustomAvailabilityZoneNotFound" + if e.ErrorCodeOverride == nil { + return "CustomAvailabilityZoneNotFound" + } + return *e.ErrorCodeOverride } func (e *CustomAvailabilityZoneNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -177,6 +227,8 @@ func (e *CustomAvailabilityZoneNotFoundFault) ErrorFault() smithy.ErrorFault { type CustomDBEngineVersionAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,7 +242,10 @@ func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorCode() string { - return "CustomDBEngineVersionAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "CustomDBEngineVersionAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -200,6 +255,8 @@ func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorFault() smithy.ErrorFault type CustomDBEngineVersionNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -213,7 +270,10 @@ func (e *CustomDBEngineVersionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionNotFoundFault) ErrorCode() string { - return "CustomDBEngineVersionNotFoundFault" + if e.ErrorCodeOverride == nil { + return "CustomDBEngineVersionNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *CustomDBEngineVersionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -223,6 +283,8 @@ func (e *CustomDBEngineVersionNotFoundFault) ErrorFault() smithy.ErrorFault { type CustomDBEngineVersionQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -236,7 +298,10 @@ func (e *CustomDBEngineVersionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionQuotaExceededFault) ErrorCode() string { - return "CustomDBEngineVersionQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "CustomDBEngineVersionQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *CustomDBEngineVersionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -246,6 +311,8 @@ func (e *CustomDBEngineVersionQuotaExceededFault) ErrorFault() smithy.ErrorFault type DBClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -258,13 +325,20 @@ func (e *DBClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterAlreadyExistsFault) ErrorCode() string { return "DBClusterAlreadyExistsFault" } +func (e *DBClusterAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // BacktrackIdentifier doesn't refer to an existing backtrack. type DBClusterBacktrackNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -278,7 +352,10 @@ func (e *DBClusterBacktrackNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterBacktrackNotFoundFault) ErrorCode() string { - return "DBClusterBacktrackNotFoundFault" + if e.ErrorCodeOverride == nil { + return "DBClusterBacktrackNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterBacktrackNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -286,6 +363,8 @@ func (e *DBClusterBacktrackNotFoundFault) ErrorFault() smithy.ErrorFault { retur type DBClusterEndpointAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -299,7 +378,10 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointAlreadyExistsFault) ErrorCode() string { - return "DBClusterEndpointAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "DBClusterEndpointAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -309,6 +391,8 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterEndpointNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -321,13 +405,20 @@ func (e *DBClusterEndpointNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterEndpointNotFoundFault) ErrorCode() string { return "DBClusterEndpointNotFoundFault" } +func (e *DBClusterEndpointNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterEndpointNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterEndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster already has the maximum number of custom endpoints. type DBClusterEndpointQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -341,7 +432,10 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointQuotaExceededFault) ErrorCode() string { - return "DBClusterEndpointQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "DBClusterEndpointQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -351,6 +445,8 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -363,7 +459,12 @@ func (e *DBClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterNotFoundFault) ErrorCode() string { return "DBClusterNotFoundFault" } +func (e *DBClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter @@ -371,6 +472,8 @@ func (e *DBClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy. type DBClusterParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -384,7 +487,10 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - return "DBClusterParameterGroupNotFound" + if e.ErrorCodeOverride == nil { + return "DBClusterParameterGroupNotFound" + } + return *e.ErrorCodeOverride } func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -395,6 +501,8 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type DBClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -407,7 +515,12 @@ func (e *DBClusterQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterQuotaExceededFault) ErrorCode() string { return "DBClusterQuotaExceededFault" } +func (e *DBClusterQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified IAM role Amazon Resource Name (ARN) is already associated with the @@ -415,6 +528,8 @@ func (e *DBClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return sm type DBClusterRoleAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -427,7 +542,12 @@ func (e *DBClusterRoleAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterRoleAlreadyExistsFault) ErrorCode() string { return "DBClusterRoleAlreadyExists" } +func (e *DBClusterRoleAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterRoleAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBClusterRoleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified IAM role Amazon Resource Name (ARN) isn't associated with the @@ -435,6 +555,8 @@ func (e *DBClusterRoleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type DBClusterRoleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -447,7 +569,12 @@ func (e *DBClusterRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterRoleNotFoundFault) ErrorCode() string { return "DBClusterRoleNotFound" } +func (e *DBClusterRoleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterRoleNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBClusterRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of IAM roles that can be associated with @@ -455,6 +582,8 @@ func (e *DBClusterRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type DBClusterRoleQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -467,13 +596,20 @@ func (e *DBClusterRoleQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterRoleQuotaExceededFault) ErrorCode() string { return "DBClusterRoleQuotaExceeded" } +func (e *DBClusterRoleQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterRoleQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *DBClusterRoleQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user already has a DB cluster snapshot with the given identifier. type DBClusterSnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -487,7 +623,10 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - return "DBClusterSnapshotAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "DBClusterSnapshotAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -497,6 +636,8 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterSnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -509,13 +650,20 @@ func (e *DBClusterSnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { return "DBClusterSnapshotNotFoundFault" } +func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBClusterSnapshotNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBClusterSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user already has a DB instance with the given identifier. type DBInstanceAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -528,13 +676,20 @@ func (e *DBInstanceAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { return "DBInstanceAlreadyExists" } +func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No automated backup for this DB instance was found. type DBInstanceAutomatedBackupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -548,7 +703,10 @@ func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorCode() string { - return "DBInstanceAutomatedBackupNotFound" + if e.ErrorCodeOverride == nil { + return "DBInstanceAutomatedBackupNotFound" + } + return *e.ErrorCodeOverride } func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -560,6 +718,8 @@ func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorFault() smithy.ErrorFault type DBInstanceAutomatedBackupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -573,7 +733,10 @@ func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorCode() string { - return "DBInstanceAutomatedBackupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "DBInstanceAutomatedBackupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -583,6 +746,8 @@ func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorFault() smithy.ErrorF type DBInstanceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -595,7 +760,12 @@ func (e *DBInstanceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceNotFoundFault) ErrorCode() string { return "DBInstanceNotFound" } +func (e *DBInstanceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified RoleArn or FeatureName value is already associated with the DB @@ -603,6 +773,8 @@ func (e *DBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy type DBInstanceRoleAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -615,7 +787,12 @@ func (e *DBInstanceRoleAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceRoleAlreadyExistsFault) ErrorCode() string { return "DBInstanceRoleAlreadyExists" } +func (e *DBInstanceRoleAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceRoleAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceRoleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified RoleArn value doesn't match the specified feature for the DB @@ -623,6 +800,8 @@ func (e *DBInstanceRoleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retu type DBInstanceRoleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -635,7 +814,12 @@ func (e *DBInstanceRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceRoleNotFoundFault) ErrorCode() string { return "DBInstanceRoleNotFound" } +func (e *DBInstanceRoleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceRoleNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't associate any more Amazon Web Services Identity and Access Management @@ -643,6 +827,8 @@ func (e *DBInstanceRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return sm type DBInstanceRoleQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -655,13 +841,20 @@ func (e *DBInstanceRoleQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBInstanceRoleQuotaExceededFault) ErrorCode() string { return "DBInstanceRoleQuotaExceeded" } +func (e *DBInstanceRoleQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBInstanceRoleQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *DBInstanceRoleQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // LogFileName doesn't refer to an existing DB log file. type DBLogFileNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -674,13 +867,20 @@ func (e *DBLogFileNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBLogFileNotFoundFault) ErrorCode() string { return "DBLogFileNotFoundFault" } +func (e *DBLogFileNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBLogFileNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBLogFileNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A DB parameter group with the same name exists. type DBParameterGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -694,7 +894,10 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - return "DBParameterGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "DBParameterGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -704,6 +907,8 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -716,7 +921,12 @@ func (e *DBParameterGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBParameterGroupNotFoundFault) ErrorCode() string { return "DBParameterGroupNotFound" } +func (e *DBParameterGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBParameterGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of DB @@ -724,6 +934,8 @@ func (e *DBParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return type DBParameterGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -737,7 +949,10 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - return "DBParameterGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "DBParameterGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -748,6 +963,8 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBProxyAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -760,7 +977,12 @@ func (e *DBProxyAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBProxyAlreadyExistsFault) ErrorCode() string { return "DBProxyAlreadyExistsFault" } +func (e *DBProxyAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBProxyAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *DBProxyAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified DB proxy endpoint name must be unique for all DB proxy endpoints @@ -769,6 +991,8 @@ func (e *DBProxyAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smit type DBProxyEndpointAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -782,7 +1006,10 @@ func (e *DBProxyEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBProxyEndpointAlreadyExistsFault) ErrorCode() string { - return "DBProxyEndpointAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "DBProxyEndpointAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *DBProxyEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -790,6 +1017,8 @@ func (e *DBProxyEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { ret type DBProxyEndpointNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -802,13 +1031,20 @@ func (e *DBProxyEndpointNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBProxyEndpointNotFoundFault) ErrorCode() string { return "DBProxyEndpointNotFoundFault" } +func (e *DBProxyEndpointNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBProxyEndpointNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBProxyEndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB proxy already has the maximum number of endpoints. type DBProxyEndpointQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -822,7 +1058,10 @@ func (e *DBProxyEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBProxyEndpointQuotaExceededFault) ErrorCode() string { - return "DBProxyEndpointQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "DBProxyEndpointQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *DBProxyEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -831,6 +1070,8 @@ func (e *DBProxyEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { ret type DBProxyNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -843,7 +1084,12 @@ func (e *DBProxyNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBProxyNotFoundFault) ErrorCode() string { return "DBProxyNotFoundFault" } +func (e *DBProxyNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBProxyNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBProxyNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your Amazon Web Services account already has the maximum number of proxies in @@ -851,6 +1097,8 @@ func (e *DBProxyNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type DBProxyQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -863,7 +1111,12 @@ func (e *DBProxyQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBProxyQuotaExceededFault) ErrorCode() string { return "DBProxyQuotaExceededFault" } +func (e *DBProxyQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBProxyQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *DBProxyQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The proxy is already associated with the specified RDS DB instance or Aurora DB @@ -871,6 +1124,8 @@ func (e *DBProxyQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smit type DBProxyTargetAlreadyRegisteredFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -884,7 +1139,10 @@ func (e *DBProxyTargetAlreadyRegisteredFault) ErrorMessage() string { return *e.Message } func (e *DBProxyTargetAlreadyRegisteredFault) ErrorCode() string { - return "DBProxyTargetAlreadyRegisteredFault" + if e.ErrorCodeOverride == nil { + return "DBProxyTargetAlreadyRegisteredFault" + } + return *e.ErrorCodeOverride } func (e *DBProxyTargetAlreadyRegisteredFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -895,6 +1153,8 @@ func (e *DBProxyTargetAlreadyRegisteredFault) ErrorFault() smithy.ErrorFault { type DBProxyTargetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -908,7 +1168,10 @@ func (e *DBProxyTargetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBProxyTargetGroupNotFoundFault) ErrorCode() string { - return "DBProxyTargetGroupNotFoundFault" + if e.ErrorCodeOverride == nil { + return "DBProxyTargetGroupNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *DBProxyTargetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -918,6 +1181,8 @@ func (e *DBProxyTargetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { retur type DBProxyTargetNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -930,7 +1195,12 @@ func (e *DBProxyTargetNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBProxyTargetNotFoundFault) ErrorCode() string { return "DBProxyTargetNotFoundFault" } +func (e *DBProxyTargetNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBProxyTargetNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBProxyTargetNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A DB security group with the name specified in DBSecurityGroupName already @@ -938,6 +1208,8 @@ func (e *DBProxyTargetNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type DBSecurityGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -950,13 +1222,20 @@ func (e *DBSecurityGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBSecurityGroupAlreadyExistsFault) ErrorCode() string { return "DBSecurityGroupAlreadyExists" } +func (e *DBSecurityGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSecurityGroupAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSecurityGroupName doesn't refer to an existing DB security group. type DBSecurityGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -969,13 +1248,20 @@ func (e *DBSecurityGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { return "DBSecurityGroupNotFound" } +func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSecurityGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A DB security group isn't allowed for this action. type DBSecurityGroupNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -988,7 +1274,12 @@ func (e *DBSecurityGroupNotSupportedFault) ErrorMessage() string { } return *e.Message } -func (e *DBSecurityGroupNotSupportedFault) ErrorCode() string { return "DBSecurityGroupNotSupported" } +func (e *DBSecurityGroupNotSupportedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSecurityGroupNotSupported" + } + return *e.ErrorCodeOverride +} func (e *DBSecurityGroupNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of DB security @@ -996,6 +1287,8 @@ func (e *DBSecurityGroupNotSupportedFault) ErrorFault() smithy.ErrorFault { retu type DBSecurityGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1009,7 +1302,10 @@ func (e *DBSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupQuotaExceededFault) ErrorCode() string { - return "QuotaExceeded.DBSecurityGroup" + if e.ErrorCodeOverride == nil { + return "QuotaExceeded.DBSecurityGroup" + } + return *e.ErrorCodeOverride } func (e *DBSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1017,6 +1313,8 @@ func (e *DBSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { ret type DBSnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1029,13 +1327,20 @@ func (e *DBSnapshotAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { return "DBSnapshotAlreadyExists" } +func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSnapshotAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier doesn't refer to an existing DB snapshot. type DBSnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1048,13 +1353,20 @@ func (e *DBSnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSnapshotNotFoundFault) ErrorCode() string { return "DBSnapshotNotFound" } +func (e *DBSnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSnapshotNotFound" + } + return *e.ErrorCodeOverride +} func (e *DBSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName is already used by an existing DB subnet group. type DBSubnetGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1067,7 +1379,12 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { return "DBSubnetGroupAlreadyExists" } +func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Subnets in the DB subnet group should cover at least two Availability Zones @@ -1075,6 +1392,8 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type DBSubnetGroupDoesNotCoverEnoughAZs struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1088,7 +1407,10 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "DBSubnetGroupDoesNotCoverEnoughAZs" + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.ErrorCodeOverride } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1099,6 +1421,8 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { type DBSubnetGroupNotAllowedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1111,13 +1435,20 @@ func (e *DBSubnetGroupNotAllowedFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupNotAllowedFault) ErrorCode() string { return "DBSubnetGroupNotAllowedFault" } +func (e *DBSubnetGroupNotAllowedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupNotAllowedFault" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupNotAllowedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName doesn't refer to an existing DB subnet group. type DBSubnetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1130,7 +1461,12 @@ func (e *DBSubnetGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { return "DBSubnetGroupNotFoundFault" } +func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of DB subnet @@ -1138,6 +1474,8 @@ func (e *DBSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type DBSubnetGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1150,7 +1488,12 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { return "DBSubnetGroupQuotaExceeded" } +func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetGroupQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of subnets in @@ -1158,6 +1501,8 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type DBSubnetQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1170,13 +1515,20 @@ func (e *DBSubnetQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *DBSubnetQuotaExceededFault) ErrorCode() string { return "DBSubnetQuotaExceededFault" } +func (e *DBSubnetQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBSubnetQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *DBSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB upgrade failed because a resource the DB depends on can't be modified. type DBUpgradeDependencyFailureFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1189,13 +1541,20 @@ func (e *DBUpgradeDependencyFailureFault) ErrorMessage() string { } return *e.Message } -func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { return "DBUpgradeDependencyFailure" } +func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DBUpgradeDependencyFailure" + } + return *e.ErrorCodeOverride +} func (e *DBUpgradeDependencyFailureFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Domain doesn't refer to an existing Active Directory domain. type DomainNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1208,13 +1567,20 @@ func (e *DomainNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *DomainNotFoundFault) ErrorCode() string { return "DomainNotFoundFault" } +func (e *DomainNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DomainNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *DomainNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The AMI configuration prerequisite has not been met. type Ec2ImagePropertiesNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1228,7 +1594,10 @@ func (e *Ec2ImagePropertiesNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *Ec2ImagePropertiesNotSupportedFault) ErrorCode() string { - return "Ec2ImagePropertiesNotSupportedFault" + if e.ErrorCodeOverride == nil { + return "Ec2ImagePropertiesNotSupportedFault" + } + return *e.ErrorCodeOverride } func (e *Ec2ImagePropertiesNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1238,6 +1607,8 @@ func (e *Ec2ImagePropertiesNotSupportedFault) ErrorFault() smithy.ErrorFault { type EventSubscriptionQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1251,7 +1622,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1261,6 +1635,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ExportTaskAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1273,13 +1649,20 @@ func (e *ExportTaskAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ExportTaskAlreadyExistsFault) ErrorCode() string { return "ExportTaskAlreadyExists" } +func (e *ExportTaskAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExportTaskAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ExportTaskAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The export task doesn't exist. type ExportTaskNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1292,7 +1675,12 @@ func (e *ExportTaskNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ExportTaskNotFoundFault) ErrorCode() string { return "ExportTaskNotFound" } +func (e *ExportTaskNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExportTaskNotFound" + } + return *e.ErrorCodeOverride +} func (e *ExportTaskNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The GlobalClusterIdentifier already exists. Choose a new global database @@ -1300,6 +1688,8 @@ func (e *ExportTaskNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy type GlobalClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1313,7 +1703,10 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - return "GlobalClusterAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "GlobalClusterAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1322,6 +1715,8 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type GlobalClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1334,7 +1729,12 @@ func (e *GlobalClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *GlobalClusterNotFoundFault) ErrorCode() string { return "GlobalClusterNotFoundFault" } +func (e *GlobalClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GlobalClusterNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of global database clusters for this account is already at the @@ -1342,6 +1742,8 @@ func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type GlobalClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1355,7 +1757,10 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - return "GlobalClusterQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "GlobalClusterQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1363,6 +1768,8 @@ func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type IamRoleMissingPermissionsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1375,13 +1782,20 @@ func (e *IamRoleMissingPermissionsFault) ErrorMessage() string { } return *e.Message } -func (e *IamRoleMissingPermissionsFault) ErrorCode() string { return "IamRoleMissingPermissions" } +func (e *IamRoleMissingPermissionsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IamRoleMissingPermissions" + } + return *e.ErrorCodeOverride +} func (e *IamRoleMissingPermissionsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The IAM role is missing for exporting to an Amazon S3 bucket. type IamRoleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1394,7 +1808,12 @@ func (e *IamRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *IamRoleNotFoundFault) ErrorCode() string { return "IamRoleNotFound" } +func (e *IamRoleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IamRoleNotFound" + } + return *e.ErrorCodeOverride +} func (e *IamRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of DB @@ -1402,6 +1821,8 @@ func (e *IamRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type InstanceQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1414,7 +1835,12 @@ func (e *InstanceQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *InstanceQuotaExceededFault) ErrorCode() string { return "InstanceQuotaExceeded" } +func (e *InstanceQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *InstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation can't be performed because there aren't enough available @@ -1423,6 +1849,8 @@ func (e *InstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smi type InsufficientAvailableIPsInSubnetFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1436,7 +1864,10 @@ func (e *InsufficientAvailableIPsInSubnetFault) ErrorMessage() string { return *e.Message } func (e *InsufficientAvailableIPsInSubnetFault) ErrorCode() string { - return "InsufficientAvailableIPsInSubnetFault" + if e.ErrorCodeOverride == nil { + return "InsufficientAvailableIPsInSubnetFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientAvailableIPsInSubnetFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1446,6 +1877,8 @@ func (e *InsufficientAvailableIPsInSubnetFault) ErrorFault() smithy.ErrorFault { type InsufficientDBClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1459,7 +1892,10 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - return "InsufficientDBClusterCapacityFault" + if e.ErrorCodeOverride == nil { + return "InsufficientDBClusterCapacityFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1470,6 +1906,8 @@ func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientDBInstanceCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1483,7 +1921,10 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - return "InsufficientDBInstanceCapacity" + if e.ErrorCodeOverride == nil { + return "InsufficientDBInstanceCapacity" + } + return *e.ErrorCodeOverride } func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1495,6 +1936,8 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientStorageClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1508,7 +1951,10 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - return "InsufficientStorageClusterCapacity" + if e.ErrorCodeOverride == nil { + return "InsufficientStorageClusterCapacity" + } + return *e.ErrorCodeOverride } func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1519,6 +1965,8 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault type InvalidBlueGreenDeploymentStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1532,7 +1980,10 @@ func (e *InvalidBlueGreenDeploymentStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidBlueGreenDeploymentStateFault) ErrorCode() string { - return "InvalidBlueGreenDeploymentStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidBlueGreenDeploymentStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidBlueGreenDeploymentStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1542,6 +1993,8 @@ func (e *InvalidBlueGreenDeploymentStateFault) ErrorFault() smithy.ErrorFault { type InvalidCustomDBEngineVersionStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1555,7 +2008,10 @@ func (e *InvalidCustomDBEngineVersionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCustomDBEngineVersionStateFault) ErrorCode() string { - return "InvalidCustomDBEngineVersionStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidCustomDBEngineVersionStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidCustomDBEngineVersionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1566,6 +2022,8 @@ func (e *InvalidCustomDBEngineVersionStateFault) ErrorFault() smithy.ErrorFault type InvalidDBClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1578,7 +2036,12 @@ func (e *InvalidDBClusterCapacityFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBClusterCapacityFault) ErrorCode() string { return "InvalidDBClusterCapacityFault" } +func (e *InvalidDBClusterCapacityFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterCapacityFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation can't be performed on the endpoint while the endpoint is @@ -1586,6 +2049,8 @@ func (e *InvalidDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return type InvalidDBClusterEndpointStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1599,7 +2064,10 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterEndpointStateFault) ErrorCode() string { - return "InvalidDBClusterEndpointStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterEndpointStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1609,6 +2077,8 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1622,7 +2092,10 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - return "InvalidDBClusterSnapshotStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterSnapshotStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1632,6 +2105,8 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1644,7 +2119,12 @@ func (e *InvalidDBClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBClusterStateFault) ErrorCode() string { return "InvalidDBClusterStateFault" } +func (e *InvalidDBClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The automated backup is in an invalid state. For example, this automated backup @@ -1652,6 +2132,8 @@ func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smi type InvalidDBInstanceAutomatedBackupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1665,7 +2147,10 @@ func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorCode() string { - return "InvalidDBInstanceAutomatedBackupState" + if e.ErrorCodeOverride == nil { + return "InvalidDBInstanceAutomatedBackupState" + } + return *e.ErrorCodeOverride } func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1675,6 +2160,8 @@ func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorFault() smithy.ErrorFa type InvalidDBInstanceStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1687,7 +2174,12 @@ func (e *InvalidDBInstanceStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBInstanceStateFault) ErrorCode() string { return "InvalidDBInstanceState" } +func (e *InvalidDBInstanceStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBInstanceState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBInstanceStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB parameter group is in use or is in an invalid state. If you are @@ -1696,6 +2188,8 @@ func (e *InvalidDBInstanceStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidDBParameterGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1708,7 +2202,12 @@ func (e *InvalidDBParameterGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { return "InvalidDBParameterGroupState" } +func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBParameterGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't perform this operation while the DB proxy endpoint is in a particular @@ -1716,6 +2215,8 @@ func (e *InvalidDBParameterGroupStateFault) ErrorFault() smithy.ErrorFault { ret type InvalidDBProxyEndpointStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1729,7 +2230,10 @@ func (e *InvalidDBProxyEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBProxyEndpointStateFault) ErrorCode() string { - return "InvalidDBProxyEndpointStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidDBProxyEndpointStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidDBProxyEndpointStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1737,6 +2241,8 @@ func (e *InvalidDBProxyEndpointStateFault) ErrorFault() smithy.ErrorFault { retu type InvalidDBProxyStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1749,13 +2255,20 @@ func (e *InvalidDBProxyStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBProxyStateFault) ErrorCode() string { return "InvalidDBProxyStateFault" } +func (e *InvalidDBProxyStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBProxyStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBProxyStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the DB security group doesn't allow deletion. type InvalidDBSecurityGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1768,13 +2281,20 @@ func (e *InvalidDBSecurityGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { return "InvalidDBSecurityGroupState" } +func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSecurityGroupState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the DB snapshot doesn't allow deletion. type InvalidDBSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1787,7 +2307,12 @@ func (e *InvalidDBSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSnapshotStateFault) ErrorCode() string { return "InvalidDBSnapshotState" } +func (e *InvalidDBSnapshotStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSnapshotState" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DBSubnetGroup doesn't belong to the same VPC as that of an existing @@ -1795,6 +2320,8 @@ func (e *InvalidDBSnapshotStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidDBSubnetGroupFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1807,13 +2334,20 @@ func (e *InvalidDBSubnetGroupFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetGroupFault) ErrorCode() string { return "InvalidDBSubnetGroupFault" } +func (e *InvalidDBSubnetGroupFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSubnetGroupFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSubnetGroupFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet group cannot be deleted because it's in use. type InvalidDBSubnetGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1826,13 +2360,20 @@ func (e *InvalidDBSubnetGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { return "InvalidDBSubnetGroupStateFault" } +func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSubnetGroupStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet isn't in the available state. type InvalidDBSubnetStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1845,7 +2386,12 @@ func (e *InvalidDBSubnetStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetStateFault) ErrorCode() string { return "InvalidDBSubnetStateFault" } +func (e *InvalidDBSubnetStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDBSubnetStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error can occur if someone else is modifying a subscription. You should @@ -1853,6 +2399,8 @@ func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smit type InvalidEventSubscriptionStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1866,7 +2414,10 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - return "InvalidEventSubscriptionState" + if e.ErrorCodeOverride == nil { + return "InvalidEventSubscriptionState" + } + return *e.ErrorCodeOverride } func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1876,6 +2427,8 @@ func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { type InvalidExportOnlyFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1888,7 +2441,12 @@ func (e *InvalidExportOnlyFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportOnlyFault) ErrorCode() string { return "InvalidExportOnly" } +func (e *InvalidExportOnlyFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExportOnly" + } + return *e.ErrorCodeOverride +} func (e *InvalidExportOnlyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the export snapshot is invalid for exporting to an Amazon S3 @@ -1896,6 +2454,8 @@ func (e *InvalidExportOnlyFault) ErrorFault() smithy.ErrorFault { return smithy. type InvalidExportSourceStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1908,13 +2468,20 @@ func (e *InvalidExportSourceStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportSourceStateFault) ErrorCode() string { return "InvalidExportSourceState" } +func (e *InvalidExportSourceStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExportSourceState" + } + return *e.ErrorCodeOverride +} func (e *InvalidExportSourceStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't cancel an export task that has completed. type InvalidExportTaskStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1927,7 +2494,12 @@ func (e *InvalidExportTaskStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportTaskStateFault) ErrorCode() string { return "InvalidExportTaskStateFault" } +func (e *InvalidExportTaskStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExportTaskStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidExportTaskStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The global cluster is in an invalid state and can't perform the requested @@ -1935,6 +2507,8 @@ func (e *InvalidExportTaskStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidGlobalClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1947,13 +2521,20 @@ func (e *InvalidGlobalClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidGlobalClusterStateFault) ErrorCode() string { return "InvalidGlobalClusterStateFault" } +func (e *InvalidGlobalClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGlobalClusterStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidGlobalClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The option group isn't in the available state. type InvalidOptionGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1966,13 +2547,20 @@ func (e *InvalidOptionGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidOptionGroupStateFault) ErrorCode() string { return "InvalidOptionGroupStateFault" } +func (e *InvalidOptionGroupStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOptionGroupStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidOptionGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot restore from VPC backup to non-VPC DB instance. type InvalidRestoreFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1985,7 +2573,12 @@ func (e *InvalidRestoreFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidRestoreFault) ErrorCode() string { return "InvalidRestoreFault" } +func (e *InvalidRestoreFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRestoreFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon S3 bucket name can't be found or Amazon RDS isn't @@ -1994,6 +2587,8 @@ func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidS3BucketFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2006,7 +2601,12 @@ func (e *InvalidS3BucketFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3BucketFault) ErrorCode() string { return "InvalidS3BucketFault" } +func (e *InvalidS3BucketFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3BucketFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3BucketFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet is invalid, or multiple subnets were requested that are not @@ -2014,6 +2614,8 @@ func (e *InvalidS3BucketFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2026,7 +2628,12 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet group doesn't cover all Availability Zones after it's created @@ -2034,6 +2641,8 @@ func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type InvalidVPCNetworkStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2046,13 +2655,20 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred accessing an Amazon Web Services KMS key. type KMSKeyNotAccessibleFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2065,7 +2681,12 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { } return *e.Message } -func (e *KMSKeyNotAccessibleFault) ErrorCode() string { return "KMSKeyNotAccessibleFault" } +func (e *KMSKeyNotAccessibleFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.ErrorCodeOverride +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The network type is invalid for the DB instance. Valid nework type values are @@ -2073,6 +2694,8 @@ func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smith type NetworkTypeNotSupported struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2085,13 +2708,20 @@ func (e *NetworkTypeNotSupported) ErrorMessage() string { } return *e.Message } -func (e *NetworkTypeNotSupported) ErrorCode() string { return "NetworkTypeNotSupported" } +func (e *NetworkTypeNotSupported) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NetworkTypeNotSupported" + } + return *e.ErrorCodeOverride +} func (e *NetworkTypeNotSupported) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The option group you are trying to create already exists. type OptionGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2104,13 +2734,20 @@ func (e *OptionGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *OptionGroupAlreadyExistsFault) ErrorCode() string { return "OptionGroupAlreadyExistsFault" } +func (e *OptionGroupAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OptionGroupAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *OptionGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified option group could not be found. type OptionGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2123,13 +2760,20 @@ func (e *OptionGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *OptionGroupNotFoundFault) ErrorCode() string { return "OptionGroupNotFoundFault" } +func (e *OptionGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OptionGroupNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *OptionGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota of 20 option groups was exceeded for this Amazon Web Services account. type OptionGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2142,7 +2786,12 @@ func (e *OptionGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *OptionGroupQuotaExceededFault) ErrorCode() string { return "OptionGroupQuotaExceededFault" } +func (e *OptionGroupQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OptionGroupQuotaExceededFault" + } + return *e.ErrorCodeOverride +} func (e *OptionGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod @@ -2150,6 +2799,8 @@ func (e *OptionGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return type PointInTimeRestoreNotEnabledFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2162,13 +2813,20 @@ func (e *PointInTimeRestoreNotEnabledFault) ErrorMessage() string { } return *e.Message } -func (e *PointInTimeRestoreNotEnabledFault) ErrorCode() string { return "PointInTimeRestoreNotEnabled" } +func (e *PointInTimeRestoreNotEnabledFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PointInTimeRestoreNotEnabled" + } + return *e.ErrorCodeOverride +} func (e *PointInTimeRestoreNotEnabledFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provisioned IOPS not available in the specified Availability Zone. type ProvisionedIopsNotAvailableInAZFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2182,7 +2840,10 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorMessage() string { return *e.Message } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorCode() string { - return "ProvisionedIopsNotAvailableInAZFault" + if e.ErrorCodeOverride == nil { + return "ProvisionedIopsNotAvailableInAZFault" + } + return *e.ErrorCodeOverride } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2192,6 +2853,8 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { type ReservedDBInstanceAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2205,7 +2868,10 @@ func (e *ReservedDBInstanceAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstanceAlreadyExistsFault) ErrorCode() string { - return "ReservedDBInstanceAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ReservedDBInstanceAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ReservedDBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2215,6 +2881,8 @@ func (e *ReservedDBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ReservedDBInstanceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2227,13 +2895,20 @@ func (e *ReservedDBInstanceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedDBInstanceNotFoundFault) ErrorCode() string { return "ReservedDBInstanceNotFound" } +func (e *ReservedDBInstanceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedDBInstanceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ReservedDBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would exceed the user's DB Instance quota. type ReservedDBInstanceQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2247,7 +2922,10 @@ func (e *ReservedDBInstanceQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstanceQuotaExceededFault) ErrorCode() string { - return "ReservedDBInstanceQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "ReservedDBInstanceQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *ReservedDBInstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2257,6 +2935,8 @@ func (e *ReservedDBInstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ReservedDBInstancesOfferingNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2270,7 +2950,10 @@ func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorCode() string { - return "ReservedDBInstancesOfferingNotFound" + if e.ErrorCodeOverride == nil { + return "ReservedDBInstancesOfferingNotFound" + } + return *e.ErrorCodeOverride } func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2280,6 +2963,8 @@ func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorFault() smithy.ErrorFaul type ResourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2292,7 +2977,12 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundFault) ErrorCode() string { return "ResourceNotFoundFault" } +func (e *ResourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of accounts that you can share a manual DB @@ -2300,6 +2990,8 @@ func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.F type SharedSnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2312,7 +3004,12 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { return "SharedSnapshotQuotaExceeded" } +func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SharedSnapshotQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *SharedSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of DB @@ -2320,6 +3017,8 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { retu type SnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2332,13 +3031,20 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotQuotaExceededFault) ErrorCode() string { return "SnapshotQuotaExceeded" } +func (e *SnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *SnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // SNS has responded that there is a problem with the SNS topic specified. type SNSInvalidTopicFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2351,13 +3057,20 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { } return *e.Message } -func (e *SNSInvalidTopicFault) ErrorCode() string { return "SNSInvalidTopic" } +func (e *SNSInvalidTopicFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSInvalidTopic" + } + return *e.ErrorCodeOverride +} func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You do not have permission to publish to the SNS topic ARN. type SNSNoAuthorizationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2370,13 +3083,20 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { } return *e.Message } -func (e *SNSNoAuthorizationFault) ErrorCode() string { return "SNSNoAuthorization" } +func (e *SNSNoAuthorizationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSNoAuthorization" + } + return *e.ErrorCodeOverride +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic ARN does not exist. type SNSTopicArnNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2389,13 +3109,20 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SNSTopicArnNotFoundFault) ErrorCode() string { return "SNSTopicArnNotFound" } +func (e *SNSTopicArnNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSTopicArnNotFound" + } + return *e.ErrorCodeOverride +} func (e *SNSTopicArnNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The source DB cluster isn't supported for a blue/green deployment. type SourceClusterNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2408,13 +3135,20 @@ func (e *SourceClusterNotSupportedFault) ErrorMessage() string { } return *e.Message } -func (e *SourceClusterNotSupportedFault) ErrorCode() string { return "SourceClusterNotSupportedFault" } +func (e *SourceClusterNotSupportedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceClusterNotSupportedFault" + } + return *e.ErrorCodeOverride +} func (e *SourceClusterNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The source DB instance isn't supported for a blue/green deployment. type SourceDatabaseNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2428,7 +3162,10 @@ func (e *SourceDatabaseNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *SourceDatabaseNotSupportedFault) ErrorCode() string { - return "SourceDatabaseNotSupportedFault" + if e.ErrorCodeOverride == nil { + return "SourceDatabaseNotSupportedFault" + } + return *e.ErrorCodeOverride } func (e *SourceDatabaseNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2436,6 +3173,8 @@ func (e *SourceDatabaseNotSupportedFault) ErrorFault() smithy.ErrorFault { retur type SourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2448,7 +3187,12 @@ func (e *SourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SourceNotFoundFault) ErrorCode() string { return "SourceNotFound" } +func (e *SourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed amount of storage @@ -2456,6 +3200,8 @@ func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type StorageQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2468,13 +3214,20 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *StorageQuotaExceededFault) ErrorCode() string { return "StorageQuotaExceeded" } +func (e *StorageQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *StorageQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Storage of the StorageType specified can't be associated with the DB instance. type StorageTypeNotSupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2487,13 +3240,20 @@ func (e *StorageTypeNotSupportedFault) ErrorMessage() string { } return *e.Message } -func (e *StorageTypeNotSupportedFault) ErrorCode() string { return "StorageTypeNotSupported" } +func (e *StorageTypeNotSupportedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageTypeNotSupported" + } + return *e.ErrorCodeOverride +} func (e *StorageTypeNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet is already in use in the Availability Zone. type SubnetAlreadyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2506,13 +3266,20 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetAlreadyInUse) ErrorCode() string { return "SubnetAlreadyInUse" } +func (e *SubnetAlreadyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetAlreadyInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied subscription name already exists. type SubscriptionAlreadyExistFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2525,13 +3292,20 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionAlreadyExistFault) ErrorCode() string { return "SubscriptionAlreadyExist" } +func (e *SubscriptionAlreadyExistFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionAlreadyExist" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied category does not exist. type SubscriptionCategoryNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2544,13 +3318,20 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { return "SubscriptionCategoryNotFound" } +func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionCategoryNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionCategoryNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subscription name does not exist. type SubscriptionNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2563,5 +3344,10 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionNotFoundFault) ErrorCode() string { return "SubscriptionNotFound" } +func (e *SubscriptionNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rdsdata/types/errors.go b/service/rdsdata/types/errors.go index ec2d725babd..12e11fef0a4 100644 --- a/service/rdsdata/types/errors.go +++ b/service/rdsdata/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is an error in the call or in a SQL statement. type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are insufficient privileges to make the call. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resourceArn, secretArn, or transactionId value can't be found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service specified by the resourceArn parameter is not available. type ServiceUnavailableError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *ServiceUnavailableError) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableError) ErrorCode() string { return "ServiceUnavailableError" } +func (e *ServiceUnavailableError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableError" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The execution of the SQL statement timed out. type StatementTimeoutException struct { Message *string + ErrorCodeOverride *string + DbConnectionId int64 noSmithyDocumentSerde @@ -139,5 +183,10 @@ func (e *StatementTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *StatementTimeoutException) ErrorCode() string { return "StatementTimeoutException" } +func (e *StatementTimeoutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StatementTimeoutException" + } + return *e.ErrorCodeOverride +} func (e *StatementTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/redshift/types/errors.go b/service/redshift/types/errors.go index 65a24a0bee4..277618eb9d7 100644 --- a/service/redshift/types/errors.go +++ b/service/redshift/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessToClusterDeniedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessToClusterDeniedFault) ErrorMessage() string { } return *e.Message } -func (e *AccessToClusterDeniedFault) ErrorCode() string { return "AccessToClusterDenied" } +func (e *AccessToClusterDeniedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessToClusterDenied" + } + return *e.ErrorCodeOverride +} func (e *AccessToClusterDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The owner of the specified snapshot has not authorized your account to access @@ -31,6 +38,8 @@ func (e *AccessToClusterDeniedFault) ErrorFault() smithy.ErrorFault { return smi type AccessToSnapshotDeniedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *AccessToSnapshotDeniedFault) ErrorMessage() string { } return *e.Message } -func (e *AccessToSnapshotDeniedFault) ErrorCode() string { return "AccessToSnapshotDenied" } +func (e *AccessToSnapshotDeniedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessToSnapshotDenied" + } + return *e.ErrorCodeOverride +} func (e *AccessToSnapshotDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The authentication profile already exists. type AuthenticationProfileAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *AuthenticationProfileAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileAlreadyExistsFault) ErrorCode() string { - return "AuthenticationProfileAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "AuthenticationProfileAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *AuthenticationProfileAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -73,6 +92,8 @@ func (e *AuthenticationProfileAlreadyExistsFault) ErrorFault() smithy.ErrorFault type AuthenticationProfileNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +107,10 @@ func (e *AuthenticationProfileNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileNotFoundFault) ErrorCode() string { - return "AuthenticationProfileNotFoundFault" + if e.ErrorCodeOverride == nil { + return "AuthenticationProfileNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *AuthenticationProfileNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -98,6 +122,8 @@ func (e *AuthenticationProfileNotFoundFault) ErrorFault() smithy.ErrorFault { type AuthenticationProfileQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -111,7 +137,10 @@ func (e *AuthenticationProfileQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileQuotaExceededFault) ErrorCode() string { - return "AuthenticationProfileQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "AuthenticationProfileQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *AuthenticationProfileQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -122,6 +151,8 @@ func (e *AuthenticationProfileQuotaExceededFault) ErrorFault() smithy.ErrorFault type AuthorizationAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -134,7 +165,12 @@ func (e *AuthorizationAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { return "AuthorizationAlreadyExists" } +func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified CIDR IP range or EC2 security group is not authorized for the @@ -142,6 +178,8 @@ func (e *AuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type AuthorizationNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -154,13 +192,20 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationNotFoundFault) ErrorCode() string { return "AuthorizationNotFound" } +func (e *AuthorizationNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationNotFound" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The authorization quota for the cluster security group has been reached. type AuthorizationQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +218,12 @@ func (e *AuthorizationQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationQuotaExceededFault) ErrorCode() string { return "AuthorizationQuotaExceeded" } +func (e *AuthorizationQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number for a batch delete of snapshots has been reached. The limit @@ -181,6 +231,8 @@ func (e *AuthorizationQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type BatchDeleteRequestSizeExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -194,7 +246,10 @@ func (e *BatchDeleteRequestSizeExceededFault) ErrorMessage() string { return *e.Message } func (e *BatchDeleteRequestSizeExceededFault) ErrorCode() string { - return "BatchDeleteRequestSizeExceeded" + if e.ErrorCodeOverride == nil { + return "BatchDeleteRequestSizeExceeded" + } + return *e.ErrorCodeOverride } func (e *BatchDeleteRequestSizeExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -204,6 +259,8 @@ func (e *BatchDeleteRequestSizeExceededFault) ErrorFault() smithy.ErrorFault { type BatchModifyClusterSnapshotsLimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -217,7 +274,10 @@ func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorCode() string { - return "BatchModifyClusterSnapshotsLimitExceededFault" + if e.ErrorCodeOverride == nil { + return "BatchModifyClusterSnapshotsLimitExceededFault" + } + return *e.ErrorCodeOverride } func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -227,6 +287,8 @@ func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorFault() smithy.Erro type BucketNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -239,13 +301,20 @@ func (e *BucketNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *BucketNotFoundFault) ErrorCode() string { return "BucketNotFoundFault" } +func (e *BucketNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BucketNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *BucketNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account already has a cluster with the given identifier. type ClusterAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -258,13 +327,20 @@ func (e *ClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterAlreadyExistsFault) ErrorCode() string { return "ClusterAlreadyExists" } +func (e *ClusterAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ClusterIdentifier parameter does not refer to an existing cluster. type ClusterNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -277,13 +353,20 @@ func (e *ClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterNotFoundFault) ErrorCode() string { return "ClusterNotFound" } +func (e *ClusterNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterNotFound" + } + return *e.ErrorCodeOverride +} func (e *ClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cluster is already on the latest database revision. type ClusterOnLatestRevisionFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -296,13 +379,20 @@ func (e *ClusterOnLatestRevisionFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterOnLatestRevisionFault) ErrorCode() string { return "ClusterOnLatestRevision" } +func (e *ClusterOnLatestRevisionFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterOnLatestRevision" + } + return *e.ErrorCodeOverride +} func (e *ClusterOnLatestRevisionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cluster parameter group with the same name already exists. type ClusterParameterGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -316,7 +406,10 @@ func (e *ClusterParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupAlreadyExistsFault) ErrorCode() string { - return "ClusterParameterGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ClusterParameterGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ClusterParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -326,6 +419,8 @@ func (e *ClusterParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault type ClusterParameterGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -339,7 +434,10 @@ func (e *ClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupNotFoundFault) ErrorCode() string { - return "ClusterParameterGroupNotFound" + if e.ErrorCodeOverride == nil { + return "ClusterParameterGroupNotFound" + } + return *e.ErrorCodeOverride } func (e *ClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -353,6 +451,8 @@ func (e *ClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type ClusterParameterGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -366,7 +466,10 @@ func (e *ClusterParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupQuotaExceededFault) ErrorCode() string { - return "ClusterParameterGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "ClusterParameterGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *ClusterParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -380,6 +483,8 @@ func (e *ClusterParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault type ClusterQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -392,13 +497,20 @@ func (e *ClusterQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterQuotaExceededFault) ErrorCode() string { return "ClusterQuotaExceeded" } +func (e *ClusterQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *ClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cluster security group with the same name already exists. type ClusterSecurityGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -412,7 +524,10 @@ func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorCode() string { - return "ClusterSecurityGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ClusterSecurityGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -423,6 +538,8 @@ func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault type ClusterSecurityGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -435,7 +552,12 @@ func (e *ClusterSecurityGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterSecurityGroupNotFoundFault) ErrorCode() string { return "ClusterSecurityGroupNotFound" } +func (e *ClusterSecurityGroupNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterSecurityGroupNotFound" + } + return *e.ErrorCodeOverride +} func (e *ClusterSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of cluster @@ -446,6 +568,8 @@ func (e *ClusterSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { ret type ClusterSecurityGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -459,7 +583,10 @@ func (e *ClusterSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSecurityGroupQuotaExceededFault) ErrorCode() string { - return "QuotaExceeded.ClusterSecurityGroup" + if e.ErrorCodeOverride == nil { + return "QuotaExceeded.ClusterSecurityGroup" + } + return *e.ErrorCodeOverride } func (e *ClusterSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -470,6 +597,8 @@ func (e *ClusterSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault type ClusterSnapshotAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -482,13 +611,20 @@ func (e *ClusterSnapshotAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterSnapshotAlreadyExistsFault) ErrorCode() string { return "ClusterSnapshotAlreadyExists" } +func (e *ClusterSnapshotAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterSnapshotAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The snapshot identifier does not refer to an existing cluster snapshot. type ClusterSnapshotNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -501,7 +637,12 @@ func (e *ClusterSnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterSnapshotNotFoundFault) ErrorCode() string { return "ClusterSnapshotNotFound" } +func (e *ClusterSnapshotNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterSnapshotNotFound" + } + return *e.ErrorCodeOverride +} func (e *ClusterSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of cluster @@ -509,6 +650,8 @@ func (e *ClusterSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return s type ClusterSnapshotQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -521,13 +664,20 @@ func (e *ClusterSnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterSnapshotQuotaExceededFault) ErrorCode() string { return "ClusterSnapshotQuotaExceeded" } +func (e *ClusterSnapshotQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterSnapshotQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *ClusterSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A ClusterSubnetGroupName is already used by an existing cluster subnet group. type ClusterSubnetGroupAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -541,7 +691,10 @@ func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorCode() string { - return "ClusterSubnetGroupAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ClusterSubnetGroupAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -552,6 +705,8 @@ func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ClusterSubnetGroupNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -565,7 +720,10 @@ func (e *ClusterSubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupNotFoundFault) ErrorCode() string { - return "ClusterSubnetGroupNotFoundFault" + if e.ErrorCodeOverride == nil { + return "ClusterSubnetGroupNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *ClusterSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -577,6 +735,8 @@ func (e *ClusterSubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { retur type ClusterSubnetGroupQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -590,7 +750,10 @@ func (e *ClusterSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupQuotaExceededFault) ErrorCode() string { - return "ClusterSubnetGroupQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "ClusterSubnetGroupQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *ClusterSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -604,6 +767,8 @@ func (e *ClusterSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ClusterSubnetQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -617,7 +782,10 @@ func (e *ClusterSubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetQuotaExceededFault) ErrorCode() string { - return "ClusterSubnetQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "ClusterSubnetQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *ClusterSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -625,6 +793,8 @@ func (e *ClusterSubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type CopyToRegionDisabledFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -637,7 +807,12 @@ func (e *CopyToRegionDisabledFault) ErrorMessage() string { } return *e.Message } -func (e *CopyToRegionDisabledFault) ErrorCode() string { return "CopyToRegionDisabledFault" } +func (e *CopyToRegionDisabledFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CopyToRegionDisabledFault" + } + return *e.ErrorCodeOverride +} func (e *CopyToRegionDisabledFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be completed because a dependent service is throttling @@ -645,6 +820,8 @@ func (e *CopyToRegionDisabledFault) ErrorFault() smithy.ErrorFault { return smit type DependentServiceRequestThrottlingFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -658,7 +835,10 @@ func (e *DependentServiceRequestThrottlingFault) ErrorMessage() string { return *e.Message } func (e *DependentServiceRequestThrottlingFault) ErrorCode() string { - return "DependentServiceRequestThrottlingFault" + if e.ErrorCodeOverride == nil { + return "DependentServiceRequestThrottlingFault" + } + return *e.ErrorCodeOverride } func (e *DependentServiceRequestThrottlingFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -669,6 +849,8 @@ func (e *DependentServiceRequestThrottlingFault) ErrorFault() smithy.ErrorFault type DependentServiceUnavailableFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -682,7 +864,10 @@ func (e *DependentServiceUnavailableFault) ErrorMessage() string { return *e.Message } func (e *DependentServiceUnavailableFault) ErrorCode() string { - return "DependentServiceUnavailableFault" + if e.ErrorCodeOverride == nil { + return "DependentServiceUnavailableFault" + } + return *e.ErrorCodeOverride } func (e *DependentServiceUnavailableFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -691,6 +876,8 @@ func (e *DependentServiceUnavailableFault) ErrorFault() smithy.ErrorFault { retu type EndpointAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -703,13 +890,20 @@ func (e *EndpointAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *EndpointAlreadyExistsFault) ErrorCode() string { return "EndpointAlreadyExists" } +func (e *EndpointAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EndpointAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *EndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The authorization already exists for this endpoint. type EndpointAuthorizationAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -723,7 +917,10 @@ func (e *EndpointAuthorizationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *EndpointAuthorizationAlreadyExistsFault) ErrorCode() string { - return "EndpointAuthorizationAlreadyExists" + if e.ErrorCodeOverride == nil { + return "EndpointAuthorizationAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *EndpointAuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -733,6 +930,8 @@ func (e *EndpointAuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault type EndpointAuthorizationNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -746,7 +945,10 @@ func (e *EndpointAuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *EndpointAuthorizationNotFoundFault) ErrorCode() string { - return "EndpointAuthorizationNotFound" + if e.ErrorCodeOverride == nil { + return "EndpointAuthorizationNotFound" + } + return *e.ErrorCodeOverride } func (e *EndpointAuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -756,6 +958,8 @@ func (e *EndpointAuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { type EndpointAuthorizationsPerClusterLimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -769,7 +973,10 @@ func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorMessage() stri return *e.Message } func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorCode() string { - return "EndpointAuthorizationsPerClusterLimitExceeded" + if e.ErrorCodeOverride == nil { + return "EndpointAuthorizationsPerClusterLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -779,6 +986,8 @@ func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorFault() smithy type EndpointNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -791,7 +1000,12 @@ func (e *EndpointNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *EndpointNotFoundFault) ErrorCode() string { return "EndpointNotFound" } +func (e *EndpointNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EndpointNotFound" + } + return *e.ErrorCodeOverride +} func (e *EndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of Redshift-managed VPC endpoints per authorization has exceeded its @@ -799,6 +1013,8 @@ func (e *EndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.F type EndpointsPerAuthorizationLimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -812,7 +1028,10 @@ func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorCode() string { - return "EndpointsPerAuthorizationLimitExceeded" + if e.ErrorCodeOverride == nil { + return "EndpointsPerAuthorizationLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -822,6 +1041,8 @@ func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorFault() smithy.ErrorF type EndpointsPerClusterLimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -835,7 +1056,10 @@ func (e *EndpointsPerClusterLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *EndpointsPerClusterLimitExceededFault) ErrorCode() string { - return "EndpointsPerClusterLimitExceeded" + if e.ErrorCodeOverride == nil { + return "EndpointsPerClusterLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *EndpointsPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -849,6 +1073,8 @@ func (e *EndpointsPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { type EventSubscriptionQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -862,7 +1088,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -873,6 +1102,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type HsmClientCertificateAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -886,7 +1117,10 @@ func (e *HsmClientCertificateAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateAlreadyExistsFault) ErrorCode() string { - return "HsmClientCertificateAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "HsmClientCertificateAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *HsmClientCertificateAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -897,6 +1131,8 @@ func (e *HsmClientCertificateAlreadyExistsFault) ErrorFault() smithy.ErrorFault type HsmClientCertificateNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -910,7 +1146,10 @@ func (e *HsmClientCertificateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateNotFoundFault) ErrorCode() string { - return "HsmClientCertificateNotFoundFault" + if e.ErrorCodeOverride == nil { + return "HsmClientCertificateNotFoundFault" + } + return *e.ErrorCodeOverride } func (e *HsmClientCertificateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -921,6 +1160,8 @@ func (e *HsmClientCertificateNotFoundFault) ErrorFault() smithy.ErrorFault { ret type HsmClientCertificateQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -934,7 +1175,10 @@ func (e *HsmClientCertificateQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateQuotaExceededFault) ErrorCode() string { - return "HsmClientCertificateQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "HsmClientCertificateQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *HsmClientCertificateQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -945,6 +1189,8 @@ func (e *HsmClientCertificateQuotaExceededFault) ErrorFault() smithy.ErrorFault type HsmConfigurationAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -958,7 +1204,10 @@ func (e *HsmConfigurationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *HsmConfigurationAlreadyExistsFault) ErrorCode() string { - return "HsmConfigurationAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "HsmConfigurationAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *HsmConfigurationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -968,6 +1217,8 @@ func (e *HsmConfigurationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type HsmConfigurationNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -980,7 +1231,12 @@ func (e *HsmConfigurationNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *HsmConfigurationNotFoundFault) ErrorCode() string { return "HsmConfigurationNotFoundFault" } +func (e *HsmConfigurationNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HsmConfigurationNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *HsmConfigurationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for HSM configurations has been reached. For information about @@ -990,6 +1246,8 @@ func (e *HsmConfigurationNotFoundFault) ErrorFault() smithy.ErrorFault { return type HsmConfigurationQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1003,7 +1261,10 @@ func (e *HsmConfigurationQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *HsmConfigurationQuotaExceededFault) ErrorCode() string { - return "HsmConfigurationQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "HsmConfigurationQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *HsmConfigurationQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1013,6 +1274,8 @@ func (e *HsmConfigurationQuotaExceededFault) ErrorFault() smithy.ErrorFault { type IncompatibleOrderableOptions struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1025,7 +1288,12 @@ func (e *IncompatibleOrderableOptions) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleOrderableOptions) ErrorCode() string { return "IncompatibleOrderableOptions" } +func (e *IncompatibleOrderableOptions) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleOrderableOptions" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleOrderableOptions) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the allowed number of table restore requests. Wait for your @@ -1033,6 +1301,8 @@ func (e *IncompatibleOrderableOptions) ErrorFault() smithy.ErrorFault { return s type InProgressTableRestoreQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1046,7 +1316,10 @@ func (e *InProgressTableRestoreQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *InProgressTableRestoreQuotaExceededFault) ErrorCode() string { - return "InProgressTableRestoreQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "InProgressTableRestoreQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *InProgressTableRestoreQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1056,6 +1329,8 @@ func (e *InProgressTableRestoreQuotaExceededFault) ErrorFault() smithy.ErrorFaul type InsufficientClusterCapacityFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1068,7 +1343,12 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { } return *e.Message } -func (e *InsufficientClusterCapacityFault) ErrorCode() string { return "InsufficientClusterCapacity" } +func (e *InsufficientClusterCapacityFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InsufficientClusterCapacity" + } + return *e.ErrorCodeOverride +} func (e *InsufficientClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster does not have read bucket or put object permissions on the S3 bucket @@ -1076,6 +1356,8 @@ func (e *InsufficientClusterCapacityFault) ErrorFault() smithy.ErrorFault { retu type InsufficientS3BucketPolicyFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1089,7 +1371,10 @@ func (e *InsufficientS3BucketPolicyFault) ErrorMessage() string { return *e.Message } func (e *InsufficientS3BucketPolicyFault) ErrorCode() string { - return "InsufficientS3BucketPolicyFault" + if e.ErrorCodeOverride == nil { + return "InsufficientS3BucketPolicyFault" + } + return *e.ErrorCodeOverride } func (e *InsufficientS3BucketPolicyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1099,6 +1384,8 @@ func (e *InsufficientS3BucketPolicyFault) ErrorFault() smithy.ErrorFault { retur type InvalidAuthenticationProfileRequestFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1112,7 +1399,10 @@ func (e *InvalidAuthenticationProfileRequestFault) ErrorMessage() string { return *e.Message } func (e *InvalidAuthenticationProfileRequestFault) ErrorCode() string { - return "InvalidAuthenticationProfileRequestFault" + if e.ErrorCodeOverride == nil { + return "InvalidAuthenticationProfileRequestFault" + } + return *e.ErrorCodeOverride } func (e *InvalidAuthenticationProfileRequestFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1122,6 +1412,8 @@ func (e *InvalidAuthenticationProfileRequestFault) ErrorFault() smithy.ErrorFaul type InvalidAuthorizationStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1134,7 +1426,12 @@ func (e *InvalidAuthorizationStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidAuthorizationStateFault) ErrorCode() string { return "InvalidAuthorizationState" } +func (e *InvalidAuthorizationStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAuthorizationState" + } + return *e.ErrorCodeOverride +} func (e *InvalidAuthorizationStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster parameter group action can not be completed because another task is @@ -1143,6 +1440,8 @@ func (e *InvalidAuthorizationStateFault) ErrorFault() smithy.ErrorFault { return type InvalidClusterParameterGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1156,7 +1455,10 @@ func (e *InvalidClusterParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterParameterGroupStateFault) ErrorCode() string { - return "InvalidClusterParameterGroupState" + if e.ErrorCodeOverride == nil { + return "InvalidClusterParameterGroupState" + } + return *e.ErrorCodeOverride } func (e *InvalidClusterParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1166,6 +1468,8 @@ func (e *InvalidClusterParameterGroupStateFault) ErrorFault() smithy.ErrorFault type InvalidClusterSecurityGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1179,7 +1483,10 @@ func (e *InvalidClusterSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSecurityGroupStateFault) ErrorCode() string { - return "InvalidClusterSecurityGroupState" + if e.ErrorCodeOverride == nil { + return "InvalidClusterSecurityGroupState" + } + return *e.ErrorCodeOverride } func (e *InvalidClusterSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1189,6 +1496,8 @@ func (e *InvalidClusterSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidClusterSnapshotScheduleStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1202,7 +1511,10 @@ func (e *InvalidClusterSnapshotScheduleStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSnapshotScheduleStateFault) ErrorCode() string { - return "InvalidClusterSnapshotScheduleState" + if e.ErrorCodeOverride == nil { + return "InvalidClusterSnapshotScheduleState" + } + return *e.ErrorCodeOverride } func (e *InvalidClusterSnapshotScheduleStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1213,6 +1525,8 @@ func (e *InvalidClusterSnapshotScheduleStateFault) ErrorFault() smithy.ErrorFaul type InvalidClusterSnapshotStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1225,13 +1539,20 @@ func (e *InvalidClusterSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidClusterSnapshotStateFault) ErrorCode() string { return "InvalidClusterSnapshotState" } +func (e *InvalidClusterSnapshotStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClusterSnapshotState" + } + return *e.ErrorCodeOverride +} func (e *InvalidClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified cluster is not in the available state. type InvalidClusterStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1244,13 +1565,20 @@ func (e *InvalidClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidClusterStateFault) ErrorCode() string { return "InvalidClusterState" } +func (e *InvalidClusterStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClusterState" + } + return *e.ErrorCodeOverride +} func (e *InvalidClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster subnet group cannot be deleted because it is in use. type InvalidClusterSubnetGroupStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1264,7 +1592,10 @@ func (e *InvalidClusterSubnetGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSubnetGroupStateFault) ErrorCode() string { - return "InvalidClusterSubnetGroupStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidClusterSubnetGroupStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidClusterSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1274,6 +1605,8 @@ func (e *InvalidClusterSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidClusterSubnetStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1286,13 +1619,20 @@ func (e *InvalidClusterSubnetStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidClusterSubnetStateFault) ErrorCode() string { return "InvalidClusterSubnetStateFault" } +func (e *InvalidClusterSubnetStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClusterSubnetStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidClusterSubnetStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided cluster track name is not valid. type InvalidClusterTrackFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1305,13 +1645,20 @@ func (e *InvalidClusterTrackFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidClusterTrackFault) ErrorCode() string { return "InvalidClusterTrack" } +func (e *InvalidClusterTrackFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClusterTrack" + } + return *e.ErrorCodeOverride +} func (e *InvalidClusterTrackFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is an error with the datashare. type InvalidDataShareFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1324,13 +1671,20 @@ func (e *InvalidDataShareFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDataShareFault) ErrorCode() string { return "InvalidDataShareFault" } +func (e *InvalidDataShareFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDataShareFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidDataShareFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Elastic IP (EIP) is invalid or cannot be found. type InvalidElasticIpFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1343,13 +1697,20 @@ func (e *InvalidElasticIpFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidElasticIpFault) ErrorCode() string { return "InvalidElasticIpFault" } +func (e *InvalidElasticIpFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidElasticIpFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidElasticIpFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The status of the endpoint is not valid. type InvalidEndpointStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1362,7 +1723,12 @@ func (e *InvalidEndpointStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidEndpointStateFault) ErrorCode() string { return "InvalidEndpointState" } +func (e *InvalidEndpointStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEndpointState" + } + return *e.ErrorCodeOverride +} func (e *InvalidEndpointStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified HSM client certificate is not in the available state, or it is @@ -1370,6 +1736,8 @@ func (e *InvalidEndpointStateFault) ErrorFault() smithy.ErrorFault { return smit type InvalidHsmClientCertificateStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1383,7 +1751,10 @@ func (e *InvalidHsmClientCertificateStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidHsmClientCertificateStateFault) ErrorCode() string { - return "InvalidHsmClientCertificateStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidHsmClientCertificateStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidHsmClientCertificateStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1394,6 +1765,8 @@ func (e *InvalidHsmClientCertificateStateFault) ErrorFault() smithy.ErrorFault { type InvalidHsmConfigurationStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1407,7 +1780,10 @@ func (e *InvalidHsmConfigurationStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidHsmConfigurationStateFault) ErrorCode() string { - return "InvalidHsmConfigurationStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidHsmConfigurationStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidHsmConfigurationStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1416,6 +1792,8 @@ func (e *InvalidHsmConfigurationStateFault) ErrorFault() smithy.ErrorFault { ret type InvalidNamespaceFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1428,13 +1806,20 @@ func (e *InvalidNamespaceFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidNamespaceFault) ErrorCode() string { return "InvalidNamespaceFault" } +func (e *InvalidNamespaceFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNamespaceFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidNamespaceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the Reserved Node being exchanged is not in an active state. type InvalidReservedNodeStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1447,13 +1832,20 @@ func (e *InvalidReservedNodeStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidReservedNodeStateFault) ErrorCode() string { return "InvalidReservedNodeState" } +func (e *InvalidReservedNodeStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidReservedNodeState" + } + return *e.ErrorCodeOverride +} func (e *InvalidReservedNodeStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The restore is invalid. type InvalidRestoreFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1466,7 +1858,12 @@ func (e *InvalidRestoreFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidRestoreFault) ErrorCode() string { return "InvalidRestore" } +func (e *InvalidRestoreFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRestore" + } + return *e.ErrorCodeOverride +} func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The retention period specified is either in the past or is not a valid value. @@ -1474,6 +1871,8 @@ func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidRetentionPeriodFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1486,7 +1885,12 @@ func (e *InvalidRetentionPeriodFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidRetentionPeriodFault) ErrorCode() string { return "InvalidRetentionPeriodFault" } +func (e *InvalidRetentionPeriodFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRetentionPeriodFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidRetentionPeriodFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The S3 bucket name is invalid. For more information about naming rules, go to @@ -1496,6 +1900,8 @@ func (e *InvalidRetentionPeriodFault) ErrorFault() smithy.ErrorFault { return sm type InvalidS3BucketNameFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1508,7 +1914,12 @@ func (e *InvalidS3BucketNameFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3BucketNameFault) ErrorCode() string { return "InvalidS3BucketNameFault" } +func (e *InvalidS3BucketNameFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3BucketNameFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3BucketNameFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The string specified for the logging S3 key prefix does not comply with the @@ -1516,6 +1927,8 @@ func (e *InvalidS3BucketNameFault) ErrorFault() smithy.ErrorFault { return smith type InvalidS3KeyPrefixFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1528,13 +1941,20 @@ func (e *InvalidS3KeyPrefixFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3KeyPrefixFault) ErrorCode() string { return "InvalidS3KeyPrefixFault" } +func (e *InvalidS3KeyPrefixFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3KeyPrefixFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3KeyPrefixFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The scheduled action is not valid. type InvalidScheduledActionFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1547,13 +1967,20 @@ func (e *InvalidScheduledActionFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidScheduledActionFault) ErrorCode() string { return "InvalidScheduledAction" } +func (e *InvalidScheduledActionFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidScheduledAction" + } + return *e.ErrorCodeOverride +} func (e *InvalidScheduledActionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The schedule you submitted isn't valid. type InvalidScheduleFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1566,7 +1993,12 @@ func (e *InvalidScheduleFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidScheduleFault) ErrorCode() string { return "InvalidSchedule" } +func (e *InvalidScheduleFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSchedule" + } + return *e.ErrorCodeOverride +} func (e *InvalidScheduleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The snapshot copy grant can't be deleted because it is used by one or more @@ -1574,6 +2006,8 @@ func (e *InvalidScheduleFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type InvalidSnapshotCopyGrantStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1587,7 +2021,10 @@ func (e *InvalidSnapshotCopyGrantStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidSnapshotCopyGrantStateFault) ErrorCode() string { - return "InvalidSnapshotCopyGrantStateFault" + if e.ErrorCodeOverride == nil { + return "InvalidSnapshotCopyGrantStateFault" + } + return *e.ErrorCodeOverride } func (e *InvalidSnapshotCopyGrantStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1598,6 +2035,8 @@ func (e *InvalidSnapshotCopyGrantStateFault) ErrorFault() smithy.ErrorFault { type InvalidSubnet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1610,7 +2049,12 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubnet" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subscription request is invalid because it is a duplicate request. This @@ -1618,6 +2062,8 @@ func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type InvalidSubscriptionStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1630,7 +2076,12 @@ func (e *InvalidSubscriptionStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubscriptionStateFault) ErrorCode() string { return "InvalidSubscriptionStateFault" } +func (e *InvalidSubscriptionStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSubscriptionStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value specified for the sourceDatabaseName, sourceSchemaName, or @@ -1639,6 +2090,8 @@ func (e *InvalidSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return type InvalidTableRestoreArgumentFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1651,13 +2104,20 @@ func (e *InvalidTableRestoreArgumentFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidTableRestoreArgumentFault) ErrorCode() string { return "InvalidTableRestoreArgument" } +func (e *InvalidTableRestoreArgumentFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTableRestoreArgument" + } + return *e.ErrorCodeOverride +} func (e *InvalidTableRestoreArgumentFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag is invalid. type InvalidTagFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1670,13 +2130,20 @@ func (e *InvalidTagFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagFault) ErrorCode() string { return "InvalidTagFault" } +func (e *InvalidTagFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The usage limit is not valid. type InvalidUsageLimitFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1689,13 +2156,20 @@ func (e *InvalidUsageLimitFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidUsageLimitFault) ErrorCode() string { return "InvalidUsageLimit" } +func (e *InvalidUsageLimitFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUsageLimit" + } + return *e.ErrorCodeOverride +} func (e *InvalidUsageLimitFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster subnet group does not cover all Availability Zones. type InvalidVPCNetworkStateFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1708,13 +2182,20 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The encryption key has exceeded its grant limit in Amazon Web Services KMS. type LimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1727,13 +2208,20 @@ func (e *LimitExceededFault) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededFault) ErrorCode() string { return "LimitExceededFault" } +func (e *LimitExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededFault" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation would exceed the number of nodes allowed for a cluster. type NumberOfNodesPerClusterLimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1747,7 +2235,10 @@ func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorCode() string { - return "NumberOfNodesPerClusterLimitExceeded" + if e.ErrorCodeOverride == nil { + return "NumberOfNodesPerClusterLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1760,6 +2251,8 @@ func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFau type NumberOfNodesQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1772,13 +2265,20 @@ func (e *NumberOfNodesQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *NumberOfNodesQuotaExceededFault) ErrorCode() string { return "NumberOfNodesQuotaExceeded" } +func (e *NumberOfNodesQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NumberOfNodesQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *NumberOfNodesQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name of the partner was not found. type PartnerNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1791,13 +2291,20 @@ func (e *PartnerNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *PartnerNotFoundFault) ErrorCode() string { return "PartnerNotFound" } +func (e *PartnerNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PartnerNotFound" + } + return *e.ErrorCodeOverride +} func (e *PartnerNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // User already has a reservation with the given identifier. type ReservedNodeAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1810,13 +2317,20 @@ func (e *ReservedNodeAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeAlreadyExistsFault) ErrorCode() string { return "ReservedNodeAlreadyExists" } +func (e *ReservedNodeAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the reserved node has already been exchanged. type ReservedNodeAlreadyMigratedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1829,13 +2343,20 @@ func (e *ReservedNodeAlreadyMigratedFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeAlreadyMigratedFault) ErrorCode() string { return "ReservedNodeAlreadyMigrated" } +func (e *ReservedNodeAlreadyMigratedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeAlreadyMigrated" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeAlreadyMigratedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The reserved-node exchange status wasn't found. type ReservedNodeExchangeNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1848,13 +2369,20 @@ func (e *ReservedNodeExchangeNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeExchangeNotFoundFault) ErrorCode() string { return "ReservedNodeExchangeNotFond" } +func (e *ReservedNodeExchangeNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeExchangeNotFond" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeExchangeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reserved compute node not found. type ReservedNodeNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1867,13 +2395,20 @@ func (e *ReservedNodeNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeNotFoundFault) ErrorCode() string { return "ReservedNodeNotFound" } +func (e *ReservedNodeNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeNotFound" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Specified offering does not exist. type ReservedNodeOfferingNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1886,7 +2421,12 @@ func (e *ReservedNodeOfferingNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeOfferingNotFoundFault) ErrorCode() string { return "ReservedNodeOfferingNotFound" } +func (e *ReservedNodeOfferingNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeOfferingNotFound" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would exceed the user's compute node quota. For information about @@ -1896,6 +2436,8 @@ func (e *ReservedNodeOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { ret type ReservedNodeQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1908,13 +2450,20 @@ func (e *ReservedNodeQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedNodeQuotaExceededFault) ErrorCode() string { return "ReservedNodeQuotaExceeded" } +func (e *ReservedNodeQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNodeQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *ReservedNodeQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resize operation for the specified cluster is not found. type ResizeNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1927,13 +2476,20 @@ func (e *ResizeNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ResizeNotFoundFault) ErrorCode() string { return "ResizeNotFound" } +func (e *ResizeNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResizeNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResizeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1946,13 +2502,20 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundFault) ErrorCode() string { return "ResourceNotFoundFault" } +func (e *ResourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The scheduled action already exists. type ScheduledActionAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1965,13 +2528,20 @@ func (e *ScheduledActionAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ScheduledActionAlreadyExistsFault) ErrorCode() string { return "ScheduledActionAlreadyExists" } +func (e *ScheduledActionAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ScheduledActionAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ScheduledActionAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The scheduled action cannot be found. type ScheduledActionNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1984,13 +2554,20 @@ func (e *ScheduledActionNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ScheduledActionNotFoundFault) ErrorCode() string { return "ScheduledActionNotFound" } +func (e *ScheduledActionNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ScheduledActionNotFound" + } + return *e.ErrorCodeOverride +} func (e *ScheduledActionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for scheduled actions exceeded. type ScheduledActionQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2003,13 +2580,20 @@ func (e *ScheduledActionQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ScheduledActionQuotaExceededFault) ErrorCode() string { return "ScheduledActionQuotaExceeded" } +func (e *ScheduledActionQuotaExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ScheduledActionQuotaExceeded" + } + return *e.ErrorCodeOverride +} func (e *ScheduledActionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action type specified for a scheduled action is not supported. type ScheduledActionTypeUnsupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2023,7 +2607,10 @@ func (e *ScheduledActionTypeUnsupportedFault) ErrorMessage() string { return *e.Message } func (e *ScheduledActionTypeUnsupportedFault) ErrorCode() string { - return "ScheduledActionTypeUnsupported" + if e.ErrorCodeOverride == nil { + return "ScheduledActionTypeUnsupported" + } + return *e.ErrorCodeOverride } func (e *ScheduledActionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2033,6 +2620,8 @@ func (e *ScheduledActionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault { type ScheduleDefinitionTypeUnsupportedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2046,7 +2635,10 @@ func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorMessage() string { return *e.Message } func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorCode() string { - return "ScheduleDefinitionTypeUnsupported" + if e.ErrorCodeOverride == nil { + return "ScheduleDefinitionTypeUnsupported" + } + return *e.ErrorCodeOverride } func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2056,6 +2648,8 @@ func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault type SnapshotCopyAlreadyDisabledFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2069,7 +2663,10 @@ func (e *SnapshotCopyAlreadyDisabledFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyAlreadyDisabledFault) ErrorCode() string { - return "SnapshotCopyAlreadyDisabledFault" + if e.ErrorCodeOverride == nil { + return "SnapshotCopyAlreadyDisabledFault" + } + return *e.ErrorCodeOverride } func (e *SnapshotCopyAlreadyDisabledFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2077,6 +2674,8 @@ func (e *SnapshotCopyAlreadyDisabledFault) ErrorFault() smithy.ErrorFault { retu type SnapshotCopyAlreadyEnabledFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2090,7 +2689,10 @@ func (e *SnapshotCopyAlreadyEnabledFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyAlreadyEnabledFault) ErrorCode() string { - return "SnapshotCopyAlreadyEnabledFault" + if e.ErrorCodeOverride == nil { + return "SnapshotCopyAlreadyEnabledFault" + } + return *e.ErrorCodeOverride } func (e *SnapshotCopyAlreadyEnabledFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2098,6 +2700,8 @@ func (e *SnapshotCopyAlreadyEnabledFault) ErrorFault() smithy.ErrorFault { retur type SnapshotCopyDisabledFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2110,7 +2714,12 @@ func (e *SnapshotCopyDisabledFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotCopyDisabledFault) ErrorCode() string { return "SnapshotCopyDisabledFault" } +func (e *SnapshotCopyDisabledFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotCopyDisabledFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotCopyDisabledFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The snapshot copy grant can't be created because a grant with the same name @@ -2118,6 +2727,8 @@ func (e *SnapshotCopyDisabledFault) ErrorFault() smithy.ErrorFault { return smit type SnapshotCopyGrantAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2131,7 +2742,10 @@ func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorCode() string { - return "SnapshotCopyGrantAlreadyExistsFault" + if e.ErrorCodeOverride == nil { + return "SnapshotCopyGrantAlreadyExistsFault" + } + return *e.ErrorCodeOverride } func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2142,6 +2756,8 @@ func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type SnapshotCopyGrantNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2154,7 +2770,12 @@ func (e *SnapshotCopyGrantNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotCopyGrantNotFoundFault) ErrorCode() string { return "SnapshotCopyGrantNotFoundFault" } +func (e *SnapshotCopyGrantNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotCopyGrantNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *SnapshotCopyGrantNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Web Services account has exceeded the maximum number of snapshot copy @@ -2162,6 +2783,8 @@ func (e *SnapshotCopyGrantNotFoundFault) ErrorFault() smithy.ErrorFault { return type SnapshotCopyGrantQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2175,7 +2798,10 @@ func (e *SnapshotCopyGrantQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyGrantQuotaExceededFault) ErrorCode() string { - return "SnapshotCopyGrantQuotaExceededFault" + if e.ErrorCodeOverride == nil { + return "SnapshotCopyGrantQuotaExceededFault" + } + return *e.ErrorCodeOverride } func (e *SnapshotCopyGrantQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2185,6 +2811,8 @@ func (e *SnapshotCopyGrantQuotaExceededFault) ErrorFault() smithy.ErrorFault { type SnapshotScheduleAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2198,7 +2826,10 @@ func (e *SnapshotScheduleAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleAlreadyExistsFault) ErrorCode() string { - return "SnapshotScheduleAlreadyExists" + if e.ErrorCodeOverride == nil { + return "SnapshotScheduleAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *SnapshotScheduleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2208,6 +2839,8 @@ func (e *SnapshotScheduleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type SnapshotScheduleNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2220,13 +2853,20 @@ func (e *SnapshotScheduleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotScheduleNotFoundFault) ErrorCode() string { return "SnapshotScheduleNotFound" } +func (e *SnapshotScheduleNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SnapshotScheduleNotFound" + } + return *e.ErrorCodeOverride +} func (e *SnapshotScheduleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the quota of snapshot schedules. type SnapshotScheduleQuotaExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2240,7 +2880,10 @@ func (e *SnapshotScheduleQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleQuotaExceededFault) ErrorCode() string { - return "SnapshotScheduleQuotaExceeded" + if e.ErrorCodeOverride == nil { + return "SnapshotScheduleQuotaExceeded" + } + return *e.ErrorCodeOverride } func (e *SnapshotScheduleQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2250,6 +2893,8 @@ func (e *SnapshotScheduleQuotaExceededFault) ErrorFault() smithy.ErrorFault { type SnapshotScheduleUpdateInProgressFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2263,7 +2908,10 @@ func (e *SnapshotScheduleUpdateInProgressFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleUpdateInProgressFault) ErrorCode() string { - return "SnapshotScheduleUpdateInProgress" + if e.ErrorCodeOverride == nil { + return "SnapshotScheduleUpdateInProgress" + } + return *e.ErrorCodeOverride } func (e *SnapshotScheduleUpdateInProgressFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2274,6 +2922,8 @@ func (e *SnapshotScheduleUpdateInProgressFault) ErrorFault() smithy.ErrorFault { type SNSInvalidTopicFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2286,13 +2936,20 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { } return *e.Message } -func (e *SNSInvalidTopicFault) ErrorCode() string { return "SNSInvalidTopic" } +func (e *SNSInvalidTopicFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSInvalidTopic" + } + return *e.ErrorCodeOverride +} func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You do not have permission to publish to the specified Amazon SNS topic. type SNSNoAuthorizationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2305,7 +2962,12 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { } return *e.Message } -func (e *SNSNoAuthorizationFault) ErrorCode() string { return "SNSNoAuthorization" } +func (e *SNSNoAuthorizationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSNoAuthorization" + } + return *e.ErrorCodeOverride +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not @@ -2313,6 +2975,8 @@ func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy type SNSTopicArnNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2325,13 +2989,20 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SNSTopicArnNotFoundFault) ErrorCode() string { return "SNSTopicArnNotFound" } +func (e *SNSTopicArnNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SNSTopicArnNotFound" + } + return *e.ErrorCodeOverride +} func (e *SNSTopicArnNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Redshift event source could not be found. type SourceNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2344,13 +3015,20 @@ func (e *SourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SourceNotFoundFault) ErrorCode() string { return "SourceNotFound" } +func (e *SourceNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified subnet is already in use by another cluster. type SubnetAlreadyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2363,7 +3041,12 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetAlreadyInUse) ErrorCode() string { return "SubnetAlreadyInUse" } +func (e *SubnetAlreadyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubnetAlreadyInUse" + } + return *e.ErrorCodeOverride +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is already an existing event notification subscription with the specified @@ -2371,6 +3054,8 @@ func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.Faul type SubscriptionAlreadyExistFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2383,7 +3068,12 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionAlreadyExistFault) ErrorCode() string { return "SubscriptionAlreadyExist" } +func (e *SubscriptionAlreadyExistFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionAlreadyExist" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value specified for the event category was not one of the allowed values, or @@ -2392,6 +3082,8 @@ func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return type SubscriptionCategoryNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2404,13 +3096,20 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { return "SubscriptionCategoryNotFound" } +func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionCategoryNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionCategoryNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Amazon Redshift event with the specified event ID does not exist. type SubscriptionEventIdNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2423,7 +3122,12 @@ func (e *SubscriptionEventIdNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionEventIdNotFoundFault) ErrorCode() string { return "SubscriptionEventIdNotFound" } +func (e *SubscriptionEventIdNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionEventIdNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionEventIdNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Amazon Redshift event notification subscription with the specified name does @@ -2431,6 +3135,8 @@ func (e *SubscriptionEventIdNotFoundFault) ErrorFault() smithy.ErrorFault { retu type SubscriptionNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2443,7 +3149,12 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionNotFoundFault) ErrorCode() string { return "SubscriptionNotFound" } +func (e *SubscriptionNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value specified for the event severity was not one of the allowed values, or @@ -2452,6 +3163,8 @@ func (e *SubscriptionNotFoundFault) ErrorFault() smithy.ErrorFault { return smit type SubscriptionSeverityNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2464,7 +3177,12 @@ func (e *SubscriptionSeverityNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionSeverityNotFoundFault) ErrorCode() string { return "SubscriptionSeverityNotFound" } +func (e *SubscriptionSeverityNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionSeverityNotFound" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionSeverityNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of tables in the cluster exceeds the limit for the requested new @@ -2472,6 +3190,8 @@ func (e *SubscriptionSeverityNotFoundFault) ErrorFault() smithy.ErrorFault { ret type TableLimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2484,13 +3204,20 @@ func (e *TableLimitExceededFault) ErrorMessage() string { } return *e.Message } -func (e *TableLimitExceededFault) ErrorCode() string { return "TableLimitExceeded" } +func (e *TableLimitExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TableLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *TableLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified TableRestoreRequestId value was not found. type TableRestoreNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2503,13 +3230,20 @@ func (e *TableRestoreNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *TableRestoreNotFoundFault) ErrorCode() string { return "TableRestoreNotFoundFault" } +func (e *TableRestoreNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TableRestoreNotFoundFault" + } + return *e.ErrorCodeOverride +} func (e *TableRestoreNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the number of tags allowed. type TagLimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2522,13 +3256,20 @@ func (e *TagLimitExceededFault) ErrorMessage() string { } return *e.Message } -func (e *TagLimitExceededFault) ErrorCode() string { return "TagLimitExceededFault" } +func (e *TagLimitExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagLimitExceededFault" + } + return *e.ErrorCodeOverride +} func (e *TagLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your account is not authorized to perform the requested operation. type UnauthorizedOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2541,13 +3282,20 @@ func (e *UnauthorizedOperation) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedOperation) ErrorCode() string { return "UnauthorizedOperation" } +func (e *UnauthorizedOperation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedOperation" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The partner integration is not authorized. type UnauthorizedPartnerIntegrationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2561,7 +3309,10 @@ func (e *UnauthorizedPartnerIntegrationFault) ErrorMessage() string { return *e.Message } func (e *UnauthorizedPartnerIntegrationFault) ErrorCode() string { - return "UnauthorizedPartnerIntegration" + if e.ErrorCodeOverride == nil { + return "UnauthorizedPartnerIntegration" + } + return *e.ErrorCodeOverride } func (e *UnauthorizedPartnerIntegrationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2571,6 +3322,8 @@ func (e *UnauthorizedPartnerIntegrationFault) ErrorFault() smithy.ErrorFault { type UnknownSnapshotCopyRegionFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2583,13 +3336,20 @@ func (e *UnknownSnapshotCopyRegionFault) ErrorMessage() string { } return *e.Message } -func (e *UnknownSnapshotCopyRegionFault) ErrorCode() string { return "UnknownSnapshotCopyRegionFault" } +func (e *UnknownSnapshotCopyRegionFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnknownSnapshotCopyRegionFault" + } + return *e.ErrorCodeOverride +} func (e *UnknownSnapshotCopyRegionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation isn't supported. type UnsupportedOperationFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2602,13 +3362,20 @@ func (e *UnsupportedOperationFault) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationFault) ErrorCode() string { return "UnsupportedOperation" } +func (e *UnsupportedOperationFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperation" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A request option was specified that is not supported. type UnsupportedOptionFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2621,13 +3388,20 @@ func (e *UnsupportedOptionFault) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOptionFault) ErrorCode() string { return "UnsupportedOptionFault" } +func (e *UnsupportedOptionFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOptionFault" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOptionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The usage limit already exists. type UsageLimitAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2640,13 +3414,20 @@ func (e *UsageLimitAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *UsageLimitAlreadyExistsFault) ErrorCode() string { return "UsageLimitAlreadyExists" } +func (e *UsageLimitAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UsageLimitAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *UsageLimitAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The usage limit identifier can't be found. type UsageLimitNotFoundFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2659,5 +3440,10 @@ func (e *UsageLimitNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *UsageLimitNotFoundFault) ErrorCode() string { return "UsageLimitNotFound" } +func (e *UsageLimitNotFoundFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UsageLimitNotFound" + } + return *e.ErrorCodeOverride +} func (e *UsageLimitNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/redshiftdata/types/errors.go b/service/redshiftdata/types/errors.go index fa60348c4fe..78d29b8943e 100644 --- a/service/redshiftdata/types/errors.go +++ b/service/redshiftdata/types/errors.go @@ -11,6 +11,8 @@ import ( type ActiveStatementsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ActiveStatementsExceededException) ErrorMessage() string { return *e.Message } func (e *ActiveStatementsExceededException) ErrorCode() string { - return "ActiveStatementsExceededException" + if e.ErrorCodeOverride == nil { + return "ActiveStatementsExceededException" + } + return *e.ErrorCodeOverride } func (e *ActiveStatementsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -32,6 +37,8 @@ func (e *ActiveStatementsExceededException) ErrorFault() smithy.ErrorFault { ret type BatchExecuteStatementException struct { Message *string + ErrorCodeOverride *string + StatementId *string noSmithyDocumentSerde @@ -46,13 +53,20 @@ func (e *BatchExecuteStatementException) ErrorMessage() string { } return *e.Message } -func (e *BatchExecuteStatementException) ErrorCode() string { return "BatchExecuteStatementException" } +func (e *BatchExecuteStatementException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BatchExecuteStatementException" + } + return *e.ErrorCodeOverride +} func (e *BatchExecuteStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Connection to a database failed. type DatabaseConnectionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +79,20 @@ func (e *DatabaseConnectionException) ErrorMessage() string { } return *e.Message } -func (e *DatabaseConnectionException) ErrorCode() string { return "DatabaseConnectionException" } +func (e *DatabaseConnectionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DatabaseConnectionException" + } + return *e.ErrorCodeOverride +} func (e *DatabaseConnectionException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The SQL statement encountered an environmental error while running. type ExecuteStatementException struct { Message *string + ErrorCodeOverride *string + StatementId *string noSmithyDocumentSerde @@ -86,13 +107,20 @@ func (e *ExecuteStatementException) ErrorMessage() string { } return *e.Message } -func (e *ExecuteStatementException) ErrorCode() string { return "ExecuteStatementException" } +func (e *ExecuteStatementException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExecuteStatementException" + } + return *e.ErrorCodeOverride +} func (e *ExecuteStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The Amazon Redshift Data API operation failed due to invalid input. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +133,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The Amazon Redshift Data API operation failed due to a missing resource. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -126,13 +161,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Redshift Data API operation failed due to invalid input. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,5 +187,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/redshiftserverless/types/errors.go b/service/redshiftserverless/types/errors.go index 0fda932e7e0..e064a964931 100644 --- a/service/redshiftserverless/types/errors.go +++ b/service/redshiftserverless/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The submitted action has conflicts. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is an insufficient capacity to perform the action. type InsufficientCapacityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *InsufficientCapacityException) ErrorMessage() string { } return *e.Message } -func (e *InsufficientCapacityException) ErrorCode() string { return "InsufficientCapacityException" } +func (e *InsufficientCapacityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InsufficientCapacityException" + } + return *e.ErrorCodeOverride +} func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -71,6 +92,8 @@ func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The provided pagination token is invalid. type InvalidPaginationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *InvalidPaginationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPaginationException) ErrorCode() string { return "InvalidPaginationException" } +func (e *InvalidPaginationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPaginationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPaginationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -123,13 +160,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service limit was exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,13 +186,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -163,13 +214,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeded the number of tags allowed for a resource. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -184,13 +242,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input failed to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -203,5 +268,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rekognition/types/errors.go b/service/rekognition/types/errors.go index a53dea1f157..390ef4aaef3 100644 --- a/service/rekognition/types/errors.go +++ b/service/rekognition/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -26,7 +28,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of in-progress human reviews you have has exceeded the number @@ -34,6 +41,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type HumanLoopQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceType *string QuotaCode *string ServiceCode *string @@ -53,7 +62,10 @@ func (e *HumanLoopQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *HumanLoopQuotaExceededException) ErrorCode() string { - return "HumanLoopQuotaExceededException" + if e.ErrorCodeOverride == nil { + return "HumanLoopQuotaExceededException" + } + return *e.ErrorCodeOverride } func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -63,6 +75,8 @@ func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault { retur type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -79,7 +93,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -92,6 +109,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type ImageTooLargeException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -107,13 +126,20 @@ func (e *ImageTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *ImageTooLargeException) ErrorCode() string { return "ImageTooLargeException" } +func (e *ImageTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ImageTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *ImageTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Rekognition experienced a service issue. Try your call again. type InternalServerError struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -129,13 +155,20 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The provided image format is not supported. type InvalidImageFormatException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -151,13 +184,20 @@ func (e *InvalidImageFormatException) ErrorMessage() string { } return *e.Message } -func (e *InvalidImageFormatException) ErrorCode() string { return "InvalidImageFormatException" } +func (e *InvalidImageFormatException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidImageFormatException" + } + return *e.ErrorCodeOverride +} func (e *InvalidImageFormatException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Pagination token in the request is not valid. type InvalidPaginationTokenException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -174,7 +214,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidPaginationTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -183,6 +226,8 @@ func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { retur type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -198,13 +243,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied revision id for the project policy is invalid. type InvalidPolicyRevisionIdException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -221,7 +273,10 @@ func (e *InvalidPolicyRevisionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyRevisionIdException) ErrorCode() string { - return "InvalidPolicyRevisionIdException" + if e.ErrorCodeOverride == nil { + return "InvalidPolicyRevisionIdException" + } + return *e.ErrorCodeOverride } func (e *InvalidPolicyRevisionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -229,6 +284,8 @@ func (e *InvalidPolicyRevisionIdException) ErrorFault() smithy.ErrorFault { retu type InvalidS3ObjectException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -244,7 +301,12 @@ func (e *InvalidS3ObjectException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3ObjectException) ErrorCode() string { return "InvalidS3ObjectException" } +func (e *InvalidS3ObjectException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3ObjectException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Amazon Rekognition service limit was exceeded. For example, if you start too @@ -255,6 +317,8 @@ func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -270,7 +334,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The format of the project policy document that you supplied to PutProjectPolicy @@ -278,6 +347,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MalformedPolicyDocumentException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -294,7 +365,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.ErrorCodeOverride == nil { + return "MalformedPolicyDocumentException" + } + return *e.ErrorCodeOverride } func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -303,6 +377,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type ProvisionedThroughputExceededException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -319,7 +395,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.ErrorCodeOverride == nil { + return "ProvisionedThroughputExceededException" + } + return *e.ErrorCodeOverride } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -329,6 +408,8 @@ func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -344,13 +425,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is already being used. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -366,13 +454,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request cannot be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -388,7 +483,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource isn't ready. For example, this exception occurs when you @@ -396,6 +496,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceNotReadyException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -411,7 +513,12 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The size of the collection exceeds the allowed limit. For more information, see @@ -420,6 +527,8 @@ func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -435,7 +544,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Rekognition is temporarily unable to process the request. Try your call @@ -443,6 +557,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -458,7 +574,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The file size or duration of the supplied media is too large. The maximum file @@ -466,6 +587,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type VideoTooLargeException struct { Message *string + ErrorCodeOverride *string + Code *string Logref *string @@ -481,5 +604,10 @@ func (e *VideoTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *VideoTooLargeException) ErrorCode() string { return "VideoTooLargeException" } +func (e *VideoTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VideoTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *VideoTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/resiliencehub/types/errors.go b/service/resiliencehub/types/errors.go index 059d0922f9b..3d49051438e 100644 --- a/service/resiliencehub/types/errors.go +++ b/service/resiliencehub/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs when a conflict with a previous successful write is detected. This @@ -35,6 +42,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -50,7 +59,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs when there is an internal failure in the AWS Resilience @@ -58,6 +72,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -70,13 +86,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -92,7 +115,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded your service quota. To perform the requested action, remove @@ -101,6 +129,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -113,13 +143,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit on the number of requests per second was exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -134,13 +171,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request was not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -153,5 +197,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/resourceexplorer2/types/errors.go b/service/resourceexplorer2/types/errors.go index ae72254c7a9..e56663bb30d 100644 --- a/service/resourceexplorer2/types/errors.go +++ b/service/resourceexplorer2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You tried to create a new view or index when one already exists, and you either @@ -33,6 +40,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because of internal service error. Try your request again @@ -53,6 +67,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // You specified a resource that doesn't exist. Check the ID or ARN that you used @@ -73,6 +94,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,13 +108,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + Name *string Value *string @@ -107,7 +137,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because you exceeded a rate limit for this operation. For @@ -116,6 +151,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,13 +165,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The principal making the request isn't permitted to perform the operation. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,7 +191,12 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You provided an invalid value for one of the operation's parameters. Check the @@ -155,6 +204,8 @@ func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.F type ValidationException struct { Message *string + ErrorCodeOverride *string + FieldList []ValidationExceptionField noSmithyDocumentSerde @@ -169,5 +220,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/resourcegroups/types/errors.go b/service/resourcegroups/types/errors.go index d6e238ed81c..540b7d5e906 100644 --- a/service/resourcegroups/types/errors.go +++ b/service/resourcegroups/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller isn't authorized to make the request. Check permissions. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred while processing the request. Try again later. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request uses an HTTP method that isn't allowed for the specified resource. type MethodNotAllowedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *MethodNotAllowedException) ErrorMessage() string { } return *e.Message } -func (e *MethodNotAllowedException) ErrorCode() string { return "MethodNotAllowedException" } +func (e *MethodNotAllowedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MethodNotAllowedException" + } + return *e.ErrorCodeOverride +} func (e *MethodNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified resources don't exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,7 +129,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've exceeded throttling limits by making too many requests in a period of @@ -107,6 +142,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,7 +156,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it doesn't have valid credentials for the @@ -127,6 +169,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -139,5 +183,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/resourcegroupstaggingapi/types/errors.go b/service/resourcegroupstaggingapi/types/errors.go index 23d59890929..18a006f12bd 100644 --- a/service/resourcegroupstaggingapi/types/errors.go +++ b/service/resourcegroupstaggingapi/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -49,6 +54,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConstraintViolationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +68,12 @@ func (e *ConstraintViolationException) ErrorMessage() string { } return *e.Message } -func (e *ConstraintViolationException) ErrorCode() string { return "ConstraintViolationException" } +func (e *ConstraintViolationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConstraintViolationException" + } + return *e.ErrorCodeOverride +} func (e *ConstraintViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing failed because of an unknown error, exception, or @@ -69,6 +81,8 @@ func (e *ConstraintViolationException) ErrorFault() smithy.ErrorFault { return s type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,7 +95,12 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // This error indicates one of the following: @@ -105,6 +124,8 @@ func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smith type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -117,7 +138,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A PaginationToken is valid for a maximum of 15 minutes. Your request was denied @@ -125,6 +151,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type PaginationTokenExpiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,7 +166,10 @@ func (e *PaginationTokenExpiredException) ErrorMessage() string { return *e.Message } func (e *PaginationTokenExpiredException) ErrorCode() string { - return "PaginationTokenExpiredException" + if e.ErrorCodeOverride == nil { + return "PaginationTokenExpiredException" + } + return *e.ErrorCodeOverride } func (e *PaginationTokenExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -146,6 +177,8 @@ func (e *PaginationTokenExpiredException) ErrorFault() smithy.ErrorFault { retur type ThrottledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -158,5 +191,10 @@ func (e *ThrottledException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledException) ErrorCode() string { return "ThrottledException" } +func (e *ThrottledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/robomaker/types/errors.go b/service/robomaker/types/errors.go index be73609e240..7b0ae37dfe5 100644 --- a/service/robomaker/types/errors.go +++ b/service/robomaker/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentDeploymentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *ConcurrentDeploymentException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentDeploymentException) ErrorCode() string { return "ConcurrentDeploymentException" } +func (e *ConcurrentDeploymentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentDeploymentException" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentDeploymentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request uses the same client token as a previous, but non-identical request. @@ -32,6 +39,8 @@ func (e *ConcurrentDeploymentException) ErrorFault() smithy.ErrorFault { return type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -55,6 +67,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +81,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A parameter specified in a request is not valid, is unsupported, or cannot be @@ -75,6 +94,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +108,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource exceeds the maximum number allowed, or the number of @@ -95,6 +121,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +135,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +161,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,13 +187,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed due to a temporary failure of the server. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,13 +213,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // AWS RoboMaker is temporarily unable to process the request. Try your call again. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -183,5 +239,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rolesanywhere/types/errors.go b/service/rolesanywhere/types/errors.go index 6428b494e7d..ee6e045ae85 100644 --- a/service/rolesanywhere/types/errors.go +++ b/service/rolesanywhere/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Validation exception error. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,5 +103,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53/types/errors.go b/service/route53/types/errors.go index b2d23838d47..73f4125ff86 100644 --- a/service/route53/types/errors.go +++ b/service/route53/types/errors.go @@ -11,6 +11,8 @@ import ( type CidrBlockInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *CidrBlockInUseException) ErrorMessage() string { } return *e.Message } -func (e *CidrBlockInUseException) ErrorCode() string { return "CidrBlockInUseException" } +func (e *CidrBlockInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CidrBlockInUseException" + } + return *e.ErrorCodeOverride +} func (e *CidrBlockInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A CIDR collection with this name and a different caller reference already exists @@ -31,6 +38,8 @@ func (e *CidrBlockInUseException) ErrorFault() smithy.ErrorFault { return smithy type CidrCollectionAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *CidrCollectionAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *CidrCollectionAlreadyExistsException) ErrorCode() string { - return "CidrCollectionAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "CidrCollectionAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *CidrCollectionAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *CidrCollectionAlreadyExistsException) ErrorFault() smithy.ErrorFault { type CidrCollectionInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +80,12 @@ func (e *CidrCollectionInUseException) ErrorMessage() string { } return *e.Message } -func (e *CidrCollectionInUseException) ErrorCode() string { return "CidrCollectionInUseException" } +func (e *CidrCollectionInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CidrCollectionInUseException" + } + return *e.ErrorCodeOverride +} func (e *CidrCollectionInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The CIDR collection version you provided, doesn't match the one in the @@ -74,6 +93,8 @@ func (e *CidrCollectionInUseException) ErrorFault() smithy.ErrorFault { return s type CidrCollectionVersionMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +108,10 @@ func (e *CidrCollectionVersionMismatchException) ErrorMessage() string { return *e.Message } func (e *CidrCollectionVersionMismatchException) ErrorCode() string { - return "CidrCollectionVersionMismatchException" + if e.ErrorCodeOverride == nil { + return "CidrCollectionVersionMismatchException" + } + return *e.ErrorCodeOverride } func (e *CidrCollectionVersionMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -98,6 +122,8 @@ func (e *CidrCollectionVersionMismatchException) ErrorFault() smithy.ErrorFault type ConcurrentModification struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -110,7 +136,12 @@ func (e *ConcurrentModification) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentModification) ErrorCode() string { return "ConcurrentModification" } +func (e *ConcurrentModification) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentModification" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentModification) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cause of this error depends on the operation that you're performing: @@ -135,6 +166,8 @@ func (e *ConcurrentModification) ErrorFault() smithy.ErrorFault { return smithy. type ConflictingDomainExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,7 +180,12 @@ func (e *ConflictingDomainExists) ErrorMessage() string { } return *e.Message } -func (e *ConflictingDomainExists) ErrorCode() string { return "ConflictingDomainExists" } +func (e *ConflictingDomainExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictingDomainExists" + } + return *e.ErrorCodeOverride +} func (e *ConflictingDomainExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You tried to update a traffic policy instance by using a traffic policy version @@ -157,6 +195,8 @@ func (e *ConflictingDomainExists) ErrorFault() smithy.ErrorFault { return smithy type ConflictingTypes struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +209,12 @@ func (e *ConflictingTypes) ErrorMessage() string { } return *e.Message } -func (e *ConflictingTypes) ErrorCode() string { return "ConflictingTypes" } +func (e *ConflictingTypes) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictingTypes" + } + return *e.ErrorCodeOverride +} func (e *ConflictingTypes) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A delegation set with the same owner and caller reference combination has @@ -177,6 +222,8 @@ func (e *ConflictingTypes) ErrorFault() smithy.ErrorFault { return smithy.FaultC type DelegationSetAlreadyCreated struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -189,13 +236,20 @@ func (e *DelegationSetAlreadyCreated) ErrorMessage() string { } return *e.Message } -func (e *DelegationSetAlreadyCreated) ErrorCode() string { return "DelegationSetAlreadyCreated" } +func (e *DelegationSetAlreadyCreated) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DelegationSetAlreadyCreated" + } + return *e.ErrorCodeOverride +} func (e *DelegationSetAlreadyCreated) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified delegation set has already been marked as reusable. type DelegationSetAlreadyReusable struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -208,7 +262,12 @@ func (e *DelegationSetAlreadyReusable) ErrorMessage() string { } return *e.Message } -func (e *DelegationSetAlreadyReusable) ErrorCode() string { return "DelegationSetAlreadyReusable" } +func (e *DelegationSetAlreadyReusable) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DelegationSetAlreadyReusable" + } + return *e.ErrorCodeOverride +} func (e *DelegationSetAlreadyReusable) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified delegation contains associated hosted zones which must be deleted @@ -216,6 +275,8 @@ func (e *DelegationSetAlreadyReusable) ErrorFault() smithy.ErrorFault { return s type DelegationSetInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -228,7 +289,12 @@ func (e *DelegationSetInUse) ErrorMessage() string { } return *e.Message } -func (e *DelegationSetInUse) ErrorCode() string { return "DelegationSetInUse" } +func (e *DelegationSetInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DelegationSetInUse" + } + return *e.ErrorCodeOverride +} func (e *DelegationSetInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can create a hosted zone that has the same name as an existing hosted zone @@ -239,6 +305,8 @@ func (e *DelegationSetInUse) ErrorFault() smithy.ErrorFault { return smithy.Faul type DelegationSetNotAvailable struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -251,13 +319,20 @@ func (e *DelegationSetNotAvailable) ErrorMessage() string { } return *e.Message } -func (e *DelegationSetNotAvailable) ErrorCode() string { return "DelegationSetNotAvailable" } +func (e *DelegationSetNotAvailable) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DelegationSetNotAvailable" + } + return *e.ErrorCodeOverride +} func (e *DelegationSetNotAvailable) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A reusable delegation set with the specified ID does not exist. type DelegationSetNotReusable struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -270,13 +345,20 @@ func (e *DelegationSetNotReusable) ErrorMessage() string { } return *e.Message } -func (e *DelegationSetNotReusable) ErrorCode() string { return "DelegationSetNotReusable" } +func (e *DelegationSetNotReusable) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DelegationSetNotReusable" + } + return *e.ErrorCodeOverride +} func (e *DelegationSetNotReusable) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The hosted zone doesn't have any DNSSEC resources. type DNSSECNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -289,7 +371,12 @@ func (e *DNSSECNotFound) ErrorMessage() string { } return *e.Message } -func (e *DNSSECNotFound) ErrorCode() string { return "DNSSECNotFound" } +func (e *DNSSECNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DNSSECNotFound" + } + return *e.ErrorCodeOverride +} func (e *DNSSECNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The health check you're attempting to create already exists. Amazon Route 53 @@ -305,6 +392,8 @@ func (e *DNSSECNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultCli type HealthCheckAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -317,13 +406,20 @@ func (e *HealthCheckAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *HealthCheckAlreadyExists) ErrorCode() string { return "HealthCheckAlreadyExists" } +func (e *HealthCheckAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HealthCheckAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *HealthCheckAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error code is not in use. type HealthCheckInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -336,7 +432,12 @@ func (e *HealthCheckInUse) ErrorMessage() string { } return *e.Message } -func (e *HealthCheckInUse) ErrorCode() string { return "HealthCheckInUse" } +func (e *HealthCheckInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HealthCheckInUse" + } + return *e.ErrorCodeOverride +} func (e *HealthCheckInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of HealthCheckVersion in the request doesn't match the value of @@ -344,6 +445,8 @@ func (e *HealthCheckInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultC type HealthCheckVersionMismatch struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -356,7 +459,12 @@ func (e *HealthCheckVersionMismatch) ErrorMessage() string { } return *e.Message } -func (e *HealthCheckVersionMismatch) ErrorCode() string { return "HealthCheckVersionMismatch" } +func (e *HealthCheckVersionMismatch) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HealthCheckVersionMismatch" + } + return *e.ErrorCodeOverride +} func (e *HealthCheckVersionMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The hosted zone you're trying to create already exists. Amazon Route 53 returns @@ -365,6 +473,8 @@ func (e *HealthCheckVersionMismatch) ErrorFault() smithy.ErrorFault { return smi type HostedZoneAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -377,13 +487,20 @@ func (e *HostedZoneAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *HostedZoneAlreadyExists) ErrorCode() string { return "HostedZoneAlreadyExists" } +func (e *HostedZoneAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HostedZoneAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *HostedZoneAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The hosted zone contains resource records that are not SOA or NS records. type HostedZoneNotEmpty struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -396,13 +513,20 @@ func (e *HostedZoneNotEmpty) ErrorMessage() string { } return *e.Message } -func (e *HostedZoneNotEmpty) ErrorCode() string { return "HostedZoneNotEmpty" } +func (e *HostedZoneNotEmpty) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HostedZoneNotEmpty" + } + return *e.ErrorCodeOverride +} func (e *HostedZoneNotEmpty) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified HostedZone can't be found. type HostedZoneNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -415,13 +539,20 @@ func (e *HostedZoneNotFound) ErrorMessage() string { } return *e.Message } -func (e *HostedZoneNotFound) ErrorCode() string { return "HostedZoneNotFound" } +func (e *HostedZoneNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HostedZoneNotFound" + } + return *e.ErrorCodeOverride +} func (e *HostedZoneNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified hosted zone is a public hosted zone, not a private hosted zone. type HostedZoneNotPrivate struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -434,7 +565,12 @@ func (e *HostedZoneNotPrivate) ErrorMessage() string { } return *e.Message } -func (e *HostedZoneNotPrivate) ErrorCode() string { return "HostedZoneNotPrivate" } +func (e *HostedZoneNotPrivate) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HostedZoneNotPrivate" + } + return *e.ErrorCodeOverride +} func (e *HostedZoneNotPrivate) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The hosted zone nameservers don't match the parent nameservers. The hosted zone @@ -442,6 +578,8 @@ func (e *HostedZoneNotPrivate) ErrorFault() smithy.ErrorFault { return smithy.Fa type HostedZonePartiallyDelegated struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -454,7 +592,12 @@ func (e *HostedZonePartiallyDelegated) ErrorMessage() string { } return *e.Message } -func (e *HostedZonePartiallyDelegated) ErrorCode() string { return "HostedZonePartiallyDelegated" } +func (e *HostedZonePartiallyDelegated) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HostedZonePartiallyDelegated" + } + return *e.ErrorCodeOverride +} func (e *HostedZonePartiallyDelegated) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you're trying to access is unsupported on this Amazon Route 53 @@ -462,6 +605,8 @@ func (e *HostedZonePartiallyDelegated) ErrorFault() smithy.ErrorFault { return s type IncompatibleVersion struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -474,7 +619,12 @@ func (e *IncompatibleVersion) ErrorMessage() string { } return *e.Message } -func (e *IncompatibleVersion) ErrorCode() string { return "IncompatibleVersion" } +func (e *IncompatibleVersion) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatibleVersion" + } + return *e.ErrorCodeOverride +} func (e *IncompatibleVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Route 53 doesn't have the permissions required to create log streams and @@ -501,6 +651,8 @@ func (e *IncompatibleVersion) ErrorFault() smithy.ErrorFault { return smithy.Fau type InsufficientCloudWatchLogsResourcePolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -514,7 +666,10 @@ func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorMessage() string { return *e.Message } func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorCode() string { - return "InsufficientCloudWatchLogsResourcePolicy" + if e.ErrorCodeOverride == nil { + return "InsufficientCloudWatchLogsResourcePolicy" + } + return *e.ErrorCodeOverride } func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -524,6 +679,8 @@ func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorFault() smithy.ErrorFaul type InvalidArgument struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -536,7 +693,12 @@ func (e *InvalidArgument) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgument) ErrorCode() string { return "InvalidArgument" } +func (e *InvalidArgument) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgument" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception contains a list of messages that might contain one or more error @@ -544,6 +706,8 @@ func (e *InvalidArgument) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type InvalidChangeBatch struct { Message *string + ErrorCodeOverride *string + Messages []string noSmithyDocumentSerde @@ -558,13 +722,20 @@ func (e *InvalidChangeBatch) ErrorMessage() string { } return *e.Message } -func (e *InvalidChangeBatch) ErrorCode() string { return "InvalidChangeBatch" } +func (e *InvalidChangeBatch) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidChangeBatch" + } + return *e.ErrorCodeOverride +} func (e *InvalidChangeBatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified domain name is not valid. type InvalidDomainName struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -577,13 +748,20 @@ func (e *InvalidDomainName) ErrorMessage() string { } return *e.Message } -func (e *InvalidDomainName) ErrorCode() string { return "InvalidDomainName" } +func (e *InvalidDomainName) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDomainName" + } + return *e.ErrorCodeOverride +} func (e *InvalidDomainName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input is not valid. type InvalidInput struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -596,13 +774,20 @@ func (e *InvalidInput) ErrorMessage() string { } return *e.Message } -func (e *InvalidInput) ErrorCode() string { return "InvalidInput" } +func (e *InvalidInput) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInput" + } + return *e.ErrorCodeOverride +} func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The key-signing key (KSK) name that you specified isn't a valid name. type InvalidKeySigningKeyName struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -615,7 +800,12 @@ func (e *InvalidKeySigningKeyName) ErrorMessage() string { } return *e.Message } -func (e *InvalidKeySigningKeyName) ErrorCode() string { return "InvalidKeySigningKeyName" } +func (e *InvalidKeySigningKeyName) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKeySigningKeyName" + } + return *e.ErrorCodeOverride +} func (e *InvalidKeySigningKeyName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The key-signing key (KSK) status isn't valid or another KSK has the status @@ -623,6 +813,8 @@ func (e *InvalidKeySigningKeyName) ErrorFault() smithy.ErrorFault { return smith type InvalidKeySigningKeyStatus struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -635,7 +827,12 @@ func (e *InvalidKeySigningKeyStatus) ErrorMessage() string { } return *e.Message } -func (e *InvalidKeySigningKeyStatus) ErrorCode() string { return "InvalidKeySigningKeyStatus" } +func (e *InvalidKeySigningKeyStatus) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKeySigningKeyStatus" + } + return *e.ErrorCodeOverride +} func (e *InvalidKeySigningKeyStatus) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The KeyManagementServiceArn that you specified isn't valid to use with DNSSEC @@ -643,6 +840,8 @@ func (e *InvalidKeySigningKeyStatus) ErrorFault() smithy.ErrorFault { return smi type InvalidKMSArn struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -655,7 +854,12 @@ func (e *InvalidKMSArn) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSArn) ErrorCode() string { return "InvalidKMSArn" } +func (e *InvalidKMSArn) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKMSArn" + } + return *e.ErrorCodeOverride +} func (e *InvalidKMSArn) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value that you specified to get the second or subsequent page of results is @@ -663,6 +867,8 @@ func (e *InvalidKMSArn) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type InvalidPaginationToken struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -675,7 +881,12 @@ func (e *InvalidPaginationToken) ErrorMessage() string { } return *e.Message } -func (e *InvalidPaginationToken) ErrorCode() string { return "InvalidPaginationToken" } +func (e *InvalidPaginationToken) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPaginationToken" + } + return *e.ErrorCodeOverride +} func (e *InvalidPaginationToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your hosted zone status isn't valid for this operation. In the hosted zone, @@ -683,6 +894,8 @@ func (e *InvalidPaginationToken) ErrorFault() smithy.ErrorFault { return smithy. type InvalidSigningStatus struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -695,7 +908,12 @@ func (e *InvalidSigningStatus) ErrorMessage() string { } return *e.Message } -func (e *InvalidSigningStatus) ErrorCode() string { return "InvalidSigningStatus" } +func (e *InvalidSigningStatus) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSigningStatus" + } + return *e.ErrorCodeOverride +} func (e *InvalidSigningStatus) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The format of the traffic policy document that you specified in the Document @@ -703,6 +921,8 @@ func (e *InvalidSigningStatus) ErrorFault() smithy.ErrorFault { return smithy.Fa type InvalidTrafficPolicyDocument struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -715,7 +935,12 @@ func (e *InvalidTrafficPolicyDocument) ErrorMessage() string { } return *e.Message } -func (e *InvalidTrafficPolicyDocument) ErrorCode() string { return "InvalidTrafficPolicyDocument" } +func (e *InvalidTrafficPolicyDocument) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTrafficPolicyDocument" + } + return *e.ErrorCodeOverride +} func (e *InvalidTrafficPolicyDocument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The VPC ID that you specified either isn't a valid ID or the current account is @@ -723,6 +948,8 @@ func (e *InvalidTrafficPolicyDocument) ErrorFault() smithy.ErrorFault { return s type InvalidVPCId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -735,7 +962,12 @@ func (e *InvalidVPCId) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCId) ErrorCode() string { return "InvalidVPCId" } +func (e *InvalidVPCId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidVPCId" + } + return *e.ErrorCodeOverride +} func (e *InvalidVPCId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've already created a key-signing key (KSK) with this name or with the same @@ -743,6 +975,8 @@ func (e *InvalidVPCId) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type KeySigningKeyAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -755,13 +989,20 @@ func (e *KeySigningKeyAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *KeySigningKeyAlreadyExists) ErrorCode() string { return "KeySigningKeyAlreadyExists" } +func (e *KeySigningKeyAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KeySigningKeyAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *KeySigningKeyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The key-signing key (KSK) is specified in a parent DS record. type KeySigningKeyInParentDSRecord struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -774,7 +1015,12 @@ func (e *KeySigningKeyInParentDSRecord) ErrorMessage() string { } return *e.Message } -func (e *KeySigningKeyInParentDSRecord) ErrorCode() string { return "KeySigningKeyInParentDSRecord" } +func (e *KeySigningKeyInParentDSRecord) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KeySigningKeyInParentDSRecord" + } + return *e.ErrorCodeOverride +} func (e *KeySigningKeyInParentDSRecord) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The key-signing key (KSK) that you specified can't be deactivated because it's @@ -783,6 +1029,8 @@ func (e *KeySigningKeyInParentDSRecord) ErrorFault() smithy.ErrorFault { return type KeySigningKeyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -795,13 +1043,20 @@ func (e *KeySigningKeyInUse) ErrorMessage() string { } return *e.Message } -func (e *KeySigningKeyInUse) ErrorCode() string { return "KeySigningKeyInUse" } +func (e *KeySigningKeyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KeySigningKeyInUse" + } + return *e.ErrorCodeOverride +} func (e *KeySigningKeyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A key-signing key (KSK) with ACTIVE status wasn't found. type KeySigningKeyWithActiveStatusNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -815,7 +1070,10 @@ func (e *KeySigningKeyWithActiveStatusNotFound) ErrorMessage() string { return *e.Message } func (e *KeySigningKeyWithActiveStatusNotFound) ErrorCode() string { - return "KeySigningKeyWithActiveStatusNotFound" + if e.ErrorCodeOverride == nil { + return "KeySigningKeyWithActiveStatusNotFound" + } + return *e.ErrorCodeOverride } func (e *KeySigningKeyWithActiveStatusNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -827,6 +1085,8 @@ func (e *KeySigningKeyWithActiveStatusNotFound) ErrorFault() smithy.ErrorFault { type LastVPCAssociation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -839,7 +1099,12 @@ func (e *LastVPCAssociation) ErrorMessage() string { } return *e.Message } -func (e *LastVPCAssociation) ErrorCode() string { return "LastVPCAssociation" } +func (e *LastVPCAssociation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LastVPCAssociation" + } + return *e.ErrorCodeOverride +} func (e *LastVPCAssociation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation can't be completed because the current account has reached the @@ -849,6 +1114,8 @@ func (e *LastVPCAssociation) ErrorFault() smithy.ErrorFault { return smithy.Faul type LimitsExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -861,13 +1128,20 @@ func (e *LimitsExceeded) ErrorMessage() string { } return *e.Message } -func (e *LimitsExceeded) ErrorCode() string { return "LimitsExceeded" } +func (e *LimitsExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitsExceeded" + } + return *e.ErrorCodeOverride +} func (e *LimitsExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A change with the specified change ID does not exist. type NoSuchChange struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -880,13 +1154,20 @@ func (e *NoSuchChange) ErrorMessage() string { } return *e.Message } -func (e *NoSuchChange) ErrorCode() string { return "NoSuchChange" } +func (e *NoSuchChange) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchChange" + } + return *e.ErrorCodeOverride +} func (e *NoSuchChange) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The CIDR collection you specified, doesn't exist. type NoSuchCidrCollectionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -899,13 +1180,20 @@ func (e *NoSuchCidrCollectionException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchCidrCollectionException) ErrorCode() string { return "NoSuchCidrCollectionException" } +func (e *NoSuchCidrCollectionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchCidrCollectionException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchCidrCollectionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The CIDR collection location doesn't match any locations in your account. type NoSuchCidrLocationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -918,13 +1206,20 @@ func (e *NoSuchCidrLocationException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchCidrLocationException) ErrorCode() string { return "NoSuchCidrLocationException" } +func (e *NoSuchCidrLocationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchCidrLocationException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchCidrLocationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is no CloudWatch Logs log group with the specified ARN. type NoSuchCloudWatchLogsLogGroup struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -937,13 +1232,20 @@ func (e *NoSuchCloudWatchLogsLogGroup) ErrorMessage() string { } return *e.Message } -func (e *NoSuchCloudWatchLogsLogGroup) ErrorCode() string { return "NoSuchCloudWatchLogsLogGroup" } +func (e *NoSuchCloudWatchLogsLogGroup) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchCloudWatchLogsLogGroup" + } + return *e.ErrorCodeOverride +} func (e *NoSuchCloudWatchLogsLogGroup) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A reusable delegation set with the specified ID does not exist. type NoSuchDelegationSet struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -956,7 +1258,12 @@ func (e *NoSuchDelegationSet) ErrorMessage() string { } return *e.Message } -func (e *NoSuchDelegationSet) ErrorCode() string { return "NoSuchDelegationSet" } +func (e *NoSuchDelegationSet) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchDelegationSet" + } + return *e.ErrorCodeOverride +} func (e *NoSuchDelegationSet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Route 53 doesn't support the specified geographic location. For a list of @@ -966,6 +1273,8 @@ func (e *NoSuchDelegationSet) ErrorFault() smithy.ErrorFault { return smithy.Fau type NoSuchGeoLocation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -978,13 +1287,20 @@ func (e *NoSuchGeoLocation) ErrorMessage() string { } return *e.Message } -func (e *NoSuchGeoLocation) ErrorCode() string { return "NoSuchGeoLocation" } +func (e *NoSuchGeoLocation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchGeoLocation" + } + return *e.ErrorCodeOverride +} func (e *NoSuchGeoLocation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No health check exists with the specified ID. type NoSuchHealthCheck struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -997,13 +1313,20 @@ func (e *NoSuchHealthCheck) ErrorMessage() string { } return *e.Message } -func (e *NoSuchHealthCheck) ErrorCode() string { return "NoSuchHealthCheck" } +func (e *NoSuchHealthCheck) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchHealthCheck" + } + return *e.ErrorCodeOverride +} func (e *NoSuchHealthCheck) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No hosted zone exists with the ID that you specified. type NoSuchHostedZone struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1016,13 +1339,20 @@ func (e *NoSuchHostedZone) ErrorMessage() string { } return *e.Message } -func (e *NoSuchHostedZone) ErrorCode() string { return "NoSuchHostedZone" } +func (e *NoSuchHostedZone) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchHostedZone" + } + return *e.ErrorCodeOverride +} func (e *NoSuchHostedZone) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key-signing key (KSK) doesn't exist. type NoSuchKeySigningKey struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1035,13 +1365,20 @@ func (e *NoSuchKeySigningKey) ErrorMessage() string { } return *e.Message } -func (e *NoSuchKeySigningKey) ErrorCode() string { return "NoSuchKeySigningKey" } +func (e *NoSuchKeySigningKey) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchKeySigningKey" + } + return *e.ErrorCodeOverride +} func (e *NoSuchKeySigningKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is no DNS query logging configuration with the specified ID. type NoSuchQueryLoggingConfig struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1054,13 +1391,20 @@ func (e *NoSuchQueryLoggingConfig) ErrorMessage() string { } return *e.Message } -func (e *NoSuchQueryLoggingConfig) ErrorCode() string { return "NoSuchQueryLoggingConfig" } +func (e *NoSuchQueryLoggingConfig) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchQueryLoggingConfig" + } + return *e.ErrorCodeOverride +} func (e *NoSuchQueryLoggingConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No traffic policy exists with the specified ID. type NoSuchTrafficPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1073,13 +1417,20 @@ func (e *NoSuchTrafficPolicy) ErrorMessage() string { } return *e.Message } -func (e *NoSuchTrafficPolicy) ErrorCode() string { return "NoSuchTrafficPolicy" } +func (e *NoSuchTrafficPolicy) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchTrafficPolicy" + } + return *e.ErrorCodeOverride +} func (e *NoSuchTrafficPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No traffic policy instance exists with the specified ID. type NoSuchTrafficPolicyInstance struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1092,7 +1443,12 @@ func (e *NoSuchTrafficPolicyInstance) ErrorMessage() string { } return *e.Message } -func (e *NoSuchTrafficPolicyInstance) ErrorCode() string { return "NoSuchTrafficPolicyInstance" } +func (e *NoSuchTrafficPolicyInstance) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchTrafficPolicyInstance" + } + return *e.ErrorCodeOverride +} func (e *NoSuchTrafficPolicyInstance) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Associating the specified VPC with the specified hosted zone has not been @@ -1100,6 +1456,8 @@ func (e *NoSuchTrafficPolicyInstance) ErrorFault() smithy.ErrorFault { return sm type NotAuthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1112,7 +1470,12 @@ func (e *NotAuthorizedException) ErrorMessage() string { } return *e.Message } -func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } +func (e *NotAuthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotAuthorizedException" + } + return *e.ErrorCodeOverride +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // If Amazon Route 53 can't process a request before the next request arrives, it @@ -1123,6 +1486,8 @@ func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy. type PriorRequestNotComplete struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1135,7 +1500,12 @@ func (e *PriorRequestNotComplete) ErrorMessage() string { } return *e.Message } -func (e *PriorRequestNotComplete) ErrorCode() string { return "PriorRequestNotComplete" } +func (e *PriorRequestNotComplete) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PriorRequestNotComplete" + } + return *e.ErrorCodeOverride +} func (e *PriorRequestNotComplete) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You're trying to associate a VPC with a public hosted zone. Amazon Route 53 @@ -1143,6 +1513,8 @@ func (e *PriorRequestNotComplete) ErrorFault() smithy.ErrorFault { return smithy type PublicZoneVPCAssociation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1155,7 +1527,12 @@ func (e *PublicZoneVPCAssociation) ErrorMessage() string { } return *e.Message } -func (e *PublicZoneVPCAssociation) ErrorCode() string { return "PublicZoneVPCAssociation" } +func (e *PublicZoneVPCAssociation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PublicZoneVPCAssociation" + } + return *e.ErrorCodeOverride +} func (e *PublicZoneVPCAssociation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can create only one query logging configuration for a hosted zone, and a @@ -1163,6 +1540,8 @@ func (e *PublicZoneVPCAssociation) ErrorFault() smithy.ErrorFault { return smith type QueryLoggingConfigAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1176,7 +1555,10 @@ func (e *QueryLoggingConfigAlreadyExists) ErrorMessage() string { return *e.Message } func (e *QueryLoggingConfigAlreadyExists) ErrorCode() string { - return "QueryLoggingConfigAlreadyExists" + if e.ErrorCodeOverride == nil { + return "QueryLoggingConfigAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *QueryLoggingConfigAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1184,6 +1566,8 @@ func (e *QueryLoggingConfigAlreadyExists) ErrorFault() smithy.ErrorFault { retur type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1196,7 +1580,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This health check can't be created because the current account has reached the @@ -1214,6 +1603,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type TooManyHealthChecks struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1226,7 +1617,12 @@ func (e *TooManyHealthChecks) ErrorMessage() string { } return *e.Message } -func (e *TooManyHealthChecks) ErrorCode() string { return "TooManyHealthChecks" } +func (e *TooManyHealthChecks) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyHealthChecks" + } + return *e.ErrorCodeOverride +} func (e *TooManyHealthChecks) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation can't be completed either because the current account has reached @@ -1245,6 +1641,8 @@ func (e *TooManyHealthChecks) ErrorFault() smithy.ErrorFault { return smithy.Fau type TooManyHostedZones struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1257,7 +1655,12 @@ func (e *TooManyHostedZones) ErrorMessage() string { } return *e.Message } -func (e *TooManyHostedZones) ErrorCode() string { return "TooManyHostedZones" } +func (e *TooManyHostedZones) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyHostedZones" + } + return *e.ErrorCodeOverride +} func (e *TooManyHostedZones) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit for the number of key-signing keys (KSKs). Remove at @@ -1265,6 +1668,8 @@ func (e *TooManyHostedZones) ErrorFault() smithy.ErrorFault { return smithy.Faul type TooManyKeySigningKeys struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1277,7 +1682,12 @@ func (e *TooManyKeySigningKeys) ErrorMessage() string { } return *e.Message } -func (e *TooManyKeySigningKeys) ErrorCode() string { return "TooManyKeySigningKeys" } +func (e *TooManyKeySigningKeys) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyKeySigningKeys" + } + return *e.ErrorCodeOverride +} func (e *TooManyKeySigningKeys) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This traffic policy can't be created because the current account has reached the @@ -1292,6 +1702,8 @@ func (e *TooManyKeySigningKeys) ErrorFault() smithy.ErrorFault { return smithy.F type TooManyTrafficPolicies struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1304,7 +1716,12 @@ func (e *TooManyTrafficPolicies) ErrorMessage() string { } return *e.Message } -func (e *TooManyTrafficPolicies) ErrorCode() string { return "TooManyTrafficPolicies" } +func (e *TooManyTrafficPolicies) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTrafficPolicies" + } + return *e.ErrorCodeOverride +} func (e *TooManyTrafficPolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This traffic policy instance can't be created because the current account has @@ -1319,6 +1736,8 @@ func (e *TooManyTrafficPolicies) ErrorFault() smithy.ErrorFault { return smithy. type TooManyTrafficPolicyInstances struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1331,7 +1750,12 @@ func (e *TooManyTrafficPolicyInstances) ErrorMessage() string { } return *e.Message } -func (e *TooManyTrafficPolicyInstances) ErrorCode() string { return "TooManyTrafficPolicyInstances" } +func (e *TooManyTrafficPolicyInstances) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTrafficPolicyInstances" + } + return *e.ErrorCodeOverride +} func (e *TooManyTrafficPolicyInstances) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This traffic policy version can't be created because you've reached the limit of @@ -1345,6 +1769,8 @@ func (e *TooManyTrafficPolicyInstances) ErrorFault() smithy.ErrorFault { return type TooManyTrafficPolicyVersionsForCurrentPolicy struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1358,7 +1784,10 @@ func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorCode() string { - return "TooManyTrafficPolicyVersionsForCurrentPolicy" + if e.ErrorCodeOverride == nil { + return "TooManyTrafficPolicyVersionsForCurrentPolicy" + } + return *e.ErrorCodeOverride } func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1372,6 +1801,8 @@ func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorFault() smithy.Error type TooManyVPCAssociationAuthorizations struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1385,7 +1816,10 @@ func (e *TooManyVPCAssociationAuthorizations) ErrorMessage() string { return *e.Message } func (e *TooManyVPCAssociationAuthorizations) ErrorCode() string { - return "TooManyVPCAssociationAuthorizations" + if e.ErrorCodeOverride == nil { + return "TooManyVPCAssociationAuthorizations" + } + return *e.ErrorCodeOverride } func (e *TooManyVPCAssociationAuthorizations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1395,6 +1829,8 @@ func (e *TooManyVPCAssociationAuthorizations) ErrorFault() smithy.ErrorFault { type TrafficPolicyAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1407,13 +1843,20 @@ func (e *TrafficPolicyAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *TrafficPolicyAlreadyExists) ErrorCode() string { return "TrafficPolicyAlreadyExists" } +func (e *TrafficPolicyAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrafficPolicyAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *TrafficPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is already a traffic policy instance with the specified ID. type TrafficPolicyInstanceAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1427,7 +1870,10 @@ func (e *TrafficPolicyInstanceAlreadyExists) ErrorMessage() string { return *e.Message } func (e *TrafficPolicyInstanceAlreadyExists) ErrorCode() string { - return "TrafficPolicyInstanceAlreadyExists" + if e.ErrorCodeOverride == nil { + return "TrafficPolicyInstanceAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *TrafficPolicyInstanceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1438,6 +1884,8 @@ func (e *TrafficPolicyInstanceAlreadyExists) ErrorFault() smithy.ErrorFault { type TrafficPolicyInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1450,7 +1898,12 @@ func (e *TrafficPolicyInUse) ErrorMessage() string { } return *e.Message } -func (e *TrafficPolicyInUse) ErrorCode() string { return "TrafficPolicyInUse" } +func (e *TrafficPolicyInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TrafficPolicyInUse" + } + return *e.ErrorCodeOverride +} func (e *TrafficPolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The VPC that you specified is not authorized to be associated with the hosted @@ -1458,6 +1911,8 @@ func (e *TrafficPolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.Faul type VPCAssociationAuthorizationNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1471,7 +1926,10 @@ func (e *VPCAssociationAuthorizationNotFound) ErrorMessage() string { return *e.Message } func (e *VPCAssociationAuthorizationNotFound) ErrorCode() string { - return "VPCAssociationAuthorizationNotFound" + if e.ErrorCodeOverride == nil { + return "VPCAssociationAuthorizationNotFound" + } + return *e.ErrorCodeOverride } func (e *VPCAssociationAuthorizationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1481,6 +1939,8 @@ func (e *VPCAssociationAuthorizationNotFound) ErrorFault() smithy.ErrorFault { type VPCAssociationNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1493,5 +1953,10 @@ func (e *VPCAssociationNotFound) ErrorMessage() string { } return *e.Message } -func (e *VPCAssociationNotFound) ErrorCode() string { return "VPCAssociationNotFound" } +func (e *VPCAssociationNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VPCAssociationNotFound" + } + return *e.ErrorCodeOverride +} func (e *VPCAssociationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53domains/types/errors.go b/service/route53domains/types/errors.go index 63ebf5883a1..3e92c1884c0 100644 --- a/service/route53domains/types/errors.go +++ b/service/route53domains/types/errors.go @@ -13,6 +13,8 @@ import ( type DnssecLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *DnssecLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *DnssecLimitExceeded) ErrorCode() string { return "DnssecLimitExceeded" } +func (e *DnssecLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DnssecLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *DnssecLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of domains has exceeded the allowed threshold for the account. type DomainLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *DomainLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *DomainLimitExceeded) ErrorCode() string { return "DomainLimitExceeded" } +func (e *DomainLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DomainLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *DomainLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is already in progress for the domain. type DuplicateRequest struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *DuplicateRequest) ErrorMessage() string { } return *e.Message } -func (e *DuplicateRequest) ErrorCode() string { return "DuplicateRequest" } +func (e *DuplicateRequest) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateRequest" + } + return *e.ErrorCodeOverride +} func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested item is not acceptable. For example, for APIs that accept a domain @@ -73,6 +94,8 @@ func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InvalidInput struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +108,12 @@ func (e *InvalidInput) ErrorMessage() string { } return *e.Message } -func (e *InvalidInput) ErrorCode() string { return "InvalidInput" } +func (e *InvalidInput) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInput" + } + return *e.ErrorCodeOverride +} func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of operations or jobs running exceeded the allowed threshold for the @@ -93,6 +121,8 @@ func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type OperationLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,13 +135,20 @@ func (e *OperationLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *OperationLimitExceeded) ErrorCode() string { return "OperationLimitExceeded" } +func (e *OperationLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *OperationLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The top-level domain does not support this operation. type TLDRulesViolation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,13 +161,20 @@ func (e *TLDRulesViolation) ErrorMessage() string { } return *e.Message } -func (e *TLDRulesViolation) ErrorCode() string { return "TLDRulesViolation" } +func (e *TLDRulesViolation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TLDRulesViolation" + } + return *e.ErrorCodeOverride +} func (e *TLDRulesViolation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Route 53 does not support this top-level domain (TLD). type UnsupportedTLD struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -143,5 +187,10 @@ func (e *UnsupportedTLD) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedTLD) ErrorCode() string { return "UnsupportedTLD" } +func (e *UnsupportedTLD) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedTLD" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedTLD) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoverycluster/types/errors.go b/service/route53recoverycluster/types/errors.go index 3262785a984..51f85bce2eb 100644 --- a/service/route53recoverycluster/types/errors.go +++ b/service/route53recoverycluster/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict with this request. Try again. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster endpoint isn't available. Try another cluster endpoint. type EndpointTemporarilyUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,10 @@ func (e *EndpointTemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *EndpointTemporarilyUnavailableException) ErrorCode() string { - return "EndpointTemporarilyUnavailableException" + if e.ErrorCodeOverride == nil { + return "EndpointTemporarilyUnavailableException" + } + return *e.ErrorCodeOverride } func (e *EndpointTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -75,6 +94,8 @@ func (e *EndpointTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -89,13 +110,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a routing control or control panel that was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -111,7 +139,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request can't update that many routing control states at the same time. Try @@ -119,6 +152,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceLimitExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string LimitCode *string @@ -136,13 +171,20 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceLimitExceededException) ErrorCode() string { return "ServiceLimitExceededException" } +func (e *ServiceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because of request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -157,13 +199,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a validation error on the request. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -179,5 +228,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoverycontrolconfig/types/errors.go b/service/route53recoverycontrolconfig/types/errors.go index fb9b878446d..616cc35a066 100644 --- a/service/route53recoverycontrolconfig/types/errors.go +++ b/service/route53recoverycontrolconfig/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 409 response - ConflictException. You might be using a predefined variable. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 500 response - InternalServiceError. Temporary service error. Retry the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // 404 response - MalformedQueryString. The query string contains a syntax error or @@ -69,6 +90,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,7 +104,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 402 response - You attempted to create more resources than the service allows @@ -89,6 +117,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +131,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 429 response - LimitExceededException or TooManyRequestsException. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,7 +157,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 400 response - Multiple causes. For example, you might have a malformed query @@ -129,6 +171,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,5 +185,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoveryreadiness/types/errors.go b/service/route53recoveryreadiness/types/errors.go index 22fb4971bdd..c28de9fb34d 100644 --- a/service/route53recoveryreadiness/types/errors.go +++ b/service/route53recoveryreadiness/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,5 +155,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53resolver/types/errors.go b/service/route53resolver/types/errors.go index 744a9c60c5d..090c1c7e0cc 100644 --- a/service/route53resolver/types/errors.go +++ b/service/route53resolver/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,12 +26,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We encountered an unknown error. Try again in a few minutes. type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value that you specified for NextToken in a List request isn't valid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters in this request are not valid. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + FieldName *string noSmithyDocumentSerde @@ -101,13 +131,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Resolver rule policy is invalid. type InvalidPolicyDocument struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,13 +157,20 @@ func (e *InvalidPolicyDocument) ErrorMessage() string { } return *e.Message } -func (e *InvalidPolicyDocument) ErrorCode() string { return "InvalidPolicyDocument" } +func (e *InvalidPolicyDocument) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPolicyDocument" + } + return *e.ErrorCodeOverride +} func (e *InvalidPolicyDocument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is invalid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -139,13 +183,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified tag is invalid. type InvalidTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -158,13 +209,20 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTagException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request caused one or more limits to be exceeded. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -179,13 +237,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you tried to create already exists. type ResourceExistsException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -200,13 +265,20 @@ func (e *ResourceExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceExistsException) ErrorCode() string { return "ResourceExistsException" } +func (e *ResourceExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you tried to update or delete is currently in use. type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -221,13 +293,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -242,13 +321,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource isn't available. type ResourceUnavailableException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -263,13 +349,20 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was throttled. Try again in a few minutes. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -282,13 +375,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type UnknownResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -301,12 +401,19 @@ func (e *UnknownResourceException) ErrorMessage() string { } return *e.Message } -func (e *UnknownResourceException) ErrorCode() string { return "UnknownResourceException" } +func (e *UnknownResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnknownResourceException" + } + return *e.ErrorCodeOverride +} func (e *UnknownResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -319,5 +426,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rum/types/errors.go b/service/rum/types/errors.go index fe719db6372..65beb19900a 100644 --- a/service/rum/types/errors.go +++ b/service/rum/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation attempted to create a resource that already exists. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceName *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal service exception. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Resource not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string ResourceType *string @@ -88,13 +111,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +137,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was throttled because of quota limits. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *int32 @@ -130,13 +167,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the arguments for the request is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -149,5 +193,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/s3/types/errors.go b/service/s3/types/errors.go index 8c3a386f7f2..4567a385cbb 100644 --- a/service/s3/types/errors.go +++ b/service/s3/types/errors.go @@ -12,6 +12,8 @@ import ( type BucketAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *BucketAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *BucketAlreadyExists) ErrorCode() string { return "BucketAlreadyExists" } +func (e *BucketAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BucketAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *BucketAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The bucket you tried to create already exists, and you own it. Amazon S3 returns @@ -35,6 +42,8 @@ func (e *BucketAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.Fau type BucketAlreadyOwnedByYou struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,13 +56,20 @@ func (e *BucketAlreadyOwnedByYou) ErrorMessage() string { } return *e.Message } -func (e *BucketAlreadyOwnedByYou) ErrorCode() string { return "BucketAlreadyOwnedByYou" } +func (e *BucketAlreadyOwnedByYou) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BucketAlreadyOwnedByYou" + } + return *e.ErrorCodeOverride +} func (e *BucketAlreadyOwnedByYou) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Object is archived and inaccessible until restored. type InvalidObjectState struct { Message *string + ErrorCodeOverride *string + StorageClass StorageClass AccessTier IntelligentTieringAccessTier @@ -69,13 +85,20 @@ func (e *InvalidObjectState) ErrorMessage() string { } return *e.Message } -func (e *InvalidObjectState) ErrorCode() string { return "InvalidObjectState" } +func (e *InvalidObjectState) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidObjectState" + } + return *e.ErrorCodeOverride +} func (e *InvalidObjectState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified bucket does not exist. type NoSuchBucket struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -88,13 +111,20 @@ func (e *NoSuchBucket) ErrorMessage() string { } return *e.Message } -func (e *NoSuchBucket) ErrorCode() string { return "NoSuchBucket" } +func (e *NoSuchBucket) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchBucket" + } + return *e.ErrorCodeOverride +} func (e *NoSuchBucket) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key does not exist. type NoSuchKey struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,13 +137,20 @@ func (e *NoSuchKey) ErrorMessage() string { } return *e.Message } -func (e *NoSuchKey) ErrorCode() string { return "NoSuchKey" } +func (e *NoSuchKey) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchKey" + } + return *e.ErrorCodeOverride +} func (e *NoSuchKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified multipart upload does not exist. type NoSuchUpload struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,13 +163,20 @@ func (e *NoSuchUpload) ErrorMessage() string { } return *e.Message } -func (e *NoSuchUpload) ErrorCode() string { return "NoSuchUpload" } +func (e *NoSuchUpload) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchUpload" + } + return *e.ErrorCodeOverride +} func (e *NoSuchUpload) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified content does not exist. type NotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -145,13 +189,20 @@ func (e *NotFound) ErrorMessage() string { } return *e.Message } -func (e *NotFound) ErrorCode() string { return "NotFound" } +func (e *NotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFound" + } + return *e.ErrorCodeOverride +} func (e *NotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This action is not allowed against this storage tier. type ObjectAlreadyInActiveTierError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,7 +215,12 @@ func (e *ObjectAlreadyInActiveTierError) ErrorMessage() string { } return *e.Message } -func (e *ObjectAlreadyInActiveTierError) ErrorCode() string { return "ObjectAlreadyInActiveTierError" } +func (e *ObjectAlreadyInActiveTierError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ObjectAlreadyInActiveTierError" + } + return *e.ErrorCodeOverride +} func (e *ObjectAlreadyInActiveTierError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The source object of the COPY action is not in the active tier and is only @@ -172,6 +228,8 @@ func (e *ObjectAlreadyInActiveTierError) ErrorFault() smithy.ErrorFault { return type ObjectNotInActiveTierError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -184,5 +242,10 @@ func (e *ObjectNotInActiveTierError) ErrorMessage() string { } return *e.Message } -func (e *ObjectNotInActiveTierError) ErrorCode() string { return "ObjectNotInActiveTierError" } +func (e *ObjectNotInActiveTierError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ObjectNotInActiveTierError" + } + return *e.ErrorCodeOverride +} func (e *ObjectNotInActiveTierError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/s3control/types/errors.go b/service/s3control/types/errors.go index be9801f930c..fe06cea1e17 100644 --- a/service/s3control/types/errors.go +++ b/service/s3control/types/errors.go @@ -10,6 +10,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,7 +24,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested Outposts bucket name is not available. The bucket namespace is @@ -31,6 +38,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type BucketAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *BucketAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *BucketAlreadyExists) ErrorCode() string { return "BucketAlreadyExists" } +func (e *BucketAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BucketAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *BucketAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Outposts bucket you tried to create already exists, and you own it. type BucketAlreadyOwnedByYou struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,12 +78,19 @@ func (e *BucketAlreadyOwnedByYou) ErrorMessage() string { } return *e.Message } -func (e *BucketAlreadyOwnedByYou) ErrorCode() string { return "BucketAlreadyOwnedByYou" } +func (e *BucketAlreadyOwnedByYou) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BucketAlreadyOwnedByYou" + } + return *e.ErrorCodeOverride +} func (e *BucketAlreadyOwnedByYou) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type IdempotencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,12 +103,19 @@ func (e *IdempotencyException) ErrorMessage() string { } return *e.Message } -func (e *IdempotencyException) ErrorCode() string { return "IdempotencyException" } +func (e *IdempotencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IdempotencyException" + } + return *e.ErrorCodeOverride +} func (e *IdempotencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -98,12 +128,19 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -116,12 +153,19 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -134,12 +178,19 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type JobStatusException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -152,7 +203,12 @@ func (e *JobStatusException) ErrorMessage() string { } return *e.Message } -func (e *JobStatusException) ErrorCode() string { return "JobStatusException" } +func (e *JobStatusException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "JobStatusException" + } + return *e.ErrorCodeOverride +} func (e *JobStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon S3 throws this exception if you make a GetPublicAccessBlock request @@ -160,6 +216,8 @@ func (e *JobStatusException) ErrorFault() smithy.ErrorFault { return smithy.Faul type NoSuchPublicAccessBlockConfiguration struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +231,10 @@ func (e *NoSuchPublicAccessBlockConfiguration) ErrorMessage() string { return *e.Message } func (e *NoSuchPublicAccessBlockConfiguration) ErrorCode() string { - return "NoSuchPublicAccessBlockConfiguration" + if e.ErrorCodeOverride == nil { + return "NoSuchPublicAccessBlockConfiguration" + } + return *e.ErrorCodeOverride } func (e *NoSuchPublicAccessBlockConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -182,6 +243,8 @@ func (e *NoSuchPublicAccessBlockConfiguration) ErrorFault() smithy.ErrorFault { type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -194,12 +257,19 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -212,13 +282,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon S3 throws this exception if you have too many tags in your tag set. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -231,5 +308,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/s3outposts/types/errors.go b/service/s3outposts/types/errors.go index ffdef7dde34..44a76190315 100644 --- a/service/s3outposts/types/errors.go +++ b/service/s3outposts/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict with this action, and it could not be completed. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an exception with the internal server. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an exception validating this data. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,5 +129,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemaker/types/errors.go b/service/sagemaker/types/errors.go index a76dab9965f..7a2232fdf95 100644 --- a/service/sagemaker/types/errors.go +++ b/service/sagemaker/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource being accessed is in use. type ResourceInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *ResourceInUse) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUse) ErrorCode() string { return "ResourceInUse" } +func (e *ResourceInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUse" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded an SageMaker resource limit. For example, you might have too @@ -51,6 +65,8 @@ func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type ResourceLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *ResourceLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceeded) ErrorCode() string { return "ResourceLimitExceeded" } +func (e *ResourceLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource being access is not found. type ResourceNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,5 +105,10 @@ func (e *ResourceNotFound) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFound) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemakera2iruntime/types/errors.go b/service/sagemakera2iruntime/types/errors.go index 322aed6b819..b08329583f5 100644 --- a/service/sagemakera2iruntime/types/errors.go +++ b/service/sagemakera2iruntime/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We couldn't process your request because of an issue with the server. Try again @@ -33,6 +40,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // We couldn't find the requested resource. Check that your resources exists and @@ -53,6 +67,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded your service quota. Service quotas, also referred to as limits, are @@ -80,6 +101,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -92,13 +115,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded the maximum number of requests. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -111,13 +141,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request isn't valid. Check the syntax and try again. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,5 +167,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemakeredge/types/errors.go b/service/sagemakeredge/types/errors.go index 733973546b7..34d11b8cbd8 100644 --- a/service/sagemakeredge/types/errors.go +++ b/service/sagemakeredge/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,5 +26,10 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemakerfeaturestoreruntime/types/errors.go b/service/sagemakerfeaturestoreruntime/types/errors.go index 9ca21a3b29d..bf594afcba2 100644 --- a/service/sagemakerfeaturestoreruntime/types/errors.go +++ b/service/sagemakerfeaturestoreruntime/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessForbidden struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessForbidden) ErrorMessage() string { } return *e.Message } -func (e *AccessForbidden) ErrorCode() string { return "AccessForbidden" } +func (e *AccessForbidden) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessForbidden" + } + return *e.ErrorCodeOverride +} func (e *AccessForbidden) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal failure occurred. Try your request again. If the problem persists, @@ -31,6 +38,8 @@ func (e *AccessForbidden) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type InternalFailure struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalFailure) ErrorMessage() string { } return *e.Message } -func (e *InternalFailure) ErrorCode() string { return "InternalFailure" } +func (e *InternalFailure) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailure" + } + return *e.ErrorCodeOverride +} func (e *InternalFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A resource that is required to perform an action was not found. type ResourceNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *ResourceNotFound) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFound) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. type ServiceUnavailable struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ServiceUnavailable) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailable) ErrorCode() string { return "ServiceUnavailable" } +func (e *ServiceUnavailable) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailable" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // There was an error validating your request. type ValidationError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,5 +130,10 @@ func (e *ValidationError) ErrorMessage() string { } return *e.Message } -func (e *ValidationError) ErrorCode() string { return "ValidationError" } +func (e *ValidationError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationError" + } + return *e.ErrorCodeOverride +} func (e *ValidationError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemakergeospatial/types/errors.go b/service/sagemakergeospatial/types/errors.go index b50e4a2c0ee..3e69a41a1f7 100644 --- a/service/sagemakergeospatial/types/errors.go +++ b/service/sagemakergeospatial/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,12 +25,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -43,7 +52,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception, or @@ -51,6 +65,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -65,12 +81,19 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -85,13 +108,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -106,13 +136,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -127,7 +164,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an Amazon Web Services @@ -135,6 +177,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -149,5 +193,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemakerruntime/types/errors.go b/service/sagemakerruntime/types/errors.go index 6a65e3296ce..1df2a061de9 100644 --- a/service/sagemakerruntime/types/errors.go +++ b/service/sagemakerruntime/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalDependencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *InternalDependencyException) ErrorMessage() string { } return *e.Message } -func (e *InternalDependencyException) ErrorCode() string { return "InternalDependencyException" } +func (e *InternalDependencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalDependencyException" + } + return *e.ErrorCodeOverride +} func (e *InternalDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An internal failure occurred. type InternalFailure struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalFailure) ErrorMessage() string { } return *e.Message } -func (e *InternalFailure) ErrorCode() string { return "InternalFailure" } +func (e *InternalFailure) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailure" + } + return *e.ErrorCodeOverride +} func (e *InternalFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Model (owned by the customer in the container) returned 4xx or 5xx error code. type ModelError struct { Message *string + ErrorCodeOverride *string + OriginalStatusCode *int32 OriginalMessage *string LogStreamArn *string @@ -66,7 +82,12 @@ func (e *ModelError) ErrorMessage() string { } return *e.Message } -func (e *ModelError) ErrorCode() string { return "ModelError" } +func (e *ModelError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ModelError" + } + return *e.ErrorCodeOverride +} func (e *ModelError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Either a serverless endpoint variant's resources are still being provisioned, or @@ -75,6 +96,8 @@ func (e *ModelError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type ModelNotReadyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,13 +110,20 @@ func (e *ModelNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ModelNotReadyException) ErrorCode() string { return "ModelNotReadyException" } +func (e *ModelNotReadyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ModelNotReadyException" + } + return *e.ErrorCodeOverride +} func (e *ModelNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is unavailable. Try your call again. type ServiceUnavailable struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,13 +136,20 @@ func (e *ServiceUnavailable) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailable) ErrorCode() string { return "ServiceUnavailable" } +func (e *ServiceUnavailable) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailable" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Inspect your request and try again. type ValidationError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -125,5 +162,10 @@ func (e *ValidationError) ErrorMessage() string { } return *e.Message } -func (e *ValidationError) ErrorCode() string { return "ValidationError" } +func (e *ValidationError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationError" + } + return *e.ErrorCodeOverride +} func (e *ValidationError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/savingsplans/types/errors.go b/service/savingsplans/types/errors.go index 67ef5ac182d..67424b9aba8 100644 --- a/service/savingsplans/types/errors.go +++ b/service/savingsplans/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the input parameters is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,5 +103,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/scheduler/types/errors.go b/service/scheduler/types/errors.go index e192d2a8876..97af2d15fea 100644 --- a/service/scheduler/types/errors.go +++ b/service/scheduler/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error encountered while processing the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource which does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,5 +155,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/schemas/types/errors.go b/service/schemas/types/errors.go index 496ce4d471d..f31aa2f8dd8 100644 --- a/service/schemas/types/errors.go +++ b/service/schemas/types/errors.go @@ -10,6 +10,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -24,12 +26,19 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -44,12 +53,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ForbiddenException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -64,12 +80,19 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type GoneException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -84,12 +107,19 @@ func (e *GoneException) ErrorMessage() string { } return *e.Message } -func (e *GoneException) ErrorCode() string { return "GoneException" } +func (e *GoneException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "GoneException" + } + return *e.ErrorCodeOverride +} func (e *GoneException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -104,12 +134,19 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -124,12 +161,19 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type PreconditionFailedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -144,12 +188,19 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionFailedException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -164,12 +215,19 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -184,12 +242,19 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -204,5 +269,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/secretsmanager/types/errors.go b/service/secretsmanager/types/errors.go index 731d4602248..d790cd8129b 100644 --- a/service/secretsmanager/types/errors.go +++ b/service/secretsmanager/types/errors.go @@ -12,6 +12,8 @@ import ( type DecryptionFailure struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *DecryptionFailure) ErrorMessage() string { } return *e.Message } -func (e *DecryptionFailure) ErrorCode() string { return "DecryptionFailure" } +func (e *DecryptionFailure) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DecryptionFailure" + } + return *e.ErrorCodeOverride +} func (e *DecryptionFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Secrets Manager can't encrypt the protected secret text using the provided KMS @@ -34,6 +41,8 @@ func (e *DecryptionFailure) ErrorFault() smithy.ErrorFault { return smithy.Fault type EncryptionFailure struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,13 +55,20 @@ func (e *EncryptionFailure) ErrorMessage() string { } return *e.Message } -func (e *EncryptionFailure) ErrorCode() string { return "EncryptionFailure" } +func (e *EncryptionFailure) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EncryptionFailure" + } + return *e.ErrorCodeOverride +} func (e *EncryptionFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServiceError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +81,20 @@ func (e *InternalServiceError) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceError) ErrorCode() string { return "InternalServiceError" } +func (e *InternalServiceError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceError" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The NextToken value is invalid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,13 +107,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter name or value is invalid. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,7 +133,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter value is not valid for the current state of the resource. Possible @@ -122,6 +157,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -134,13 +171,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it would exceed one of the Secrets Manager quotas. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -153,13 +197,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource policy has syntax errors. type MalformedPolicyDocumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +224,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.ErrorCodeOverride == nil { + return "MalformedPolicyDocumentException" + } + return *e.ErrorCodeOverride } func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -181,6 +235,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type PreconditionNotMetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -193,7 +249,12 @@ func (e *PreconditionNotMetException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionNotMetException) ErrorCode() string { return "PreconditionNotMetException" } +func (e *PreconditionNotMetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionNotMetException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The BlockPublicPolicy parameter is set to true, and the resource policy did not @@ -201,6 +262,8 @@ func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return sm type PublicPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -213,13 +276,20 @@ func (e *PublicPolicyException) ErrorMessage() string { } return *e.Message } -func (e *PublicPolicyException) ErrorCode() string { return "PublicPolicyException" } +func (e *PublicPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PublicPolicyException" + } + return *e.ErrorCodeOverride +} func (e *PublicPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the ID you requested already exists. type ResourceExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -232,13 +302,20 @@ func (e *ResourceExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceExistsException) ErrorCode() string { return "ResourceExistsException" } +func (e *ResourceExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Secrets Manager can't find the resource that you asked for. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -251,5 +328,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/securityhub/types/errors.go b/service/securityhub/types/errors.go index 4cb1ed7a9a0..f77e0b270fa 100644 --- a/service/securityhub/types/errors.go +++ b/service/securityhub/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal server error. type InternalException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalException" + } + return *e.ErrorCodeOverride +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The account doesn't have permission to perform this action. type InvalidAccessException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -67,7 +83,12 @@ func (e *InvalidAccessException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAccessException) ErrorCode() string { return "InvalidAccessException" } +func (e *InvalidAccessException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAccessException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because you supplied an invalid or out-of-range value @@ -75,6 +96,8 @@ func (e *InvalidAccessException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidInputException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -89,7 +112,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create resources beyond the @@ -98,6 +126,8 @@ func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.F type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -112,13 +142,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request conflicts with an existing resource. type ResourceConflictException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -133,13 +170,20 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceConflictException" + } + return *e.ErrorCodeOverride +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because we can't find the specified resource. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -154,5 +198,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/securitylake/types/errors.go b/service/securitylake/types/errors.go index 4b33081cfd6..a5b9fecab9f 100644 --- a/service/securitylake/types/errors.go +++ b/service/securitylake/types/errors.go @@ -16,6 +16,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -28,7 +30,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Security Lake cannot find an Amazon Web Services account with the @@ -37,6 +44,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AccountNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -49,7 +58,12 @@ func (e *AccountNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *AccountNotFoundException) ErrorCode() string { return "AccountNotFoundException" } +func (e *AccountNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *AccountNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Security Lake generally returns 404 errors if the requested object is @@ -57,6 +71,8 @@ func (e *AccountNotFoundException) ErrorFault() smithy.ErrorFault { return smith type BucketNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -69,13 +85,20 @@ func (e *BucketNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *BucketNotFoundException) ErrorCode() string { return "BucketNotFoundException" } +func (e *BucketNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BucketNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *BucketNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // More than one process tried to modify a resource at the same time. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -89,7 +112,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -100,6 +126,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -115,13 +143,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict when you attempted to modify a Security Lake source name. type ConflictSourceNamesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -134,13 +169,20 @@ func (e *ConflictSourceNamesException) ErrorMessage() string { } return *e.Message } -func (e *ConflictSourceNamesException) ErrorCode() string { return "ConflictSourceNamesException" } +func (e *ConflictSourceNamesException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictSourceNamesException" + } + return *e.ErrorCodeOverride +} func (e *ConflictSourceNamesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflicting subscription exception operation is in progress. type ConflictSubscriptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -153,13 +195,20 @@ func (e *ConflictSubscriptionException) ErrorMessage() string { } return *e.Message } -func (e *ConflictSubscriptionException) ErrorCode() string { return "ConflictSubscriptionException" } +func (e *ConflictSubscriptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictSubscriptionException" + } + return *e.ErrorCodeOverride +} func (e *ConflictSubscriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Represents an error interacting with the Amazon EventBridge service. type EventBridgeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -172,7 +221,12 @@ func (e *EventBridgeException) ErrorMessage() string { } return *e.Message } -func (e *EventBridgeException) ErrorCode() string { return "EventBridgeException" } +func (e *EventBridgeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EventBridgeException" + } + return *e.ErrorCodeOverride +} func (e *EventBridgeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal service exceptions are sometimes caused by transient issues. Before you @@ -180,6 +234,8 @@ func (e *EventBridgeException) ErrorFault() smithy.ErrorFault { return smithy.Fa type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *int32 noSmithyDocumentSerde @@ -194,7 +250,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was rejected because a value that's not valid or is out of range was @@ -202,6 +263,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidInputException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -214,13 +277,20 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInputException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -236,7 +306,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides an extension of the AmazonServiceException for errors reported by @@ -247,6 +322,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type S3Exception struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -259,7 +336,12 @@ func (e *S3Exception) ErrorMessage() string { } return *e.Message } -func (e *S3Exception) ErrorCode() string { return "S3Exception" } +func (e *S3Exception) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "S3Exception" + } + return *e.ErrorCodeOverride +} func (e *S3Exception) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded your service quota. To perform the requested action, remove @@ -268,6 +350,8 @@ func (e *S3Exception) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ServiceCode *string @@ -285,13 +369,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit on the number of requests per second was exceeded. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *int32 @@ -308,13 +399,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your signing certificate could not be validated. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -330,5 +428,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/serverlessapplicationrepository/types/errors.go b/service/serverlessapplicationrepository/types/errors.go index 15f35d9b949..81eb88ae0db 100644 --- a/service/serverlessapplicationrepository/types/errors.go +++ b/service/serverlessapplicationrepository/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ConflictException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not authenticated. type ForbiddenException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -67,13 +83,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ForbiddenException" + } + return *e.ErrorCodeOverride +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The AWS Serverless Application Repository service encountered an internal error. type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -88,7 +111,12 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource (for example, an access policy statement) specified in the request @@ -96,6 +124,8 @@ func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return s type NotFoundException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -110,13 +140,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is sending more than the allowed number of requests per unit of time. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + ErrorCode_ *string noSmithyDocumentSerde @@ -131,5 +168,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/servicecatalog/types/errors.go b/service/servicecatalog/types/errors.go index fa688b6fa70..c027ec10415 100644 --- a/service/servicecatalog/types/errors.go +++ b/service/servicecatalog/types/errors.go @@ -11,6 +11,8 @@ import ( type DuplicateResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *DuplicateResourceException) ErrorMessage() string { } return *e.Message } -func (e *DuplicateResourceException) ErrorCode() string { return "DuplicateResourceException" } +func (e *DuplicateResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateResourceException" + } + return *e.ErrorCodeOverride +} func (e *DuplicateResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters provided to the operation are not valid. type InvalidParametersException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *InvalidParametersException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParametersException) ErrorCode() string { return "InvalidParametersException" } +func (e *InvalidParametersException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParametersException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An attempt was made to modify a resource that is in a state that is not valid. @@ -51,6 +65,8 @@ func (e *InvalidParametersException) ErrorFault() smithy.ErrorFault { return smi type InvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *InvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The current limits of the service would have been exceeded by this operation. @@ -72,6 +93,8 @@ func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.F type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,13 +107,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not supported. type OperationNotSupportedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -103,7 +133,12 @@ func (e *OperationNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotSupportedException) ErrorCode() string { return "OperationNotSupportedException" } +func (e *OperationNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource that is currently in use. Ensure that the resource is not in use and @@ -111,6 +146,8 @@ func (e *OperationNotSupportedException) ErrorFault() smithy.ErrorFault { return type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,13 +160,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,7 +186,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation requiring TagOptions failed because the TagOptions migration @@ -152,6 +201,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TagOptionNotMigratedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,5 +215,10 @@ func (e *TagOptionNotMigratedException) ErrorMessage() string { } return *e.Message } -func (e *TagOptionNotMigratedException) ErrorCode() string { return "TagOptionNotMigratedException" } +func (e *TagOptionNotMigratedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagOptionNotMigratedException" + } + return *e.ErrorCodeOverride +} func (e *TagOptionNotMigratedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/servicecatalogappregistry/types/errors.go b/service/servicecatalogappregistry/types/errors.go index 190a28c3ba7..38f2f3936d3 100644 --- a/service/servicecatalogappregistry/types/errors.go +++ b/service/servicecatalogappregistry/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is experiencing internal problems. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of resources per account has been reached. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has invalid or missing parameters. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,5 +130,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/servicediscovery/types/errors.go b/service/servicediscovery/types/errors.go index a3c7cbafd44..733621012db 100644 --- a/service/servicediscovery/types/errors.go +++ b/service/servicediscovery/types/errors.go @@ -12,6 +12,8 @@ import ( type CustomHealthNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *CustomHealthNotFound) ErrorMessage() string { } return *e.Message } -func (e *CustomHealthNotFound) ErrorCode() string { return "CustomHealthNotFound" } +func (e *CustomHealthNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CustomHealthNotFound" + } + return *e.ErrorCodeOverride +} func (e *CustomHealthNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is already in progress. type DuplicateRequest struct { Message *string + ErrorCodeOverride *string + DuplicateOperationId *string noSmithyDocumentSerde @@ -45,7 +54,12 @@ func (e *DuplicateRequest) ErrorMessage() string { } return *e.Message } -func (e *DuplicateRequest) ErrorCode() string { return "DuplicateRequest" } +func (e *DuplicateRequest) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateRequest" + } + return *e.ErrorCodeOverride +} func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No instance exists with the specified ID, or the instance was recently @@ -53,6 +67,8 @@ func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InstanceNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InstanceNotFound) ErrorMessage() string { } return *e.Message } -func (e *InstanceNotFound) ErrorCode() string { return "InstanceNotFound" } +func (e *InstanceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InstanceNotFound" + } + return *e.ErrorCodeOverride +} func (e *InstanceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more specified values aren't valid. For example, a required value might @@ -74,6 +95,8 @@ func (e *InstanceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InvalidInput struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,13 +109,20 @@ func (e *InvalidInput) ErrorMessage() string { } return *e.Message } -func (e *InvalidInput) ErrorCode() string { return "InvalidInput" } +func (e *InvalidInput) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInput" + } + return *e.ErrorCodeOverride +} func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The namespace that you're trying to create already exists. type NamespaceAlreadyExists struct { Message *string + ErrorCodeOverride *string + CreatorRequestId *string NamespaceId *string @@ -108,13 +138,20 @@ func (e *NamespaceAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *NamespaceAlreadyExists) ErrorCode() string { return "NamespaceAlreadyExists" } +func (e *NamespaceAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NamespaceAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *NamespaceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No namespace exists with the specified ID. type NamespaceNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,13 +164,20 @@ func (e *NamespaceNotFound) ErrorMessage() string { } return *e.Message } -func (e *NamespaceNotFound) ErrorCode() string { return "NamespaceNotFound" } +func (e *NamespaceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NamespaceNotFound" + } + return *e.ErrorCodeOverride +} func (e *NamespaceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No operation exists with the specified ID. type OperationNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,7 +190,12 @@ func (e *OperationNotFound) ErrorMessage() string { } return *e.Message } -func (e *OperationNotFound) ErrorCode() string { return "OperationNotFound" } +func (e *OperationNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotFound" + } + return *e.ErrorCodeOverride +} func (e *OperationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation can't be completed because you've reached the quota for the number @@ -156,6 +205,8 @@ func (e *OperationNotFound) ErrorFault() smithy.ErrorFault { return smithy.Fault type RequestLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -168,7 +219,12 @@ func (e *RequestLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *RequestLimitExceeded) ErrorCode() string { return "RequestLimitExceeded" } +func (e *RequestLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *RequestLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource can't be deleted because it contains other resources. For @@ -176,6 +232,8 @@ func (e *RequestLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.Fa type ResourceInUse struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -188,7 +246,12 @@ func (e *ResourceInUse) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUse) ErrorCode() string { return "ResourceInUse" } +func (e *ResourceInUse) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUse" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource can't be created because you've reached the quota on the number of @@ -196,6 +259,8 @@ func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type ResourceLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -208,13 +273,20 @@ func (e *ResourceLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceeded) ErrorCode() string { return "ResourceLimitExceeded" } +func (e *ResourceLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation can't be completed because the resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -227,7 +299,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service can't be created because a service with the same name already @@ -235,6 +312,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceAlreadyExists struct { Message *string + ErrorCodeOverride *string + CreatorRequestId *string ServiceId *string @@ -250,13 +329,20 @@ func (e *ServiceAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *ServiceAlreadyExists) ErrorCode() string { return "ServiceAlreadyExists" } +func (e *ServiceAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ServiceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No service exists with the specified ID. type ServiceNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -269,7 +355,12 @@ func (e *ServiceNotFound) ErrorMessage() string { } return *e.Message } -func (e *ServiceNotFound) ErrorCode() string { return "ServiceNotFound" } +func (e *ServiceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ServiceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The list of tags on the resource is over the quota. The maximum number of tags @@ -277,6 +368,8 @@ func (e *ServiceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -291,5 +384,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/servicequotas/types/errors.go b/service/servicequotas/types/errors.go index 9f35ff7ab6c..8e809e9d634 100644 --- a/service/servicequotas/types/errors.go +++ b/service/servicequotas/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action you attempted is not allowed unless Service Access with Service @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AWSServiceAccessNotEnabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *AWSServiceAccessNotEnabledException) ErrorMessage() string { return *e.Message } func (e *AWSServiceAccessNotEnabledException) ErrorCode() string { - return "AWSServiceAccessNotEnabledException" + if e.ErrorCodeOverride == nil { + return "AWSServiceAccessNotEnabledException" + } + return *e.ErrorCodeOverride } func (e *AWSServiceAccessNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *AWSServiceAccessNotEnabledException) ErrorFault() smithy.ErrorFault { type DependencyAccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *DependencyAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *DependencyAccessDeniedException) ErrorCode() string { - return "DependencyAccessDeniedException" + if e.ErrorCodeOverride == nil { + return "DependencyAccessDeniedException" + } + return *e.ErrorCodeOverride } func (e *DependencyAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -75,6 +92,8 @@ func (e *DependencyAccessDeniedException) ErrorFault() smithy.ErrorFault { retur type IllegalArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,13 +106,20 @@ func (e *IllegalArgumentException) ErrorMessage() string { } return *e.Message } -func (e *IllegalArgumentException) ErrorCode() string { return "IllegalArgumentException" } +func (e *IllegalArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalArgumentException" + } + return *e.ErrorCodeOverride +} func (e *IllegalArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid input was provided. type InvalidPaginationTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +133,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidPaginationTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -115,6 +144,8 @@ func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { retur type InvalidResourceStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,13 +158,20 @@ func (e *InvalidResourceStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceStateException) ErrorCode() string { return "InvalidResourceStateException" } +func (e *InvalidResourceStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account making this call is not a member of an organization. type NoAvailableOrganizationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -147,7 +185,10 @@ func (e *NoAvailableOrganizationException) ErrorMessage() string { return *e.Message } func (e *NoAvailableOrganizationException) ErrorCode() string { - return "NoAvailableOrganizationException" + if e.ErrorCodeOverride == nil { + return "NoAvailableOrganizationException" + } + return *e.ErrorCodeOverride } func (e *NoAvailableOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -155,6 +196,8 @@ func (e *NoAvailableOrganizationException) ErrorFault() smithy.ErrorFault { retu type NoSuchResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,13 +210,20 @@ func (e *NoSuchResourceException) ErrorMessage() string { } return *e.Message } -func (e *NoSuchResourceException) ErrorCode() string { return "NoSuchResourceException" } +func (e *NoSuchResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoSuchResourceException" + } + return *e.ErrorCodeOverride +} func (e *NoSuchResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The organization that your account belongs to is not in All Features mode. type OrganizationNotInAllFeaturesModeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -187,7 +237,10 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotInAllFeaturesModeException) ErrorCode() string { - return "OrganizationNotInAllFeaturesModeException" + if e.ErrorCodeOverride == nil { + return "OrganizationNotInAllFeaturesModeException" + } + return *e.ErrorCodeOverride } func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -199,6 +252,8 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFau type QuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -211,13 +266,20 @@ func (e *QuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *QuotaExceededException) ErrorCode() string { return "QuotaExceededException" } +func (e *QuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "QuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *QuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -230,13 +292,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Something went wrong. type ServiceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -249,13 +318,20 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceException" + } + return *e.ErrorCodeOverride +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The quota request template is not associated with your organization. type ServiceQuotaTemplateNotInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -269,7 +345,10 @@ func (e *ServiceQuotaTemplateNotInUseException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaTemplateNotInUseException) ErrorCode() string { - return "ServiceQuotaTemplateNotInUseException" + if e.ErrorCodeOverride == nil { + return "ServiceQuotaTemplateNotInUseException" + } + return *e.ErrorCodeOverride } func (e *ServiceQuotaTemplateNotInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -279,6 +358,8 @@ func (e *ServiceQuotaTemplateNotInUseException) ErrorFault() smithy.ErrorFault { type TagPolicyViolationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -291,13 +372,20 @@ func (e *TagPolicyViolationException) ErrorMessage() string { } return *e.Message } -func (e *TagPolicyViolationException) ErrorCode() string { return "TagPolicyViolationException" } +func (e *TagPolicyViolationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagPolicyViolationException" + } + return *e.ErrorCodeOverride +} func (e *TagPolicyViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Service Quotas template is not available in this AWS Region. type TemplatesNotAvailableInRegionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -311,7 +399,10 @@ func (e *TemplatesNotAvailableInRegionException) ErrorMessage() string { return *e.Message } func (e *TemplatesNotAvailableInRegionException) ErrorCode() string { - return "TemplatesNotAvailableInRegionException" + if e.ErrorCodeOverride == nil { + return "TemplatesNotAvailableInRegionException" + } + return *e.ErrorCodeOverride } func (e *TemplatesNotAvailableInRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -322,6 +413,8 @@ func (e *TemplatesNotAvailableInRegionException) ErrorFault() smithy.ErrorFault type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -334,7 +427,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've exceeded the number of tags allowed for a resource. For more information, @@ -344,6 +442,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -356,5 +456,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ses/types/errors.go b/service/ses/types/errors.go index 8e74fa14f5f..b80a87d9db5 100644 --- a/service/ses/types/errors.go +++ b/service/ses/types/errors.go @@ -13,6 +13,8 @@ import ( type AccountSendingPausedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,13 +27,20 @@ func (e *AccountSendingPausedException) ErrorMessage() string { } return *e.Message } -func (e *AccountSendingPausedException) ErrorCode() string { return "AccountSendingPausedException" } +func (e *AccountSendingPausedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountSendingPausedException" + } + return *e.ErrorCodeOverride +} func (e *AccountSendingPausedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a resource could not be created because of a naming conflict. type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + Name *string noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExists" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the delete operation could not be completed. type CannotDeleteException struct { Message *string + ErrorCodeOverride *string + Name *string noSmithyDocumentSerde @@ -67,7 +83,12 @@ func (e *CannotDeleteException) ErrorMessage() string { } return *e.Message } -func (e *CannotDeleteException) ErrorCode() string { return "CannotDelete" } +func (e *CannotDeleteException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CannotDelete" + } + return *e.ErrorCodeOverride +} func (e *CannotDeleteException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the configuration set could not be created because of a naming @@ -75,6 +96,8 @@ func (e *CannotDeleteException) ErrorFault() smithy.ErrorFault { return smithy.F type ConfigurationSetAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string noSmithyDocumentSerde @@ -90,7 +113,10 @@ func (e *ConfigurationSetAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ConfigurationSetAlreadyExistsException) ErrorCode() string { - return "ConfigurationSetAlreadyExists" + if e.ErrorCodeOverride == nil { + return "ConfigurationSetAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *ConfigurationSetAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -100,6 +126,8 @@ func (e *ConfigurationSetAlreadyExistsException) ErrorFault() smithy.ErrorFault type ConfigurationSetDoesNotExistException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string noSmithyDocumentSerde @@ -115,7 +143,10 @@ func (e *ConfigurationSetDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ConfigurationSetDoesNotExistException) ErrorCode() string { - return "ConfigurationSetDoesNotExist" + if e.ErrorCodeOverride == nil { + return "ConfigurationSetDoesNotExist" + } + return *e.ErrorCodeOverride } func (e *ConfigurationSetDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -127,6 +158,8 @@ func (e *ConfigurationSetDoesNotExistException) ErrorFault() smithy.ErrorFault { type ConfigurationSetSendingPausedException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string noSmithyDocumentSerde @@ -142,7 +175,10 @@ func (e *ConfigurationSetSendingPausedException) ErrorMessage() string { return *e.Message } func (e *ConfigurationSetSendingPausedException) ErrorCode() string { - return "ConfigurationSetSendingPausedException" + if e.ErrorCodeOverride == nil { + return "ConfigurationSetSendingPausedException" + } + return *e.ErrorCodeOverride } func (e *ConfigurationSetSendingPausedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -152,6 +188,8 @@ func (e *ConfigurationSetSendingPausedException) ErrorFault() smithy.ErrorFault type CustomVerificationEmailInvalidContentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,7 +203,10 @@ func (e *CustomVerificationEmailInvalidContentException) ErrorMessage() string { return *e.Message } func (e *CustomVerificationEmailInvalidContentException) ErrorCode() string { - return "CustomVerificationEmailInvalidContent" + if e.ErrorCodeOverride == nil { + return "CustomVerificationEmailInvalidContent" + } + return *e.ErrorCodeOverride } func (e *CustomVerificationEmailInvalidContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -176,6 +217,8 @@ func (e *CustomVerificationEmailInvalidContentException) ErrorFault() smithy.Err type CustomVerificationEmailTemplateAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + CustomVerificationEmailTemplateName *string noSmithyDocumentSerde @@ -191,7 +234,10 @@ func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorMessage() s return *e.Message } func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorCode() string { - return "CustomVerificationEmailTemplateAlreadyExists" + if e.ErrorCodeOverride == nil { + return "CustomVerificationEmailTemplateAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -202,6 +248,8 @@ func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorFault() smi type CustomVerificationEmailTemplateDoesNotExistException struct { Message *string + ErrorCodeOverride *string + CustomVerificationEmailTemplateName *string noSmithyDocumentSerde @@ -217,7 +265,10 @@ func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorMessage() st return *e.Message } func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorCode() string { - return "CustomVerificationEmailTemplateDoesNotExist" + if e.ErrorCodeOverride == nil { + return "CustomVerificationEmailTemplateDoesNotExist" + } + return *e.ErrorCodeOverride } func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -228,6 +279,8 @@ func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorFault() smit type EventDestinationAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string EventDestinationName *string @@ -244,7 +297,10 @@ func (e *EventDestinationAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EventDestinationAlreadyExistsException) ErrorCode() string { - return "EventDestinationAlreadyExists" + if e.ErrorCodeOverride == nil { + return "EventDestinationAlreadyExists" + } + return *e.ErrorCodeOverride } func (e *EventDestinationAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -254,6 +310,8 @@ func (e *EventDestinationAlreadyExistsException) ErrorFault() smithy.ErrorFault type EventDestinationDoesNotExistException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string EventDestinationName *string @@ -270,7 +328,10 @@ func (e *EventDestinationDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *EventDestinationDoesNotExistException) ErrorCode() string { - return "EventDestinationDoesNotExist" + if e.ErrorCodeOverride == nil { + return "EventDestinationDoesNotExist" + } + return *e.ErrorCodeOverride } func (e *EventDestinationDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -282,6 +343,8 @@ func (e *EventDestinationDoesNotExistException) ErrorFault() smithy.ErrorFault { type FromEmailAddressNotVerifiedException struct { Message *string + ErrorCodeOverride *string + FromEmailAddress *string noSmithyDocumentSerde @@ -297,7 +360,10 @@ func (e *FromEmailAddressNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *FromEmailAddressNotVerifiedException) ErrorCode() string { - return "FromEmailAddressNotVerified" + if e.ErrorCodeOverride == nil { + return "FromEmailAddressNotVerified" + } + return *e.ErrorCodeOverride } func (e *FromEmailAddressNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -308,6 +374,8 @@ func (e *FromEmailAddressNotVerifiedException) ErrorFault() smithy.ErrorFault { type InvalidCloudWatchDestinationException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string EventDestinationName *string @@ -324,7 +392,10 @@ func (e *InvalidCloudWatchDestinationException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchDestinationException) ErrorCode() string { - return "InvalidCloudWatchDestination" + if e.ErrorCodeOverride == nil { + return "InvalidCloudWatchDestination" + } + return *e.ErrorCodeOverride } func (e *InvalidCloudWatchDestinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -335,6 +406,8 @@ func (e *InvalidCloudWatchDestinationException) ErrorFault() smithy.ErrorFault { type InvalidConfigurationSetException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -347,13 +420,20 @@ func (e *InvalidConfigurationSetException) ErrorMessage() string { } return *e.Message } -func (e *InvalidConfigurationSetException) ErrorCode() string { return "InvalidConfigurationSet" } +func (e *InvalidConfigurationSetException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidConfigurationSet" + } + return *e.ErrorCodeOverride +} func (e *InvalidConfigurationSetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that provided delivery option is invalid. type InvalidDeliveryOptionsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -366,7 +446,12 @@ func (e *InvalidDeliveryOptionsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidDeliveryOptionsException) ErrorCode() string { return "InvalidDeliveryOptions" } +func (e *InvalidDeliveryOptionsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDeliveryOptions" + } + return *e.ErrorCodeOverride +} func (e *InvalidDeliveryOptionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the Amazon Kinesis Firehose destination is invalid. See the error @@ -374,6 +459,8 @@ func (e *InvalidDeliveryOptionsException) ErrorFault() smithy.ErrorFault { retur type InvalidFirehoseDestinationException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string EventDestinationName *string @@ -389,7 +476,12 @@ func (e *InvalidFirehoseDestinationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFirehoseDestinationException) ErrorCode() string { return "InvalidFirehoseDestination" } +func (e *InvalidFirehoseDestinationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFirehoseDestination" + } + return *e.ErrorCodeOverride +} func (e *InvalidFirehoseDestinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -401,6 +493,8 @@ func (e *InvalidFirehoseDestinationException) ErrorFault() smithy.ErrorFault { type InvalidLambdaFunctionException struct { Message *string + ErrorCodeOverride *string + FunctionArn *string noSmithyDocumentSerde @@ -415,7 +509,12 @@ func (e *InvalidLambdaFunctionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidLambdaFunctionException) ErrorCode() string { return "InvalidLambdaFunction" } +func (e *InvalidLambdaFunctionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLambdaFunction" + } + return *e.ErrorCodeOverride +} func (e *InvalidLambdaFunctionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the provided policy is invalid. Check the error stack for more @@ -423,6 +522,8 @@ func (e *InvalidLambdaFunctionException) ErrorFault() smithy.ErrorFault { return type InvalidPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -435,7 +536,12 @@ func (e *InvalidPolicyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPolicyException) ErrorCode() string { return "InvalidPolicy" } +func (e *InvalidPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPolicy" + } + return *e.ErrorCodeOverride +} func (e *InvalidPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that one or more of the replacement values you provided is invalid. @@ -443,6 +549,8 @@ func (e *InvalidPolicyException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidRenderingParameterException struct { Message *string + ErrorCodeOverride *string + TemplateName *string noSmithyDocumentSerde @@ -457,7 +565,12 @@ func (e *InvalidRenderingParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRenderingParameterException) ErrorCode() string { return "InvalidRenderingParameter" } +func (e *InvalidRenderingParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRenderingParameter" + } + return *e.ErrorCodeOverride +} func (e *InvalidRenderingParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -470,6 +583,8 @@ func (e *InvalidRenderingParameterException) ErrorFault() smithy.ErrorFault { type InvalidS3ConfigurationException struct { Message *string + ErrorCodeOverride *string + Bucket *string noSmithyDocumentSerde @@ -484,7 +599,12 @@ func (e *InvalidS3ConfigurationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3ConfigurationException) ErrorCode() string { return "InvalidS3Configuration" } +func (e *InvalidS3ConfigurationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3Configuration" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3ConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the Amazon Simple Notification Service (Amazon SNS) destination @@ -492,6 +612,8 @@ func (e *InvalidS3ConfigurationException) ErrorFault() smithy.ErrorFault { retur type InvalidSNSDestinationException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string EventDestinationName *string @@ -507,7 +629,12 @@ func (e *InvalidSNSDestinationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSNSDestinationException) ErrorCode() string { return "InvalidSNSDestination" } +func (e *InvalidSNSDestinationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSNSDestination" + } + return *e.ErrorCodeOverride +} func (e *InvalidSNSDestinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES @@ -517,6 +644,8 @@ func (e *InvalidSNSDestinationException) ErrorFault() smithy.ErrorFault { return type InvalidSnsTopicException struct { Message *string + ErrorCodeOverride *string + Topic *string noSmithyDocumentSerde @@ -531,7 +660,12 @@ func (e *InvalidSnsTopicException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSnsTopicException) ErrorCode() string { return "InvalidSnsTopic" } +func (e *InvalidSnsTopicException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSnsTopic" + } + return *e.ErrorCodeOverride +} func (e *InvalidSnsTopicException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the template that you specified could not be rendered. This issue @@ -539,6 +673,8 @@ func (e *InvalidSnsTopicException) ErrorFault() smithy.ErrorFault { return smith type InvalidTemplateException struct { Message *string + ErrorCodeOverride *string + TemplateName *string noSmithyDocumentSerde @@ -553,7 +689,12 @@ func (e *InvalidTemplateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTemplateException) ErrorCode() string { return "InvalidTemplate" } +func (e *InvalidTemplateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTemplate" + } + return *e.ErrorCodeOverride +} func (e *InvalidTemplateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the custom domain to be used for open and click tracking @@ -568,6 +709,8 @@ func (e *InvalidTemplateException) ErrorFault() smithy.ErrorFault { return smith type InvalidTrackingOptionsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -580,7 +723,12 @@ func (e *InvalidTrackingOptionsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTrackingOptionsException) ErrorCode() string { return "InvalidTrackingOptions" } +func (e *InvalidTrackingOptionsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTrackingOptions" + } + return *e.ErrorCodeOverride +} func (e *InvalidTrackingOptionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a resource could not be created because of service limits. For a @@ -589,6 +737,8 @@ func (e *InvalidTrackingOptionsException) ErrorFault() smithy.ErrorFault { retur type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -601,7 +751,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceeded" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the message could not be sent because Amazon SES could not read @@ -612,6 +767,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MailFromDomainNotVerifiedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -625,7 +782,10 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - return "MailFromDomainNotVerifiedException" + if e.ErrorCodeOverride == nil { + return "MailFromDomainNotVerifiedException" + } + return *e.ErrorCodeOverride } func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -636,6 +796,8 @@ func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { type MessageRejected struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -648,7 +810,12 @@ func (e *MessageRejected) ErrorMessage() string { } return *e.Message } -func (e *MessageRejected) ErrorCode() string { return "MessageRejected" } +func (e *MessageRejected) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MessageRejected" + } + return *e.ErrorCodeOverride +} func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that one or more of the replacement values for the specified template @@ -657,6 +824,8 @@ func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type MissingRenderingAttributeException struct { Message *string + ErrorCodeOverride *string + TemplateName *string noSmithyDocumentSerde @@ -671,7 +840,12 @@ func (e *MissingRenderingAttributeException) ErrorMessage() string { } return *e.Message } -func (e *MissingRenderingAttributeException) ErrorCode() string { return "MissingRenderingAttribute" } +func (e *MissingRenderingAttributeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingRenderingAttribute" + } + return *e.ErrorCodeOverride +} func (e *MissingRenderingAttributeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -680,6 +854,8 @@ func (e *MissingRenderingAttributeException) ErrorFault() smithy.ErrorFault { type ProductionAccessNotGrantedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -692,7 +868,12 @@ func (e *ProductionAccessNotGrantedException) ErrorMessage() string { } return *e.Message } -func (e *ProductionAccessNotGrantedException) ErrorCode() string { return "ProductionAccessNotGranted" } +func (e *ProductionAccessNotGrantedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ProductionAccessNotGranted" + } + return *e.ErrorCodeOverride +} func (e *ProductionAccessNotGrantedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -701,6 +882,8 @@ func (e *ProductionAccessNotGrantedException) ErrorFault() smithy.ErrorFault { type RuleDoesNotExistException struct { Message *string + ErrorCodeOverride *string + Name *string noSmithyDocumentSerde @@ -715,13 +898,20 @@ func (e *RuleDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *RuleDoesNotExistException) ErrorCode() string { return "RuleDoesNotExist" } +func (e *RuleDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RuleDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *RuleDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the provided receipt rule set does not exist. type RuleSetDoesNotExistException struct { Message *string + ErrorCodeOverride *string + Name *string noSmithyDocumentSerde @@ -736,7 +926,12 @@ func (e *RuleSetDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *RuleSetDoesNotExistException) ErrorCode() string { return "RuleSetDoesNotExist" } +func (e *RuleSetDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RuleSetDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *RuleSetDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the Template object you specified does not exist in your Amazon @@ -744,6 +939,8 @@ func (e *RuleSetDoesNotExistException) ErrorFault() smithy.ErrorFault { return s type TemplateDoesNotExistException struct { Message *string + ErrorCodeOverride *string + TemplateName *string noSmithyDocumentSerde @@ -758,7 +955,12 @@ func (e *TemplateDoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *TemplateDoesNotExistException) ErrorCode() string { return "TemplateDoesNotExist" } +func (e *TemplateDoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TemplateDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *TemplateDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the configuration set you specified already contains a @@ -766,6 +968,8 @@ func (e *TemplateDoesNotExistException) ErrorFault() smithy.ErrorFault { return type TrackingOptionsAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string noSmithyDocumentSerde @@ -781,7 +985,10 @@ func (e *TrackingOptionsAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *TrackingOptionsAlreadyExistsException) ErrorCode() string { - return "TrackingOptionsAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "TrackingOptionsAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *TrackingOptionsAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -791,6 +998,8 @@ func (e *TrackingOptionsAlreadyExistsException) ErrorFault() smithy.ErrorFault { type TrackingOptionsDoesNotExistException struct { Message *string + ErrorCodeOverride *string + ConfigurationSetName *string noSmithyDocumentSerde @@ -806,7 +1015,10 @@ func (e *TrackingOptionsDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *TrackingOptionsDoesNotExistException) ErrorCode() string { - return "TrackingOptionsDoesNotExistException" + if e.ErrorCodeOverride == nil { + return "TrackingOptionsDoesNotExistException" + } + return *e.ErrorCodeOverride } func (e *TrackingOptionsDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/sesv2/types/errors.go b/service/sesv2/types/errors.go index cdcf7ce7564..c41f6cfbac0 100644 --- a/service/sesv2/types/errors.go +++ b/service/sesv2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountSuspendedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccountSuspendedException) ErrorMessage() string { } return *e.Message } -func (e *AccountSuspendedException) ErrorCode() string { return "AccountSuspendedException" } +func (e *AccountSuspendedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccountSuspendedException" + } + return *e.ErrorCodeOverride +} func (e *AccountSuspendedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in your request already exists. type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is being modified by another operation or thread. type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -90,6 +116,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +130,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be processed because an error occurred with the Amazon SES @@ -110,6 +143,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,13 +157,20 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified request includes an invalid or expired token. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,13 +183,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are too many instances of the specified resource type. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -160,13 +209,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The message can't be sent because the sending domain isn't verified. type MailFromDomainNotVerifiedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -180,7 +236,10 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - return "MailFromDomainNotVerifiedException" + if e.ErrorCodeOverride == nil { + return "MailFromDomainNotVerifiedException" + } + return *e.ErrorCodeOverride } func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -190,6 +249,8 @@ func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { type MessageRejected struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -202,13 +263,20 @@ func (e *MessageRejected) ErrorMessage() string { } return *e.Message } -func (e *MessageRejected) ErrorCode() string { return "MessageRejected" } +func (e *MessageRejected) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MessageRejected" + } + return *e.ErrorCodeOverride +} func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you attempted to access doesn't exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -221,7 +289,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The message can't be sent because the account's ability to send email is @@ -229,6 +302,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type SendingPausedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -241,13 +316,20 @@ func (e *SendingPausedException) ErrorMessage() string { } return *e.Message } -func (e *SendingPausedException) ErrorCode() string { return "SendingPausedException" } +func (e *SendingPausedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SendingPausedException" + } + return *e.ErrorCodeOverride +} func (e *SendingPausedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests have been made to the operation. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -260,5 +342,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sfn/types/errors.go b/service/sfn/types/errors.go index 9ff7ad4bc58..ac953c31515 100644 --- a/service/sfn/types/errors.go +++ b/service/sfn/types/errors.go @@ -11,6 +11,8 @@ import ( type ActivityDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *ActivityDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *ActivityDoesNotExist) ErrorCode() string { return "ActivityDoesNotExist" } +func (e *ActivityDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ActivityDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *ActivityDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of activities has been reached. Existing activities must be @@ -31,6 +38,8 @@ func (e *ActivityDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.Fa type ActivityLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *ActivityLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ActivityLimitExceeded) ErrorCode() string { return "ActivityLimitExceeded" } +func (e *ActivityLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ActivityLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ActivityLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of workers concurrently polling for activity tasks has been @@ -51,6 +65,8 @@ func (e *ActivityLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.F type ActivityWorkerLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *ActivityWorkerLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ActivityWorkerLimitExceeded) ErrorCode() string { return "ActivityWorkerLimitExceeded" } +func (e *ActivityWorkerLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ActivityWorkerLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ActivityWorkerLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The execution has the same name as another execution (but a different input). @@ -71,6 +92,8 @@ func (e *ActivityWorkerLimitExceeded) ErrorFault() smithy.ErrorFault { return sm type ExecutionAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *ExecutionAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *ExecutionAlreadyExists) ErrorCode() string { return "ExecutionAlreadyExists" } +func (e *ExecutionAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExecutionAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ExecutionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified execution does not exist. type ExecutionDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +132,12 @@ func (e *ExecutionDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *ExecutionDoesNotExist) ErrorCode() string { return "ExecutionDoesNotExist" } +func (e *ExecutionDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExecutionDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *ExecutionDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of running executions has been reached. Running executions @@ -110,6 +145,8 @@ func (e *ExecutionDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.F type ExecutionLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,13 +159,20 @@ func (e *ExecutionLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ExecutionLimitExceeded) ErrorCode() string { return "ExecutionLimitExceeded" } +func (e *ExecutionLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExecutionLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ExecutionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Amazon Resource Name (ARN) is not valid. type InvalidArn struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,13 +185,20 @@ func (e *InvalidArn) ErrorMessage() string { } return *e.Message } -func (e *InvalidArn) ErrorCode() string { return "InvalidArn" } +func (e *InvalidArn) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArn" + } + return *e.ErrorCodeOverride +} func (e *InvalidArn) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Amazon States Language definition is not valid. type InvalidDefinition struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -160,13 +211,20 @@ func (e *InvalidDefinition) ErrorMessage() string { } return *e.Message } -func (e *InvalidDefinition) ErrorCode() string { return "InvalidDefinition" } +func (e *InvalidDefinition) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDefinition" + } + return *e.ErrorCodeOverride +} func (e *InvalidDefinition) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided JSON input data is not valid. type InvalidExecutionInput struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -179,12 +237,19 @@ func (e *InvalidExecutionInput) ErrorMessage() string { } return *e.Message } -func (e *InvalidExecutionInput) ErrorCode() string { return "InvalidExecutionInput" } +func (e *InvalidExecutionInput) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidExecutionInput" + } + return *e.ErrorCodeOverride +} func (e *InvalidExecutionInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidLoggingConfiguration struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -197,13 +262,20 @@ func (e *InvalidLoggingConfiguration) ErrorMessage() string { } return *e.Message } -func (e *InvalidLoggingConfiguration) ErrorCode() string { return "InvalidLoggingConfiguration" } +func (e *InvalidLoggingConfiguration) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidLoggingConfiguration" + } + return *e.ErrorCodeOverride +} func (e *InvalidLoggingConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided name is not valid. type InvalidName struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -216,13 +288,20 @@ func (e *InvalidName) ErrorMessage() string { } return *e.Message } -func (e *InvalidName) ErrorCode() string { return "InvalidName" } +func (e *InvalidName) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidName" + } + return *e.ErrorCodeOverride +} func (e *InvalidName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided JSON output data is not valid. type InvalidOutput struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -235,13 +314,20 @@ func (e *InvalidOutput) ErrorMessage() string { } return *e.Message } -func (e *InvalidOutput) ErrorCode() string { return "InvalidOutput" } +func (e *InvalidOutput) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOutput" + } + return *e.ErrorCodeOverride +} func (e *InvalidOutput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided token is not valid. type InvalidToken struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -254,7 +340,12 @@ func (e *InvalidToken) ErrorMessage() string { } return *e.Message } -func (e *InvalidToken) ErrorCode() string { return "InvalidToken" } +func (e *InvalidToken) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidToken" + } + return *e.ErrorCodeOverride +} func (e *InvalidToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your tracingConfiguration key does not match, or enabled has not been set to @@ -262,6 +353,8 @@ func (e *InvalidToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type InvalidTracingConfiguration struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -274,7 +367,12 @@ func (e *InvalidTracingConfiguration) ErrorMessage() string { } return *e.Message } -func (e *InvalidTracingConfiguration) ErrorCode() string { return "InvalidTracingConfiguration" } +func (e *InvalidTracingConfiguration) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTracingConfiguration" + } + return *e.ErrorCodeOverride +} func (e *InvalidTracingConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request is missing a required parameter. This error occurs if both definition @@ -282,6 +380,8 @@ func (e *InvalidTracingConfiguration) ErrorFault() smithy.ErrorFault { return sm type MissingRequiredParameter struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -294,7 +394,12 @@ func (e *MissingRequiredParameter) ErrorMessage() string { } return *e.Message } -func (e *MissingRequiredParameter) ErrorCode() string { return "MissingRequiredParameter" } +func (e *MissingRequiredParameter) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MissingRequiredParameter" + } + return *e.ErrorCodeOverride +} func (e *MissingRequiredParameter) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Could not find the referenced resource. Only state machine and activity ARNs are @@ -302,6 +407,8 @@ func (e *MissingRequiredParameter) ErrorFault() smithy.ErrorFault { return smith type ResourceNotFound struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -316,7 +423,12 @@ func (e *ResourceNotFound) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFound) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A state machine with the same name but a different definition or role ARN @@ -324,6 +436,8 @@ func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultC type StateMachineAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -336,13 +450,20 @@ func (e *StateMachineAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *StateMachineAlreadyExists) ErrorCode() string { return "StateMachineAlreadyExists" } +func (e *StateMachineAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StateMachineAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *StateMachineAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified state machine is being deleted. type StateMachineDeleting struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -355,13 +476,20 @@ func (e *StateMachineDeleting) ErrorMessage() string { } return *e.Message } -func (e *StateMachineDeleting) ErrorCode() string { return "StateMachineDeleting" } +func (e *StateMachineDeleting) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StateMachineDeleting" + } + return *e.ErrorCodeOverride +} func (e *StateMachineDeleting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified state machine does not exist. type StateMachineDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -374,7 +502,12 @@ func (e *StateMachineDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *StateMachineDoesNotExist) ErrorCode() string { return "StateMachineDoesNotExist" } +func (e *StateMachineDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StateMachineDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *StateMachineDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of state machines has been reached. Existing state machines @@ -382,6 +515,8 @@ func (e *StateMachineDoesNotExist) ErrorFault() smithy.ErrorFault { return smith type StateMachineLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -394,12 +529,19 @@ func (e *StateMachineLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *StateMachineLimitExceeded) ErrorCode() string { return "StateMachineLimitExceeded" } +func (e *StateMachineLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StateMachineLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *StateMachineLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type StateMachineTypeNotSupported struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -412,12 +554,19 @@ func (e *StateMachineTypeNotSupported) ErrorMessage() string { } return *e.Message } -func (e *StateMachineTypeNotSupported) ErrorCode() string { return "StateMachineTypeNotSupported" } +func (e *StateMachineTypeNotSupported) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StateMachineTypeNotSupported" + } + return *e.ErrorCodeOverride +} func (e *StateMachineTypeNotSupported) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TaskDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -430,12 +579,19 @@ func (e *TaskDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *TaskDoesNotExist) ErrorCode() string { return "TaskDoesNotExist" } +func (e *TaskDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TaskDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *TaskDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TaskTimedOut struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -448,7 +604,12 @@ func (e *TaskTimedOut) ErrorMessage() string { } return *e.Message } -func (e *TaskTimedOut) ErrorCode() string { return "TaskTimedOut" } +func (e *TaskTimedOut) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TaskTimedOut" + } + return *e.ErrorCodeOverride +} func (e *TaskTimedOut) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've exceeded the number of tags allowed for a resource. See the Limits Topic @@ -457,6 +618,8 @@ func (e *TaskTimedOut) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type TooManyTags struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -471,7 +634,12 @@ func (e *TooManyTags) ErrorMessage() string { } return *e.Message } -func (e *TooManyTags) ErrorCode() string { return "TooManyTags" } +func (e *TooManyTags) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTags" + } + return *e.ErrorCodeOverride +} func (e *TooManyTags) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input does not satisfy the constraints specified by an Amazon Web Services @@ -479,6 +647,8 @@ func (e *TooManyTags) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason noSmithyDocumentSerde @@ -493,5 +663,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index dd910567d93..bbbcd2c6f20 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // In order to grant the necessary access to the Shield Response Team (SRT) the @@ -36,6 +43,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AccessDeniedForDependencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -49,7 +58,10 @@ func (e *AccessDeniedForDependencyException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedForDependencyException) ErrorCode() string { - return "AccessDeniedForDependencyException" + if e.ErrorCodeOverride == nil { + return "AccessDeniedForDependencyException" + } + return *e.ErrorCodeOverride } func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -60,6 +72,8 @@ func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -72,13 +86,20 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalErrorException" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exception that indicates that the operation would not cause any change to occur. type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -91,7 +112,12 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that indicates that the NextToken specified in the request is invalid. @@ -100,6 +126,8 @@ func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smit type InvalidPaginationTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -113,7 +141,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.ErrorCodeOverride == nil { + return "InvalidPaginationTokenException" + } + return *e.ErrorCodeOverride } func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -122,6 +153,8 @@ func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { retur type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -137,7 +170,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that indicates that the resource is invalid. You might not have access @@ -145,6 +183,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -157,13 +197,20 @@ func (e *InvalidResourceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceException) ErrorCode() string { return "InvalidResourceException" } +func (e *InvalidResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that indicates that the operation would exceed a limit. type LimitsExceededException struct { Message *string + ErrorCodeOverride *string + Type *string Limit int64 @@ -179,7 +226,12 @@ func (e *LimitsExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitsExceededException) ErrorCode() string { return "LimitsExceededException" } +func (e *LimitsExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitsExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are trying to update a subscription that has not yet completed the 1-year @@ -189,6 +241,8 @@ func (e *LimitsExceededException) ErrorFault() smithy.ErrorFault { return smithy type LockedSubscriptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -201,13 +255,20 @@ func (e *LockedSubscriptionException) ErrorMessage() string { } return *e.Message } -func (e *LockedSubscriptionException) ErrorCode() string { return "LockedSubscriptionException" } +func (e *LockedSubscriptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LockedSubscriptionException" + } + return *e.ErrorCodeOverride +} func (e *LockedSubscriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ARN of the role that you specified does not exist. type NoAssociatedRoleException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -220,7 +281,12 @@ func (e *NoAssociatedRoleException) ErrorMessage() string { } return *e.Message } -func (e *NoAssociatedRoleException) ErrorCode() string { return "NoAssociatedRoleException" } +func (e *NoAssociatedRoleException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoAssociatedRoleException" + } + return *e.ErrorCodeOverride +} func (e *NoAssociatedRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that indicates that the resource state has been modified by another @@ -228,6 +294,8 @@ func (e *NoAssociatedRoleException) ErrorFault() smithy.ErrorFault { return smit type OptimisticLockException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -240,7 +308,12 @@ func (e *OptimisticLockException) ErrorMessage() string { } return *e.Message } -func (e *OptimisticLockException) ErrorCode() string { return "OptimisticLockException" } +func (e *OptimisticLockException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OptimisticLockException" + } + return *e.ErrorCodeOverride +} func (e *OptimisticLockException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception indicating the specified resource already exists. If available, this @@ -248,6 +321,8 @@ func (e *OptimisticLockException) ErrorFault() smithy.ErrorFault { return smithy type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -262,7 +337,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception indicating the specified resource does not exist. If available, this @@ -270,6 +350,8 @@ func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -284,5 +366,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/signer/types/errors.go b/service/signer/types/errors.go index 956222be768..4e8cfedf87b 100644 --- a/service/signer/types/errors.go +++ b/service/signer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -25,7 +27,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains invalid parameters for the ARN or tags. This exception also @@ -33,6 +40,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type BadRequestException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -47,13 +56,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource encountered a conflicting state. type ConflictException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -68,13 +84,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. type InternalServiceErrorException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -89,13 +112,20 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The signing profile was not found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -110,13 +140,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -131,13 +168,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is making a request that exceeds service limits. type ServiceLimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -152,7 +196,12 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceLimitExceededException) ErrorCode() string { return "ServiceLimitExceededException" } +func (e *ServiceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. Instead of this error, @@ -160,6 +209,8 @@ func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -174,7 +225,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The allowed number of job-signing requests has been exceeded. This error @@ -182,6 +238,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -196,13 +254,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You signing certificate could not be validated. type ValidationException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -217,5 +282,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/simspaceweaver/types/errors.go b/service/simspaceweaver/types/errors.go index d055134efac..c7de2e4f5de 100644 --- a/service/simspaceweaver/types/errors.go +++ b/service/simspaceweaver/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,12 +24,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -40,12 +49,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -58,12 +74,19 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -76,12 +99,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -94,12 +124,19 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -112,12 +149,19 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,5 +174,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sms/types/errors.go b/service/sms/types/errors.go index 97476e3d3ec..7f9fe7a9717 100644 --- a/service/sms/types/errors.go +++ b/service/sms/types/errors.go @@ -12,6 +12,8 @@ import ( type DryRunOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *DryRunOperationException) ErrorMessage() string { } return *e.Message } -func (e *DryRunOperationException) ErrorCode() string { return "DryRunOperationException" } +func (e *DryRunOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DryRunOperationException" + } + return *e.ErrorCodeOverride +} func (e *DryRunOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. type InternalError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,13 +52,20 @@ func (e *InternalError) ErrorMessage() string { } return *e.Message } -func (e *InternalError) ErrorCode() string { return "InternalError" } +func (e *InternalError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalError" + } + return *e.ErrorCodeOverride +} func (e *InternalError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A specified parameter is not valid. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A required parameter is missing. type MissingRequiredParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,10 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - return "MissingRequiredParameterException" + if e.ErrorCodeOverride == nil { + return "MissingRequiredParameterException" + } + return *e.ErrorCodeOverride } func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -90,6 +116,8 @@ func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { ret type NoConnectorsAvailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +130,20 @@ func (e *NoConnectorsAvailableException) ErrorMessage() string { } return *e.Message } -func (e *NoConnectorsAvailableException) ErrorCode() string { return "NoConnectorsAvailableException" } +func (e *NoConnectorsAvailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NoConnectorsAvailableException" + } + return *e.ErrorCodeOverride +} func (e *NoConnectorsAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not allowed. type OperationNotPermittedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +156,20 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermittedException" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermittedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified replication job already exists. type ReplicationJobAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -141,7 +183,10 @@ func (e *ReplicationJobAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ReplicationJobAlreadyExistsException) ErrorCode() string { - return "ReplicationJobAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "ReplicationJobAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *ReplicationJobAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -151,6 +196,8 @@ func (e *ReplicationJobAlreadyExistsException) ErrorFault() smithy.ErrorFault { type ReplicationJobNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -164,7 +211,10 @@ func (e *ReplicationJobNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReplicationJobNotFoundException) ErrorCode() string { - return "ReplicationJobNotFoundException" + if e.ErrorCodeOverride == nil { + return "ReplicationJobNotFoundException" + } + return *e.ErrorCodeOverride } func (e *ReplicationJobNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -173,6 +223,8 @@ func (e *ReplicationJobNotFoundException) ErrorFault() smithy.ErrorFault { retur type ReplicationRunLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -186,7 +238,10 @@ func (e *ReplicationRunLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ReplicationRunLimitExceededException) ErrorCode() string { - return "ReplicationRunLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ReplicationRunLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ReplicationRunLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -196,6 +251,8 @@ func (e *ReplicationRunLimitExceededException) ErrorFault() smithy.ErrorFault { type ServerCannotBeReplicatedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -209,7 +266,10 @@ func (e *ServerCannotBeReplicatedException) ErrorMessage() string { return *e.Message } func (e *ServerCannotBeReplicatedException) ErrorCode() string { - return "ServerCannotBeReplicatedException" + if e.ErrorCodeOverride == nil { + return "ServerCannotBeReplicatedException" + } + return *e.ErrorCodeOverride } func (e *ServerCannotBeReplicatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -217,6 +277,8 @@ func (e *ServerCannotBeReplicatedException) ErrorFault() smithy.ErrorFault { ret type TemporarilyUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -230,7 +292,10 @@ func (e *TemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *TemporarilyUnavailableException) ErrorCode() string { - return "TemporarilyUnavailableException" + if e.ErrorCodeOverride == nil { + return "TemporarilyUnavailableException" + } + return *e.ErrorCodeOverride } func (e *TemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } @@ -239,6 +304,8 @@ func (e *TemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { retur type UnauthorizedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -251,5 +318,10 @@ func (e *UnauthorizedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedOperationException) ErrorCode() string { return "UnauthorizedOperationException" } +func (e *UnauthorizedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/snowball/types/errors.go b/service/snowball/types/errors.go index 1b9ae7675a0..76f2646a362 100644 --- a/service/snowball/types/errors.go +++ b/service/snowball/types/errors.go @@ -13,6 +13,8 @@ import ( type ClusterLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,12 @@ func (e *ClusterLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ClusterLimitExceededException) ErrorCode() string { return "ClusterLimitExceededException" } +func (e *ClusterLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ClusterLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ClusterLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You get this exception when you call CreateReturnShippingLabel more than once @@ -33,6 +40,8 @@ func (e *ClusterLimitExceededException) ErrorFault() smithy.ErrorFault { return type ConflictException struct { Message *string + ErrorCodeOverride *string + ConflictResource *string noSmithyDocumentSerde @@ -47,7 +56,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your IAM user lacks the necessary Amazon EC2 permissions to perform the @@ -55,6 +69,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type Ec2RequestFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,7 +83,12 @@ func (e *Ec2RequestFailedException) ErrorMessage() string { } return *e.Message } -func (e *Ec2RequestFailedException) ErrorCode() string { return "Ec2RequestFailedException" } +func (e *Ec2RequestFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "Ec2RequestFailedException" + } + return *e.ErrorCodeOverride +} func (e *Ec2RequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The address provided was invalid. Check the address with your region's carrier, @@ -75,6 +96,8 @@ func (e *Ec2RequestFailedException) ErrorFault() smithy.ErrorFault { return smit type InvalidAddressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,7 +110,12 @@ func (e *InvalidAddressException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAddressException) ErrorCode() string { return "InvalidAddressException" } +func (e *InvalidAddressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAddressException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAddressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Job or cluster creation failed. One or more inputs were invalid. Confirm that @@ -96,6 +124,8 @@ func (e *InvalidAddressException) ErrorFault() smithy.ErrorFault { return smithy type InvalidInputCombinationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -109,7 +139,10 @@ func (e *InvalidInputCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidInputCombinationException) ErrorCode() string { - return "InvalidInputCombinationException" + if e.ErrorCodeOverride == nil { + return "InvalidInputCombinationException" + } + return *e.ErrorCodeOverride } func (e *InvalidInputCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -118,6 +151,8 @@ func (e *InvalidInputCombinationException) ErrorFault() smithy.ErrorFault { retu type InvalidJobStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,7 +165,12 @@ func (e *InvalidJobStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidJobStateException) ErrorCode() string { return "InvalidJobStateException" } +func (e *InvalidJobStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidJobStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidJobStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The NextToken string was altered unexpectedly, and the operation has stopped. @@ -138,6 +178,8 @@ func (e *InvalidJobStateException) ErrorFault() smithy.ErrorFault { return smith type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,7 +192,12 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource can't be found. Check the information you provided in @@ -158,6 +205,8 @@ func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smit type InvalidResourceException struct { Message *string + ErrorCodeOverride *string + ResourceType *string noSmithyDocumentSerde @@ -172,7 +221,12 @@ func (e *InvalidResourceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceException) ErrorCode() string { return "InvalidResourceException" } +func (e *InvalidResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Key Management Service key lacks the permissions to perform the @@ -180,6 +234,8 @@ func (e *InvalidResourceException) ErrorFault() smithy.ErrorFault { return smith type KMSRequestFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -192,7 +248,12 @@ func (e *KMSRequestFailedException) ErrorMessage() string { } return *e.Message } -func (e *KMSRequestFailedException) ErrorCode() string { return "KMSRequestFailedException" } +func (e *KMSRequestFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSRequestFailedException" + } + return *e.ErrorCodeOverride +} func (e *KMSRequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You get this exception if you call CreateReturnShippingLabel and a valid return @@ -201,6 +262,8 @@ func (e *KMSRequestFailedException) ErrorFault() smithy.ErrorFault { return smit type ReturnShippingLabelAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -214,7 +277,10 @@ func (e *ReturnShippingLabelAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ReturnShippingLabelAlreadyExistsException) ErrorCode() string { - return "ReturnShippingLabelAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "ReturnShippingLabelAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *ReturnShippingLabelAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -226,6 +292,8 @@ func (e *ReturnShippingLabelAlreadyExistsException) ErrorFault() smithy.ErrorFau type UnsupportedAddressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -238,5 +306,10 @@ func (e *UnsupportedAddressException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedAddressException) ErrorCode() string { return "UnsupportedAddressException" } +func (e *UnsupportedAddressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedAddressException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedAddressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/snowdevicemanagement/types/errors.go b/service/snowdevicemanagement/types/errors.go index bed0bf7c18d..ee772c7ac02 100644 --- a/service/snowdevicemanagement/types/errors.go +++ b/service/snowdevicemanagement/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,7 +129,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an Amazon Web Services @@ -107,6 +142,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,5 +156,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sns/types/errors.go b/service/sns/types/errors.go index 31a756ed39b..8bda7bd6864 100644 --- a/service/sns/types/errors.go +++ b/service/sns/types/errors.go @@ -11,6 +11,8 @@ import ( type AuthorizationErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AuthorizationErrorException) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationErrorException) ErrorCode() string { return "AuthorizationError" } +func (e *AuthorizationErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationError" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two or more batch entries in the request have the same Id. type BatchEntryIdsNotDistinctException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *BatchEntryIdsNotDistinctException) ErrorMessage() string { } return *e.Message } -func (e *BatchEntryIdsNotDistinctException) ErrorCode() string { return "BatchEntryIdsNotDistinct" } +func (e *BatchEntryIdsNotDistinctException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BatchEntryIdsNotDistinct" + } + return *e.ErrorCodeOverride +} func (e *BatchEntryIdsNotDistinctException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The length of all the batch messages put together is more than the limit. type BatchRequestTooLongException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *BatchRequestTooLongException) ErrorMessage() string { } return *e.Message } -func (e *BatchRequestTooLongException) ErrorCode() string { return "BatchRequestTooLong" } +func (e *BatchRequestTooLongException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BatchRequestTooLong" + } + return *e.ErrorCodeOverride +} func (e *BatchRequestTooLongException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Can't perform multiple operations on a tag simultaneously. Perform the @@ -69,6 +90,8 @@ func (e *BatchRequestTooLongException) ErrorFault() smithy.ErrorFault { return s type ConcurrentAccessException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *ConcurrentAccessException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentAccessException) ErrorCode() string { return "ConcurrentAccess" } +func (e *ConcurrentAccessException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConcurrentAccess" + } + return *e.ErrorCodeOverride +} func (e *ConcurrentAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request doesn't contain any entries. type EmptyBatchRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *EmptyBatchRequestException) ErrorMessage() string { } return *e.Message } -func (e *EmptyBatchRequestException) ErrorCode() string { return "EmptyBatchRequest" } +func (e *EmptyBatchRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EmptyBatchRequest" + } + return *e.ErrorCodeOverride +} func (e *EmptyBatchRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception error indicating endpoint disabled. type EndpointDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -119,7 +156,12 @@ func (e *EndpointDisabledException) ErrorMessage() string { } return *e.Message } -func (e *EndpointDisabledException) ErrorCode() string { return "EndpointDisabled" } +func (e *EndpointDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EndpointDisabled" + } + return *e.ErrorCodeOverride +} func (e *EndpointDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the number of filter polices in your Amazon Web Services account @@ -128,6 +170,8 @@ func (e *EndpointDisabledException) ErrorFault() smithy.ErrorFault { return smit type FilterPolicyLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,7 +184,12 @@ func (e *FilterPolicyLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *FilterPolicyLimitExceededException) ErrorCode() string { return "FilterPolicyLimitExceeded" } +func (e *FilterPolicyLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FilterPolicyLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *FilterPolicyLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -149,6 +198,8 @@ func (e *FilterPolicyLimitExceededException) ErrorFault() smithy.ErrorFault { type InternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -161,13 +212,20 @@ func (e *InternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalErrorException) ErrorCode() string { return "InternalError" } +func (e *InternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalError" + } + return *e.ErrorCodeOverride +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The Id of a batch entry in a batch request doesn't abide by the specification. type InvalidBatchEntryIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -180,7 +238,12 @@ func (e *InvalidBatchEntryIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidBatchEntryIdException) ErrorCode() string { return "InvalidBatchEntryId" } +func (e *InvalidBatchEntryIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidBatchEntryId" + } + return *e.ErrorCodeOverride +} func (e *InvalidBatchEntryIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request parameter does not comply with the associated @@ -188,6 +251,8 @@ func (e *InvalidBatchEntryIdException) ErrorFault() smithy.ErrorFault { return s type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -200,7 +265,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameter" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameter" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request parameter does not comply with the associated @@ -208,6 +278,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -220,7 +292,12 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "ParameterValueInvalid" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParameterValueInvalid" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The credential signature isn't valid. You must use an HTTPS endpoint and sign @@ -228,6 +305,8 @@ func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return type InvalidSecurityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -240,7 +319,12 @@ func (e *InvalidSecurityException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSecurityException) ErrorCode() string { return "InvalidSecurity" } +func (e *InvalidSecurityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSecurity" + } + return *e.ErrorCodeOverride +} func (e *InvalidSecurityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ciphertext references a key that doesn't exist or that you don't have access @@ -248,6 +332,8 @@ func (e *InvalidSecurityException) ErrorFault() smithy.ErrorFault { return smith type KMSAccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -260,7 +346,12 @@ func (e *KMSAccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *KMSAccessDeniedException) ErrorCode() string { return "KMSAccessDenied" } +func (e *KMSAccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSAccessDenied" + } + return *e.ErrorCodeOverride +} func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified customer master key (CMK) isn't @@ -268,6 +359,8 @@ func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smith type KMSDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -280,7 +373,12 @@ func (e *KMSDisabledException) ErrorMessage() string { } return *e.Message } -func (e *KMSDisabledException) ErrorCode() string { return "KMSDisabled" } +func (e *KMSDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSDisabled" + } + return *e.ErrorCodeOverride +} func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the state of the specified resource isn't valid @@ -291,6 +389,8 @@ func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.Fa type KMSInvalidStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -303,7 +403,12 @@ func (e *KMSInvalidStateException) ErrorMessage() string { } return *e.Message } -func (e *KMSInvalidStateException) ErrorCode() string { return "KMSInvalidState" } +func (e *KMSInvalidStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSInvalidState" + } + return *e.ErrorCodeOverride +} func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified entity or resource can't be @@ -311,6 +416,8 @@ func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smith type KMSNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -323,13 +430,20 @@ func (e *KMSNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *KMSNotFoundException) ErrorCode() string { return "KMSNotFound" } +func (e *KMSNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSNotFound" + } + return *e.ErrorCodeOverride +} func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Web Services access key ID needs a subscription for the service. type KMSOptInRequired struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -342,7 +456,12 @@ func (e *KMSOptInRequired) ErrorMessage() string { } return *e.Message } -func (e *KMSOptInRequired) ErrorCode() string { return "KMSOptInRequired" } +func (e *KMSOptInRequired) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSOptInRequired" + } + return *e.ErrorCodeOverride +} func (e *KMSOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. For more information about @@ -352,6 +471,8 @@ func (e *KMSOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultC type KMSThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -364,13 +485,20 @@ func (e *KMSThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *KMSThrottlingException) ErrorCode() string { return "KMSThrottling" } +func (e *KMSThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "KMSThrottling" + } + return *e.ErrorCodeOverride +} func (e *KMSThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the requested resource does not exist. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -383,7 +511,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFound" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFound" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the specified phone number opted out of receiving SMS messages @@ -392,6 +525,8 @@ func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.Fault type OptedOutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -404,13 +539,20 @@ func (e *OptedOutException) ErrorMessage() string { } return *e.Message } -func (e *OptedOutException) ErrorCode() string { return "OptedOut" } +func (e *OptedOutException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OptedOut" + } + return *e.ErrorCodeOverride +} func (e *OptedOutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception error indicating platform application disabled. type PlatformApplicationDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -424,7 +566,10 @@ func (e *PlatformApplicationDisabledException) ErrorMessage() string { return *e.Message } func (e *PlatformApplicationDisabledException) ErrorCode() string { - return "PlatformApplicationDisabled" + if e.ErrorCodeOverride == nil { + return "PlatformApplicationDisabled" + } + return *e.ErrorCodeOverride } func (e *PlatformApplicationDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -435,6 +580,8 @@ func (e *PlatformApplicationDisabledException) ErrorFault() smithy.ErrorFault { type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -447,7 +594,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFound" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A tag has been added to a resource with the same ARN as a deleted resource. Wait @@ -455,6 +607,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type StaleTagException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -467,7 +621,12 @@ func (e *StaleTagException) ErrorMessage() string { } return *e.Message } -func (e *StaleTagException) ErrorCode() string { return "StaleTag" } +func (e *StaleTagException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StaleTag" + } + return *e.ErrorCodeOverride +} func (e *StaleTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the customer already owns the maximum allowed number of @@ -475,6 +634,8 @@ func (e *StaleTagException) ErrorFault() smithy.ErrorFault { return smithy.Fault type SubscriptionLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -487,7 +648,12 @@ func (e *SubscriptionLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionLimitExceededException) ErrorCode() string { return "SubscriptionLimitExceeded" } +func (e *SubscriptionLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SubscriptionLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *SubscriptionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -496,6 +662,8 @@ func (e *SubscriptionLimitExceededException) ErrorFault() smithy.ErrorFault { type TagLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -508,7 +676,12 @@ func (e *TagLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TagLimitExceededException) ErrorCode() string { return "TagLimitExceeded" } +func (e *TagLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request doesn't comply with the IAM tag policy. Correct your request and @@ -516,6 +689,8 @@ func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smit type TagPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -528,7 +703,12 @@ func (e *TagPolicyException) ErrorMessage() string { } return *e.Message } -func (e *TagPolicyException) ErrorCode() string { return "TagPolicy" } +func (e *TagPolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TagPolicy" + } + return *e.ErrorCodeOverride +} func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the rate at which requests have been submitted for this action @@ -536,6 +716,8 @@ func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.Faul type ThrottledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -548,13 +730,20 @@ func (e *ThrottledException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledException) ErrorCode() string { return "Throttled" } +func (e *ThrottledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "Throttled" + } + return *e.ErrorCodeOverride +} func (e *ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request contains more entries than permissible. type TooManyEntriesInBatchRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -568,7 +757,10 @@ func (e *TooManyEntriesInBatchRequestException) ErrorMessage() string { return *e.Message } func (e *TooManyEntriesInBatchRequestException) ErrorCode() string { - return "TooManyEntriesInBatchRequest" + if e.ErrorCodeOverride == nil { + return "TooManyEntriesInBatchRequest" + } + return *e.ErrorCodeOverride } func (e *TooManyEntriesInBatchRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -578,6 +770,8 @@ func (e *TooManyEntriesInBatchRequestException) ErrorFault() smithy.ErrorFault { type TopicLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -590,7 +784,12 @@ func (e *TopicLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TopicLimitExceededException) ErrorCode() string { return "TopicLimitExceeded" } +func (e *TopicLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TopicLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *TopicLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request parameter does not comply with the associated @@ -598,6 +797,8 @@ func (e *TopicLimitExceededException) ErrorFault() smithy.ErrorFault { return sm type UserErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -610,13 +811,20 @@ func (e *UserErrorException) ErrorMessage() string { } return *e.Message } -func (e *UserErrorException) ErrorCode() string { return "UserError" } +func (e *UserErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UserError" + } + return *e.ErrorCodeOverride +} func (e *UserErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a parameter in the request is invalid. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -629,13 +837,20 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the one-time password (OTP) used for verification is invalid. type VerificationException struct { Message *string + ErrorCodeOverride *string + Status *string noSmithyDocumentSerde @@ -650,5 +865,10 @@ func (e *VerificationException) ErrorMessage() string { } return *e.Message } -func (e *VerificationException) ErrorCode() string { return "VerificationException" } +func (e *VerificationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "VerificationException" + } + return *e.ErrorCodeOverride +} func (e *VerificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sqs/types/errors.go b/service/sqs/types/errors.go index c2559dca552..37c897e788b 100644 --- a/service/sqs/types/errors.go +++ b/service/sqs/types/errors.go @@ -11,6 +11,8 @@ import ( type BatchEntryIdsNotDistinct struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *BatchEntryIdsNotDistinct) ErrorMessage() string { return *e.Message } func (e *BatchEntryIdsNotDistinct) ErrorCode() string { - return "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" + } + return *e.ErrorCodeOverride } func (e *BatchEntryIdsNotDistinct) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -32,6 +37,8 @@ func (e *BatchEntryIdsNotDistinct) ErrorFault() smithy.ErrorFault { return smith type BatchRequestTooLong struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +51,20 @@ func (e *BatchRequestTooLong) ErrorMessage() string { } return *e.Message } -func (e *BatchRequestTooLong) ErrorCode() string { return "AWS.SimpleQueueService.BatchRequestTooLong" } +func (e *BatchRequestTooLong) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.BatchRequestTooLong" + } + return *e.ErrorCodeOverride +} func (e *BatchRequestTooLong) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request doesn't contain any entries. type EmptyBatchRequest struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +77,20 @@ func (e *EmptyBatchRequest) ErrorMessage() string { } return *e.Message } -func (e *EmptyBatchRequest) ErrorCode() string { return "AWS.SimpleQueueService.EmptyBatchRequest" } +func (e *EmptyBatchRequest) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.EmptyBatchRequest" + } + return *e.ErrorCodeOverride +} func (e *EmptyBatchRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified attribute doesn't exist. type InvalidAttributeName struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +103,20 @@ func (e *InvalidAttributeName) ErrorMessage() string { } return *e.Message } -func (e *InvalidAttributeName) ErrorCode() string { return "InvalidAttributeName" } +func (e *InvalidAttributeName) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAttributeName" + } + return *e.ErrorCodeOverride +} func (e *InvalidAttributeName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Id of a batch entry in a batch request doesn't abide by the specification. type InvalidBatchEntryId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -101,13 +129,20 @@ func (e *InvalidBatchEntryId) ErrorMessage() string { } return *e.Message } -func (e *InvalidBatchEntryId) ErrorCode() string { return "AWS.SimpleQueueService.InvalidBatchEntryId" } +func (e *InvalidBatchEntryId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.InvalidBatchEntryId" + } + return *e.ErrorCodeOverride +} func (e *InvalidBatchEntryId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified receipt handle isn't valid for the current version. type InvalidIdFormat struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -120,13 +155,20 @@ func (e *InvalidIdFormat) ErrorMessage() string { } return *e.Message } -func (e *InvalidIdFormat) ErrorCode() string { return "InvalidIdFormat" } +func (e *InvalidIdFormat) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidIdFormat" + } + return *e.ErrorCodeOverride +} func (e *InvalidIdFormat) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The message contains characters outside the allowed set. type InvalidMessageContents struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -139,13 +181,20 @@ func (e *InvalidMessageContents) ErrorMessage() string { } return *e.Message } -func (e *InvalidMessageContents) ErrorCode() string { return "InvalidMessageContents" } +func (e *InvalidMessageContents) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidMessageContents" + } + return *e.ErrorCodeOverride +} func (e *InvalidMessageContents) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified message isn't in flight. type MessageNotInflight struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -158,7 +207,12 @@ func (e *MessageNotInflight) ErrorMessage() string { } return *e.Message } -func (e *MessageNotInflight) ErrorCode() string { return "AWS.SimpleQueueService.MessageNotInflight" } +func (e *MessageNotInflight) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.MessageNotInflight" + } + return *e.ErrorCodeOverride +} func (e *MessageNotInflight) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified action violates a limit. For example, ReceiveMessage returns this @@ -168,6 +222,8 @@ func (e *MessageNotInflight) ErrorFault() smithy.ErrorFault { return smithy.Faul type OverLimit struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -180,7 +236,12 @@ func (e *OverLimit) ErrorMessage() string { } return *e.Message } -func (e *OverLimit) ErrorCode() string { return "OverLimit" } +func (e *OverLimit) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OverLimit" + } + return *e.ErrorCodeOverride +} func (e *OverLimit) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the specified queue previously received a PurgeQueue request @@ -189,6 +250,8 @@ func (e *OverLimit) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type PurgeQueueInProgress struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -202,7 +265,10 @@ func (e *PurgeQueueInProgress) ErrorMessage() string { return *e.Message } func (e *PurgeQueueInProgress) ErrorCode() string { - return "AWS.SimpleQueueService.PurgeQueueInProgress" + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.PurgeQueueInProgress" + } + return *e.ErrorCodeOverride } func (e *PurgeQueueInProgress) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -211,6 +277,8 @@ func (e *PurgeQueueInProgress) ErrorFault() smithy.ErrorFault { return smithy.Fa type QueueDeletedRecently struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -224,7 +292,10 @@ func (e *QueueDeletedRecently) ErrorMessage() string { return *e.Message } func (e *QueueDeletedRecently) ErrorCode() string { - return "AWS.SimpleQueueService.QueueDeletedRecently" + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.QueueDeletedRecently" + } + return *e.ErrorCodeOverride } func (e *QueueDeletedRecently) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -232,6 +303,8 @@ func (e *QueueDeletedRecently) ErrorFault() smithy.ErrorFault { return smithy.Fa type QueueDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -244,7 +317,12 @@ func (e *QueueDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *QueueDoesNotExist) ErrorCode() string { return "AWS.SimpleQueueService.NonExistentQueue" } +func (e *QueueDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.NonExistentQueue" + } + return *e.ErrorCodeOverride +} func (e *QueueDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A queue with this name already exists. Amazon SQS returns this error only if the @@ -253,6 +331,8 @@ func (e *QueueDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.Fault type QueueNameExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -265,13 +345,20 @@ func (e *QueueNameExists) ErrorMessage() string { } return *e.Message } -func (e *QueueNameExists) ErrorCode() string { return "QueueAlreadyExists" } +func (e *QueueNameExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "QueueAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *QueueNameExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified receipt handle isn't valid. type ReceiptHandleIsInvalid struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -284,13 +371,20 @@ func (e *ReceiptHandleIsInvalid) ErrorMessage() string { } return *e.Message } -func (e *ReceiptHandleIsInvalid) ErrorCode() string { return "ReceiptHandleIsInvalid" } +func (e *ReceiptHandleIsInvalid) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReceiptHandleIsInvalid" + } + return *e.ErrorCodeOverride +} func (e *ReceiptHandleIsInvalid) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request contains more entries than permissible. type TooManyEntriesInBatchRequest struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -304,7 +398,10 @@ func (e *TooManyEntriesInBatchRequest) ErrorMessage() string { return *e.Message } func (e *TooManyEntriesInBatchRequest) ErrorCode() string { - return "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" + } + return *e.ErrorCodeOverride } func (e *TooManyEntriesInBatchRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -312,6 +409,8 @@ func (e *TooManyEntriesInBatchRequest) ErrorFault() smithy.ErrorFault { return s type UnsupportedOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -325,6 +424,9 @@ func (e *UnsupportedOperation) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperation) ErrorCode() string { - return "AWS.SimpleQueueService.UnsupportedOperation" + if e.ErrorCodeOverride == nil { + return "AWS.SimpleQueueService.UnsupportedOperation" + } + return *e.ErrorCodeOverride } func (e *UnsupportedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssm/types/errors.go b/service/ssm/types/errors.go index 3be060f6ee1..4c13bfed6fb 100644 --- a/service/ssm/types/errors.go +++ b/service/ssm/types/errors.go @@ -12,6 +12,8 @@ import ( type AlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You must disassociate a document from all managed nodes before you can delete @@ -32,6 +39,8 @@ func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy. type AssociatedInstances struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *AssociatedInstances) ErrorMessage() string { } return *e.Message } -func (e *AssociatedInstances) ErrorCode() string { return "AssociatedInstances" } +func (e *AssociatedInstances) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AssociatedInstances" + } + return *e.ErrorCodeOverride +} func (e *AssociatedInstances) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified association already exists. type AssociationAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *AssociationAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *AssociationAlreadyExists) ErrorCode() string { return "AssociationAlreadyExists" } +func (e *AssociationAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AssociationAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *AssociationAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified association doesn't exist. type AssociationDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,13 +105,20 @@ func (e *AssociationDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *AssociationDoesNotExist) ErrorCode() string { return "AssociationDoesNotExist" } +func (e *AssociationDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AssociationDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *AssociationDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified execution ID doesn't exist. Verify the ID number and try again. type AssociationExecutionDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *AssociationExecutionDoesNotExist) ErrorMessage() string { return *e.Message } func (e *AssociationExecutionDoesNotExist) ErrorCode() string { - return "AssociationExecutionDoesNotExist" + if e.ErrorCodeOverride == nil { + return "AssociationExecutionDoesNotExist" + } + return *e.ErrorCodeOverride } func (e *AssociationExecutionDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -110,6 +143,8 @@ func (e *AssociationExecutionDoesNotExist) ErrorFault() smithy.ErrorFault { retu type AssociationLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -122,7 +157,12 @@ func (e *AssociationLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *AssociationLimitExceeded) ErrorCode() string { return "AssociationLimitExceeded" } +func (e *AssociationLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AssociationLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *AssociationLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number versions allowed for an association. Each @@ -130,6 +170,8 @@ func (e *AssociationLimitExceeded) ErrorFault() smithy.ErrorFault { return smith type AssociationVersionLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -143,7 +185,10 @@ func (e *AssociationVersionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *AssociationVersionLimitExceeded) ErrorCode() string { - return "AssociationVersionLimitExceeded" + if e.ErrorCodeOverride == nil { + return "AssociationVersionLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *AssociationVersionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -152,6 +197,8 @@ func (e *AssociationVersionLimitExceeded) ErrorFault() smithy.ErrorFault { retur type AutomationDefinitionNotApprovedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,7 +212,10 @@ func (e *AutomationDefinitionNotApprovedException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionNotApprovedException) ErrorCode() string { - return "AutomationDefinitionNotApprovedException" + if e.ErrorCodeOverride == nil { + return "AutomationDefinitionNotApprovedException" + } + return *e.ErrorCodeOverride } func (e *AutomationDefinitionNotApprovedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -175,6 +225,8 @@ func (e *AutomationDefinitionNotApprovedException) ErrorFault() smithy.ErrorFaul type AutomationDefinitionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -188,7 +240,10 @@ func (e *AutomationDefinitionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionNotFoundException) ErrorCode() string { - return "AutomationDefinitionNotFoundException" + if e.ErrorCodeOverride == nil { + return "AutomationDefinitionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *AutomationDefinitionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -198,6 +253,8 @@ func (e *AutomationDefinitionNotFoundException) ErrorFault() smithy.ErrorFault { type AutomationDefinitionVersionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -211,7 +268,10 @@ func (e *AutomationDefinitionVersionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionVersionNotFoundException) ErrorCode() string { - return "AutomationDefinitionVersionNotFoundException" + if e.ErrorCodeOverride == nil { + return "AutomationDefinitionVersionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *AutomationDefinitionVersionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -222,6 +282,8 @@ func (e *AutomationDefinitionVersionNotFoundException) ErrorFault() smithy.Error type AutomationExecutionLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -235,7 +297,10 @@ func (e *AutomationExecutionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionLimitExceededException) ErrorCode() string { - return "AutomationExecutionLimitExceededException" + if e.ErrorCodeOverride == nil { + return "AutomationExecutionLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *AutomationExecutionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -246,6 +311,8 @@ func (e *AutomationExecutionLimitExceededException) ErrorFault() smithy.ErrorFau type AutomationExecutionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -259,7 +326,10 @@ func (e *AutomationExecutionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionNotFoundException) ErrorCode() string { - return "AutomationExecutionNotFoundException" + if e.ErrorCodeOverride == nil { + return "AutomationExecutionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *AutomationExecutionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +340,8 @@ func (e *AutomationExecutionNotFoundException) ErrorFault() smithy.ErrorFault { type AutomationStepNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -283,7 +355,10 @@ func (e *AutomationStepNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationStepNotFoundException) ErrorCode() string { - return "AutomationStepNotFoundException" + if e.ErrorCodeOverride == nil { + return "AutomationStepNotFoundException" + } + return *e.ErrorCodeOverride } func (e *AutomationStepNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -292,6 +367,8 @@ func (e *AutomationStepNotFoundException) ErrorFault() smithy.ErrorFault { retur type ComplianceTypeCountLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -305,7 +382,10 @@ func (e *ComplianceTypeCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ComplianceTypeCountLimitExceededException) ErrorCode() string { - return "ComplianceTypeCountLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ComplianceTypeCountLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ComplianceTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -316,6 +396,8 @@ func (e *ComplianceTypeCountLimitExceededException) ErrorFault() smithy.ErrorFau type CustomSchemaCountLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -329,7 +411,10 @@ func (e *CustomSchemaCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CustomSchemaCountLimitExceededException) ErrorCode() string { - return "CustomSchemaCountLimitExceededException" + if e.ErrorCodeOverride == nil { + return "CustomSchemaCountLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *CustomSchemaCountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -339,6 +424,8 @@ func (e *CustomSchemaCountLimitExceededException) ErrorFault() smithy.ErrorFault type DocumentAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -351,13 +438,20 @@ func (e *DocumentAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *DocumentAlreadyExists) ErrorCode() string { return "DocumentAlreadyExists" } +func (e *DocumentAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DocumentAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *DocumentAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can have at most 500 active SSM documents. type DocumentLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -370,7 +464,12 @@ func (e *DocumentLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *DocumentLimitExceeded) ErrorCode() string { return "DocumentLimitExceeded" } +func (e *DocumentLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DocumentLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *DocumentLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document can't be shared with more Amazon Web Services user accounts. You @@ -382,6 +481,8 @@ func (e *DocumentLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.F type DocumentPermissionLimit struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -394,7 +495,12 @@ func (e *DocumentPermissionLimit) ErrorMessage() string { } return *e.Message } -func (e *DocumentPermissionLimit) ErrorCode() string { return "DocumentPermissionLimit" } +func (e *DocumentPermissionLimit) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DocumentPermissionLimit" + } + return *e.ErrorCodeOverride +} func (e *DocumentPermissionLimit) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document has too many versions. Delete one or more document versions and try @@ -402,6 +508,8 @@ func (e *DocumentPermissionLimit) ErrorFault() smithy.ErrorFault { return smithy type DocumentVersionLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -414,7 +522,12 @@ func (e *DocumentVersionLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *DocumentVersionLimitExceeded) ErrorCode() string { return "DocumentVersionLimitExceeded" } +func (e *DocumentVersionLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DocumentVersionLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *DocumentVersionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Error returned when the ID specified for a resource, such as a maintenance @@ -425,6 +538,8 @@ func (e *DocumentVersionLimitExceeded) ErrorFault() smithy.ErrorFault { return s type DoesNotExistException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -437,7 +552,12 @@ func (e *DoesNotExistException) ErrorMessage() string { } return *e.Message } -func (e *DoesNotExistException) ErrorCode() string { return "DoesNotExistException" } +func (e *DoesNotExistException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DoesNotExistException" + } + return *e.ErrorCodeOverride +} func (e *DoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The content of the association document matches another document. Change the @@ -445,6 +565,8 @@ func (e *DoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.F type DuplicateDocumentContent struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -457,7 +579,12 @@ func (e *DuplicateDocumentContent) ErrorMessage() string { } return *e.Message } -func (e *DuplicateDocumentContent) ErrorCode() string { return "DuplicateDocumentContent" } +func (e *DuplicateDocumentContent) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateDocumentContent" + } + return *e.ErrorCodeOverride +} func (e *DuplicateDocumentContent) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The version name has already been used in this document. Specify a different @@ -465,6 +592,8 @@ func (e *DuplicateDocumentContent) ErrorFault() smithy.ErrorFault { return smith type DuplicateDocumentVersionName struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -477,13 +606,20 @@ func (e *DuplicateDocumentVersionName) ErrorMessage() string { } return *e.Message } -func (e *DuplicateDocumentVersionName) ErrorCode() string { return "DuplicateDocumentVersionName" } +func (e *DuplicateDocumentVersionName) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateDocumentVersionName" + } + return *e.ErrorCodeOverride +} func (e *DuplicateDocumentVersionName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't specify a managed node ID in more than one association. type DuplicateInstanceId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -496,7 +632,12 @@ func (e *DuplicateInstanceId) ErrorMessage() string { } return *e.Message } -func (e *DuplicateInstanceId) ErrorCode() string { return "DuplicateInstanceId" } +func (e *DuplicateInstanceId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DuplicateInstanceId" + } + return *e.ErrorCodeOverride +} func (e *DuplicateInstanceId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You attempted to register a LAMBDA or STEP_FUNCTIONS task in a region where the @@ -504,6 +645,8 @@ func (e *DuplicateInstanceId) ErrorFault() smithy.ErrorFault { return smithy.Fau type FeatureNotAvailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -516,7 +659,12 @@ func (e *FeatureNotAvailableException) ErrorMessage() string { } return *e.Message } -func (e *FeatureNotAvailableException) ErrorCode() string { return "FeatureNotAvailableException" } +func (e *FeatureNotAvailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FeatureNotAvailableException" + } + return *e.ErrorCodeOverride +} func (e *FeatureNotAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A hierarchy can have a maximum of 15 levels. For more information, see @@ -526,6 +674,8 @@ func (e *FeatureNotAvailableException) ErrorFault() smithy.ErrorFault { return s type HierarchyLevelLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -539,7 +689,10 @@ func (e *HierarchyLevelLimitExceededException) ErrorMessage() string { return *e.Message } func (e *HierarchyLevelLimitExceededException) ErrorCode() string { - return "HierarchyLevelLimitExceededException" + if e.ErrorCodeOverride == nil { + return "HierarchyLevelLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *HierarchyLevelLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -551,6 +704,8 @@ func (e *HierarchyLevelLimitExceededException) ErrorFault() smithy.ErrorFault { type HierarchyTypeMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -563,7 +718,12 @@ func (e *HierarchyTypeMismatchException) ErrorMessage() string { } return *e.Message } -func (e *HierarchyTypeMismatchException) ErrorCode() string { return "HierarchyTypeMismatchException" } +func (e *HierarchyTypeMismatchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "HierarchyTypeMismatchException" + } + return *e.ErrorCodeOverride +} func (e *HierarchyTypeMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Error returned when an idempotent operation is retried and the parameters don't @@ -571,6 +731,8 @@ func (e *HierarchyTypeMismatchException) ErrorFault() smithy.ErrorFault { return type IdempotentParameterMismatch struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -583,7 +745,12 @@ func (e *IdempotentParameterMismatch) ErrorMessage() string { } return *e.Message } -func (e *IdempotentParameterMismatch) ErrorCode() string { return "IdempotentParameterMismatch" } +func (e *IdempotentParameterMismatch) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatch" + } + return *e.ErrorCodeOverride +} func (e *IdempotentParameterMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a conflict in the policies specified for this parameter. You can't, for @@ -592,6 +759,8 @@ func (e *IdempotentParameterMismatch) ErrorFault() smithy.ErrorFault { return sm type IncompatiblePolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -604,13 +773,20 @@ func (e *IncompatiblePolicyException) ErrorMessage() string { } return *e.Message } -func (e *IncompatiblePolicyException) ErrorCode() string { return "IncompatiblePolicyException" } +func (e *IncompatiblePolicyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IncompatiblePolicyException" + } + return *e.ErrorCodeOverride +} func (e *IncompatiblePolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -623,7 +799,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The activation isn't valid. The activation might have been deleted, or the @@ -631,6 +812,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidActivation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -643,7 +826,12 @@ func (e *InvalidActivation) ErrorMessage() string { } return *e.Message } -func (e *InvalidActivation) ErrorCode() string { return "InvalidActivation" } +func (e *InvalidActivation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidActivation" + } + return *e.ErrorCodeOverride +} func (e *InvalidActivation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The activation ID isn't valid. Verify the you entered the correct ActivationId @@ -651,6 +839,8 @@ func (e *InvalidActivation) ErrorFault() smithy.ErrorFault { return smithy.Fault type InvalidActivationId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -663,7 +853,12 @@ func (e *InvalidActivationId) ErrorMessage() string { } return *e.Message } -func (e *InvalidActivationId) ErrorCode() string { return "InvalidActivationId" } +func (e *InvalidActivationId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidActivationId" + } + return *e.ErrorCodeOverride +} func (e *InvalidActivationId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified aggregator isn't valid for inventory groups. Verify that the @@ -672,6 +867,8 @@ func (e *InvalidActivationId) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidAggregatorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -684,13 +881,20 @@ func (e *InvalidAggregatorException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAggregatorException) ErrorCode() string { return "InvalidAggregatorException" } +func (e *InvalidAggregatorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAggregatorException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAggregatorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request doesn't meet the regular expression requirement. type InvalidAllowedPatternException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -703,13 +907,20 @@ func (e *InvalidAllowedPatternException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAllowedPatternException) ErrorCode() string { return "InvalidAllowedPatternException" } +func (e *InvalidAllowedPatternException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAllowedPatternException" + } + return *e.ErrorCodeOverride +} func (e *InvalidAllowedPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The association isn't valid or doesn't exist. type InvalidAssociation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -722,7 +933,12 @@ func (e *InvalidAssociation) ErrorMessage() string { } return *e.Message } -func (e *InvalidAssociation) ErrorCode() string { return "InvalidAssociation" } +func (e *InvalidAssociation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAssociation" + } + return *e.ErrorCodeOverride +} func (e *InvalidAssociation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The version you specified isn't valid. Use ListAssociationVersions to view all @@ -731,6 +947,8 @@ func (e *InvalidAssociation) ErrorFault() smithy.ErrorFault { return smithy.Faul type InvalidAssociationVersion struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -743,7 +961,12 @@ func (e *InvalidAssociationVersion) ErrorMessage() string { } return *e.Message } -func (e *InvalidAssociationVersion) ErrorCode() string { return "InvalidAssociationVersion" } +func (e *InvalidAssociationVersion) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidAssociationVersion" + } + return *e.ErrorCodeOverride +} func (e *InvalidAssociationVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied parameters for invoking the specified Automation runbook are @@ -752,6 +975,8 @@ func (e *InvalidAssociationVersion) ErrorFault() smithy.ErrorFault { return smit type InvalidAutomationExecutionParametersException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -765,7 +990,10 @@ func (e *InvalidAutomationExecutionParametersException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationExecutionParametersException) ErrorCode() string { - return "InvalidAutomationExecutionParametersException" + if e.ErrorCodeOverride == nil { + return "InvalidAutomationExecutionParametersException" + } + return *e.ErrorCodeOverride } func (e *InvalidAutomationExecutionParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -775,6 +1003,8 @@ func (e *InvalidAutomationExecutionParametersException) ErrorFault() smithy.Erro type InvalidAutomationSignalException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -788,7 +1018,10 @@ func (e *InvalidAutomationSignalException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationSignalException) ErrorCode() string { - return "InvalidAutomationSignalException" + if e.ErrorCodeOverride == nil { + return "InvalidAutomationSignalException" + } + return *e.ErrorCodeOverride } func (e *InvalidAutomationSignalException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -796,6 +1029,8 @@ func (e *InvalidAutomationSignalException) ErrorFault() smithy.ErrorFault { retu type InvalidAutomationStatusUpdateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -809,7 +1044,10 @@ func (e *InvalidAutomationStatusUpdateException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationStatusUpdateException) ErrorCode() string { - return "InvalidAutomationStatusUpdateException" + if e.ErrorCodeOverride == nil { + return "InvalidAutomationStatusUpdateException" + } + return *e.ErrorCodeOverride } func (e *InvalidAutomationStatusUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -819,6 +1057,8 @@ func (e *InvalidAutomationStatusUpdateException) ErrorFault() smithy.ErrorFault type InvalidCommandId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -831,7 +1071,12 @@ func (e *InvalidCommandId) ErrorMessage() string { } return *e.Message } -func (e *InvalidCommandId) ErrorCode() string { return "InvalidCommandId" } +func (e *InvalidCommandId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidCommandId" + } + return *e.ErrorCodeOverride +} func (e *InvalidCommandId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the parameters specified for the delete operation isn't valid. @@ -839,6 +1084,8 @@ func (e *InvalidCommandId) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InvalidDeleteInventoryParametersException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -852,7 +1099,10 @@ func (e *InvalidDeleteInventoryParametersException) ErrorMessage() string { return *e.Message } func (e *InvalidDeleteInventoryParametersException) ErrorCode() string { - return "InvalidDeleteInventoryParametersException" + if e.ErrorCodeOverride == nil { + return "InvalidDeleteInventoryParametersException" + } + return *e.ErrorCodeOverride } func (e *InvalidDeleteInventoryParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -863,6 +1113,8 @@ func (e *InvalidDeleteInventoryParametersException) ErrorFault() smithy.ErrorFau type InvalidDeletionIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -875,13 +1127,20 @@ func (e *InvalidDeletionIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidDeletionIdException) ErrorCode() string { return "InvalidDeletionIdException" } +func (e *InvalidDeletionIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDeletionIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidDeletionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified SSM document doesn't exist. type InvalidDocument struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -894,13 +1153,20 @@ func (e *InvalidDocument) ErrorMessage() string { } return *e.Message } -func (e *InvalidDocument) ErrorCode() string { return "InvalidDocument" } +func (e *InvalidDocument) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDocument" + } + return *e.ErrorCodeOverride +} func (e *InvalidDocument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The content for the document isn't valid. type InvalidDocumentContent struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -913,7 +1179,12 @@ func (e *InvalidDocumentContent) ErrorMessage() string { } return *e.Message } -func (e *InvalidDocumentContent) ErrorCode() string { return "InvalidDocumentContent" } +func (e *InvalidDocumentContent) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDocumentContent" + } + return *e.ErrorCodeOverride +} func (e *InvalidDocumentContent) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You attempted to delete a document while it is still shared. You must stop @@ -921,6 +1192,8 @@ func (e *InvalidDocumentContent) ErrorFault() smithy.ErrorFault { return smithy. type InvalidDocumentOperation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -933,13 +1206,20 @@ func (e *InvalidDocumentOperation) ErrorMessage() string { } return *e.Message } -func (e *InvalidDocumentOperation) ErrorCode() string { return "InvalidDocumentOperation" } +func (e *InvalidDocumentOperation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDocumentOperation" + } + return *e.ErrorCodeOverride +} func (e *InvalidDocumentOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The version of the document schema isn't supported. type InvalidDocumentSchemaVersion struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -952,7 +1232,12 @@ func (e *InvalidDocumentSchemaVersion) ErrorMessage() string { } return *e.Message } -func (e *InvalidDocumentSchemaVersion) ErrorCode() string { return "InvalidDocumentSchemaVersion" } +func (e *InvalidDocumentSchemaVersion) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDocumentSchemaVersion" + } + return *e.ErrorCodeOverride +} func (e *InvalidDocumentSchemaVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SSM document type isn't valid. Valid document types are described in the @@ -960,6 +1245,8 @@ func (e *InvalidDocumentSchemaVersion) ErrorFault() smithy.ErrorFault { return s type InvalidDocumentType struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -972,13 +1259,20 @@ func (e *InvalidDocumentType) ErrorMessage() string { } return *e.Message } -func (e *InvalidDocumentType) ErrorCode() string { return "InvalidDocumentType" } +func (e *InvalidDocumentType) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDocumentType" + } + return *e.ErrorCodeOverride +} func (e *InvalidDocumentType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document version isn't valid or doesn't exist. type InvalidDocumentVersion struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -991,7 +1285,12 @@ func (e *InvalidDocumentVersion) ErrorMessage() string { } return *e.Message } -func (e *InvalidDocumentVersion) ErrorCode() string { return "InvalidDocumentVersion" } +func (e *InvalidDocumentVersion) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidDocumentVersion" + } + return *e.ErrorCodeOverride +} func (e *InvalidDocumentVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The filter name isn't valid. Verify the you entered the correct name and try @@ -999,6 +1298,8 @@ func (e *InvalidDocumentVersion) ErrorFault() smithy.ErrorFault { return smithy. type InvalidFilter struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1011,13 +1312,20 @@ func (e *InvalidFilter) ErrorMessage() string { } return *e.Message } -func (e *InvalidFilter) ErrorCode() string { return "InvalidFilter" } +func (e *InvalidFilter) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFilter" + } + return *e.ErrorCodeOverride +} func (e *InvalidFilter) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key isn't valid. type InvalidFilterKey struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1030,7 +1338,12 @@ func (e *InvalidFilterKey) ErrorMessage() string { } return *e.Message } -func (e *InvalidFilterKey) ErrorCode() string { return "InvalidFilterKey" } +func (e *InvalidFilterKey) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFilterKey" + } + return *e.ErrorCodeOverride +} func (e *InvalidFilterKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified filter option isn't valid. Valid options are Equals and @@ -1038,6 +1351,8 @@ func (e *InvalidFilterKey) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InvalidFilterOption struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1050,13 +1365,20 @@ func (e *InvalidFilterOption) ErrorMessage() string { } return *e.Message } -func (e *InvalidFilterOption) ErrorCode() string { return "InvalidFilterOption" } +func (e *InvalidFilterOption) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFilterOption" + } + return *e.ErrorCodeOverride +} func (e *InvalidFilterOption) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The filter value isn't valid. Verify the value and try again. type InvalidFilterValue struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1069,7 +1391,12 @@ func (e *InvalidFilterValue) ErrorMessage() string { } return *e.Message } -func (e *InvalidFilterValue) ErrorCode() string { return "InvalidFilterValue" } +func (e *InvalidFilterValue) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFilterValue" + } + return *e.ErrorCodeOverride +} func (e *InvalidFilterValue) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The following problems can cause this exception: @@ -1089,6 +1416,8 @@ func (e *InvalidFilterValue) ErrorFault() smithy.ErrorFault { return smithy.Faul type InvalidInstanceId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1101,13 +1430,20 @@ func (e *InvalidInstanceId) ErrorMessage() string { } return *e.Message } -func (e *InvalidInstanceId) ErrorCode() string { return "InvalidInstanceId" } +func (e *InvalidInstanceId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInstanceId" + } + return *e.ErrorCodeOverride +} func (e *InvalidInstanceId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified filter value isn't valid. type InvalidInstanceInformationFilterValue struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1121,7 +1457,10 @@ func (e *InvalidInstanceInformationFilterValue) ErrorMessage() string { return *e.Message } func (e *InvalidInstanceInformationFilterValue) ErrorCode() string { - return "InvalidInstanceInformationFilterValue" + if e.ErrorCodeOverride == nil { + return "InvalidInstanceInformationFilterValue" + } + return *e.ErrorCodeOverride } func (e *InvalidInstanceInformationFilterValue) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1131,6 +1470,8 @@ func (e *InvalidInstanceInformationFilterValue) ErrorFault() smithy.ErrorFault { type InvalidInventoryGroupException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1143,7 +1484,12 @@ func (e *InvalidInventoryGroupException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInventoryGroupException) ErrorCode() string { return "InvalidInventoryGroupException" } +func (e *InvalidInventoryGroupException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidInventoryGroupException" + } + return *e.ErrorCodeOverride +} func (e *InvalidInventoryGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You specified invalid keys or values in the Context attribute for InventoryItem. @@ -1151,6 +1497,8 @@ func (e *InvalidInventoryGroupException) ErrorFault() smithy.ErrorFault { return type InvalidInventoryItemContextException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1164,7 +1512,10 @@ func (e *InvalidInventoryItemContextException) ErrorMessage() string { return *e.Message } func (e *InvalidInventoryItemContextException) ErrorCode() string { - return "InvalidInventoryItemContextException" + if e.ErrorCodeOverride == nil { + return "InvalidInventoryItemContextException" + } + return *e.ErrorCodeOverride } func (e *InvalidInventoryItemContextException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1174,6 +1525,8 @@ func (e *InvalidInventoryItemContextException) ErrorFault() smithy.ErrorFault { type InvalidInventoryRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1187,7 +1540,10 @@ func (e *InvalidInventoryRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidInventoryRequestException) ErrorCode() string { - return "InvalidInventoryRequestException" + if e.ErrorCodeOverride == nil { + return "InvalidInventoryRequestException" + } + return *e.ErrorCodeOverride } func (e *InvalidInventoryRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1195,6 +1551,8 @@ func (e *InvalidInventoryRequestException) ErrorFault() smithy.ErrorFault { retu type InvalidItemContentException struct { Message *string + ErrorCodeOverride *string + TypeName *string noSmithyDocumentSerde @@ -1209,13 +1567,20 @@ func (e *InvalidItemContentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidItemContentException) ErrorCode() string { return "InvalidItemContentException" } +func (e *InvalidItemContentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidItemContentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidItemContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query key ID isn't valid. type InvalidKeyId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1228,13 +1593,20 @@ func (e *InvalidKeyId) ErrorMessage() string { } return *e.Message } -func (e *InvalidKeyId) ErrorCode() string { return "InvalidKeyId" } +func (e *InvalidKeyId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKeyId" + } + return *e.ErrorCodeOverride +} func (e *InvalidKeyId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified token isn't valid. type InvalidNextToken struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1247,7 +1619,12 @@ func (e *InvalidNextToken) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextToken) ErrorCode() string { return "InvalidNextToken" } +func (e *InvalidNextToken) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextToken" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more configuration items isn't valid. Verify that a valid Amazon Resource @@ -1255,6 +1632,8 @@ func (e *InvalidNextToken) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InvalidNotificationConfig struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1267,7 +1646,12 @@ func (e *InvalidNotificationConfig) ErrorMessage() string { } return *e.Message } -func (e *InvalidNotificationConfig) ErrorCode() string { return "InvalidNotificationConfig" } +func (e *InvalidNotificationConfig) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNotificationConfig" + } + return *e.ErrorCodeOverride +} func (e *InvalidNotificationConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The delete inventory option specified isn't valid. Verify the option and try @@ -1275,6 +1659,8 @@ func (e *InvalidNotificationConfig) ErrorFault() smithy.ErrorFault { return smit type InvalidOptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1287,13 +1673,20 @@ func (e *InvalidOptionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOptionException) ErrorCode() string { return "InvalidOptionException" } +func (e *InvalidOptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOptionException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The S3 bucket doesn't exist. type InvalidOutputFolder struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1306,13 +1699,20 @@ func (e *InvalidOutputFolder) ErrorMessage() string { } return *e.Message } -func (e *InvalidOutputFolder) ErrorCode() string { return "InvalidOutputFolder" } +func (e *InvalidOutputFolder) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOutputFolder" + } + return *e.ErrorCodeOverride +} func (e *InvalidOutputFolder) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The output location isn't valid or doesn't exist. type InvalidOutputLocation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1325,7 +1725,12 @@ func (e *InvalidOutputLocation) ErrorMessage() string { } return *e.Message } -func (e *InvalidOutputLocation) ErrorCode() string { return "InvalidOutputLocation" } +func (e *InvalidOutputLocation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOutputLocation" + } + return *e.ErrorCodeOverride +} func (e *InvalidOutputLocation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You must specify values for all required parameters in the Amazon Web Services @@ -1334,6 +1739,8 @@ func (e *InvalidOutputLocation) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidParameters struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1346,7 +1753,12 @@ func (e *InvalidParameters) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameters) ErrorCode() string { return "InvalidParameters" } +func (e *InvalidParameters) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameters" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameters) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The permission type isn't supported. Share is the only supported permission @@ -1354,6 +1766,8 @@ func (e *InvalidParameters) ErrorFault() smithy.ErrorFault { return smithy.Fault type InvalidPermissionType struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1366,13 +1780,20 @@ func (e *InvalidPermissionType) ErrorMessage() string { } return *e.Message } -func (e *InvalidPermissionType) ErrorCode() string { return "InvalidPermissionType" } +func (e *InvalidPermissionType) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPermissionType" + } + return *e.ErrorCodeOverride +} func (e *InvalidPermissionType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The plugin name isn't valid. type InvalidPluginName struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1385,13 +1806,20 @@ func (e *InvalidPluginName) ErrorMessage() string { } return *e.Message } -func (e *InvalidPluginName) ErrorCode() string { return "InvalidPluginName" } +func (e *InvalidPluginName) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPluginName" + } + return *e.ErrorCodeOverride +} func (e *InvalidPluginName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A policy attribute or its value is invalid. type InvalidPolicyAttributeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1405,7 +1833,10 @@ func (e *InvalidPolicyAttributeException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyAttributeException) ErrorCode() string { - return "InvalidPolicyAttributeException" + if e.ErrorCodeOverride == nil { + return "InvalidPolicyAttributeException" + } + return *e.ErrorCodeOverride } func (e *InvalidPolicyAttributeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1414,6 +1845,8 @@ func (e *InvalidPolicyAttributeException) ErrorFault() smithy.ErrorFault { retur type InvalidPolicyTypeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1426,7 +1859,12 @@ func (e *InvalidPolicyTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPolicyTypeException) ErrorCode() string { return "InvalidPolicyTypeException" } +func (e *InvalidPolicyTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPolicyTypeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPolicyTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource ID isn't valid. Verify that you entered the correct ID and try @@ -1434,6 +1872,8 @@ func (e *InvalidPolicyTypeException) ErrorFault() smithy.ErrorFault { return smi type InvalidResourceId struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1446,7 +1886,12 @@ func (e *InvalidResourceId) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceId) ErrorCode() string { return "InvalidResourceId" } +func (e *InvalidResourceId) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceId" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource type isn't valid. For example, if you are attempting to tag an EC2 @@ -1454,6 +1899,8 @@ func (e *InvalidResourceId) ErrorFault() smithy.ErrorFault { return smithy.Fault type InvalidResourceType struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1466,13 +1913,20 @@ func (e *InvalidResourceType) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceType) ErrorCode() string { return "InvalidResourceType" } +func (e *InvalidResourceType) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceType" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified inventory item result attribute isn't valid. type InvalidResultAttributeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1486,7 +1940,10 @@ func (e *InvalidResultAttributeException) ErrorMessage() string { return *e.Message } func (e *InvalidResultAttributeException) ErrorCode() string { - return "InvalidResultAttributeException" + if e.ErrorCodeOverride == nil { + return "InvalidResultAttributeException" + } + return *e.ErrorCodeOverride } func (e *InvalidResultAttributeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1499,6 +1956,8 @@ func (e *InvalidResultAttributeException) ErrorFault() smithy.ErrorFault { retur type InvalidRole struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1511,13 +1970,20 @@ func (e *InvalidRole) ErrorMessage() string { } return *e.Message } -func (e *InvalidRole) ErrorCode() string { return "InvalidRole" } +func (e *InvalidRole) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRole" + } + return *e.ErrorCodeOverride +} func (e *InvalidRole) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The schedule is invalid. Verify your cron or rate expression and try again. type InvalidSchedule struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1530,13 +1996,20 @@ func (e *InvalidSchedule) ErrorMessage() string { } return *e.Message } -func (e *InvalidSchedule) ErrorCode() string { return "InvalidSchedule" } +func (e *InvalidSchedule) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidSchedule" + } + return *e.ErrorCodeOverride +} func (e *InvalidSchedule) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified tag key or value isn't valid. type InvalidTag struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1549,7 +2022,12 @@ func (e *InvalidTag) ErrorMessage() string { } return *e.Message } -func (e *InvalidTag) ErrorCode() string { return "InvalidTag" } +func (e *InvalidTag) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTag" + } + return *e.ErrorCodeOverride +} func (e *InvalidTag) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target isn't valid or doesn't exist. It might not be configured for Systems @@ -1557,6 +2035,8 @@ func (e *InvalidTag) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type InvalidTarget struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1569,13 +2049,20 @@ func (e *InvalidTarget) ErrorMessage() string { } return *e.Message } -func (e *InvalidTarget) ErrorCode() string { return "InvalidTarget" } +func (e *InvalidTarget) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTarget" + } + return *e.ErrorCodeOverride +} func (e *InvalidTarget) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // TargetMap parameter isn't valid. type InvalidTargetMaps struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1588,13 +2075,20 @@ func (e *InvalidTargetMaps) ErrorMessage() string { } return *e.Message } -func (e *InvalidTargetMaps) ErrorCode() string { return "InvalidTargetMaps" } +func (e *InvalidTargetMaps) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTargetMaps" + } + return *e.ErrorCodeOverride +} func (e *InvalidTargetMaps) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter type name isn't valid. type InvalidTypeNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1607,13 +2101,20 @@ func (e *InvalidTypeNameException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTypeNameException) ErrorCode() string { return "InvalidTypeNameException" } +func (e *InvalidTypeNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidTypeNameException" + } + return *e.ErrorCodeOverride +} func (e *InvalidTypeNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The update isn't valid. type InvalidUpdate struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1626,7 +2127,12 @@ func (e *InvalidUpdate) ErrorMessage() string { } return *e.Message } -func (e *InvalidUpdate) ErrorCode() string { return "InvalidUpdate" } +func (e *InvalidUpdate) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidUpdate" + } + return *e.ErrorCodeOverride +} func (e *InvalidUpdate) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The command ID and managed node ID you specified didn't match any invocations. @@ -1634,6 +2140,8 @@ func (e *InvalidUpdate) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type InvocationDoesNotExist struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1646,13 +2154,20 @@ func (e *InvocationDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *InvocationDoesNotExist) ErrorCode() string { return "InvocationDoesNotExist" } +func (e *InvocationDoesNotExist) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvocationDoesNotExist" + } + return *e.ErrorCodeOverride +} func (e *InvocationDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The inventory item has invalid content. type ItemContentMismatchException struct { Message *string + ErrorCodeOverride *string + TypeName *string noSmithyDocumentSerde @@ -1667,13 +2182,20 @@ func (e *ItemContentMismatchException) ErrorMessage() string { } return *e.Message } -func (e *ItemContentMismatchException) ErrorCode() string { return "ItemContentMismatchException" } +func (e *ItemContentMismatchException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ItemContentMismatchException" + } + return *e.ErrorCodeOverride +} func (e *ItemContentMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The inventory item size has exceeded the size limit. type ItemSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + TypeName *string noSmithyDocumentSerde @@ -1688,13 +2210,20 @@ func (e *ItemSizeLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ItemSizeLimitExceededException) ErrorCode() string { return "ItemSizeLimitExceededException" } +func (e *ItemSizeLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ItemSizeLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ItemSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The size limit of a document is 64 KB. type MaxDocumentSizeExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1707,7 +2236,12 @@ func (e *MaxDocumentSizeExceeded) ErrorMessage() string { } return *e.Message } -func (e *MaxDocumentSizeExceeded) ErrorCode() string { return "MaxDocumentSizeExceeded" } +func (e *MaxDocumentSizeExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MaxDocumentSizeExceeded" + } + return *e.ErrorCodeOverride +} func (e *MaxDocumentSizeExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have permission to view OpsItems in the specified account. Verify that @@ -1716,6 +2250,8 @@ func (e *MaxDocumentSizeExceeded) ErrorFault() smithy.ErrorFault { return smithy type OpsItemAccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1728,13 +2264,20 @@ func (e *OpsItemAccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *OpsItemAccessDeniedException) ErrorCode() string { return "OpsItemAccessDeniedException" } +func (e *OpsItemAccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OpsItemAccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *OpsItemAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The OpsItem already exists. type OpsItemAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + OpsItemId *string noSmithyDocumentSerde @@ -1749,7 +2292,12 @@ func (e *OpsItemAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *OpsItemAlreadyExistsException) ErrorCode() string { return "OpsItemAlreadyExistsException" } +func (e *OpsItemAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OpsItemAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *OpsItemAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified parameter argument isn't valid. Verify the available arguments and @@ -1757,6 +2305,8 @@ func (e *OpsItemAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type OpsItemInvalidParameterException struct { Message *string + ErrorCodeOverride *string + ParameterNames []string noSmithyDocumentSerde @@ -1772,7 +2322,10 @@ func (e *OpsItemInvalidParameterException) ErrorMessage() string { return *e.Message } func (e *OpsItemInvalidParameterException) ErrorCode() string { - return "OpsItemInvalidParameterException" + if e.ErrorCodeOverride == nil { + return "OpsItemInvalidParameterException" + } + return *e.ErrorCodeOverride } func (e *OpsItemInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1782,6 +2335,8 @@ func (e *OpsItemInvalidParameterException) ErrorFault() smithy.ErrorFault { retu type OpsItemLimitExceededException struct { Message *string + ErrorCodeOverride *string + ResourceTypes []string Limit int32 LimitType *string @@ -1798,13 +2353,20 @@ func (e *OpsItemLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *OpsItemLimitExceededException) ErrorCode() string { return "OpsItemLimitExceededException" } +func (e *OpsItemLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OpsItemLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *OpsItemLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified OpsItem ID doesn't exist. Verify the ID and try again. type OpsItemNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1817,13 +2379,20 @@ func (e *OpsItemNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *OpsItemNotFoundException) ErrorCode() string { return "OpsItemNotFoundException" } +func (e *OpsItemNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OpsItemNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *OpsItemNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Resource Name (ARN) is already associated with the OpsItem. type OpsItemRelatedItemAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + ResourceUri *string OpsItemId *string @@ -1840,7 +2409,10 @@ func (e *OpsItemRelatedItemAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OpsItemRelatedItemAlreadyExistsException) ErrorCode() string { - return "OpsItemRelatedItemAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "OpsItemRelatedItemAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *OpsItemRelatedItemAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1851,6 +2423,8 @@ func (e *OpsItemRelatedItemAlreadyExistsException) ErrorFault() smithy.ErrorFaul type OpsItemRelatedItemAssociationNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1864,7 +2438,10 @@ func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorMessage() string { return *e.Message } func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorCode() string { - return "OpsItemRelatedItemAssociationNotFoundException" + if e.ErrorCodeOverride == nil { + return "OpsItemRelatedItemAssociationNotFoundException" + } + return *e.ErrorCodeOverride } func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1874,6 +2451,8 @@ func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorFault() smithy.Err type OpsMetadataAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1887,7 +2466,10 @@ func (e *OpsMetadataAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataAlreadyExistsException) ErrorCode() string { - return "OpsMetadataAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "OpsMetadataAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *OpsMetadataAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1895,6 +2477,8 @@ func (e *OpsMetadataAlreadyExistsException) ErrorFault() smithy.ErrorFault { ret type OpsMetadataInvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1908,7 +2492,10 @@ func (e *OpsMetadataInvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataInvalidArgumentException) ErrorCode() string { - return "OpsMetadataInvalidArgumentException" + if e.ErrorCodeOverride == nil { + return "OpsMetadataInvalidArgumentException" + } + return *e.ErrorCodeOverride } func (e *OpsMetadataInvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1919,6 +2506,8 @@ func (e *OpsMetadataInvalidArgumentException) ErrorFault() smithy.ErrorFault { type OpsMetadataKeyLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1932,7 +2521,10 @@ func (e *OpsMetadataKeyLimitExceededException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataKeyLimitExceededException) ErrorCode() string { - return "OpsMetadataKeyLimitExceededException" + if e.ErrorCodeOverride == nil { + return "OpsMetadataKeyLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *OpsMetadataKeyLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1944,6 +2536,8 @@ func (e *OpsMetadataKeyLimitExceededException) ErrorFault() smithy.ErrorFault { type OpsMetadataLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1957,7 +2551,10 @@ func (e *OpsMetadataLimitExceededException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataLimitExceededException) ErrorCode() string { - return "OpsMetadataLimitExceededException" + if e.ErrorCodeOverride == nil { + return "OpsMetadataLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *OpsMetadataLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1965,6 +2562,8 @@ func (e *OpsMetadataLimitExceededException) ErrorFault() smithy.ErrorFault { ret type OpsMetadataNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1977,7 +2576,12 @@ func (e *OpsMetadataNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *OpsMetadataNotFoundException) ErrorCode() string { return "OpsMetadataNotFoundException" } +func (e *OpsMetadataNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OpsMetadataNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *OpsMetadataNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The system is processing too many concurrent updates. Wait a few moments and try @@ -1985,6 +2589,8 @@ func (e *OpsMetadataNotFoundException) ErrorFault() smithy.ErrorFault { return s type OpsMetadataTooManyUpdatesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -1998,7 +2604,10 @@ func (e *OpsMetadataTooManyUpdatesException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataTooManyUpdatesException) ErrorCode() string { - return "OpsMetadataTooManyUpdatesException" + if e.ErrorCodeOverride == nil { + return "OpsMetadataTooManyUpdatesException" + } + return *e.ErrorCodeOverride } func (e *OpsMetadataTooManyUpdatesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2008,6 +2617,8 @@ func (e *OpsMetadataTooManyUpdatesException) ErrorFault() smithy.ErrorFault { type ParameterAlreadyExists struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2020,7 +2631,12 @@ func (e *ParameterAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *ParameterAlreadyExists) ErrorCode() string { return "ParameterAlreadyExists" } +func (e *ParameterAlreadyExists) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParameterAlreadyExists" + } + return *e.ErrorCodeOverride +} func (e *ParameterAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the number of parameters for this Amazon Web Services account. @@ -2028,6 +2644,8 @@ func (e *ParameterAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy. type ParameterLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2040,7 +2658,12 @@ func (e *ParameterLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *ParameterLimitExceeded) ErrorCode() string { return "ParameterLimitExceeded" } +func (e *ParameterLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParameterLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *ParameterLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Parameter Store retains the 100 most recently created versions of a parameter. @@ -2064,6 +2687,8 @@ func (e *ParameterLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy. type ParameterMaxVersionLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2077,7 +2702,10 @@ func (e *ParameterMaxVersionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ParameterMaxVersionLimitExceeded) ErrorCode() string { - return "ParameterMaxVersionLimitExceeded" + if e.ErrorCodeOverride == nil { + return "ParameterMaxVersionLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *ParameterMaxVersionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2085,6 +2713,8 @@ func (e *ParameterMaxVersionLimitExceeded) ErrorFault() smithy.ErrorFault { retu type ParameterNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2097,13 +2727,20 @@ func (e *ParameterNotFound) ErrorMessage() string { } return *e.Message } -func (e *ParameterNotFound) ErrorCode() string { return "ParameterNotFound" } +func (e *ParameterNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParameterNotFound" + } + return *e.ErrorCodeOverride +} func (e *ParameterNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter name isn't valid. type ParameterPatternMismatchException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2117,7 +2754,10 @@ func (e *ParameterPatternMismatchException) ErrorMessage() string { return *e.Message } func (e *ParameterPatternMismatchException) ErrorCode() string { - return "ParameterPatternMismatchException" + if e.ErrorCodeOverride == nil { + return "ParameterPatternMismatchException" + } + return *e.ErrorCodeOverride } func (e *ParameterPatternMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2125,6 +2765,8 @@ func (e *ParameterPatternMismatchException) ErrorFault() smithy.ErrorFault { ret type ParameterVersionLabelLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2138,7 +2780,10 @@ func (e *ParameterVersionLabelLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ParameterVersionLabelLimitExceeded) ErrorCode() string { - return "ParameterVersionLabelLimitExceeded" + if e.ErrorCodeOverride == nil { + return "ParameterVersionLabelLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *ParameterVersionLabelLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2149,6 +2794,8 @@ func (e *ParameterVersionLabelLimitExceeded) ErrorFault() smithy.ErrorFault { type ParameterVersionNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2161,7 +2808,12 @@ func (e *ParameterVersionNotFound) ErrorMessage() string { } return *e.Message } -func (e *ParameterVersionNotFound) ErrorCode() string { return "ParameterVersionNotFound" } +func (e *ParameterVersionNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ParameterVersionNotFound" + } + return *e.ErrorCodeOverride +} func (e *ParameterVersionNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You specified more than the maximum number of allowed policies for the @@ -2169,6 +2821,8 @@ func (e *ParameterVersionNotFound) ErrorFault() smithy.ErrorFault { return smith type PoliciesLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2181,13 +2835,20 @@ func (e *PoliciesLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *PoliciesLimitExceededException) ErrorCode() string { return "PoliciesLimitExceededException" } +func (e *PoliciesLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PoliciesLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *PoliciesLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A sync configuration with the same name already exists. type ResourceDataSyncAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + SyncName *string noSmithyDocumentSerde @@ -2203,7 +2864,10 @@ func (e *ResourceDataSyncAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncAlreadyExistsException) ErrorCode() string { - return "ResourceDataSyncAlreadyExistsException" + if e.ErrorCodeOverride == nil { + return "ResourceDataSyncAlreadyExistsException" + } + return *e.ErrorCodeOverride } func (e *ResourceDataSyncAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2214,6 +2878,8 @@ func (e *ResourceDataSyncAlreadyExistsException) ErrorFault() smithy.ErrorFault type ResourceDataSyncConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2227,7 +2893,10 @@ func (e *ResourceDataSyncConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncConflictException) ErrorCode() string { - return "ResourceDataSyncConflictException" + if e.ErrorCodeOverride == nil { + return "ResourceDataSyncConflictException" + } + return *e.ErrorCodeOverride } func (e *ResourceDataSyncConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2235,6 +2904,8 @@ func (e *ResourceDataSyncConflictException) ErrorFault() smithy.ErrorFault { ret type ResourceDataSyncCountExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2248,7 +2919,10 @@ func (e *ResourceDataSyncCountExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncCountExceededException) ErrorCode() string { - return "ResourceDataSyncCountExceededException" + if e.ErrorCodeOverride == nil { + return "ResourceDataSyncCountExceededException" + } + return *e.ErrorCodeOverride } func (e *ResourceDataSyncCountExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2258,6 +2932,8 @@ func (e *ResourceDataSyncCountExceededException) ErrorFault() smithy.ErrorFault type ResourceDataSyncInvalidConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2271,7 +2947,10 @@ func (e *ResourceDataSyncInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncInvalidConfigurationException) ErrorCode() string { - return "ResourceDataSyncInvalidConfigurationException" + if e.ErrorCodeOverride == nil { + return "ResourceDataSyncInvalidConfigurationException" + } + return *e.ErrorCodeOverride } func (e *ResourceDataSyncInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2281,6 +2960,8 @@ func (e *ResourceDataSyncInvalidConfigurationException) ErrorFault() smithy.Erro type ResourceDataSyncNotFoundException struct { Message *string + ErrorCodeOverride *string + SyncName *string SyncType *string @@ -2297,7 +2978,10 @@ func (e *ResourceDataSyncNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncNotFoundException) ErrorCode() string { - return "ResourceDataSyncNotFoundException" + if e.ErrorCodeOverride == nil { + return "ResourceDataSyncNotFoundException" + } + return *e.ErrorCodeOverride } func (e *ResourceDataSyncNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2306,6 +2990,8 @@ func (e *ResourceDataSyncNotFoundException) ErrorFault() smithy.ErrorFault { ret type ResourceInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2318,7 +3004,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Error returned when the caller has exceeded the default resource quotas. For @@ -2330,6 +3021,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2342,7 +3035,12 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The hash provided in the call doesn't match the stored hash. This exception is @@ -2351,6 +3049,8 @@ func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return type ResourcePolicyConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2364,7 +3064,10 @@ func (e *ResourcePolicyConflictException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyConflictException) ErrorCode() string { - return "ResourcePolicyConflictException" + if e.ErrorCodeOverride == nil { + return "ResourcePolicyConflictException" + } + return *e.ErrorCodeOverride } func (e *ResourcePolicyConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2373,6 +3076,8 @@ func (e *ResourcePolicyConflictException) ErrorFault() smithy.ErrorFault { retur type ResourcePolicyInvalidParameterException struct { Message *string + ErrorCodeOverride *string + ParameterNames []string noSmithyDocumentSerde @@ -2388,7 +3093,10 @@ func (e *ResourcePolicyInvalidParameterException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyInvalidParameterException) ErrorCode() string { - return "ResourcePolicyInvalidParameterException" + if e.ErrorCodeOverride == nil { + return "ResourcePolicyInvalidParameterException" + } + return *e.ErrorCodeOverride } func (e *ResourcePolicyInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2400,6 +3108,8 @@ func (e *ResourcePolicyInvalidParameterException) ErrorFault() smithy.ErrorFault type ResourcePolicyLimitExceededException struct { Message *string + ErrorCodeOverride *string + Limit int32 LimitType *string @@ -2416,7 +3126,10 @@ func (e *ResourcePolicyLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyLimitExceededException) ErrorCode() string { - return "ResourcePolicyLimitExceededException" + if e.ErrorCodeOverride == nil { + return "ResourcePolicyLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *ResourcePolicyLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2427,6 +3140,8 @@ func (e *ResourcePolicyLimitExceededException) ErrorFault() smithy.ErrorFault { type ServiceSettingNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2439,13 +3154,20 @@ func (e *ServiceSettingNotFound) ErrorMessage() string { } return *e.Message } -func (e *ServiceSettingNotFound) ErrorCode() string { return "ServiceSettingNotFound" } +func (e *ServiceSettingNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceSettingNotFound" + } + return *e.ErrorCodeOverride +} func (e *ServiceSettingNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The updated status is the same as the current status. type StatusUnchanged struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2458,13 +3180,20 @@ func (e *StatusUnchanged) ErrorMessage() string { } return *e.Message } -func (e *StatusUnchanged) ErrorCode() string { return "StatusUnchanged" } +func (e *StatusUnchanged) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StatusUnchanged" + } + return *e.ErrorCodeOverride +} func (e *StatusUnchanged) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The sub-type count exceeded the limit for the inventory type. type SubTypeCountLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2478,7 +3207,10 @@ func (e *SubTypeCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SubTypeCountLimitExceededException) ErrorCode() string { - return "SubTypeCountLimitExceededException" + if e.ErrorCodeOverride == nil { + return "SubTypeCountLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *SubTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2489,6 +3221,8 @@ func (e *SubTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault { type TargetInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2501,7 +3235,12 @@ func (e *TargetInUseException) ErrorMessage() string { } return *e.Message } -func (e *TargetInUseException) ErrorCode() string { return "TargetInUseException" } +func (e *TargetInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetInUseException" + } + return *e.ErrorCodeOverride +} func (e *TargetInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified target managed node for the session isn't fully configured for use @@ -2514,6 +3253,8 @@ func (e *TargetInUseException) ErrorFault() smithy.ErrorFault { return smithy.Fa type TargetNotConnected struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2526,7 +3267,12 @@ func (e *TargetNotConnected) ErrorMessage() string { } return *e.Message } -func (e *TargetNotConnected) ErrorCode() string { return "TargetNotConnected" } +func (e *TargetNotConnected) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TargetNotConnected" + } + return *e.ErrorCodeOverride +} func (e *TargetNotConnected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Targets parameter includes too many tags. Remove one or more tags and try @@ -2534,6 +3280,8 @@ func (e *TargetNotConnected) ErrorFault() smithy.ErrorFault { return smithy.Faul type TooManyTagsError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2546,13 +3294,20 @@ func (e *TooManyTagsError) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsError) ErrorCode() string { return "TooManyTagsError" } +func (e *TooManyTagsError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsError" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are concurrent updates for a resource that supports one update at a time. type TooManyUpdates struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2565,13 +3320,20 @@ func (e *TooManyUpdates) ErrorMessage() string { } return *e.Message } -func (e *TooManyUpdates) ErrorCode() string { return "TooManyUpdates" } +func (e *TooManyUpdates) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyUpdates" + } + return *e.ErrorCodeOverride +} func (e *TooManyUpdates) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The size of inventory data has exceeded the total size limit for the resource. type TotalSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2585,7 +3347,10 @@ func (e *TotalSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TotalSizeLimitExceededException) ErrorCode() string { - return "TotalSizeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "TotalSizeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *TotalSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2593,6 +3358,8 @@ func (e *TotalSizeLimitExceededException) ErrorFault() smithy.ErrorFault { retur type UnsupportedCalendarException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2605,7 +3372,12 @@ func (e *UnsupportedCalendarException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedCalendarException) ErrorCode() string { return "UnsupportedCalendarException" } +func (e *UnsupportedCalendarException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedCalendarException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedCalendarException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Patching for applications released by Microsoft is only available on EC2 @@ -2617,6 +3389,8 @@ func (e *UnsupportedCalendarException) ErrorFault() smithy.ErrorFault { return s type UnsupportedFeatureRequiredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2630,7 +3404,10 @@ func (e *UnsupportedFeatureRequiredException) ErrorMessage() string { return *e.Message } func (e *UnsupportedFeatureRequiredException) ErrorCode() string { - return "UnsupportedFeatureRequiredException" + if e.ErrorCodeOverride == nil { + return "UnsupportedFeatureRequiredException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedFeatureRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2642,6 +3419,8 @@ func (e *UnsupportedFeatureRequiredException) ErrorFault() smithy.ErrorFault { type UnsupportedInventoryItemContextException struct { Message *string + ErrorCodeOverride *string + TypeName *string noSmithyDocumentSerde @@ -2657,7 +3436,10 @@ func (e *UnsupportedInventoryItemContextException) ErrorMessage() string { return *e.Message } func (e *UnsupportedInventoryItemContextException) ErrorCode() string { - return "UnsupportedInventoryItemContextException" + if e.ErrorCodeOverride == nil { + return "UnsupportedInventoryItemContextException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedInventoryItemContextException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2669,6 +3451,8 @@ func (e *UnsupportedInventoryItemContextException) ErrorFault() smithy.ErrorFaul type UnsupportedInventorySchemaVersionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2682,7 +3466,10 @@ func (e *UnsupportedInventorySchemaVersionException) ErrorMessage() string { return *e.Message } func (e *UnsupportedInventorySchemaVersionException) ErrorCode() string { - return "UnsupportedInventorySchemaVersionException" + if e.ErrorCodeOverride == nil { + return "UnsupportedInventorySchemaVersionException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedInventorySchemaVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2693,6 +3480,8 @@ func (e *UnsupportedInventorySchemaVersionException) ErrorFault() smithy.ErrorFa type UnsupportedOperatingSystem struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2705,13 +3494,20 @@ func (e *UnsupportedOperatingSystem) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperatingSystem) ErrorCode() string { return "UnsupportedOperatingSystem" } +func (e *UnsupportedOperatingSystem) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperatingSystem" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperatingSystem) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter type isn't supported. type UnsupportedParameterType struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2724,7 +3520,12 @@ func (e *UnsupportedParameterType) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedParameterType) ErrorCode() string { return "UnsupportedParameterType" } +func (e *UnsupportedParameterType) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedParameterType" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedParameterType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document doesn't support the platform type of the given managed node ID(s). @@ -2732,6 +3533,8 @@ func (e *UnsupportedParameterType) ErrorFault() smithy.ErrorFault { return smith type UnsupportedPlatformType struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -2744,5 +3547,10 @@ func (e *UnsupportedPlatformType) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedPlatformType) ErrorCode() string { return "UnsupportedPlatformType" } +func (e *UnsupportedPlatformType) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedPlatformType" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedPlatformType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssmcontacts/types/errors.go b/service/ssmcontacts/types/errors.go index c48cc3d6b28..92720bcf1da 100644 --- a/service/ssmcontacts/types/errors.go +++ b/service/ssmcontacts/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource causes an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed to due an encryption key error. type DataEncryptionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *DataEncryptionException) ErrorMessage() string { } return *e.Message } -func (e *DataEncryptionException) ErrorCode() string { return "DataEncryptionException" } +func (e *DataEncryptionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DataEncryptionException" + } + return *e.ErrorCodeOverride +} func (e *DataEncryptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error occurred while processing the request. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -85,13 +108,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource that doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -107,13 +137,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string QuotaCode *string @@ -131,13 +168,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + QuotaCode *string ServiceCode *string RetryAfterSeconds int32 @@ -154,7 +198,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an Amazon Web Services @@ -162,6 +211,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -177,5 +228,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssmincidents/types/errors.go b/service/ssmincidents/types/errors.go index 53d9634abe0..a8772de97d5 100644 --- a/service/ssmincidents/types/errors.go +++ b/service/ssmincidents/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource causes an inconsistent state. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceIdentifier *string ResourceType ResourceType RetryAfter *time.Time @@ -47,7 +56,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -55,6 +69,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -67,13 +83,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource which doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceIdentifier *string ResourceType ResourceType @@ -89,13 +112,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceIdentifier *string ResourceType ResourceType ServiceCode ServiceCode @@ -113,13 +143,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode ServiceCode QuotaCode *string @@ -135,7 +172,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an Amazon Web Services @@ -143,6 +185,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -155,5 +199,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssmsap/types/errors.go b/service/ssmsap/types/errors.go index 3bdb608dfa9..98575c2671b 100644 --- a/service/ssmsap/types/errors.go +++ b/service/ssmsap/types/errors.go @@ -10,6 +10,8 @@ import ( type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,12 +24,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -40,12 +49,19 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -58,12 +74,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -76,5 +99,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sso/types/errors.go b/service/sso/types/errors.go index 1401d585cfe..8f0ac3a2937 100644 --- a/service/sso/types/errors.go +++ b/service/sso/types/errors.go @@ -12,6 +12,8 @@ import ( type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the request is being made too frequently and is more than what @@ -51,6 +65,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the request is not authorized. This can happen due to an invalid @@ -71,6 +92,8 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,5 +106,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssoadmin/types/errors.go b/service/ssoadmin/types/errors.go index f19468c0336..7f739c733a7 100644 --- a/service/ssoadmin/types/errors.go +++ b/service/ssoadmin/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Occurs when a conflict with a previous successful write is detected. This @@ -33,6 +40,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception, or @@ -53,6 +67,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +81,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that a requested resource is not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +107,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the principal has crossed the permitted number of resources that @@ -92,6 +120,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +134,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the principal has crossed the throttling limits of the API @@ -112,6 +147,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -124,13 +161,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it contains a syntax error. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -143,5 +187,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssooidc/types/errors.go b/service/ssooidc/types/errors.go index beef5aaa37a..b75cc489d93 100644 --- a/service/ssooidc/types/errors.go +++ b/service/ssooidc/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -26,7 +28,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request to authorize a client with an access user session token @@ -34,6 +41,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AuthorizationPendingException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -49,7 +58,12 @@ func (e *AuthorizationPendingException) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationPendingException) ErrorCode() string { return "AuthorizationPendingException" } +func (e *AuthorizationPendingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AuthorizationPendingException" + } + return *e.ErrorCodeOverride +} func (e *AuthorizationPendingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the token issued by the service is expired and is no longer @@ -57,6 +71,8 @@ func (e *AuthorizationPendingException) ErrorFault() smithy.ErrorFault { return type ExpiredTokenException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -72,7 +88,12 @@ func (e *ExpiredTokenException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredTokenException) ErrorCode() string { return "ExpiredTokenException" } +func (e *ExpiredTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredTokenException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that an error from the service occurred while trying to process a @@ -80,6 +101,8 @@ func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.F type InternalServerException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -95,7 +118,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that the clientId or clientSecret in the request is invalid. For @@ -104,6 +132,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidClientException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -119,7 +149,12 @@ func (e *InvalidClientException) ErrorMessage() string { } return *e.Message } -func (e *InvalidClientException) ErrorCode() string { return "InvalidClientException" } +func (e *InvalidClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClientException" + } + return *e.ErrorCodeOverride +} func (e *InvalidClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the client information sent in the request during registration is @@ -127,6 +162,8 @@ func (e *InvalidClientException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidClientMetadataException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -142,7 +179,12 @@ func (e *InvalidClientMetadataException) ErrorMessage() string { } return *e.Message } -func (e *InvalidClientMetadataException) ErrorCode() string { return "InvalidClientMetadataException" } +func (e *InvalidClientMetadataException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidClientMetadataException" + } + return *e.ErrorCodeOverride +} func (e *InvalidClientMetadataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request contains an invalid grant. This can occur if a client @@ -150,6 +192,8 @@ func (e *InvalidClientMetadataException) ErrorFault() smithy.ErrorFault { return type InvalidGrantException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -165,7 +209,12 @@ func (e *InvalidGrantException) ErrorMessage() string { } return *e.Message } -func (e *InvalidGrantException) ErrorCode() string { return "InvalidGrantException" } +func (e *InvalidGrantException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGrantException" + } + return *e.ErrorCodeOverride +} func (e *InvalidGrantException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that something is wrong with the input to the request. For example, a @@ -173,6 +222,8 @@ func (e *InvalidGrantException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -188,13 +239,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the scope provided in the request is invalid. type InvalidScopeException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -210,7 +268,12 @@ func (e *InvalidScopeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidScopeException) ErrorCode() string { return "InvalidScopeException" } +func (e *InvalidScopeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidScopeException" + } + return *e.ErrorCodeOverride +} func (e *InvalidScopeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the client is making the request too frequently and is more than @@ -218,6 +281,8 @@ func (e *InvalidScopeException) ErrorFault() smithy.ErrorFault { return smithy.F type SlowDownException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -233,7 +298,12 @@ func (e *SlowDownException) ErrorMessage() string { } return *e.Message } -func (e *SlowDownException) ErrorCode() string { return "SlowDownException" } +func (e *SlowDownException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "SlowDownException" + } + return *e.ErrorCodeOverride +} func (e *SlowDownException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the client is not currently authorized to make the request. This @@ -241,6 +311,8 @@ func (e *SlowDownException) ErrorFault() smithy.ErrorFault { return smithy.Fault type UnauthorizedClientException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -256,13 +328,20 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedClientException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the grant type in the request is not supported by the service. type UnsupportedGrantTypeException struct { Message *string + ErrorCodeOverride *string + Error_ *string Error_description *string @@ -278,5 +357,10 @@ func (e *UnsupportedGrantTypeException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedGrantTypeException) ErrorCode() string { return "UnsupportedGrantTypeException" } +func (e *UnsupportedGrantTypeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedGrantTypeException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedGrantTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/storagegateway/types/errors.go b/service/storagegateway/types/errors.go index ea18fed761b..0d684c39db4 100644 --- a/service/storagegateway/types/errors.go +++ b/service/storagegateway/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServerError struct { Message *string + ErrorCodeOverride *string + Error_ *StorageGatewayError noSmithyDocumentSerde @@ -26,7 +28,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An exception occurred because an invalid gateway request was issued to the @@ -34,6 +41,8 @@ func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidGatewayRequestException struct { Message *string + ErrorCodeOverride *string + Error_ *StorageGatewayError noSmithyDocumentSerde @@ -48,7 +57,12 @@ func (e *InvalidGatewayRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidGatewayRequestException) ErrorCode() string { return "InvalidGatewayRequestException" } +func (e *InvalidGatewayRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidGatewayRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidGatewayRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal server error has occurred because the service is unavailable. For @@ -56,6 +70,8 @@ func (e *InvalidGatewayRequestException) ErrorFault() smithy.ErrorFault { return type ServiceUnavailableError struct { Message *string + ErrorCodeOverride *string + Error_ *StorageGatewayError noSmithyDocumentSerde @@ -70,5 +86,10 @@ func (e *ServiceUnavailableError) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableError) ErrorCode() string { return "ServiceUnavailableError" } +func (e *ServiceUnavailableError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableError" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/sts/types/errors.go b/service/sts/types/errors.go index b109fe5fc18..88d3e6c6935 100644 --- a/service/sts/types/errors.go +++ b/service/sts/types/errors.go @@ -12,6 +12,8 @@ import ( type ExpiredTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *ExpiredTokenException) ErrorMessage() string { } return *e.Message } -func (e *ExpiredTokenException) ErrorCode() string { return "ExpiredTokenException" } +func (e *ExpiredTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ExpiredTokenException" + } + return *e.ErrorCodeOverride +} func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be fulfilled because the identity provider (IDP) that was @@ -35,6 +42,8 @@ func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.F type IDPCommunicationErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -47,7 +56,12 @@ func (e *IDPCommunicationErrorException) ErrorMessage() string { } return *e.Message } -func (e *IDPCommunicationErrorException) ErrorCode() string { return "IDPCommunicationError" } +func (e *IDPCommunicationErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IDPCommunicationError" + } + return *e.ErrorCodeOverride +} func (e *IDPCommunicationErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The identity provider (IdP) reported that authentication failed. This might be @@ -57,6 +71,8 @@ func (e *IDPCommunicationErrorException) ErrorFault() smithy.ErrorFault { return type IDPRejectedClaimException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -69,7 +85,12 @@ func (e *IDPRejectedClaimException) ErrorMessage() string { } return *e.Message } -func (e *IDPRejectedClaimException) ErrorCode() string { return "IDPRejectedClaim" } +func (e *IDPRejectedClaimException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IDPRejectedClaim" + } + return *e.ErrorCodeOverride +} func (e *IDPRejectedClaimException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The error returned if the message passed to DecodeAuthorizationMessage was @@ -78,6 +99,8 @@ func (e *IDPRejectedClaimException) ErrorFault() smithy.ErrorFault { return smit type InvalidAuthorizationMessageException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -91,7 +114,10 @@ func (e *InvalidAuthorizationMessageException) ErrorMessage() string { return *e.Message } func (e *InvalidAuthorizationMessageException) ErrorCode() string { - return "InvalidAuthorizationMessageException" + if e.ErrorCodeOverride == nil { + return "InvalidAuthorizationMessageException" + } + return *e.ErrorCodeOverride } func (e *InvalidAuthorizationMessageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -103,6 +129,8 @@ func (e *InvalidAuthorizationMessageException) ErrorFault() smithy.ErrorFault { type InvalidIdentityTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -115,7 +143,12 @@ func (e *InvalidIdentityTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidIdentityTokenException) ErrorCode() string { return "InvalidIdentityToken" } +func (e *InvalidIdentityTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidIdentityToken" + } + return *e.ErrorCodeOverride +} func (e *InvalidIdentityTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the policy document was malformed. The error @@ -123,6 +156,8 @@ func (e *InvalidIdentityTokenException) ErrorFault() smithy.ErrorFault { return type MalformedPolicyDocumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -135,7 +170,12 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { } return *e.Message } -func (e *MalformedPolicyDocumentException) ErrorCode() string { return "MalformedPolicyDocument" } +func (e *MalformedPolicyDocumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MalformedPolicyDocument" + } + return *e.ErrorCodeOverride +} func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the total packed size of the session policies @@ -153,6 +193,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type PackedPolicyTooLargeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -165,7 +207,12 @@ func (e *PackedPolicyTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *PackedPolicyTooLargeException) ErrorCode() string { return "PackedPolicyTooLarge" } +func (e *PackedPolicyTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PackedPolicyTooLarge" + } + return *e.ErrorCodeOverride +} func (e *PackedPolicyTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // STS is not activated in the requested region for the account that is being asked @@ -177,6 +224,8 @@ func (e *PackedPolicyTooLargeException) ErrorFault() smithy.ErrorFault { return type RegionDisabledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -189,5 +238,10 @@ func (e *RegionDisabledException) ErrorMessage() string { } return *e.Message } -func (e *RegionDisabledException) ErrorCode() string { return "RegionDisabledException" } +func (e *RegionDisabledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RegionDisabledException" + } + return *e.ErrorCodeOverride +} func (e *RegionDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/support/types/errors.go b/service/support/types/errors.go index 86d85fd91aa..dd018a2706a 100644 --- a/service/support/types/errors.go +++ b/service/support/types/errors.go @@ -11,6 +11,8 @@ import ( type AttachmentIdNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AttachmentIdNotFound) ErrorMessage() string { } return *e.Message } -func (e *AttachmentIdNotFound) ErrorCode() string { return "AttachmentIdNotFound" } +func (e *AttachmentIdNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AttachmentIdNotFound" + } + return *e.ErrorCodeOverride +} func (e *AttachmentIdNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit for the number of attachment sets created in a short period of time @@ -31,6 +38,8 @@ func (e *AttachmentIdNotFound) ErrorFault() smithy.ErrorFault { return smithy.Fa type AttachmentLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *AttachmentLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *AttachmentLimitExceeded) ErrorCode() string { return "AttachmentLimitExceeded" } +func (e *AttachmentLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AttachmentLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *AttachmentLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The expiration time of the attachment set has passed. The set expires 1 hour @@ -51,6 +65,8 @@ func (e *AttachmentLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy type AttachmentSetExpired struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *AttachmentSetExpired) ErrorMessage() string { } return *e.Message } -func (e *AttachmentSetExpired) ErrorCode() string { return "AttachmentSetExpired" } +func (e *AttachmentSetExpired) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AttachmentSetExpired" + } + return *e.ErrorCodeOverride +} func (e *AttachmentSetExpired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An attachment set with the specified ID could not be found. type AttachmentSetIdNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *AttachmentSetIdNotFound) ErrorMessage() string { } return *e.Message } -func (e *AttachmentSetIdNotFound) ErrorCode() string { return "AttachmentSetIdNotFound" } +func (e *AttachmentSetIdNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AttachmentSetIdNotFound" + } + return *e.ErrorCodeOverride +} func (e *AttachmentSetIdNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit for the size of an attachment set has been exceeded. The limits are @@ -90,6 +118,8 @@ func (e *AttachmentSetIdNotFound) ErrorFault() smithy.ErrorFault { return smithy type AttachmentSetSizeLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *AttachmentSetSizeLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *AttachmentSetSizeLimitExceeded) ErrorCode() string { return "AttachmentSetSizeLimitExceeded" } +func (e *AttachmentSetSizeLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AttachmentSetSizeLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *AttachmentSetSizeLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The case creation limit for the account has been exceeded. type CaseCreationLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -121,13 +158,20 @@ func (e *CaseCreationLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *CaseCreationLimitExceeded) ErrorCode() string { return "CaseCreationLimitExceeded" } +func (e *CaseCreationLimitExceeded) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CaseCreationLimitExceeded" + } + return *e.ErrorCodeOverride +} func (e *CaseCreationLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested caseId couldn't be located. type CaseIdNotFound struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,7 +184,12 @@ func (e *CaseIdNotFound) ErrorMessage() string { } return *e.Message } -func (e *CaseIdNotFound) ErrorCode() string { return "CaseIdNotFound" } +func (e *CaseIdNotFound) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "CaseIdNotFound" + } + return *e.ErrorCodeOverride +} func (e *CaseIdNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit for the number of DescribeAttachment requests in a short period of @@ -148,6 +197,8 @@ func (e *CaseIdNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultCli type DescribeAttachmentLimitExceeded struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -161,7 +212,10 @@ func (e *DescribeAttachmentLimitExceeded) ErrorMessage() string { return *e.Message } func (e *DescribeAttachmentLimitExceeded) ErrorCode() string { - return "DescribeAttachmentLimitExceeded" + if e.ErrorCodeOverride == nil { + return "DescribeAttachmentLimitExceeded" + } + return *e.ErrorCodeOverride } func (e *DescribeAttachmentLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -169,6 +223,8 @@ func (e *DescribeAttachmentLimitExceeded) ErrorFault() smithy.ErrorFault { retur type InternalServerError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -181,5 +237,10 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/supportapp/types/errors.go b/service/supportapp/types/errors.go index 3d401ef6c50..f1f2bae18d4 100644 --- a/service/supportapp/types/errors.go +++ b/service/supportapp/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request has a conflict. For example, you might receive this error if you @@ -52,6 +59,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,7 +73,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can’t process your request right now because of a server issue. Try again @@ -72,6 +86,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -84,7 +100,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource is missing or doesn't exist, such as an account alias, @@ -92,6 +113,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -104,7 +127,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your Service Quotas request exceeds the quota for the service. For example, your @@ -114,6 +142,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -126,7 +156,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request input doesn't meet the constraints that the Amazon Web Services @@ -134,6 +169,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -146,5 +183,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/swf/types/errors.go b/service/swf/types/errors.go index 8bb97bf90d1..fef194b7099 100644 --- a/service/swf/types/errors.go +++ b/service/swf/types/errors.go @@ -17,6 +17,8 @@ import ( type DefaultUndefinedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -29,7 +31,12 @@ func (e *DefaultUndefinedFault) ErrorMessage() string { } return *e.Message } -func (e *DefaultUndefinedFault) ErrorCode() string { return "DefaultUndefinedFault" } +func (e *DefaultUndefinedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DefaultUndefinedFault" + } + return *e.ErrorCodeOverride +} func (e *DefaultUndefinedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the domain already exists. You may get this fault if you are @@ -38,6 +45,8 @@ func (e *DefaultUndefinedFault) ErrorFault() smithy.ErrorFault { return smithy.F type DomainAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -50,13 +59,20 @@ func (e *DomainAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *DomainAlreadyExistsFault) ErrorCode() string { return "DomainAlreadyExistsFault" } +func (e *DomainAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DomainAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *DomainAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the specified domain has been deprecated. type DomainDeprecatedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -69,7 +85,12 @@ func (e *DomainDeprecatedFault) ErrorMessage() string { } return *e.Message } -func (e *DomainDeprecatedFault) ErrorCode() string { return "DomainDeprecatedFault" } +func (e *DomainDeprecatedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DomainDeprecatedFault" + } + return *e.ErrorCodeOverride +} func (e *DomainDeprecatedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned by any operation if a system imposed limitation has been reached. To @@ -78,6 +99,8 @@ func (e *DomainDeprecatedFault) ErrorFault() smithy.ErrorFault { return smithy.F type LimitExceededFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -90,7 +113,12 @@ func (e *LimitExceededFault) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededFault) ErrorCode() string { return "LimitExceededFault" } +func (e *LimitExceededFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededFault" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the caller doesn't have sufficient permissions to invoke the @@ -98,6 +126,8 @@ func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.Faul type OperationNotPermittedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -110,13 +140,20 @@ func (e *OperationNotPermittedFault) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedFault) ErrorCode() string { return "OperationNotPermittedFault" } +func (e *OperationNotPermittedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotPermittedFault" + } + return *e.ErrorCodeOverride +} func (e *OperationNotPermittedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've exceeded the number of tags allowed for a domain. type TooManyTagsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,7 +166,12 @@ func (e *TooManyTagsFault) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsFault) ErrorCode() string { return "TooManyTagsFault" } +func (e *TooManyTagsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsFault" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the type already exists in the specified domain. You may get this @@ -138,6 +180,8 @@ func (e *TooManyTagsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultC type TypeAlreadyExistsFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,13 +194,20 @@ func (e *TypeAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *TypeAlreadyExistsFault) ErrorCode() string { return "TypeAlreadyExistsFault" } +func (e *TypeAlreadyExistsFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TypeAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} func (e *TypeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the specified activity or workflow type was already deprecated. type TypeDeprecatedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +220,12 @@ func (e *TypeDeprecatedFault) ErrorMessage() string { } return *e.Message } -func (e *TypeDeprecatedFault) ErrorCode() string { return "TypeDeprecatedFault" } +func (e *TypeDeprecatedFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TypeDeprecatedFault" + } + return *e.ErrorCodeOverride +} func (e *TypeDeprecatedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the named resource cannot be found with in the scope of this @@ -178,6 +234,8 @@ func (e *TypeDeprecatedFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type UnknownResourceFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,7 +248,12 @@ func (e *UnknownResourceFault) ErrorMessage() string { } return *e.Message } -func (e *UnknownResourceFault) ErrorCode() string { return "UnknownResourceFault" } +func (e *UnknownResourceFault) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnknownResourceFault" + } + return *e.ErrorCodeOverride +} func (e *UnknownResourceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned by StartWorkflowExecution when an open execution with the same @@ -198,6 +261,8 @@ func (e *UnknownResourceFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type WorkflowExecutionAlreadyStartedFault struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -211,7 +276,10 @@ func (e *WorkflowExecutionAlreadyStartedFault) ErrorMessage() string { return *e.Message } func (e *WorkflowExecutionAlreadyStartedFault) ErrorCode() string { - return "WorkflowExecutionAlreadyStartedFault" + if e.ErrorCodeOverride == nil { + return "WorkflowExecutionAlreadyStartedFault" + } + return *e.ErrorCodeOverride } func (e *WorkflowExecutionAlreadyStartedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/synthetics/types/errors.go b/service/synthetics/types/errors.go index e6e71f70100..68160061c45 100644 --- a/service/synthetics/types/errors.go +++ b/service/synthetics/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflicting operation is already in progress. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal failure occurred. Try the operation again. type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An unknown internal error occurred. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the input resources is larger than is allowed. type RequestEntityTooLargeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +155,20 @@ func (e *RequestEntityTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *RequestEntityTooLargeException) ErrorCode() string { return "RequestEntityTooLargeException" } +func (e *RequestEntityTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RequestEntityTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *RequestEntityTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the specified resources was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,13 +181,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeded a service quota value. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -156,13 +207,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There were too many simultaneous requests. Try the operation again. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -175,13 +233,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter could not be validated. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -194,5 +259,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/textract/types/errors.go b/service/textract/types/errors.go index efa4b974eee..bed170b769d 100644 --- a/service/textract/types/errors.go +++ b/service/textract/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -26,7 +28,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Textract isn't able to read the document. For more information on the @@ -34,6 +41,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type BadDocumentException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -48,7 +57,12 @@ func (e *BadDocumentException) ErrorMessage() string { } return *e.Message } -func (e *BadDocumentException) ErrorCode() string { return "BadDocumentException" } +func (e *BadDocumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadDocumentException" + } + return *e.ErrorCodeOverride +} func (e *BadDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document can't be processed because it's too large. The maximum document @@ -57,6 +71,8 @@ func (e *BadDocumentException) ErrorFault() smithy.ErrorFault { return smithy.Fa type DocumentTooLargeException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -71,7 +87,12 @@ func (e *DocumentTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *DocumentTooLargeException) ErrorCode() string { return "DocumentTooLargeException" } +func (e *DocumentTooLargeException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DocumentTooLargeException" + } + return *e.ErrorCodeOverride +} func (e *DocumentTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates you have exceeded the maximum number of active human in the loop @@ -79,6 +100,8 @@ func (e *DocumentTooLargeException) ErrorFault() smithy.ErrorFault { return smit type HumanLoopQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceType *string QuotaCode *string ServiceCode *string @@ -97,7 +120,10 @@ func (e *HumanLoopQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *HumanLoopQuotaExceededException) ErrorCode() string { - return "HumanLoopQuotaExceededException" + if e.ErrorCodeOverride == nil { + return "HumanLoopQuotaExceededException" + } + return *e.ErrorCodeOverride } func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -107,6 +133,8 @@ func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault { retur type IdempotentParameterMismatchException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -122,7 +150,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.ErrorCodeOverride == nil { + return "IdempotentParameterMismatchException" + } + return *e.ErrorCodeOverride } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -132,6 +163,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServerError struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -146,13 +179,20 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerError" + } + return *e.ErrorCodeOverride +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An invalid job identifier was passed to an asynchronous analysis operation. type InvalidJobIdException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -167,7 +207,12 @@ func (e *InvalidJobIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidJobIdException) ErrorCode() string { return "InvalidJobIdException" } +func (e *InvalidJobIdException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidJobIdException" + } + return *e.ErrorCodeOverride +} func (e *InvalidJobIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates you do not have decrypt permissions with the KMS key entered, or the @@ -175,6 +220,8 @@ func (e *InvalidJobIdException) ErrorFault() smithy.ErrorFault { return smithy.F type InvalidKMSKeyException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -189,7 +236,12 @@ func (e *InvalidKMSKeyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSKeyException) ErrorCode() string { return "InvalidKMSKeyException" } +func (e *InvalidKMSKeyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidKMSKeyException" + } + return *e.ErrorCodeOverride +} func (e *InvalidKMSKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An input parameter violated a constraint. For example, in synchronous @@ -199,6 +251,8 @@ func (e *InvalidKMSKeyException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -213,7 +267,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Textract is unable to access the S3 object that's specified in the @@ -224,6 +283,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidS3ObjectException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -238,7 +299,12 @@ func (e *InvalidS3ObjectException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3ObjectException) ErrorCode() string { return "InvalidS3ObjectException" } +func (e *InvalidS3ObjectException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidS3ObjectException" + } + return *e.ErrorCodeOverride +} func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Amazon Textract service limit was exceeded. For example, if you start too @@ -249,6 +315,8 @@ func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -263,7 +331,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of requests exceeded your throughput limit. If you want to increase @@ -271,6 +344,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ProvisionedThroughputExceededException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -286,7 +361,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.ErrorCodeOverride == nil { + return "ProvisionedThroughputExceededException" + } + return *e.ErrorCodeOverride } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -297,6 +375,8 @@ func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault type ThrottlingException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -311,7 +391,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The format of the input document isn't supported. Documents for operations can @@ -319,6 +404,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type UnsupportedDocumentException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -333,5 +420,10 @@ func (e *UnsupportedDocumentException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedDocumentException) ErrorCode() string { return "UnsupportedDocumentException" } +func (e *UnsupportedDocumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedDocumentException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/timestreamquery/types/errors.go b/service/timestreamquery/types/errors.go index f810ac4d564..28145f2ac62 100644 --- a/service/timestreamquery/types/errors.go +++ b/service/timestreamquery/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to poll results for a cancelled query. type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Timestream was unable to fully process this request because of an internal @@ -50,6 +64,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -62,13 +78,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested endpoint was not valid. type InvalidEndpointException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -81,13 +104,20 @@ func (e *InvalidEndpointException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEndpointException) ErrorCode() string { return "InvalidEndpointException" } +func (e *InvalidEndpointException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEndpointException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Timestream was unable to run the query successfully. type QueryExecutionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -100,13 +130,20 @@ func (e *QueryExecutionException) ErrorMessage() string { } return *e.Message } -func (e *QueryExecutionException) ErrorCode() string { return "QueryExecutionException" } +func (e *QueryExecutionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "QueryExecutionException" + } + return *e.ErrorCodeOverride +} func (e *QueryExecutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ScheduledQueryArn *string noSmithyDocumentSerde @@ -121,13 +158,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the service quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -140,13 +184,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -159,13 +210,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid or malformed request. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -178,5 +236,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/timestreamwrite/types/errors.go b/service/timestreamwrite/types/errors.go index f31be071f4f..d4f2092bef8 100644 --- a/service/timestreamwrite/types/errors.go +++ b/service/timestreamwrite/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Timestream was unable to process this request because it contains resource that @@ -31,6 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Timestream was unable to fully process this request because of an internal @@ -51,6 +65,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,13 +79,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested endpoint was invalid. type InvalidEndpointException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -82,7 +105,12 @@ func (e *InvalidEndpointException) ErrorMessage() string { } return *e.Message } -func (e *InvalidEndpointException) ErrorCode() string { return "InvalidEndpointException" } +func (e *InvalidEndpointException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidEndpointException" + } + return *e.ErrorCodeOverride +} func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // WriteRecords would throw this exception in the following cases: @@ -115,6 +143,8 @@ func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smith type RejectedRecordsException struct { Message *string + ErrorCodeOverride *string + RejectedRecords []RejectedRecord noSmithyDocumentSerde @@ -129,7 +159,12 @@ func (e *RejectedRecordsException) ErrorMessage() string { } return *e.Message } -func (e *RejectedRecordsException) ErrorCode() string { return "RejectedRecordsException" } +func (e *RejectedRecordsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RejectedRecordsException" + } + return *e.ErrorCodeOverride +} func (e *RejectedRecordsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation tried to access a nonexistent resource. The resource might not be @@ -137,6 +172,8 @@ func (e *RejectedRecordsException) ErrorFault() smithy.ErrorFault { return smith type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -149,13 +186,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Instance quota of resource exceeded for this account. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -168,7 +212,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests were made by a user exceeding service quotas. The request was @@ -176,6 +225,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -188,13 +239,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid or malformed request. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -207,5 +265,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/transcribe/types/errors.go b/service/transcribe/types/errors.go index e68cbac84ae..abcf4f83ad1 100644 --- a/service/transcribe/types/errors.go +++ b/service/transcribe/types/errors.go @@ -13,6 +13,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource already exists with this name. Resource names must be unique within @@ -33,6 +40,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal error. Check the error message, correct the issue, and try @@ -53,6 +67,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // You've either sent too many requests or your input file is too long. Wait before @@ -73,6 +94,8 @@ func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -85,7 +108,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can't find the requested resource. Check that the specified name is correct @@ -93,6 +121,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -105,5 +135,10 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NotFoundException" + } + return *e.ErrorCodeOverride +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/transcribestreaming/types/errors.go b/service/transcribestreaming/types/errors.go index 09fa049c301..1f918e4559f 100644 --- a/service/transcribestreaming/types/errors.go +++ b/service/transcribestreaming/types/errors.go @@ -14,6 +14,8 @@ import ( type BadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -26,7 +28,12 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "BadRequestException" + } + return *e.ErrorCodeOverride +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A new stream started with the same session ID. The current stream has been @@ -34,6 +41,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +55,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A problem occurred while processing the audio. Amazon Transcribe terminated @@ -54,6 +68,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalFailureException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +82,12 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalFailureException" + } + return *e.ErrorCodeOverride +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Your client has exceeded one of the Amazon Transcribe limits. This is typically @@ -75,6 +96,8 @@ func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -87,13 +110,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. Try your request later. type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -106,5 +136,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/transfer/types/errors.go b/service/transfer/types/errors.go index 40afcde3e1d..ede7a40f48f 100644 --- a/service/transfer/types/errors.go +++ b/service/transfer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the UpdateServer is called for a file transfer @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when an error occurs in the Amazon Web ServicesTransfer @@ -52,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServiceError struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *InternalServiceError) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceError) ErrorCode() string { return "InternalServiceError" } +func (e *InternalServiceError) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServiceError" + } + return *e.ErrorCodeOverride +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The NextToken parameter that was passed is invalid. type InvalidNextTokenException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +106,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidNextTokenException" + } + return *e.ErrorCodeOverride +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the client submits a malformed request. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -102,13 +132,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource does not exist. type ResourceExistsException struct { Message *string + ErrorCodeOverride *string + Resource *string ResourceType *string @@ -124,7 +161,12 @@ func (e *ResourceExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceExistsException) ErrorCode() string { return "ResourceExistsException" } +func (e *ResourceExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a resource is not found by the Amazon Web @@ -132,6 +174,8 @@ func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + Resource *string ResourceType *string @@ -147,7 +191,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed because the Amazon Web ServicesTransfer Family service is @@ -155,6 +204,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -167,13 +218,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds *string noSmithyDocumentSerde @@ -188,5 +246,10 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/translate/types/errors.go b/service/translate/types/errors.go index 0fe5bad5350..1ae2d3be53d 100644 --- a/service/translate/types/errors.go +++ b/service/translate/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -33,6 +38,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +52,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The confidence that Amazon Comprehend accurately detected the source language is @@ -57,6 +69,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DetectedLanguageLowConfidenceException struct { Message *string + ErrorCodeOverride *string + DetectedLanguageCode *string noSmithyDocumentSerde @@ -72,7 +86,10 @@ func (e *DetectedLanguageLowConfidenceException) ErrorMessage() string { return *e.Message } func (e *DetectedLanguageLowConfidenceException) ErrorCode() string { - return "DetectedLanguageLowConfidenceException" + if e.ErrorCodeOverride == nil { + return "DetectedLanguageLowConfidenceException" + } + return *e.ErrorCodeOverride } func (e *DetectedLanguageLowConfidenceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -82,6 +99,8 @@ func (e *DetectedLanguageLowConfidenceException) ErrorFault() smithy.ErrorFault type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -94,13 +113,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The filter specified for the operation is not valid. Specify a different filter. type InvalidFilterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -113,7 +139,12 @@ func (e *InvalidFilterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidFilterException) ErrorCode() string { return "InvalidFilterException" } +func (e *InvalidFilterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidFilterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of the parameter is not valid. Review the value of the parameter you @@ -121,6 +152,8 @@ func (e *InvalidFilterException) ErrorFault() smithy.ErrorFault { return smithy. type InvalidParameterValueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -133,7 +166,12 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterValueException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request that you made is not valid. Check your request to determine why it's @@ -141,6 +179,8 @@ func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -153,7 +193,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified limit has been exceeded. Review your request and retry it with a @@ -161,6 +206,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -173,7 +220,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you are looking for has not been found. Review the resource you're @@ -182,6 +234,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -194,7 +248,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon Translate service is temporarily unavailable. Wait a bit and then @@ -202,6 +261,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -214,7 +275,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The size of the text you submitted exceeds the size limit. Reduce the size of @@ -222,6 +288,8 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type TextSizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -234,7 +302,12 @@ func (e *TextSizeLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TextSizeLimitExceededException) ErrorCode() string { return "TextSizeLimitExceededException" } +func (e *TextSizeLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TextSizeLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *TextSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have made too many requests within a short period of time. Wait for a short @@ -242,6 +315,8 @@ func (e *TextSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -254,13 +329,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have added too many tags to this resource. The maximum is 50 tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceArn *string noSmithyDocumentSerde @@ -275,13 +357,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Requested display language code is not supported. type UnsupportedDisplayLanguageCodeException struct { Message *string + ErrorCodeOverride *string + DisplayLanguageCode *string noSmithyDocumentSerde @@ -297,7 +386,10 @@ func (e *UnsupportedDisplayLanguageCodeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDisplayLanguageCodeException) ErrorCode() string { - return "UnsupportedDisplayLanguageCodeException" + if e.ErrorCodeOverride == nil { + return "UnsupportedDisplayLanguageCodeException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedDisplayLanguageCodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -310,6 +402,8 @@ func (e *UnsupportedDisplayLanguageCodeException) ErrorFault() smithy.ErrorFault type UnsupportedLanguagePairException struct { Message *string + ErrorCodeOverride *string + SourceLanguageCode *string TargetLanguageCode *string @@ -326,6 +420,9 @@ func (e *UnsupportedLanguagePairException) ErrorMessage() string { return *e.Message } func (e *UnsupportedLanguagePairException) ErrorCode() string { - return "UnsupportedLanguagePairException" + if e.ErrorCodeOverride == nil { + return "UnsupportedLanguagePairException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedLanguagePairException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/voiceid/types/errors.go b/service/voiceid/types/errors.go index 208afdb8a06..e7ad19f828a 100644 --- a/service/voiceid/types/errors.go +++ b/service/voiceid/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed due to a conflict. Check the ConflictType and error message @@ -32,6 +39,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + ConflictType ConflictType noSmithyDocumentSerde @@ -46,13 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed due to an unknown error on the server side. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,7 +81,12 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource cannot be found. Check the ResourceType and error message @@ -73,6 +94,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceType ResourceType noSmithyDocumentSerde @@ -87,7 +110,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeded the service quota. Refer to Voice ID Service Quotas @@ -96,6 +124,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +138,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. Please slow down your request @@ -118,6 +153,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -130,7 +167,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed one or more validations; check the error message for more @@ -138,6 +180,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -150,5 +194,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/waf/types/errors.go b/service/waf/types/errors.go index e1f2b94c12a..7e33894b9f1 100644 --- a/service/waf/types/errors.go +++ b/service/waf/types/errors.go @@ -10,6 +10,8 @@ import ( type WAFBadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,13 +24,20 @@ func (e *WAFBadRequestException) ErrorMessage() string { } return *e.Message } -func (e *WAFBadRequestException) ErrorCode() string { return "WAFBadRequestException" } +func (e *WAFBadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFBadRequestException" + } + return *e.ErrorCodeOverride +} func (e *WAFBadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name specified is invalid. type WAFDisallowedNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -41,7 +50,12 @@ func (e *WAFDisallowedNameException) ErrorMessage() string { } return *e.Message } -func (e *WAFDisallowedNameException) ErrorCode() string { return "WAFDisallowedNameException" } +func (e *WAFDisallowedNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFDisallowedNameException" + } + return *e.ErrorCodeOverride +} func (e *WAFDisallowedNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed due to a problem with the migration. The failure cause is @@ -72,6 +86,8 @@ func (e *WAFDisallowedNameException) ErrorFault() smithy.ErrorFault { return smi type WAFEntityMigrationException struct { Message *string + ErrorCodeOverride *string + MigrationErrorType MigrationErrorType MigrationErrorReason *string @@ -87,7 +103,12 @@ func (e *WAFEntityMigrationException) ErrorMessage() string { } return *e.Message } -func (e *WAFEntityMigrationException) ErrorCode() string { return "WAFEntityMigrationException" } +func (e *WAFEntityMigrationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFEntityMigrationException" + } + return *e.ErrorCodeOverride +} func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because of a system problem, even though the request was @@ -95,6 +116,8 @@ func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return sm type WAFInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +130,12 @@ func (e *WAFInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *WAFInternalErrorException) ErrorCode() string { return "WAFInternalErrorException" } +func (e *WAFInternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation failed because you tried to create, update, or delete an object by @@ -115,6 +143,8 @@ func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smit type WAFInvalidAccountException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,7 +157,12 @@ func (e *WAFInvalidAccountException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidAccountException) ErrorCode() string { return "WAFInvalidAccountException" } +func (e *WAFInvalidAccountException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidAccountException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because there was nothing to do. For example: @@ -151,6 +186,8 @@ func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smi type WAFInvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,7 +200,12 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidOperationException) ErrorCode() string { return "WAFInvalidOperationException" } +func (e *WAFInvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because AWS WAF didn't recognize a parameter in the @@ -199,6 +241,8 @@ func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidParameterException struct { Message *string + ErrorCodeOverride *string + Field ParameterExceptionField Parameter *string Reason ParameterExceptionReason @@ -215,7 +259,12 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidParameterException) ErrorCode() string { return "WAFInvalidParameterException" } +func (e *WAFInvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because the specified policy is not in the proper format. @@ -247,6 +296,8 @@ func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidPermissionPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -260,7 +311,10 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - return "WAFInvalidPermissionPolicyException" + if e.ErrorCodeOverride == nil { + return "WAFInvalidPermissionPolicyException" + } + return *e.ErrorCodeOverride } func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +324,8 @@ func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { type WAFInvalidRegexPatternException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -283,7 +339,10 @@ func (e *WAFInvalidRegexPatternException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidRegexPatternException) ErrorCode() string { - return "WAFInvalidRegexPatternException" + if e.ErrorCodeOverride == nil { + return "WAFInvalidRegexPatternException" + } + return *e.ErrorCodeOverride } func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -294,6 +353,8 @@ func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { retur type WAFLimitsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -306,7 +367,12 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { } return *e.Message } -func (e *WAFLimitsExceededException) ErrorCode() string { return "WAFLimitsExceededException" } +func (e *WAFLimitsExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFLimitsExceededException" + } + return *e.ErrorCodeOverride +} func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you tried to delete an object that isn't empty. For @@ -326,6 +392,8 @@ func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smi type WAFNonEmptyEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -338,7 +406,12 @@ func (e *WAFNonEmptyEntityException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonEmptyEntityException) ErrorCode() string { return "WAFNonEmptyEntityException" } +func (e *WAFNonEmptyEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFNonEmptyEntityException" + } + return *e.ErrorCodeOverride +} func (e *WAFNonEmptyEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you tried to add an object to or delete an object @@ -359,6 +432,8 @@ func (e *WAFNonEmptyEntityException) ErrorFault() smithy.ErrorFault { return smi type WAFNonexistentContainerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -372,7 +447,10 @@ func (e *WAFNonexistentContainerException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentContainerException) ErrorCode() string { - return "WAFNonexistentContainerException" + if e.ErrorCodeOverride == nil { + return "WAFNonexistentContainerException" + } + return *e.ErrorCodeOverride } func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -380,6 +458,8 @@ func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { retu type WAFNonexistentItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -392,7 +472,12 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonexistentItemException) ErrorCode() string { return "WAFNonexistentItemException" } +func (e *WAFNonexistentItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFNonexistentItemException" + } + return *e.ErrorCodeOverride +} func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you tried to delete an object that is still in use. @@ -405,6 +490,8 @@ func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return sm type WAFReferencedItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -417,7 +504,12 @@ func (e *WAFReferencedItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFReferencedItemException) ErrorCode() string { return "WAFReferencedItemException" } +func (e *WAFReferencedItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFReferencedItemException" + } + return *e.ErrorCodeOverride +} func (e *WAFReferencedItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AWS WAF is not able to access the service linked role. This can be caused by a @@ -431,6 +523,8 @@ func (e *WAFReferencedItemException) ErrorFault() smithy.ErrorFault { return smi type WAFServiceLinkedRoleErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -444,7 +538,10 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - return "WAFServiceLinkedRoleErrorException" + if e.ErrorCodeOverride == nil { + return "WAFServiceLinkedRoleErrorException" + } + return *e.ErrorCodeOverride } func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -455,6 +552,8 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { type WAFStaleDataException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -467,13 +566,20 @@ func (e *WAFStaleDataException) ErrorMessage() string { } return *e.Message } -func (e *WAFStaleDataException) ErrorCode() string { return "WAFStaleDataException" } +func (e *WAFStaleDataException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFStaleDataException" + } + return *e.ErrorCodeOverride +} func (e *WAFStaleDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subscription does not exist. type WAFSubscriptionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -487,13 +593,18 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - return "WAFSubscriptionNotFoundException" + if e.ErrorCodeOverride == nil { + return "WAFSubscriptionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *WAFSubscriptionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type WAFTagOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -506,12 +617,19 @@ func (e *WAFTagOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFTagOperationException) ErrorCode() string { return "WAFTagOperationException" } +func (e *WAFTagOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFTagOperationException" + } + return *e.ErrorCodeOverride +} func (e *WAFTagOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type WAFTagOperationInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -525,7 +643,10 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - return "WAFTagOperationInternalErrorException" + if e.ErrorCodeOverride == nil { + return "WAFTagOperationInternalErrorException" + } + return *e.ErrorCodeOverride } func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer diff --git a/service/wafregional/types/errors.go b/service/wafregional/types/errors.go index 2a71e532113..aaa1908b012 100644 --- a/service/wafregional/types/errors.go +++ b/service/wafregional/types/errors.go @@ -10,6 +10,8 @@ import ( type WAFBadRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -22,13 +24,20 @@ func (e *WAFBadRequestException) ErrorMessage() string { } return *e.Message } -func (e *WAFBadRequestException) ErrorCode() string { return "WAFBadRequestException" } +func (e *WAFBadRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFBadRequestException" + } + return *e.ErrorCodeOverride +} func (e *WAFBadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name specified is invalid. type WAFDisallowedNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -41,7 +50,12 @@ func (e *WAFDisallowedNameException) ErrorMessage() string { } return *e.Message } -func (e *WAFDisallowedNameException) ErrorCode() string { return "WAFDisallowedNameException" } +func (e *WAFDisallowedNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFDisallowedNameException" + } + return *e.ErrorCodeOverride +} func (e *WAFDisallowedNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed due to a problem with the migration. The failure cause is @@ -72,6 +86,8 @@ func (e *WAFDisallowedNameException) ErrorFault() smithy.ErrorFault { return smi type WAFEntityMigrationException struct { Message *string + ErrorCodeOverride *string + MigrationErrorType MigrationErrorType MigrationErrorReason *string @@ -87,7 +103,12 @@ func (e *WAFEntityMigrationException) ErrorMessage() string { } return *e.Message } -func (e *WAFEntityMigrationException) ErrorCode() string { return "WAFEntityMigrationException" } +func (e *WAFEntityMigrationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFEntityMigrationException" + } + return *e.ErrorCodeOverride +} func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because of a system problem, even though the request was @@ -95,6 +116,8 @@ func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return sm type WAFInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +130,12 @@ func (e *WAFInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *WAFInternalErrorException) ErrorCode() string { return "WAFInternalErrorException" } +func (e *WAFInternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation failed because you tried to create, update, or delete an object by @@ -115,6 +143,8 @@ func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smit type WAFInvalidAccountException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -127,7 +157,12 @@ func (e *WAFInvalidAccountException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidAccountException) ErrorCode() string { return "WAFInvalidAccountException" } +func (e *WAFInvalidAccountException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidAccountException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because there was nothing to do. For example: @@ -151,6 +186,8 @@ func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smi type WAFInvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -163,7 +200,12 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidOperationException) ErrorCode() string { return "WAFInvalidOperationException" } +func (e *WAFInvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because AWS WAF didn't recognize a parameter in the @@ -199,6 +241,8 @@ func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidParameterException struct { Message *string + ErrorCodeOverride *string + Field ParameterExceptionField Parameter *string Reason ParameterExceptionReason @@ -215,7 +259,12 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidParameterException) ErrorCode() string { return "WAFInvalidParameterException" } +func (e *WAFInvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because the specified policy is not in the proper format. @@ -247,6 +296,8 @@ func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidPermissionPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -260,7 +311,10 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - return "WAFInvalidPermissionPolicyException" + if e.ErrorCodeOverride == nil { + return "WAFInvalidPermissionPolicyException" + } + return *e.ErrorCodeOverride } func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +324,8 @@ func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { type WAFInvalidRegexPatternException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -283,7 +339,10 @@ func (e *WAFInvalidRegexPatternException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidRegexPatternException) ErrorCode() string { - return "WAFInvalidRegexPatternException" + if e.ErrorCodeOverride == nil { + return "WAFInvalidRegexPatternException" + } + return *e.ErrorCodeOverride } func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -294,6 +353,8 @@ func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { retur type WAFLimitsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -306,7 +367,12 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { } return *e.Message } -func (e *WAFLimitsExceededException) ErrorCode() string { return "WAFLimitsExceededException" } +func (e *WAFLimitsExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFLimitsExceededException" + } + return *e.ErrorCodeOverride +} func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you tried to delete an object that isn't empty. For @@ -326,6 +392,8 @@ func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smi type WAFNonEmptyEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -338,7 +406,12 @@ func (e *WAFNonEmptyEntityException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonEmptyEntityException) ErrorCode() string { return "WAFNonEmptyEntityException" } +func (e *WAFNonEmptyEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFNonEmptyEntityException" + } + return *e.ErrorCodeOverride +} func (e *WAFNonEmptyEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you tried to add an object to or delete an object @@ -359,6 +432,8 @@ func (e *WAFNonEmptyEntityException) ErrorFault() smithy.ErrorFault { return smi type WAFNonexistentContainerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -372,7 +447,10 @@ func (e *WAFNonexistentContainerException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentContainerException) ErrorCode() string { - return "WAFNonexistentContainerException" + if e.ErrorCodeOverride == nil { + return "WAFNonexistentContainerException" + } + return *e.ErrorCodeOverride } func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -380,6 +458,8 @@ func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { retu type WAFNonexistentItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -392,7 +472,12 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonexistentItemException) ErrorCode() string { return "WAFNonexistentItemException" } +func (e *WAFNonexistentItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFNonexistentItemException" + } + return *e.ErrorCodeOverride +} func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you tried to delete an object that is still in use. @@ -405,6 +490,8 @@ func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return sm type WAFReferencedItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -417,7 +504,12 @@ func (e *WAFReferencedItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFReferencedItemException) ErrorCode() string { return "WAFReferencedItemException" } +func (e *WAFReferencedItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFReferencedItemException" + } + return *e.ErrorCodeOverride +} func (e *WAFReferencedItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AWS WAF is not able to access the service linked role. This can be caused by a @@ -431,6 +523,8 @@ func (e *WAFReferencedItemException) ErrorFault() smithy.ErrorFault { return smi type WAFServiceLinkedRoleErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -444,7 +538,10 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - return "WAFServiceLinkedRoleErrorException" + if e.ErrorCodeOverride == nil { + return "WAFServiceLinkedRoleErrorException" + } + return *e.ErrorCodeOverride } func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -455,6 +552,8 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { type WAFStaleDataException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -467,13 +566,20 @@ func (e *WAFStaleDataException) ErrorMessage() string { } return *e.Message } -func (e *WAFStaleDataException) ErrorCode() string { return "WAFStaleDataException" } +func (e *WAFStaleDataException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFStaleDataException" + } + return *e.ErrorCodeOverride +} func (e *WAFStaleDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subscription does not exist. type WAFSubscriptionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -487,13 +593,18 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - return "WAFSubscriptionNotFoundException" + if e.ErrorCodeOverride == nil { + return "WAFSubscriptionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *WAFSubscriptionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type WAFTagOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -506,12 +617,19 @@ func (e *WAFTagOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFTagOperationException) ErrorCode() string { return "WAFTagOperationException" } +func (e *WAFTagOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFTagOperationException" + } + return *e.ErrorCodeOverride +} func (e *WAFTagOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type WAFTagOperationInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -525,7 +643,10 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - return "WAFTagOperationInternalErrorException" + if e.ErrorCodeOverride == nil { + return "WAFTagOperationInternalErrorException" + } + return *e.ErrorCodeOverride } func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -536,6 +657,8 @@ func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { type WAFUnavailableEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -548,5 +671,10 @@ func (e *WAFUnavailableEntityException) ErrorMessage() string { } return *e.Message } -func (e *WAFUnavailableEntityException) ErrorCode() string { return "WAFUnavailableEntityException" } +func (e *WAFUnavailableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFUnavailableEntityException" + } + return *e.ErrorCodeOverride +} func (e *WAFUnavailableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/wafv2/types/errors.go b/service/wafv2/types/errors.go index 0a498eb7061..08bf5fbc63c 100644 --- a/service/wafv2/types/errors.go +++ b/service/wafv2/types/errors.go @@ -12,6 +12,8 @@ import ( type WAFAssociatedItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,12 @@ func (e *WAFAssociatedItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFAssociatedItemException) ErrorCode() string { return "WAFAssociatedItemException" } +func (e *WAFAssociatedItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFAssociatedItemException" + } + return *e.ErrorCodeOverride +} func (e *WAFAssociatedItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you are inspecting the web request body, headers, @@ -39,6 +46,8 @@ func (e *WAFAssociatedItemException) ErrorFault() smithy.ErrorFault { return smi type WAFConfigurationWarningException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -52,7 +61,10 @@ func (e *WAFConfigurationWarningException) ErrorMessage() string { return *e.Message } func (e *WAFConfigurationWarningException) ErrorCode() string { - return "WAFConfigurationWarningException" + if e.ErrorCodeOverride == nil { + return "WAFConfigurationWarningException" + } + return *e.ErrorCodeOverride } func (e *WAFConfigurationWarningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -61,6 +73,8 @@ func (e *WAFConfigurationWarningException) ErrorFault() smithy.ErrorFault { retu type WAFDuplicateItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -73,7 +87,12 @@ func (e *WAFDuplicateItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFDuplicateItemException) ErrorCode() string { return "WAFDuplicateItemException" } +func (e *WAFDuplicateItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFDuplicateItemException" + } + return *e.ErrorCodeOverride +} func (e *WAFDuplicateItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because the specified version for the managed rule group @@ -82,6 +101,8 @@ func (e *WAFDuplicateItemException) ErrorFault() smithy.ErrorFault { return smit type WAFExpiredManagedRuleGroupVersionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -95,7 +116,10 @@ func (e *WAFExpiredManagedRuleGroupVersionException) ErrorMessage() string { return *e.Message } func (e *WAFExpiredManagedRuleGroupVersionException) ErrorCode() string { - return "WAFExpiredManagedRuleGroupVersionException" + if e.ErrorCodeOverride == nil { + return "WAFExpiredManagedRuleGroupVersionException" + } + return *e.ErrorCodeOverride } func (e *WAFExpiredManagedRuleGroupVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -106,6 +130,8 @@ func (e *WAFExpiredManagedRuleGroupVersionException) ErrorFault() smithy.ErrorFa type WAFInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,13 +144,20 @@ func (e *WAFInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *WAFInternalErrorException) ErrorCode() string { return "WAFInternalErrorException" } +func (e *WAFInternalErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInternalErrorException" + } + return *e.ErrorCodeOverride +} func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation isn't valid. type WAFInvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -137,7 +170,12 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidOperationException) ErrorCode() string { return "WAFInvalidOperationException" } +func (e *WAFInvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because WAF didn't recognize a parameter in the request. @@ -158,6 +196,8 @@ func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidParameterException struct { Message *string + ErrorCodeOverride *string + Field ParameterExceptionField Parameter *string Reason *string @@ -174,7 +214,12 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidParameterException) ErrorCode() string { return "WAFInvalidParameterException" } +func (e *WAFInvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because the specified policy isn't in the proper format. @@ -202,6 +247,8 @@ func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidPermissionPolicyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -215,7 +262,10 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - return "WAFInvalidPermissionPolicyException" + if e.ErrorCodeOverride == nil { + return "WAFInvalidPermissionPolicyException" + } + return *e.ErrorCodeOverride } func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -226,6 +276,8 @@ func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { type WAFInvalidResourceException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -238,7 +290,12 @@ func (e *WAFInvalidResourceException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidResourceException) ErrorCode() string { return "WAFInvalidResourceException" } +func (e *WAFInvalidResourceException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFInvalidResourceException" + } + return *e.ErrorCodeOverride +} func (e *WAFInvalidResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // WAF couldn’t perform the operation because you exceeded your resource limit. For @@ -249,6 +306,8 @@ func (e *WAFInvalidResourceException) ErrorFault() smithy.ErrorFault { return sm type WAFLimitsExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -261,7 +320,12 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { } return *e.Message } -func (e *WAFLimitsExceededException) ErrorCode() string { return "WAFLimitsExceededException" } +func (e *WAFLimitsExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFLimitsExceededException" + } + return *e.ErrorCodeOverride +} func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because you don't have the permissions that your logging @@ -271,6 +335,8 @@ func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smi type WAFLogDestinationPermissionIssueException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -284,7 +350,10 @@ func (e *WAFLogDestinationPermissionIssueException) ErrorMessage() string { return *e.Message } func (e *WAFLogDestinationPermissionIssueException) ErrorCode() string { - return "WAFLogDestinationPermissionIssueException" + if e.ErrorCodeOverride == nil { + return "WAFLogDestinationPermissionIssueException" + } + return *e.ErrorCodeOverride } func (e *WAFLogDestinationPermissionIssueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -297,6 +366,8 @@ func (e *WAFLogDestinationPermissionIssueException) ErrorFault() smithy.ErrorFau type WAFNonexistentItemException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -309,7 +380,12 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonexistentItemException) ErrorCode() string { return "WAFNonexistentItemException" } +func (e *WAFNonexistentItemException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFNonexistentItemException" + } + return *e.ErrorCodeOverride +} func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // WAF couldn’t save your changes because you tried to update or delete a resource @@ -318,6 +394,8 @@ func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return sm type WAFOptimisticLockException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -330,7 +408,12 @@ func (e *WAFOptimisticLockException) ErrorMessage() string { } return *e.Message } -func (e *WAFOptimisticLockException) ErrorCode() string { return "WAFOptimisticLockException" } +func (e *WAFOptimisticLockException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFOptimisticLockException" + } + return *e.ErrorCodeOverride +} func (e *WAFOptimisticLockException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // WAF is not able to access the service linked role. This can be caused by a @@ -344,6 +427,8 @@ func (e *WAFOptimisticLockException) ErrorFault() smithy.ErrorFault { return smi type WAFServiceLinkedRoleErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -357,7 +442,10 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - return "WAFServiceLinkedRoleErrorException" + if e.ErrorCodeOverride == nil { + return "WAFServiceLinkedRoleErrorException" + } + return *e.ErrorCodeOverride } func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -368,6 +456,8 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { type WAFSubscriptionNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -381,7 +471,10 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - return "WAFSubscriptionNotFoundException" + if e.ErrorCodeOverride == nil { + return "WAFSubscriptionNotFoundException" + } + return *e.ErrorCodeOverride } func (e *WAFSubscriptionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -389,6 +482,8 @@ func (e *WAFSubscriptionNotFoundException) ErrorFault() smithy.ErrorFault { retu type WAFTagOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -401,7 +496,12 @@ func (e *WAFTagOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFTagOperationException) ErrorCode() string { return "WAFTagOperationException" } +func (e *WAFTagOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFTagOperationException" + } + return *e.ErrorCodeOverride +} func (e *WAFTagOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // WAF couldn’t perform your tagging operation because of an internal error. Retry @@ -409,6 +509,8 @@ func (e *WAFTagOperationException) ErrorFault() smithy.ErrorFault { return smith type WAFTagOperationInternalErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -422,7 +524,10 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - return "WAFTagOperationInternalErrorException" + if e.ErrorCodeOverride == nil { + return "WAFTagOperationInternalErrorException" + } + return *e.ErrorCodeOverride } func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -436,6 +541,8 @@ func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { type WAFUnavailableEntityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -448,5 +555,10 @@ func (e *WAFUnavailableEntityException) ErrorMessage() string { } return *e.Message } -func (e *WAFUnavailableEntityException) ErrorCode() string { return "WAFUnavailableEntityException" } +func (e *WAFUnavailableEntityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "WAFUnavailableEntityException" + } + return *e.ErrorCodeOverride +} func (e *WAFUnavailableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/wellarchitected/types/errors.go b/service/wellarchitected/types/errors.go index 92fdd8c0e2e..5d779e9aa2d 100644 --- a/service/wellarchitected/types/errors.go +++ b/service/wellarchitected/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a problem with the Well-Architected Tool API service. type InternalServerException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -64,13 +80,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -86,13 +109,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user has reached their resource quota. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string QuotaCode *string @@ -110,13 +140,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + QuotaCode *string ServiceCode *string @@ -132,13 +169,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user input is not valid. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason Fields []ValidationExceptionField @@ -154,5 +198,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/wisdom/types/errors.go b/service/wisdom/types/errors.go index e62f00ed881..1c4925c6013 100644 --- a/service/wisdom/types/errors.go +++ b/service/wisdom/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,7 +25,12 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -33,6 +40,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +54,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided revisionId does not match, indicating the content has been modified @@ -53,6 +67,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type PreconditionFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -65,13 +81,20 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "PreconditionFailedException" + } + return *e.ErrorCodeOverride +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -86,7 +109,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've exceeded your service quota. To perform the requested action, remove some @@ -95,6 +123,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +137,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Connect Wisdom throws this exception if you have too many tags in your @@ -115,6 +150,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -129,13 +166,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by a service. type ValidationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,5 +192,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/workdocs/types/errors.go b/service/workdocs/types/errors.go index 6c658f01336..97cfbae6c44 100644 --- a/service/workdocs/types/errors.go +++ b/service/workdocs/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.ErrorCodeOverride == nil { + return "ConcurrentModificationException" + } + return *e.ErrorCodeOverride } func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -33,6 +38,8 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type ConflictingOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -45,7 +52,12 @@ func (e *ConflictingOperationException) ErrorMessage() string { } return *e.Message } -func (e *ConflictingOperationException) ErrorCode() string { return "ConflictingOperationException" } +func (e *ConflictingOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictingOperationException" + } + return *e.ErrorCodeOverride +} func (e *ConflictingOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit has been reached on the number of custom properties for the specified @@ -53,6 +65,8 @@ func (e *ConflictingOperationException) ErrorFault() smithy.ErrorFault { return type CustomMetadataLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +80,10 @@ func (e *CustomMetadataLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CustomMetadataLimitExceededException) ErrorCode() string { - return "CustomMetadataLimitExceededException" + if e.ErrorCodeOverride == nil { + return "CustomMetadataLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *CustomMetadataLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -76,6 +93,8 @@ func (e *CustomMetadataLimitExceededException) ErrorFault() smithy.ErrorFault { type DeactivatingLastSystemUserException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -91,7 +110,10 @@ func (e *DeactivatingLastSystemUserException) ErrorMessage() string { return *e.Message } func (e *DeactivatingLastSystemUserException) ErrorCode() string { - return "DeactivatingLastSystemUserException" + if e.ErrorCodeOverride == nil { + return "DeactivatingLastSystemUserException" + } + return *e.ErrorCodeOverride } func (e *DeactivatingLastSystemUserException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -102,6 +124,8 @@ func (e *DeactivatingLastSystemUserException) ErrorFault() smithy.ErrorFault { type DocumentLockedForCommentsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -115,7 +139,10 @@ func (e *DocumentLockedForCommentsException) ErrorMessage() string { return *e.Message } func (e *DocumentLockedForCommentsException) ErrorCode() string { - return "DocumentLockedForCommentsException" + if e.ErrorCodeOverride == nil { + return "DocumentLockedForCommentsException" + } + return *e.ErrorCodeOverride } func (e *DocumentLockedForCommentsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -126,6 +153,8 @@ func (e *DocumentLockedForCommentsException) ErrorFault() smithy.ErrorFault { type DraftUploadOutOfSyncException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -138,13 +167,20 @@ func (e *DraftUploadOutOfSyncException) ErrorMessage() string { } return *e.Message } -func (e *DraftUploadOutOfSyncException) ErrorCode() string { return "DraftUploadOutOfSyncException" } +func (e *DraftUploadOutOfSyncException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DraftUploadOutOfSyncException" + } + return *e.ErrorCodeOverride +} func (e *DraftUploadOutOfSyncException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type EntityAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -157,13 +193,20 @@ func (e *EntityAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *EntityAlreadyExistsException) ErrorCode() string { return "EntityAlreadyExistsException" } +func (e *EntityAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource does not exist. type EntityNotExistsException struct { Message *string + ErrorCodeOverride *string + EntityIds []string noSmithyDocumentSerde @@ -178,7 +221,12 @@ func (e *EntityNotExistsException) ErrorMessage() string { } return *e.Message } -func (e *EntityNotExistsException) ErrorCode() string { return "EntityNotExistsException" } +func (e *EntityNotExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityNotExistsException" + } + return *e.ErrorCodeOverride +} func (e *EntityNotExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The AWS Directory Service cannot reach an on-premises instance. Or a dependency @@ -187,6 +235,8 @@ func (e *EntityNotExistsException) ErrorFault() smithy.ErrorFault { return smith type FailedDependencyException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -199,13 +249,20 @@ func (e *FailedDependencyException) ErrorMessage() string { } return *e.Message } -func (e *FailedDependencyException) ErrorCode() string { return "FailedDependencyException" } +func (e *FailedDependencyException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "FailedDependencyException" + } + return *e.ErrorCodeOverride +} func (e *FailedDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user is undergoing transfer of ownership. type IllegalUserStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -218,13 +275,20 @@ func (e *IllegalUserStateException) ErrorMessage() string { } return *e.Message } -func (e *IllegalUserStateException) ErrorCode() string { return "IllegalUserStateException" } +func (e *IllegalUserStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "IllegalUserStateException" + } + return *e.ErrorCodeOverride +} func (e *IllegalUserStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pagination marker or limit fields are not valid. type InvalidArgumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -237,13 +301,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidArgumentException" + } + return *e.ErrorCodeOverride +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not allowed on the specified comment object. type InvalidCommentOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -257,7 +328,10 @@ func (e *InvalidCommentOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidCommentOperationException) ErrorCode() string { - return "InvalidCommentOperationException" + if e.ErrorCodeOverride == nil { + return "InvalidCommentOperationException" + } + return *e.ErrorCodeOverride } func (e *InvalidCommentOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -265,6 +339,8 @@ func (e *InvalidCommentOperationException) ErrorFault() smithy.ErrorFault { retu type InvalidOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -277,13 +353,20 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidOperationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The password is invalid. type InvalidPasswordException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -296,7 +379,12 @@ func (e *InvalidPasswordException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPasswordException) ErrorCode() string { return "InvalidPasswordException" } +func (e *InvalidPasswordException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPasswordException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum of 100,000 files and folders under the parent folder has been @@ -304,6 +392,8 @@ func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -316,13 +406,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified document version is not in the INITIALIZED state. type ProhibitedStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -335,7 +432,12 @@ func (e *ProhibitedStateException) ErrorMessage() string { } return *e.Message } -func (e *ProhibitedStateException) ErrorCode() string { return "ProhibitedStateException" } +func (e *ProhibitedStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ProhibitedStateException" + } + return *e.ErrorCodeOverride +} func (e *ProhibitedStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The response is too large to return. The request must include a filter to reduce @@ -343,6 +445,8 @@ func (e *ProhibitedStateException) ErrorFault() smithy.ErrorFault { return smith type RequestedEntityTooLargeException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -356,7 +460,10 @@ func (e *RequestedEntityTooLargeException) ErrorMessage() string { return *e.Message } func (e *RequestedEntityTooLargeException) ErrorCode() string { - return "RequestedEntityTooLargeException" + if e.ErrorCodeOverride == nil { + return "RequestedEntityTooLargeException" + } + return *e.ErrorCodeOverride } func (e *RequestedEntityTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -364,6 +471,8 @@ func (e *RequestedEntityTooLargeException) ErrorFault() smithy.ErrorFault { retu type ResourceAlreadyCheckedOutException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -377,7 +486,10 @@ func (e *ResourceAlreadyCheckedOutException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyCheckedOutException) ErrorCode() string { - return "ResourceAlreadyCheckedOutException" + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyCheckedOutException" + } + return *e.ErrorCodeOverride } func (e *ResourceAlreadyCheckedOutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -387,6 +499,8 @@ func (e *ResourceAlreadyCheckedOutException) ErrorFault() smithy.ErrorFault { type ServiceUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -399,13 +513,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The storage limit has been exceeded. type StorageLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -418,13 +539,20 @@ func (e *StorageLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *StorageLimitExceededException) ErrorCode() string { return "StorageLimitExceededException" } +func (e *StorageLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "StorageLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *StorageLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The storage limit will be exceeded. type StorageLimitWillExceedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -438,7 +566,10 @@ func (e *StorageLimitWillExceedException) ErrorMessage() string { return *e.Message } func (e *StorageLimitWillExceedException) ErrorCode() string { - return "StorageLimitWillExceedException" + if e.ErrorCodeOverride == nil { + return "StorageLimitWillExceedException" + } + return *e.ErrorCodeOverride } func (e *StorageLimitWillExceedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -446,6 +577,8 @@ func (e *StorageLimitWillExceedException) ErrorFault() smithy.ErrorFault { retur type TooManyLabelsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -458,7 +591,12 @@ func (e *TooManyLabelsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyLabelsException) ErrorCode() string { return "TooManyLabelsException" } +func (e *TooManyLabelsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyLabelsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyLabelsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of subscriptions for the WorkDocs @@ -466,6 +604,8 @@ func (e *TooManyLabelsException) ErrorFault() smithy.ErrorFault { return smithy. type TooManySubscriptionsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -478,13 +618,20 @@ func (e *TooManySubscriptionsException) ErrorMessage() string { } return *e.Message } -func (e *TooManySubscriptionsException) ErrorCode() string { return "TooManySubscriptionsException" } +func (e *TooManySubscriptionsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManySubscriptionsException" + } + return *e.ErrorCodeOverride +} func (e *TooManySubscriptionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not permitted. type UnauthorizedOperationException struct { Message *string + ErrorCodeOverride *string + Code *string noSmithyDocumentSerde @@ -499,13 +646,20 @@ func (e *UnauthorizedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedOperationException) ErrorCode() string { return "UnauthorizedOperationException" } +func (e *UnauthorizedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller does not have access to perform the action on the resource. type UnauthorizedResourceAccessException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -519,7 +673,10 @@ func (e *UnauthorizedResourceAccessException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedResourceAccessException) ErrorCode() string { - return "UnauthorizedResourceAccessException" + if e.ErrorCodeOverride == nil { + return "UnauthorizedResourceAccessException" + } + return *e.ErrorCodeOverride } func (e *UnauthorizedResourceAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/worklink/types/errors.go b/service/worklink/types/errors.go index eac23acfa84..65effe1986d 100644 --- a/service/worklink/types/errors.go +++ b/service/worklink/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerErrorException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerErrorException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -42,13 +51,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -61,13 +77,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource was not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -80,13 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of requests exceeds the limit. type TooManyRequestsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -99,13 +129,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyRequestsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform this action. type UnauthorizedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -118,5 +155,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnauthorizedException" + } + return *e.ErrorCodeOverride +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/workmail/types/errors.go b/service/workmail/types/errors.go index cefcb68d85c..478bd029890 100644 --- a/service/workmail/types/errors.go +++ b/service/workmail/types/errors.go @@ -12,6 +12,8 @@ import ( type DirectoryInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -24,13 +26,20 @@ func (e *DirectoryInUseException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryInUseException) ErrorCode() string { return "DirectoryInUseException" } +func (e *DirectoryInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryInUseException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The directory service doesn't recognize the credentials supplied by WorkMail. type DirectoryServiceAuthenticationFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *DirectoryServiceAuthenticationFailedException) ErrorMessage() string { return *e.Message } func (e *DirectoryServiceAuthenticationFailedException) ErrorCode() string { - return "DirectoryServiceAuthenticationFailedException" + if e.ErrorCodeOverride == nil { + return "DirectoryServiceAuthenticationFailedException" + } + return *e.ErrorCodeOverride } func (e *DirectoryServiceAuthenticationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *DirectoryServiceAuthenticationFailedException) ErrorFault() smithy.Erro type DirectoryUnavailableException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,7 +80,12 @@ func (e *DirectoryUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *DirectoryUnavailableException) ErrorCode() string { return "DirectoryUnavailableException" } +func (e *DirectoryUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "DirectoryUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *DirectoryUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The email address that you're trying to assign is already created for a @@ -74,6 +93,8 @@ func (e *DirectoryUnavailableException) ErrorFault() smithy.ErrorFault { return type EmailAddressInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +107,12 @@ func (e *EmailAddressInUseException) ErrorMessage() string { } return *e.Message } -func (e *EmailAddressInUseException) ErrorCode() string { return "EmailAddressInUseException" } +func (e *EmailAddressInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EmailAddressInUseException" + } + return *e.ErrorCodeOverride +} func (e *EmailAddressInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user, group, or resource that you're trying to register is already @@ -94,6 +120,8 @@ func (e *EmailAddressInUseException) ErrorFault() smithy.ErrorFault { return smi type EntityAlreadyRegisteredException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -107,7 +135,10 @@ func (e *EntityAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *EntityAlreadyRegisteredException) ErrorCode() string { - return "EntityAlreadyRegisteredException" + if e.ErrorCodeOverride == nil { + return "EntityAlreadyRegisteredException" + } + return *e.ErrorCodeOverride } func (e *EntityAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -116,6 +147,8 @@ func (e *EntityAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { retu type EntityNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -128,7 +161,12 @@ func (e *EntityNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *EntityNotFoundException) ErrorCode() string { return "EntityNotFoundException" } +func (e *EntityNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are performing an operation on a user, group, or resource that isn't in the @@ -136,6 +174,8 @@ func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy type EntityStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -148,7 +188,12 @@ func (e *EntityStateException) ErrorMessage() string { } return *e.Message } -func (e *EntityStateException) ErrorCode() string { return "EntityStateException" } +func (e *EntityStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "EntityStateException" + } + return *e.ErrorCodeOverride +} func (e *EntityStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The configuration for a resource isn't valid. A resource must either be able to @@ -157,6 +202,8 @@ func (e *EntityStateException) ErrorFault() smithy.ErrorFault { return smithy.Fa type InvalidConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -169,7 +216,12 @@ func (e *InvalidConfigurationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidConfigurationException) ErrorCode() string { return "InvalidConfigurationException" } +func (e *InvalidConfigurationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidConfigurationException" + } + return *e.ErrorCodeOverride +} func (e *InvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You SES configuration has customizations that WorkMail cannot save. The error @@ -179,6 +231,8 @@ func (e *InvalidConfigurationException) ErrorFault() smithy.ErrorFault { return type InvalidCustomSesConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -192,7 +246,10 @@ func (e *InvalidCustomSesConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidCustomSesConfigurationException) ErrorCode() string { - return "InvalidCustomSesConfigurationException" + if e.ErrorCodeOverride == nil { + return "InvalidCustomSesConfigurationException" + } + return *e.ErrorCodeOverride } func (e *InvalidCustomSesConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -202,6 +259,8 @@ func (e *InvalidCustomSesConfigurationException) ErrorFault() smithy.ErrorFault type InvalidParameterException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -214,7 +273,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidParameterException" + } + return *e.ErrorCodeOverride +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied password doesn't match the minimum security constraints, such as @@ -222,6 +286,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidPasswordException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -234,13 +300,20 @@ func (e *InvalidPasswordException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPasswordException) ErrorCode() string { return "InvalidPasswordException" } +func (e *InvalidPasswordException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidPasswordException" + } + return *e.ErrorCodeOverride +} func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the limit of the resource. type LimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -253,7 +326,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The domain you're trying to change is in use by another user or organization in @@ -261,6 +339,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MailDomainInUseException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -273,13 +353,20 @@ func (e *MailDomainInUseException) ErrorMessage() string { } return *e.Message } -func (e *MailDomainInUseException) ErrorCode() string { return "MailDomainInUseException" } +func (e *MailDomainInUseException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MailDomainInUseException" + } + return *e.ErrorCodeOverride +} func (e *MailDomainInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The domain specified is not found in your organization. type MailDomainNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -292,7 +379,12 @@ func (e *MailDomainNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *MailDomainNotFoundException) ErrorCode() string { return "MailDomainNotFoundException" } +func (e *MailDomainNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MailDomainNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *MailDomainNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // After a domain has been added to the organization, it must be verified. The @@ -300,6 +392,8 @@ func (e *MailDomainNotFoundException) ErrorFault() smithy.ErrorFault { return sm type MailDomainStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -312,13 +406,20 @@ func (e *MailDomainStateException) ErrorMessage() string { } return *e.Message } -func (e *MailDomainStateException) ErrorCode() string { return "MailDomainStateException" } +func (e *MailDomainStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MailDomainStateException" + } + return *e.ErrorCodeOverride +} func (e *MailDomainStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user, group, or resource name isn't unique in WorkMail. type NameAvailabilityException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -331,7 +432,12 @@ func (e *NameAvailabilityException) ErrorMessage() string { } return *e.Message } -func (e *NameAvailabilityException) ErrorCode() string { return "NameAvailabilityException" } +func (e *NameAvailabilityException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "NameAvailabilityException" + } + return *e.ErrorCodeOverride +} func (e *NameAvailabilityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation received a valid organization identifier that either doesn't belong @@ -339,6 +445,8 @@ func (e *NameAvailabilityException) ErrorFault() smithy.ErrorFault { return smit type OrganizationNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -351,7 +459,12 @@ func (e *OrganizationNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *OrganizationNotFoundException) ErrorCode() string { return "OrganizationNotFoundException" } +func (e *OrganizationNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OrganizationNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *OrganizationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The organization must have a valid state to perform certain operations on the @@ -359,6 +472,8 @@ func (e *OrganizationNotFoundException) ErrorFault() smithy.ErrorFault { return type OrganizationStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -371,13 +486,20 @@ func (e *OrganizationStateException) ErrorMessage() string { } return *e.Message } -func (e *OrganizationStateException) ErrorCode() string { return "OrganizationStateException" } +func (e *OrganizationStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OrganizationStateException" + } + return *e.ErrorCodeOverride +} func (e *OrganizationStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This user, group, or resource name is not allowed in WorkMail. type ReservedNameException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -390,13 +512,20 @@ func (e *ReservedNameException) ErrorMessage() string { } return *e.Message } -func (e *ReservedNameException) ErrorCode() string { return "ReservedNameException" } +func (e *ReservedNameException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ReservedNameException" + } + return *e.ErrorCodeOverride +} func (e *ReservedNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource cannot be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -409,13 +538,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource can have up to 50 user-applied tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -428,13 +564,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't perform a write operation against a read-only directory. type UnsupportedOperationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -447,5 +590,10 @@ func (e *UnsupportedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperationException) ErrorCode() string { return "UnsupportedOperationException" } +func (e *UnsupportedOperationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "UnsupportedOperationException" + } + return *e.ErrorCodeOverride +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/workmailmessageflow/types/errors.go b/service/workmailmessageflow/types/errors.go index aae4c38365a..e78b2d0fd81 100644 --- a/service/workmailmessageflow/types/errors.go +++ b/service/workmailmessageflow/types/errors.go @@ -25,6 +25,8 @@ import ( type InvalidContentLocation struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -37,7 +39,12 @@ func (e *InvalidContentLocation) ErrorMessage() string { } return *e.Message } -func (e *InvalidContentLocation) ErrorCode() string { return "InvalidContentLocation" } +func (e *InvalidContentLocation) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidContentLocation" + } + return *e.ErrorCodeOverride +} func (e *InvalidContentLocation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested email is not eligible for update. This is usually the case for a @@ -45,6 +52,8 @@ func (e *InvalidContentLocation) ErrorFault() smithy.ErrorFault { return smithy. type MessageFrozen struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -57,7 +66,12 @@ func (e *MessageFrozen) ErrorMessage() string { } return *e.Message } -func (e *MessageFrozen) ErrorCode() string { return "MessageFrozen" } +func (e *MessageFrozen) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MessageFrozen" + } + return *e.ErrorCodeOverride +} func (e *MessageFrozen) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested email could not be updated due to an error in the MIME content. @@ -65,6 +79,8 @@ func (e *MessageFrozen) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type MessageRejected struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -77,13 +93,20 @@ func (e *MessageRejected) ErrorMessage() string { } return *e.Message } -func (e *MessageRejected) ErrorCode() string { return "MessageRejected" } +func (e *MessageRejected) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "MessageRejected" + } + return *e.ErrorCodeOverride +} func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested email message is not found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -96,5 +119,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/workspaces/types/errors.go b/service/workspaces/types/errors.go index 1e55f6bd71b..396fc167bf3 100644 --- a/service/workspaces/types/errors.go +++ b/service/workspaces/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameter values are not valid. type InvalidParameterValuesException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *InvalidParameterValuesException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValuesException) ErrorCode() string { - return "InvalidParameterValuesException" + if e.ErrorCodeOverride == nil { + return "InvalidParameterValuesException" + } + return *e.ErrorCodeOverride } func (e *InvalidParameterValuesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -51,6 +63,8 @@ func (e *InvalidParameterValuesException) ErrorFault() smithy.ErrorFault { retur type InvalidResourceStateException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -63,7 +77,12 @@ func (e *InvalidResourceStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceStateException) ErrorCode() string { return "InvalidResourceStateException" } +func (e *InvalidResourceStateException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidResourceStateException" + } + return *e.ErrorCodeOverride +} func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The properties of this WorkSpace are currently being modified. Try again in a @@ -71,6 +90,8 @@ func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return type OperationInProgressException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -83,13 +104,20 @@ func (e *OperationInProgressException) ErrorMessage() string { } return *e.Message } -func (e *OperationInProgressException) ErrorCode() string { return "OperationInProgressException" } +func (e *OperationInProgressException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationInProgressException" + } + return *e.ErrorCodeOverride +} func (e *OperationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not supported. type OperationNotSupportedException struct { Message *string + ErrorCodeOverride *string + Reason *string noSmithyDocumentSerde @@ -104,13 +132,20 @@ func (e *OperationNotSupportedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotSupportedException) ErrorCode() string { return "OperationNotSupportedException" } +func (e *OperationNotSupportedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "OperationNotSupportedException" + } + return *e.ErrorCodeOverride +} func (e *OperationNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -123,13 +158,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAlreadyExistsException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is associated with a directory. type ResourceAssociatedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -142,13 +184,20 @@ func (e *ResourceAssociatedException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAssociatedException) ErrorCode() string { return "ResourceAssociatedException" } +func (e *ResourceAssociatedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceAssociatedException" + } + return *e.ErrorCodeOverride +} func (e *ResourceAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be created. type ResourceCreationFailedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -162,7 +211,10 @@ func (e *ResourceCreationFailedException) ErrorMessage() string { return *e.Message } func (e *ResourceCreationFailedException) ErrorCode() string { - return "ResourceCreationFailedException" + if e.ErrorCodeOverride == nil { + return "ResourceCreationFailedException" + } + return *e.ErrorCodeOverride } func (e *ResourceCreationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -170,6 +222,8 @@ func (e *ResourceCreationFailedException) ErrorFault() smithy.ErrorFault { retur type ResourceLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -182,13 +236,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -203,13 +264,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is not available. type ResourceUnavailableException struct { Message *string + ErrorCodeOverride *string + ResourceId *string noSmithyDocumentSerde @@ -224,7 +292,12 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceUnavailableException" + } + return *e.ErrorCodeOverride +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The configuration of this network is not supported for this operation, or your @@ -234,6 +307,8 @@ func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return s type UnsupportedNetworkConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -247,7 +322,10 @@ func (e *UnsupportedNetworkConfigurationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedNetworkConfigurationException) ErrorCode() string { - return "UnsupportedNetworkConfigurationException" + if e.ErrorCodeOverride == nil { + return "UnsupportedNetworkConfigurationException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedNetworkConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -260,6 +338,8 @@ func (e *UnsupportedNetworkConfigurationException) ErrorFault() smithy.ErrorFaul type UnsupportedWorkspaceConfigurationException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -273,7 +353,10 @@ func (e *UnsupportedWorkspaceConfigurationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedWorkspaceConfigurationException) ErrorCode() string { - return "UnsupportedWorkspaceConfigurationException" + if e.ErrorCodeOverride == nil { + return "UnsupportedWorkspaceConfigurationException" + } + return *e.ErrorCodeOverride } func (e *UnsupportedWorkspaceConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -287,6 +370,8 @@ func (e *UnsupportedWorkspaceConfigurationException) ErrorFault() smithy.ErrorFa type WorkspacesDefaultRoleNotFoundException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -300,7 +385,10 @@ func (e *WorkspacesDefaultRoleNotFoundException) ErrorMessage() string { return *e.Message } func (e *WorkspacesDefaultRoleNotFoundException) ErrorCode() string { - return "WorkspacesDefaultRoleNotFoundException" + if e.ErrorCodeOverride == nil { + return "WorkspacesDefaultRoleNotFoundException" + } + return *e.ErrorCodeOverride } func (e *WorkspacesDefaultRoleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/workspacesweb/types/errors.go b/service/workspacesweb/types/errors.go index dc9dda26481..0195c58632e 100644 --- a/service/workspacesweb/types/errors.go +++ b/service/workspacesweb/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a conflict. type ConflictException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -45,13 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is an internal server error. type InternalServerException struct { Message *string + ErrorCodeOverride *string + RetryAfterSeconds int32 noSmithyDocumentSerde @@ -66,13 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource cannot be found. type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string @@ -88,13 +111,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + ErrorCodeOverride *string + ResourceId *string ResourceType *string ServiceCode *string @@ -112,13 +142,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a throttling error. type ThrottlingException struct { Message *string + ErrorCodeOverride *string + ServiceCode *string QuotaCode *string RetryAfterSeconds int32 @@ -135,13 +172,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are too many tags. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -156,13 +200,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a validation error. type ValidationException struct { Message *string + ErrorCodeOverride *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -178,5 +229,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/xray/types/errors.go b/service/xray/types/errors.go index ee2ebbc2a72..a90cfecfedf 100644 --- a/service/xray/types/errors.go +++ b/service/xray/types/errors.go @@ -13,6 +13,8 @@ import ( type InvalidPolicyRevisionIdException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -26,7 +28,10 @@ func (e *InvalidPolicyRevisionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyRevisionIdException) ErrorCode() string { - return "InvalidPolicyRevisionIdException" + if e.ErrorCodeOverride == nil { + return "InvalidPolicyRevisionIdException" + } + return *e.ErrorCodeOverride } func (e *InvalidPolicyRevisionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -34,6 +39,8 @@ func (e *InvalidPolicyRevisionIdException) ErrorFault() smithy.ErrorFault { retu type InvalidRequestException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -46,7 +53,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "InvalidRequestException" + } + return *e.ErrorCodeOverride +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided resource policy would prevent the caller of this request from @@ -54,6 +66,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type LockoutPreventionException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -66,13 +80,20 @@ func (e *LockoutPreventionException) ErrorMessage() string { } return *e.Message } -func (e *LockoutPreventionException) ErrorCode() string { return "LockoutPreventionException" } +func (e *LockoutPreventionException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "LockoutPreventionException" + } + return *e.ErrorCodeOverride +} func (e *LockoutPreventionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid policy document provided in request. type MalformedPolicyDocumentException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -86,7 +107,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.ErrorCodeOverride == nil { + return "MalformedPolicyDocumentException" + } + return *e.ErrorCodeOverride } func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -95,6 +119,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type PolicyCountLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -108,7 +134,10 @@ func (e *PolicyCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *PolicyCountLimitExceededException) ErrorCode() string { - return "PolicyCountLimitExceededException" + if e.ErrorCodeOverride == nil { + return "PolicyCountLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *PolicyCountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -116,6 +145,8 @@ func (e *PolicyCountLimitExceededException) ErrorFault() smithy.ErrorFault { ret type PolicySizeLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -129,7 +160,10 @@ func (e *PolicySizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *PolicySizeLimitExceededException) ErrorCode() string { - return "PolicySizeLimitExceededException" + if e.ErrorCodeOverride == nil { + return "PolicySizeLimitExceededException" + } + return *e.ErrorCodeOverride } func (e *PolicySizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -138,6 +172,8 @@ func (e *PolicySizeLimitExceededException) ErrorFault() smithy.ErrorFault { retu type ResourceNotFoundException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -152,13 +188,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of sampling rules. type RuleLimitExceededException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -171,13 +214,20 @@ func (e *RuleLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *RuleLimitExceededException) ErrorCode() string { return "RuleLimitExceededException" } +func (e *RuleLimitExceededException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "RuleLimitExceededException" + } + return *e.ErrorCodeOverride +} func (e *RuleLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the maximum number of requests per second. type ThrottledException struct { Message *string + ErrorCodeOverride *string + noSmithyDocumentSerde } @@ -190,13 +240,20 @@ func (e *ThrottledException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledException) ErrorCode() string { return "ThrottledException" } +func (e *ThrottledException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "ThrottledException" + } + return *e.ErrorCodeOverride +} func (e *ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of tags you can apply to this resource. type TooManyTagsException struct { Message *string + ErrorCodeOverride *string + ResourceName *string noSmithyDocumentSerde @@ -211,5 +268,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.ErrorCodeOverride == nil { + return "TooManyTagsException" + } + return *e.ErrorCodeOverride +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }