diff --git a/aws/logging.go b/aws/logging.go index 91c94d987b1..9e34d26f215 100644 --- a/aws/logging.go +++ b/aws/logging.go @@ -7,12 +7,10 @@ package aws // The entire 64-bit group is reserved for later expansion by the SDK. // // Example: Setting ClientLogMode to enable logging of retries and requests -// -// clientLogMode := aws.LogRetries | aws.LogRequest +// clientLogMode := aws.LogRetries | aws.LogRequest // // Example: Adding an additional log mode to an existing ClientLogMode value -// -// clientLogMode |= aws.LogResponse +// clientLogMode |= aws.LogResponse type ClientLogMode uint64 // Supported ClientLogMode bits that can be configured to toggle logging of specific SDK events. diff --git a/internal/ini/literal_tokens_test.go b/internal/ini/literal_tokens_test.go index 489155a454b..ec14d0c9298 100644 --- a/internal/ini/literal_tokens_test.go +++ b/internal/ini/literal_tokens_test.go @@ -159,8 +159,8 @@ func TestNewLiteralToken(t *testing.T) { ), }, { - name: "utf8 whitespace", - b: []rune("0 0"), + name: "utf8 whitespace", + b: []rune("0 0"), expectedRead: 1, expectedToken: newToken(TokenLit, []rune("0"), @@ -168,8 +168,8 @@ func TestNewLiteralToken(t *testing.T) { ), }, { - name: "utf8 whitespace expr", - b: []rune("0=0 0"), + name: "utf8 whitespace expr", + b: []rune("0=0 0"), expectedRead: 1, expectedToken: newToken(TokenLit, []rune("0"), diff --git a/internal/protocoltest/awsrestjson/document/doc.go b/internal/protocoltest/awsrestjson/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/internal/protocoltest/awsrestjson/document/doc.go +++ b/internal/protocoltest/awsrestjson/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/internal/protocoltest/awsrestjson/types/errors.go b/internal/protocoltest/awsrestjson/types/errors.go index fab1a9bd31a..2f831d9b04d 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 + Code *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.Code == nil { + return "ComplexError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FooError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGreeting" + } + return *e.Code +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/awsrestjson/types/types.go b/internal/protocoltest/awsrestjson/types/types.go index 3961fab1b41..bd3d9ec8a56 100644 --- a/internal/protocoltest/awsrestjson/types/types.go +++ b/internal/protocoltest/awsrestjson/types/types.go @@ -16,17 +16,16 @@ type ComplexNestedErrorData struct { // A union with a representative set of types for members. // // The following types satisfy this interface: -// -// MyUnionMemberBlobValue -// MyUnionMemberBooleanValue -// MyUnionMemberEnumValue -// MyUnionMemberListValue -// MyUnionMemberMapValue -// MyUnionMemberNumberValue -// MyUnionMemberRenamedStructureValue -// MyUnionMemberStringValue -// MyUnionMemberStructureValue -// MyUnionMemberTimestampValue +// MyUnionMemberBlobValue +// MyUnionMemberBooleanValue +// MyUnionMemberEnumValue +// MyUnionMemberListValue +// MyUnionMemberMapValue +// MyUnionMemberNumberValue +// MyUnionMemberRenamedStructureValue +// MyUnionMemberStringValue +// MyUnionMemberStructureValue +// MyUnionMemberTimestampValue type MyUnion interface { isMyUnion() } @@ -126,8 +125,7 @@ type PayloadConfig struct { } // The following types satisfy this interface: -// -// PlayerActionMemberQuit +// PlayerActionMemberQuit type PlayerAction interface { isPlayerAction() } @@ -158,9 +156,8 @@ type RecursiveShapesInputOutputNested2 struct { } // The following types satisfy this interface: -// -// SimpleUnionMemberInt -// SimpleUnionMemberString +// SimpleUnionMemberInt +// SimpleUnionMemberString type SimpleUnion interface { isSimpleUnion() } @@ -196,10 +193,9 @@ type TestConfig struct { } // The following types satisfy this interface: -// -// UnionWithJsonNameMemberBar -// UnionWithJsonNameMemberBaz -// UnionWithJsonNameMemberFoo +// UnionWithJsonNameMemberBar +// UnionWithJsonNameMemberBaz +// UnionWithJsonNameMemberFoo type UnionWithJsonName interface { isUnionWithJsonName() } diff --git a/internal/protocoltest/ec2query/types/errors.go b/internal/protocoltest/ec2query/types/errors.go index ed1d31c9f61..1940337665b 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 + Code *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.Code == nil { + return "ComplexError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGreeting" + } + return *e.Code +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/jsonrpc/doc.go b/internal/protocoltest/jsonrpc/doc.go index b486d9624fb..bb9710a0b81 100644 --- a/internal/protocoltest/jsonrpc/doc.go +++ b/internal/protocoltest/jsonrpc/doc.go @@ -2,4 +2,5 @@ // Package jsonrpc provides the API client, operations, and parameter types for // Sample Json 1.1 Protocol Service. +// package jsonrpc diff --git a/internal/protocoltest/jsonrpc/document/doc.go b/internal/protocoltest/jsonrpc/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/internal/protocoltest/jsonrpc/document/doc.go +++ b/internal/protocoltest/jsonrpc/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/internal/protocoltest/jsonrpc/types/errors.go b/internal/protocoltest/jsonrpc/types/errors.go index b21fef9a637..79fa4616075 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 + Code *string + TopLevel *string Nested *ComplexNestedErrorData @@ -26,13 +28,19 @@ func (e *ComplexError) ErrorMessage() string { } return *e.Message } -func (e *ComplexError) ErrorCode() string { return "ComplexError" } +func (e *ComplexError) ErrorCode() string { + if e.Code == nil { + return "ComplexError" + } + return *e.Code +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ErrorWithMembers struct { Message *string - Code *string + Code *string + ComplexData *KitchenSink IntegerField *int32 ListField []string @@ -51,12 +59,19 @@ func (e *ErrorWithMembers) ErrorMessage() string { } return *e.Message } -func (e *ErrorWithMembers) ErrorCode() string { return "ErrorWithMembers" } +func (e *ErrorWithMembers) ErrorCode() string { + if e.Code == nil { + return "ErrorWithMembers" + } + return *e.Code +} func (e *ErrorWithMembers) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ErrorWithoutMembers struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -69,7 +84,12 @@ func (e *ErrorWithoutMembers) ErrorMessage() string { } return *e.Message } -func (e *ErrorWithoutMembers) ErrorCode() string { return "ErrorWithoutMembers" } +func (e *ErrorWithoutMembers) ErrorCode() string { + if e.Code == nil { + return "ErrorWithoutMembers" + } + return *e.Code +} 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 +97,8 @@ func (e *ErrorWithoutMembers) ErrorFault() smithy.ErrorFault { return smithy.Fau type FooError struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -89,13 +111,20 @@ func (e *FooError) ErrorMessage() string { } return *e.Message } -func (e *FooError) ErrorCode() string { return "FooError" } +func (e *FooError) ErrorCode() string { + if e.Code == nil { + return "FooError" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -108,5 +137,10 @@ func (e *InvalidGreeting) ErrorMessage() string { } return *e.Message } -func (e *InvalidGreeting) ErrorCode() string { return "InvalidGreeting" } +func (e *InvalidGreeting) ErrorCode() string { + if e.Code == nil { + return "InvalidGreeting" + } + return *e.Code +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/jsonrpc/types/types.go b/internal/protocoltest/jsonrpc/types/types.go index cfba4c8d00d..da6223a5560 100644 --- a/internal/protocoltest/jsonrpc/types/types.go +++ b/internal/protocoltest/jsonrpc/types/types.go @@ -77,16 +77,15 @@ type KitchenSink struct { // A union with a representative set of types for members. // // The following types satisfy this interface: -// -// MyUnionMemberBlobValue -// MyUnionMemberBooleanValue -// MyUnionMemberEnumValue -// MyUnionMemberListValue -// MyUnionMemberMapValue -// MyUnionMemberNumberValue -// MyUnionMemberStringValue -// MyUnionMemberStructureValue -// MyUnionMemberTimestampValue +// MyUnionMemberBlobValue +// MyUnionMemberBooleanValue +// MyUnionMemberEnumValue +// MyUnionMemberListValue +// MyUnionMemberMapValue +// MyUnionMemberNumberValue +// MyUnionMemberStringValue +// MyUnionMemberStructureValue +// MyUnionMemberTimestampValue type MyUnion interface { isMyUnion() } diff --git a/internal/protocoltest/jsonrpc10/doc.go b/internal/protocoltest/jsonrpc10/doc.go index ab5e3a40641..3b1a99e7765 100644 --- a/internal/protocoltest/jsonrpc10/doc.go +++ b/internal/protocoltest/jsonrpc10/doc.go @@ -2,4 +2,5 @@ // Package jsonrpc10 provides the API client, operations, and parameter types for // the API. +// package jsonrpc10 diff --git a/internal/protocoltest/jsonrpc10/types/errors.go b/internal/protocoltest/jsonrpc10/types/errors.go index f2314c704f7..d9ebcf7d887 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 + Code *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.Code == nil { + return "ComplexError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FooError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGreeting" + } + return *e.Code +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/jsonrpc10/types/types.go b/internal/protocoltest/jsonrpc10/types/types.go index aaed8ff80d3..dc742a8d9a5 100644 --- a/internal/protocoltest/jsonrpc10/types/types.go +++ b/internal/protocoltest/jsonrpc10/types/types.go @@ -16,16 +16,15 @@ type ComplexNestedErrorData struct { // A union with a representative set of types for members. // // The following types satisfy this interface: -// -// MyUnionMemberBlobValue -// MyUnionMemberBooleanValue -// MyUnionMemberEnumValue -// MyUnionMemberListValue -// MyUnionMemberMapValue -// MyUnionMemberNumberValue -// MyUnionMemberStringValue -// MyUnionMemberStructureValue -// MyUnionMemberTimestampValue +// MyUnionMemberBlobValue +// MyUnionMemberBooleanValue +// MyUnionMemberEnumValue +// MyUnionMemberListValue +// MyUnionMemberMapValue +// MyUnionMemberNumberValue +// MyUnionMemberStringValue +// MyUnionMemberStructureValue +// MyUnionMemberTimestampValue type MyUnion interface { isMyUnion() } diff --git a/internal/protocoltest/query/types/errors.go b/internal/protocoltest/query/types/errors.go index 0d1d921d1a2..bea1d8cd9b1 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 + Code *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.Code == nil { + return "ComplexError" + } + return *e.Code +} func (e *ComplexError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type CustomCodeError struct { Message *string + Code *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.Code == nil { + return "Customized" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGreeting" + } + return *e.Code +} 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..40468090fbe 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 + Code *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.Code == nil { + return "ComplexError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGreeting" + } + return *e.Code +} func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/internal/protocoltest/restxml/types/types.go b/internal/protocoltest/restxml/types/types.go index 041d802d22c..0fdfcbe8e34 100644 --- a/internal/protocoltest/restxml/types/types.go +++ b/internal/protocoltest/restxml/types/types.go @@ -99,17 +99,16 @@ type XmlNestedUnionStruct struct { } // The following types satisfy this interface: -// -// XmlUnionShapeMemberBooleanValue -// XmlUnionShapeMemberByteValue -// XmlUnionShapeMemberDoubleValue -// XmlUnionShapeMemberFloatValue -// XmlUnionShapeMemberIntegerValue -// XmlUnionShapeMemberLongValue -// XmlUnionShapeMemberShortValue -// XmlUnionShapeMemberStringValue -// XmlUnionShapeMemberStructValue -// XmlUnionShapeMemberUnionValue +// XmlUnionShapeMemberBooleanValue +// XmlUnionShapeMemberByteValue +// XmlUnionShapeMemberDoubleValue +// XmlUnionShapeMemberFloatValue +// XmlUnionShapeMemberIntegerValue +// XmlUnionShapeMemberLongValue +// XmlUnionShapeMemberShortValue +// XmlUnionShapeMemberStringValue +// XmlUnionShapeMemberStructValue +// XmlUnionShapeMemberUnionValue type XmlUnionShape interface { isXmlUnionShape() } diff --git a/service/accessanalyzer/types/errors.go b/service/accessanalyzer/types/errors.go index 0bde3293a49..9055d51cc95 100644 --- a/service/accessanalyzer/types/errors.go +++ b/service/accessanalyzer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict exception error. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal server error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Service quote met error. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Throttling limit exceeded error. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Validation exception error. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/accessanalyzer/types/types.go b/service/accessanalyzer/types/types.go index a423d5788b5..47bd73122dd 100644 --- a/service/accessanalyzer/types/types.go +++ b/service/accessanalyzer/types/types.go @@ -202,9 +202,8 @@ type AccessPreviewSummary struct { // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAcl.html). // // The following types satisfy this interface: -// -// AclGranteeMemberId -// AclGranteeMemberUri +// AclGranteeMemberId +// AclGranteeMemberUri type AclGrantee interface { isAclGrantee() } @@ -444,18 +443,17 @@ type CloudTrailProperties struct { // control configuration. // // The following types satisfy this interface: -// -// ConfigurationMemberEbsSnapshot -// ConfigurationMemberEcrRepository -// ConfigurationMemberEfsFileSystem -// ConfigurationMemberIamRole -// ConfigurationMemberKmsKey -// ConfigurationMemberRdsDbClusterSnapshot -// ConfigurationMemberRdsDbSnapshot -// ConfigurationMemberS3Bucket -// ConfigurationMemberSecretsManagerSecret -// ConfigurationMemberSnsTopic -// ConfigurationMemberSqsQueue +// ConfigurationMemberEbsSnapshot +// ConfigurationMemberEcrRepository +// ConfigurationMemberEfsFileSystem +// ConfigurationMemberIamRole +// ConfigurationMemberKmsKey +// ConfigurationMemberRdsDbClusterSnapshot +// ConfigurationMemberRdsDbSnapshot +// ConfigurationMemberS3Bucket +// ConfigurationMemberSecretsManagerSecret +// ConfigurationMemberSnsTopic +// ConfigurationMemberSqsQueue type Configuration interface { isConfiguration() } @@ -1109,9 +1107,8 @@ type Location struct { // (https://docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html). // // The following types satisfy this interface: -// -// NetworkOriginConfigurationMemberInternetConfiguration -// NetworkOriginConfigurationMemberVpcConfiguration +// NetworkOriginConfigurationMemberInternetConfiguration +// NetworkOriginConfigurationMemberVpcConfiguration type NetworkOriginConfiguration interface { isNetworkOriginConfiguration() } @@ -1141,11 +1138,10 @@ func (*NetworkOriginConfigurationMemberVpcConfiguration) isNetworkOriginConfigur // A single element in a path through the JSON representation of a policy. // // The following types satisfy this interface: -// -// PathElementMemberIndex -// PathElementMemberKey -// PathElementMemberSubstring -// PathElementMemberValue +// PathElementMemberIndex +// PathElementMemberKey +// PathElementMemberSubstring +// PathElementMemberValue type PathElement interface { isPathElement() } @@ -1252,8 +1248,7 @@ type Position struct { // The values for a manual Amazon RDS DB cluster snapshot attribute. // // The following types satisfy this interface: -// -// RdsDbClusterSnapshotAttributeValueMemberAccountIds +// RdsDbClusterSnapshotAttributeValueMemberAccountIds type RdsDbClusterSnapshotAttributeValue interface { isRdsDbClusterSnapshotAttributeValue() } @@ -1319,8 +1314,7 @@ type RdsDbClusterSnapshotConfiguration struct { // restore a manual DB snapshot. // // The following types satisfy this interface: -// -// RdsDbSnapshotAttributeValueMemberAccountIds +// RdsDbSnapshotAttributeValueMemberAccountIds type RdsDbSnapshotAttributeValue interface { isRdsDbSnapshotAttributeValue() } diff --git a/service/account/types/errors.go b/service/account/types/errors.go index 1a5df49a862..2fcfa857db9 100644 --- a/service/account/types/errors.go +++ b/service/account/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..d14891e4179 100644 --- a/service/acm/types/errors.go +++ b/service/acm/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidArgsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidArnException" + } + return *e.Code +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more values in the DomainValidationOption structure is incorrect. type InvalidDomainValidationOptionsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -101,7 +131,10 @@ func (e *InvalidDomainValidationOptionsException) ErrorMessage() string { return *e.Message } func (e *InvalidDomainValidationOptionsException) ErrorCode() string { - return "InvalidDomainValidationOptionsException" + if e.Code == nil { + return "InvalidDomainValidationOptionsException" + } + return *e.Code } func (e *InvalidDomainValidationOptionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -111,6 +144,8 @@ func (e *InvalidDomainValidationOptionsException) ErrorFault() smithy.ErrorFault type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Processing has reached an invalid state. type InvalidStateException struct { Message *string + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTagException" + } + return *e.Code +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An ACM quota has been exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RequestInProgressException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagPolicyException" + } + return *e.Code +} func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because it exceeded a quota. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..0c948c2c18b 100644 --- a/service/acmpca/types/errors.go +++ b/service/acmpca/types/errors.go @@ -12,6 +12,8 @@ import ( type CertificateMismatchException struct { Message *string + Code *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.Code == nil { + return "CertificateMismatchException" + } + return *e.Code +} func (e *CertificateMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A previous update to your private CA is still ongoing. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidArgsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidArnException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPolicyException" + } + return *e.Code +} func (e *InvalidPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request action cannot be performed or is prohibited. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTagException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LockoutPreventedException" + } + return *e.Code +} func (e *LockoutPreventedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more fields in the certificate are invalid. type MalformedCertificateException struct { Message *string + Code *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.Code == nil { + return "MalformedCertificateException" + } + return *e.Code +} func (e *MalformedCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate signing request is invalid. type MalformedCSRException struct { Message *string + Code *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.Code == nil { + return "MalformedCSRException" + } + return *e.Code +} func (e *MalformedCSRException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated permission has already been given to the user. type PermissionAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -283,7 +374,10 @@ func (e *PermissionAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *PermissionAlreadyExistsException) ErrorCode() string { - return "PermissionAlreadyExistsException" + if e.Code == nil { + return "PermissionAlreadyExistsException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -304,7 +400,10 @@ func (e *RequestAlreadyProcessedException) ErrorMessage() string { return *e.Message } func (e *RequestAlreadyProcessedException) ErrorCode() string { - return "RequestAlreadyProcessedException" + if e.Code == nil { + return "RequestAlreadyProcessedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "RequestFailedException" + } + return *e.Code +} func (e *RequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request is already in progress. type RequestInProgressException struct { Message *string + Code *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.Code == nil { + return "RequestInProgressException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..a599d9e9d60 100644 --- a/service/alexaforbusiness/types/errors.go +++ b/service/alexaforbusiness/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a concurrent modification of resources. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DeviceNotRegisteredException" + } + return *e.Code +} func (e *DeviceNotRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Certificate Authority can't issue or revoke a certificate. type InvalidCertificateAuthorityException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -84,7 +105,10 @@ func (e *InvalidCertificateAuthorityException) ErrorMessage() string { return *e.Message } func (e *InvalidCertificateAuthorityException) ErrorCode() string { - return "InvalidCertificateAuthorityException" + if e.Code == nil { + return "InvalidCertificateAuthorityException" + } + return *e.Code } func (e *InvalidCertificateAuthorityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -94,6 +118,8 @@ func (e *InvalidCertificateAuthorityException) ErrorFault() smithy.ErrorFault { type InvalidDeviceException struct { Message *string + Code *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.Code == nil { + return "InvalidDeviceException" + } + return *e.Code +} func (e *InvalidDeviceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A password in SecretsManager is in an invalid state. type InvalidSecretsManagerResourceException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -126,7 +159,10 @@ func (e *InvalidSecretsManagerResourceException) ErrorMessage() string { return *e.Message } func (e *InvalidSecretsManagerResourceException) ErrorCode() string { - return "InvalidSecretsManagerResourceException" + if e.Code == nil { + return "InvalidSecretsManagerResourceException" + } + return *e.Code } func (e *InvalidSecretsManagerResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -136,6 +172,8 @@ func (e *InvalidSecretsManagerResourceException) ErrorFault() smithy.ErrorFault type InvalidServiceLinkedRoleStateException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -149,7 +187,10 @@ func (e *InvalidServiceLinkedRoleStateException) ErrorMessage() string { return *e.Message } func (e *InvalidServiceLinkedRoleStateException) ErrorCode() string { - return "InvalidServiceLinkedRoleStateException" + if e.Code == nil { + return "InvalidServiceLinkedRoleStateException" + } + return *e.Code } func (e *InvalidServiceLinkedRoleStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -159,6 +200,8 @@ func (e *InvalidServiceLinkedRoleStateException) ErrorFault() smithy.ErrorFault type InvalidUserStatusException struct { Message *string + Code *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.Code == nil { + return "InvalidUserStatusException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name sent in the request is already in use. type NameInUseException struct { Message *string + Code *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.Code == nil { + return "NameInUseException" + } + return *e.Code +} func (e *NameInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is not found. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Another resource is associated with the resource in the request. type ResourceAssociatedException struct { Message *string + Code *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.Code == nil { + return "ResourceAssociatedException" + } + return *e.Code +} func (e *ResourceAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource in the request is already in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The skill must be linked to a third-party account. type SkillNotLinkedException struct { Message *string + Code *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.Code == nil { + return "SkillNotLinkedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..0d03ee6048b 100644 --- a/service/amp/types/errors.go +++ b/service/amp/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error during processing of request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource which does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..2326d90df79 100644 --- a/service/amplify/types/errors.go +++ b/service/amplify/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation failed because a dependent service threw an exception. type DependentServiceFailureException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *DependentServiceFailureException) ErrorMessage() string { return *e.Message } func (e *DependentServiceFailureException) ErrorCode() string { - return "DependentServiceFailureException" + if e.Code == nil { + return "DependentServiceFailureException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity was not found during an operation. type NotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -101,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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation failed due to a non-existent resource. @@ -122,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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation failed due to a lack of access. type UnauthorizedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -141,5 +181,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..637cf5adb93 100644 --- a/service/amplifybackend/types/errors.go +++ b/service/amplifybackend/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "GatewayTimeoutException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..dfd38c756fe 100644 --- a/service/amplifyuibuilder/types/errors.go +++ b/service/amplifyuibuilder/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource does not exist, or access was denied. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have permission to perform this operation. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/amplifyuibuilder/types/types.go b/service/amplifyuibuilder/types/types.go index 801fff4ca7f..e648c914c6b 100644 --- a/service/amplifyuibuilder/types/types.go +++ b/service/amplifyuibuilder/types/types.go @@ -636,10 +636,9 @@ type FieldInputConfig struct { // Describes the field position. // // The following types satisfy this interface: -// -// FieldPositionMemberBelow -// FieldPositionMemberFixed -// FieldPositionMemberRightOf +// FieldPositionMemberBelow +// FieldPositionMemberFixed +// FieldPositionMemberRightOf type FieldPosition interface { isFieldPosition() } @@ -850,9 +849,8 @@ type FormStyle struct { // Describes the configuration settings for the form's style properties. // // The following types satisfy this interface: -// -// FormStyleConfigMemberTokenReference -// FormStyleConfigMemberValue +// FormStyleConfigMemberTokenReference +// FormStyleConfigMemberValue type FormStyleConfig interface { isFormStyleConfig() } diff --git a/service/apigateway/types/errors.go b/service/apigateway/types/errors.go index 9129fea88ab..f050da05d6e 100644 --- a/service/apigateway/types/errors.go +++ b/service/apigateway/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is denied because the caller has insufficient permissions. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..35a55ee1245 100644 --- a/service/apigatewaymanagementapi/types/errors.go +++ b/service/apigatewaymanagementapi/types/errors.go @@ -11,6 +11,8 @@ import ( type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The connection with the provided id no longer exists. type GoneException struct { Message *string + Code *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.Code == nil { + return "GoneException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The data has exceeded the maximum size allowed. type PayloadTooLargeException struct { Message *string + Code *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.Code == nil { + return "PayloadTooLargeException" + } + return *e.Code +} func (e *PayloadTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/apigatewayv2/api_op_ImportApi.go b/service/apigatewayv2/api_op_ImportApi.go index 906f333a429..bda4c36a4ab 100644 --- a/service/apigatewayv2/api_op_ImportApi.go +++ b/service/apigatewayv2/api_op_ImportApi.go @@ -28,6 +28,7 @@ func (c *Client) ImportApi(ctx context.Context, params *ImportApiInput, optFns . return out, nil } +// type ImportApiInput struct { // The OpenAPI definition. Supported only for HTTP APIs. diff --git a/service/apigatewayv2/api_op_ReimportApi.go b/service/apigatewayv2/api_op_ReimportApi.go index 4defdc5babb..4f5a0017cee 100644 --- a/service/apigatewayv2/api_op_ReimportApi.go +++ b/service/apigatewayv2/api_op_ReimportApi.go @@ -28,6 +28,7 @@ func (c *Client) ReimportApi(ctx context.Context, params *ReimportApiInput, optF return out, nil } +// type ReimportApiInput struct { // The API identifier. diff --git a/service/apigatewayv2/types/errors.go b/service/apigatewayv2/types/errors.go index d4d15949c0e..8591f4c2d2d 100644 --- a/service/apigatewayv2/types/errors.go +++ b/service/apigatewayv2/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..86123983967 100644 --- a/service/appconfig/types/errors.go +++ b/service/appconfig/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal failure in the AppConfig service. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The configuration size is too large. type PayloadTooLargeException struct { Message *string + Code *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.Code == nil { + return "PayloadTooLargeException" + } + return *e.Code +} func (e *PayloadTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appconfig/types/types.go b/service/appconfig/types/types.go index a272546c7d0..d9607f1356f 100644 --- a/service/appconfig/types/types.go +++ b/service/appconfig/types/types.go @@ -117,8 +117,7 @@ type AppliedExtension struct { // specified by a call. // // The following types satisfy this interface: -// -// BadRequestDetailsMemberInvalidConfiguration +// BadRequestDetailsMemberInvalidConfiguration type BadRequestDetails interface { isBadRequestDetails() } diff --git a/service/appconfigdata/types/errors.go b/service/appconfigdata/types/errors.go index bd9d988117b..1c19dbcc757 100644 --- a/service/appconfigdata/types/errors.go +++ b/service/appconfigdata/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal failure in the service. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appconfigdata/types/types.go b/service/appconfigdata/types/types.go index c77992a1176..969de6f3e67 100644 --- a/service/appconfigdata/types/types.go +++ b/service/appconfigdata/types/types.go @@ -10,8 +10,7 @@ import ( // specified by a call. // // The following types satisfy this interface: -// -// BadRequestDetailsMemberInvalidParameters +// BadRequestDetailsMemberInvalidParameters type BadRequestDetails interface { isBadRequestDetails() } diff --git a/service/appflow/types/errors.go b/service/appflow/types/errors.go index ec37ced86f1..064e068daca 100644 --- a/service/appflow/types/errors.go +++ b/service/appflow/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred when authenticating with the connector endpoint. type ConnectorAuthenticationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ConnectorAuthenticationException) ErrorMessage() string { return *e.Message } func (e *ConnectorAuthenticationException) ErrorCode() string { - return "ConnectorAuthenticationException" + if e.Code == nil { + return "ConnectorAuthenticationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConnectorServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not supported for the current flow. type UnsupportedOperationException struct { Message *string + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has invalid or missing parameters. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..6fbfbab9eac 100644 --- a/service/appintegrations/types/errors.go +++ b/service/appintegrations/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified name already exists. type DuplicateResourceException struct { Message *string + Code *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.Code == nil { + return "DuplicateResourceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceError" + } + return *e.Code +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The allowed quota for the resource has been exceeded. type ResourceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ResourceQuotaExceededException" + } + return *e.Code +} func (e *ResourceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling limit has been exceeded. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..194bcd0ce47 100644 --- a/service/applicationautoscaling/types/errors.go +++ b/service/applicationautoscaling/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentUpdateException struct { Message *string + Code *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.Code == nil { + return "ConcurrentUpdateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FailedResourceAccessException" + } + return *e.Code +} func (e *FailedResourceAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an internal error. type InternalServiceException struct { Message *string + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The next token supplied was invalid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ObjectNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..e9928be8468 100644 --- a/service/applicationcostprofiler/types/errors.go +++ b/service/applicationcostprofiler/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal server error occurred. Retry your request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Your request exceeds one or more of the service quotas. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints for the API. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..c26fec44b23 100644 --- a/service/applicationdiscoveryservice/types/errors.go +++ b/service/applicationdiscoveryservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AuthorizationErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,12 +26,20 @@ func (e *AuthorizationErrorException) ErrorMessage() string { } return *e.Message } -func (e *AuthorizationErrorException) ErrorCode() string { return "AuthorizationErrorException" } +func (e *AuthorizationErrorException) ErrorCode() string { + if e.Code == nil { + return "AuthorizationErrorException" + } + return *e.Code +} func (e *AuthorizationErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ConflictErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -42,13 +52,20 @@ func (e *ConflictErrorException) ErrorMessage() string { } return *e.Message } -func (e *ConflictErrorException) ErrorCode() string { return "ConflictErrorException" } +func (e *ConflictErrorException) ErrorCode() string { + if e.Code == nil { + return "ConflictErrorException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -61,13 +78,20 @@ func (e *HomeRegionNotSetException) ErrorMessage() string { } return *e.Message } -func (e *HomeRegionNotSetException) ErrorCode() string { return "HomeRegionNotSetException" } +func (e *HomeRegionNotSetException) ErrorCode() string { + if e.Code == nil { + return "HomeRegionNotSetException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -80,7 +104,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 +117,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidParameterValueException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -100,13 +131,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not permitted. type OperationNotPermittedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -119,7 +157,12 @@ func (e *OperationNotPermittedException) ErrorMessage() string { } return *e.Message } -func (e *OperationNotPermittedException) ErrorCode() string { return "OperationNotPermittedException" } +func (e *OperationNotPermittedException) ErrorCode() string { + if e.Code == nil { + return "OperationNotPermittedException" + } + return *e.Code +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This issue occurs when the same clientRequestToken is used with the @@ -130,6 +173,8 @@ func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return type ResourceInUseException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -142,7 +187,12 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration ID was not located. Verify the configuration ID and @@ -150,6 +200,8 @@ func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -162,13 +214,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server experienced an internal error. Try again. type ServerInternalErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -181,5 +240,10 @@ func (e *ServerInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *ServerInternalErrorException) ErrorCode() string { return "ServerInternalErrorException" } +func (e *ServerInternalErrorException) ErrorCode() string { + if e.Code == nil { + return "ServerInternalErrorException" + } + return *e.Code +} 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..64732445f2d 100644 --- a/service/applicationinsights/types/errors.go +++ b/service/applicationinsights/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not understood by the server. type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource is already created or in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource does not exist in the customer account. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Tags are already registered for the specified application ARN. type TagsAlreadyExistException struct { Message *string + Code *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.Code == nil { + return "TagsAlreadyExistException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appmesh/api_op_CreateMesh.go b/service/appmesh/api_op_CreateMesh.go index 00c773f48f4..e870cbc8250 100644 --- a/service/appmesh/api_op_CreateMesh.go +++ b/service/appmesh/api_op_CreateMesh.go @@ -33,6 +33,7 @@ func (c *Client) CreateMesh(ctx context.Context, params *CreateMeshInput, optFns return out, nil } +// type CreateMeshInput struct { // The name to use for the service mesh. @@ -56,6 +57,7 @@ type CreateMeshInput struct { noSmithyDocumentSerde } +// type CreateMeshOutput struct { // The full description of your service mesh following the create call. diff --git a/service/appmesh/api_op_CreateRoute.go b/service/appmesh/api_op_CreateRoute.go index 559815ff5a6..b8be6a187be 100644 --- a/service/appmesh/api_op_CreateRoute.go +++ b/service/appmesh/api_op_CreateRoute.go @@ -31,6 +31,7 @@ func (c *Client) CreateRoute(ctx context.Context, params *CreateRouteInput, optF return out, nil } +// type CreateRouteInput struct { // The name of the service mesh to create the route in. @@ -75,6 +76,7 @@ type CreateRouteInput struct { noSmithyDocumentSerde } +// type CreateRouteOutput struct { // The full description of your mesh following the create call. diff --git a/service/appmesh/api_op_CreateVirtualNode.go b/service/appmesh/api_op_CreateVirtualNode.go index 2ddd05f0e63..b73222bc26a 100644 --- a/service/appmesh/api_op_CreateVirtualNode.go +++ b/service/appmesh/api_op_CreateVirtualNode.go @@ -50,6 +50,7 @@ func (c *Client) CreateVirtualNode(ctx context.Context, params *CreateVirtualNod return out, nil } +// type CreateVirtualNodeInput struct { // The name of the service mesh to create the virtual node in. @@ -87,6 +88,7 @@ type CreateVirtualNodeInput struct { noSmithyDocumentSerde } +// type CreateVirtualNodeOutput struct { // The full description of your virtual node following the create call. diff --git a/service/appmesh/api_op_CreateVirtualRouter.go b/service/appmesh/api_op_CreateVirtualRouter.go index 7312e432d7b..9355972b026 100644 --- a/service/appmesh/api_op_CreateVirtualRouter.go +++ b/service/appmesh/api_op_CreateVirtualRouter.go @@ -35,6 +35,7 @@ func (c *Client) CreateVirtualRouter(ctx context.Context, params *CreateVirtualR return out, nil } +// type CreateVirtualRouterInput struct { // The name of the service mesh to create the virtual router in. @@ -72,6 +73,7 @@ type CreateVirtualRouterInput struct { noSmithyDocumentSerde } +// type CreateVirtualRouterOutput struct { // The full description of your virtual router following the create call. diff --git a/service/appmesh/api_op_CreateVirtualService.go b/service/appmesh/api_op_CreateVirtualService.go index c453d194a97..d2fe8794527 100644 --- a/service/appmesh/api_op_CreateVirtualService.go +++ b/service/appmesh/api_op_CreateVirtualService.go @@ -34,6 +34,7 @@ func (c *Client) CreateVirtualService(ctx context.Context, params *CreateVirtual return out, nil } +// type CreateVirtualServiceInput struct { // The name of the service mesh to create the virtual service in. @@ -71,6 +72,7 @@ type CreateVirtualServiceInput struct { noSmithyDocumentSerde } +// type CreateVirtualServiceOutput struct { // The full description of your virtual service following the create call. diff --git a/service/appmesh/api_op_DeleteMesh.go b/service/appmesh/api_op_DeleteMesh.go index 7287f53b635..3ddc951c56c 100644 --- a/service/appmesh/api_op_DeleteMesh.go +++ b/service/appmesh/api_op_DeleteMesh.go @@ -29,6 +29,7 @@ func (c *Client) DeleteMesh(ctx context.Context, params *DeleteMeshInput, optFns return out, nil } +// type DeleteMeshInput struct { // The name of the service mesh to delete. @@ -39,6 +40,7 @@ type DeleteMeshInput struct { noSmithyDocumentSerde } +// type DeleteMeshOutput struct { // The service mesh that was deleted. diff --git a/service/appmesh/api_op_DeleteRoute.go b/service/appmesh/api_op_DeleteRoute.go index 492f598480e..cd67b47cdb1 100644 --- a/service/appmesh/api_op_DeleteRoute.go +++ b/service/appmesh/api_op_DeleteRoute.go @@ -27,6 +27,7 @@ func (c *Client) DeleteRoute(ctx context.Context, params *DeleteRouteInput, optF return out, nil } +// type DeleteRouteInput struct { // The name of the service mesh to delete the route in. @@ -53,6 +54,7 @@ type DeleteRouteInput struct { noSmithyDocumentSerde } +// type DeleteRouteOutput struct { // The route that was deleted. diff --git a/service/appmesh/api_op_DeleteVirtualNode.go b/service/appmesh/api_op_DeleteVirtualNode.go index d1a2a572660..b90e3192514 100644 --- a/service/appmesh/api_op_DeleteVirtualNode.go +++ b/service/appmesh/api_op_DeleteVirtualNode.go @@ -51,6 +51,7 @@ type DeleteVirtualNodeInput struct { noSmithyDocumentSerde } +// type DeleteVirtualNodeOutput struct { // The virtual node that was deleted. diff --git a/service/appmesh/api_op_DeleteVirtualRouter.go b/service/appmesh/api_op_DeleteVirtualRouter.go index 4ed81e95660..722c7df8c00 100644 --- a/service/appmesh/api_op_DeleteVirtualRouter.go +++ b/service/appmesh/api_op_DeleteVirtualRouter.go @@ -28,6 +28,7 @@ func (c *Client) DeleteVirtualRouter(ctx context.Context, params *DeleteVirtualR return out, nil } +// type DeleteVirtualRouterInput struct { // The name of the service mesh to delete the virtual router in. @@ -49,6 +50,7 @@ type DeleteVirtualRouterInput struct { noSmithyDocumentSerde } +// type DeleteVirtualRouterOutput struct { // The virtual router that was deleted. diff --git a/service/appmesh/api_op_DeleteVirtualService.go b/service/appmesh/api_op_DeleteVirtualService.go index 313a1e7d3e7..dc5f787e466 100644 --- a/service/appmesh/api_op_DeleteVirtualService.go +++ b/service/appmesh/api_op_DeleteVirtualService.go @@ -27,6 +27,7 @@ func (c *Client) DeleteVirtualService(ctx context.Context, params *DeleteVirtual return out, nil } +// type DeleteVirtualServiceInput struct { // The name of the service mesh to delete the virtual service in. @@ -48,6 +49,7 @@ type DeleteVirtualServiceInput struct { noSmithyDocumentSerde } +// type DeleteVirtualServiceOutput struct { // The virtual service that was deleted. diff --git a/service/appmesh/api_op_DescribeMesh.go b/service/appmesh/api_op_DescribeMesh.go index e96a9ab2458..a1d4da1bf28 100644 --- a/service/appmesh/api_op_DescribeMesh.go +++ b/service/appmesh/api_op_DescribeMesh.go @@ -27,6 +27,7 @@ func (c *Client) DescribeMesh(ctx context.Context, params *DescribeMeshInput, op return out, nil } +// type DescribeMeshInput struct { // The name of the service mesh to describe. @@ -43,6 +44,7 @@ type DescribeMeshInput struct { noSmithyDocumentSerde } +// type DescribeMeshOutput struct { // The full description of your service mesh. diff --git a/service/appmesh/api_op_DescribeRoute.go b/service/appmesh/api_op_DescribeRoute.go index cb5f2f2d2a6..cc723e0da49 100644 --- a/service/appmesh/api_op_DescribeRoute.go +++ b/service/appmesh/api_op_DescribeRoute.go @@ -27,6 +27,7 @@ func (c *Client) DescribeRoute(ctx context.Context, params *DescribeRouteInput, return out, nil } +// type DescribeRouteInput struct { // The name of the service mesh that the route resides in. @@ -53,6 +54,7 @@ type DescribeRouteInput struct { noSmithyDocumentSerde } +// type DescribeRouteOutput struct { // The full description of your route. diff --git a/service/appmesh/api_op_DescribeVirtualNode.go b/service/appmesh/api_op_DescribeVirtualNode.go index 223e9b22da3..47fd1a8732d 100644 --- a/service/appmesh/api_op_DescribeVirtualNode.go +++ b/service/appmesh/api_op_DescribeVirtualNode.go @@ -27,6 +27,7 @@ func (c *Client) DescribeVirtualNode(ctx context.Context, params *DescribeVirtua return out, nil } +// type DescribeVirtualNodeInput struct { // The name of the service mesh that the virtual node resides in. @@ -48,6 +49,7 @@ type DescribeVirtualNodeInput struct { noSmithyDocumentSerde } +// type DescribeVirtualNodeOutput struct { // The full description of your virtual node. diff --git a/service/appmesh/api_op_DescribeVirtualRouter.go b/service/appmesh/api_op_DescribeVirtualRouter.go index 752cb7b5da6..94419d02680 100644 --- a/service/appmesh/api_op_DescribeVirtualRouter.go +++ b/service/appmesh/api_op_DescribeVirtualRouter.go @@ -27,6 +27,7 @@ func (c *Client) DescribeVirtualRouter(ctx context.Context, params *DescribeVirt return out, nil } +// type DescribeVirtualRouterInput struct { // The name of the service mesh that the virtual router resides in. @@ -48,6 +49,7 @@ type DescribeVirtualRouterInput struct { noSmithyDocumentSerde } +// type DescribeVirtualRouterOutput struct { // The full description of your virtual router. diff --git a/service/appmesh/api_op_DescribeVirtualService.go b/service/appmesh/api_op_DescribeVirtualService.go index 7cacdda990d..2040e82a941 100644 --- a/service/appmesh/api_op_DescribeVirtualService.go +++ b/service/appmesh/api_op_DescribeVirtualService.go @@ -27,6 +27,7 @@ func (c *Client) DescribeVirtualService(ctx context.Context, params *DescribeVir return out, nil } +// type DescribeVirtualServiceInput struct { // The name of the service mesh that the virtual service resides in. @@ -48,6 +49,7 @@ type DescribeVirtualServiceInput struct { noSmithyDocumentSerde } +// type DescribeVirtualServiceOutput struct { // The full description of your virtual service. diff --git a/service/appmesh/api_op_ListMeshes.go b/service/appmesh/api_op_ListMeshes.go index 3df43cf2c74..b432ba2d65f 100644 --- a/service/appmesh/api_op_ListMeshes.go +++ b/service/appmesh/api_op_ListMeshes.go @@ -28,6 +28,7 @@ func (c *Client) ListMeshes(ctx context.Context, params *ListMeshesInput, optFns return out, nil } +// type ListMeshesInput struct { // The maximum number of results returned by ListMeshes in paginated output. When @@ -49,6 +50,7 @@ type ListMeshesInput struct { noSmithyDocumentSerde } +// type ListMeshesOutput struct { // The list of existing service meshes. diff --git a/service/appmesh/api_op_ListRoutes.go b/service/appmesh/api_op_ListRoutes.go index f8797fc0e77..a60dabaf08e 100644 --- a/service/appmesh/api_op_ListRoutes.go +++ b/service/appmesh/api_op_ListRoutes.go @@ -28,6 +28,7 @@ func (c *Client) ListRoutes(ctx context.Context, params *ListRoutesInput, optFns return out, nil } +// type ListRoutesInput struct { // The name of the service mesh to list routes in. @@ -64,6 +65,7 @@ type ListRoutesInput struct { noSmithyDocumentSerde } +// type ListRoutesOutput struct { // The list of existing routes for the specified service mesh and virtual router. diff --git a/service/appmesh/api_op_ListTagsForResource.go b/service/appmesh/api_op_ListTagsForResource.go index f8fac30b03a..23bda69d8aa 100644 --- a/service/appmesh/api_op_ListTagsForResource.go +++ b/service/appmesh/api_op_ListTagsForResource.go @@ -28,6 +28,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes return out, nil } +// type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) that identifies the resource to list the tags @@ -54,6 +55,7 @@ type ListTagsForResourceInput struct { noSmithyDocumentSerde } +// type ListTagsForResourceOutput struct { // The tags for the resource. diff --git a/service/appmesh/api_op_ListVirtualNodes.go b/service/appmesh/api_op_ListVirtualNodes.go index 72d6c5d8b36..dbb0fd76458 100644 --- a/service/appmesh/api_op_ListVirtualNodes.go +++ b/service/appmesh/api_op_ListVirtualNodes.go @@ -28,6 +28,7 @@ func (c *Client) ListVirtualNodes(ctx context.Context, params *ListVirtualNodesI return out, nil } +// type ListVirtualNodesInput struct { // The name of the service mesh to list virtual nodes in. @@ -59,6 +60,7 @@ type ListVirtualNodesInput struct { noSmithyDocumentSerde } +// type ListVirtualNodesOutput struct { // The list of existing virtual nodes for the specified service mesh. diff --git a/service/appmesh/api_op_ListVirtualRouters.go b/service/appmesh/api_op_ListVirtualRouters.go index 177c4cebba4..b64d1ab08ab 100644 --- a/service/appmesh/api_op_ListVirtualRouters.go +++ b/service/appmesh/api_op_ListVirtualRouters.go @@ -28,6 +28,7 @@ func (c *Client) ListVirtualRouters(ctx context.Context, params *ListVirtualRout return out, nil } +// type ListVirtualRoutersInput struct { // The name of the service mesh to list virtual routers in. @@ -59,6 +60,7 @@ type ListVirtualRoutersInput struct { noSmithyDocumentSerde } +// type ListVirtualRoutersOutput struct { // The list of existing virtual routers for the specified service mesh. diff --git a/service/appmesh/api_op_ListVirtualServices.go b/service/appmesh/api_op_ListVirtualServices.go index 9d01845ce67..26f463ea9cf 100644 --- a/service/appmesh/api_op_ListVirtualServices.go +++ b/service/appmesh/api_op_ListVirtualServices.go @@ -28,6 +28,7 @@ func (c *Client) ListVirtualServices(ctx context.Context, params *ListVirtualSer return out, nil } +// type ListVirtualServicesInput struct { // The name of the service mesh to list virtual services in. @@ -59,6 +60,7 @@ type ListVirtualServicesInput struct { noSmithyDocumentSerde } +// type ListVirtualServicesOutput struct { // The list of existing virtual services for the specified service mesh. diff --git a/service/appmesh/api_op_TagResource.go b/service/appmesh/api_op_TagResource.go index 063d432cf7d..7870487bcc0 100644 --- a/service/appmesh/api_op_TagResource.go +++ b/service/appmesh/api_op_TagResource.go @@ -30,6 +30,7 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF return out, nil } +// type TagResourceInput struct { // The Amazon Resource Name (ARN) of the resource to add tags to. @@ -47,6 +48,7 @@ type TagResourceInput struct { noSmithyDocumentSerde } +// type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appmesh/api_op_UntagResource.go b/service/appmesh/api_op_UntagResource.go index b5a58ac91b4..4dd84c215e1 100644 --- a/service/appmesh/api_op_UntagResource.go +++ b/service/appmesh/api_op_UntagResource.go @@ -26,6 +26,7 @@ func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, return out, nil } +// type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the resource to delete tags from. @@ -41,6 +42,7 @@ type UntagResourceInput struct { noSmithyDocumentSerde } +// type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appmesh/api_op_UpdateMesh.go b/service/appmesh/api_op_UpdateMesh.go index e7285720ef7..20c9d728787 100644 --- a/service/appmesh/api_op_UpdateMesh.go +++ b/service/appmesh/api_op_UpdateMesh.go @@ -28,6 +28,7 @@ func (c *Client) UpdateMesh(ctx context.Context, params *UpdateMeshInput, optFns return out, nil } +// type UpdateMeshInput struct { // The name of the service mesh to update. @@ -45,6 +46,7 @@ type UpdateMeshInput struct { noSmithyDocumentSerde } +// type UpdateMeshOutput struct { // An object that represents a service mesh returned by a describe operation. diff --git a/service/appmesh/api_op_UpdateRoute.go b/service/appmesh/api_op_UpdateRoute.go index 9b3c7c7463f..b56c0fe64d6 100644 --- a/service/appmesh/api_op_UpdateRoute.go +++ b/service/appmesh/api_op_UpdateRoute.go @@ -28,6 +28,7 @@ func (c *Client) UpdateRoute(ctx context.Context, params *UpdateRouteInput, optF return out, nil } +// type UpdateRouteInput struct { // The name of the service mesh that the route resides in. @@ -63,6 +64,7 @@ type UpdateRouteInput struct { noSmithyDocumentSerde } +// type UpdateRouteOutput struct { // A full description of the route that was updated. diff --git a/service/appmesh/api_op_UpdateVirtualNode.go b/service/appmesh/api_op_UpdateVirtualNode.go index bb72bfbc4b0..74d2f7d2f1c 100644 --- a/service/appmesh/api_op_UpdateVirtualNode.go +++ b/service/appmesh/api_op_UpdateVirtualNode.go @@ -28,6 +28,7 @@ func (c *Client) UpdateVirtualNode(ctx context.Context, params *UpdateVirtualNod return out, nil } +// type UpdateVirtualNodeInput struct { // The name of the service mesh that the virtual node resides in. @@ -58,6 +59,7 @@ type UpdateVirtualNodeInput struct { noSmithyDocumentSerde } +// type UpdateVirtualNodeOutput struct { // A full description of the virtual node that was updated. diff --git a/service/appmesh/api_op_UpdateVirtualRouter.go b/service/appmesh/api_op_UpdateVirtualRouter.go index 10fd99f34a1..9c7d8fb9f3f 100644 --- a/service/appmesh/api_op_UpdateVirtualRouter.go +++ b/service/appmesh/api_op_UpdateVirtualRouter.go @@ -28,6 +28,7 @@ func (c *Client) UpdateVirtualRouter(ctx context.Context, params *UpdateVirtualR return out, nil } +// type UpdateVirtualRouterInput struct { // The name of the service mesh that the virtual router resides in. @@ -59,6 +60,7 @@ type UpdateVirtualRouterInput struct { noSmithyDocumentSerde } +// type UpdateVirtualRouterOutput struct { // A full description of the virtual router that was updated. diff --git a/service/appmesh/api_op_UpdateVirtualService.go b/service/appmesh/api_op_UpdateVirtualService.go index 1f63f9fdbb8..7c29e57e1d3 100644 --- a/service/appmesh/api_op_UpdateVirtualService.go +++ b/service/appmesh/api_op_UpdateVirtualService.go @@ -28,6 +28,7 @@ func (c *Client) UpdateVirtualService(ctx context.Context, params *UpdateVirtual return out, nil } +// type UpdateVirtualServiceInput struct { // The name of the service mesh that the virtual service resides in. @@ -59,6 +60,7 @@ type UpdateVirtualServiceInput struct { noSmithyDocumentSerde } +// type UpdateVirtualServiceOutput struct { // A full description of the virtual service that was updated. diff --git a/service/appmesh/types/errors.go b/service/appmesh/types/errors.go index 4c0d8c7bb92..aa05322c937 100644 --- a/service/appmesh/types/errors.go +++ b/service/appmesh/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have permissions to perform this action. type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/appmesh/types/types.go b/service/appmesh/types/types.go index 8d837b1fe5e..13f8b5d0975 100644 --- a/service/appmesh/types/types.go +++ b/service/appmesh/types/types.go @@ -10,8 +10,7 @@ import ( // An object that represents the access logging information for a virtual node. // // The following types satisfy this interface: -// -// AccessLogMemberFile +// AccessLogMemberFile type AccessLog interface { isAccessLog() } @@ -76,8 +75,7 @@ type AwsCloudMapServiceDiscovery struct { // outbound traffic to. // // The following types satisfy this interface: -// -// BackendMemberVirtualService +// BackendMemberVirtualService type Backend interface { isBackend() } @@ -134,9 +132,8 @@ type ClientPolicyTls struct { // An object that represents the client's certificate. // // The following types satisfy this interface: -// -// ClientTlsCertificateMemberFile -// ClientTlsCertificateMemberSds +// ClientTlsCertificateMemberFile +// ClientTlsCertificateMemberSds type ClientTlsCertificate interface { isClientTlsCertificate() } @@ -481,12 +478,11 @@ type GrpcGatewayRouteRewrite struct { // An object representing the method header to be matched. // // The following types satisfy this interface: -// -// GrpcMetadataMatchMethodMemberExact -// GrpcMetadataMatchMethodMemberPrefix -// GrpcMetadataMatchMethodMemberRange -// GrpcMetadataMatchMethodMemberRegex -// GrpcMetadataMatchMethodMemberSuffix +// GrpcMetadataMatchMethodMemberExact +// GrpcMetadataMatchMethodMemberPrefix +// GrpcMetadataMatchMethodMemberRange +// GrpcMetadataMatchMethodMemberRegex +// GrpcMetadataMatchMethodMemberSuffix type GrpcMetadataMatchMethod interface { isGrpcMetadataMatchMethod() } @@ -655,12 +651,11 @@ type GrpcRouteMetadata struct { // An object that represents the match method. Specify one of the match values. // // The following types satisfy this interface: -// -// GrpcRouteMetadataMatchMethodMemberExact -// GrpcRouteMetadataMatchMethodMemberPrefix -// GrpcRouteMetadataMatchMethodMemberRange -// GrpcRouteMetadataMatchMethodMemberRegex -// GrpcRouteMetadataMatchMethodMemberSuffix +// GrpcRouteMetadataMatchMethodMemberExact +// GrpcRouteMetadataMatchMethodMemberPrefix +// GrpcRouteMetadataMatchMethodMemberRange +// GrpcRouteMetadataMatchMethodMemberRegex +// GrpcRouteMetadataMatchMethodMemberSuffix type GrpcRouteMetadataMatchMethod interface { isGrpcRouteMetadataMatchMethod() } @@ -732,12 +727,11 @@ type GrpcTimeout struct { // sent in a request. Specify one match method. // // The following types satisfy this interface: -// -// HeaderMatchMethodMemberExact -// HeaderMatchMethodMemberPrefix -// HeaderMatchMethodMemberRange -// HeaderMatchMethodMemberRegex -// HeaderMatchMethodMemberSuffix +// HeaderMatchMethodMemberExact +// HeaderMatchMethodMemberPrefix +// HeaderMatchMethodMemberRange +// HeaderMatchMethodMemberRegex +// HeaderMatchMethodMemberSuffix type HeaderMatchMethod interface { isHeaderMatchMethod() } @@ -1164,11 +1158,10 @@ type Listener struct { // An object that represents timeouts for different protocols. // // The following types satisfy this interface: -// -// ListenerTimeoutMemberGrpc -// ListenerTimeoutMemberHttp -// ListenerTimeoutMemberHttp2 -// ListenerTimeoutMemberTcp +// ListenerTimeoutMemberGrpc +// ListenerTimeoutMemberHttp +// ListenerTimeoutMemberHttp2 +// ListenerTimeoutMemberTcp type ListenerTimeout interface { isListenerTimeout() } @@ -1258,10 +1251,9 @@ type ListenerTlsAcmCertificate struct { // certificate. // // The following types satisfy this interface: -// -// ListenerTlsCertificateMemberAcm -// ListenerTlsCertificateMemberFile -// ListenerTlsCertificateMemberSds +// ListenerTlsCertificateMemberAcm +// ListenerTlsCertificateMemberFile +// ListenerTlsCertificateMemberSds type ListenerTlsCertificate interface { isListenerTlsCertificate() } @@ -1351,9 +1343,8 @@ type ListenerTlsValidationContext struct { // context trust. // // The following types satisfy this interface: -// -// ListenerTlsValidationContextTrustMemberFile -// ListenerTlsValidationContextTrustMemberSds +// ListenerTlsValidationContextTrustMemberFile +// ListenerTlsValidationContextTrustMemberSds type ListenerTlsValidationContextTrust interface { isListenerTlsValidationContextTrust() } @@ -1390,13 +1381,13 @@ type Logging struct { // An object that represents the format for the logs. // // The following types satisfy this interface: -// -// LoggingFormatMemberJson -// LoggingFormatMemberText +// LoggingFormatMemberJson +// LoggingFormatMemberText type LoggingFormat interface { isLoggingFormat() } +// type LoggingFormatMemberJson struct { Value []JsonFormatRef @@ -1405,6 +1396,7 @@ type LoggingFormatMemberJson struct { func (*LoggingFormatMemberJson) isLoggingFormat() {} +// type LoggingFormatMemberText struct { Value string @@ -1768,9 +1760,8 @@ type RouteStatus struct { // An object that represents the service discovery information for a virtual node. // // The following types satisfy this interface: -// -// ServiceDiscoveryMemberAwsCloudMap -// ServiceDiscoveryMemberDns +// ServiceDiscoveryMemberAwsCloudMap +// ServiceDiscoveryMemberDns type ServiceDiscovery interface { isServiceDiscovery() } @@ -1953,10 +1944,9 @@ type TlsValidationContextSdsTrust struct { // trust. // // The following types satisfy this interface: -// -// TlsValidationContextTrustMemberAcm -// TlsValidationContextTrustMemberFile -// TlsValidationContextTrustMemberSds +// TlsValidationContextTrustMemberAcm +// TlsValidationContextTrustMemberFile +// TlsValidationContextTrustMemberSds type TlsValidationContextTrust interface { isTlsValidationContextTrust() } @@ -1994,8 +1984,7 @@ func (*TlsValidationContextTrustMemberSds) isTlsValidationContextTrust() {} // The access log configuration for a virtual gateway. // // The following types satisfy this interface: -// -// VirtualGatewayAccessLogMemberFile +// VirtualGatewayAccessLogMemberFile type VirtualGatewayAccessLog interface { isVirtualGatewayAccessLog() } @@ -2054,9 +2043,8 @@ type VirtualGatewayClientPolicyTls struct { // Security (TLS) certificate. // // The following types satisfy this interface: -// -// VirtualGatewayClientTlsCertificateMemberFile -// VirtualGatewayClientTlsCertificateMemberSds +// VirtualGatewayClientTlsCertificateMemberFile +// VirtualGatewayClientTlsCertificateMemberSds type VirtualGatewayClientTlsCertificate interface { isVirtualGatewayClientTlsCertificate() } @@ -2089,10 +2077,9 @@ func (*VirtualGatewayClientTlsCertificateMemberSds) isVirtualGatewayClientTlsCer // 2147483647. // // The following types satisfy this interface: -// -// VirtualGatewayConnectionPoolMemberGrpc -// VirtualGatewayConnectionPoolMemberHttp -// VirtualGatewayConnectionPoolMemberHttp2 +// VirtualGatewayConnectionPoolMemberGrpc +// VirtualGatewayConnectionPoolMemberHttp +// VirtualGatewayConnectionPoolMemberHttp2 type VirtualGatewayConnectionPool interface { isVirtualGatewayConnectionPool() } @@ -2329,10 +2316,9 @@ type VirtualGatewayListenerTlsAcmCertificate struct { // certificate. // // The following types satisfy this interface: -// -// VirtualGatewayListenerTlsCertificateMemberAcm -// VirtualGatewayListenerTlsCertificateMemberFile -// VirtualGatewayListenerTlsCertificateMemberSds +// VirtualGatewayListenerTlsCertificateMemberAcm +// VirtualGatewayListenerTlsCertificateMemberFile +// VirtualGatewayListenerTlsCertificateMemberSds type VirtualGatewayListenerTlsCertificate interface { isVirtualGatewayListenerTlsCertificate() } @@ -2422,9 +2408,8 @@ type VirtualGatewayListenerTlsValidationContext struct { // Security (TLS) validation context trust. // // The following types satisfy this interface: -// -// VirtualGatewayListenerTlsValidationContextTrustMemberFile -// VirtualGatewayListenerTlsValidationContextTrustMemberSds +// VirtualGatewayListenerTlsValidationContextTrustMemberFile +// VirtualGatewayListenerTlsValidationContextTrustMemberSds type VirtualGatewayListenerTlsValidationContextTrust interface { isVirtualGatewayListenerTlsValidationContextTrust() } @@ -2622,10 +2607,9 @@ type VirtualGatewayTlsValidationContextSdsTrust struct { // trust. // // The following types satisfy this interface: -// -// VirtualGatewayTlsValidationContextTrustMemberAcm -// VirtualGatewayTlsValidationContextTrustMemberFile -// VirtualGatewayTlsValidationContextTrustMemberSds +// VirtualGatewayTlsValidationContextTrustMemberAcm +// VirtualGatewayTlsValidationContextTrustMemberFile +// VirtualGatewayTlsValidationContextTrustMemberSds type VirtualGatewayTlsValidationContextTrust interface { isVirtualGatewayTlsValidationContextTrust() } @@ -2669,11 +2653,10 @@ func (*VirtualGatewayTlsValidationContextTrustMemberSds) isVirtualGatewayTlsVali // 2147483647. // // The following types satisfy this interface: -// -// VirtualNodeConnectionPoolMemberGrpc -// VirtualNodeConnectionPoolMemberHttp -// VirtualNodeConnectionPoolMemberHttp2 -// VirtualNodeConnectionPoolMemberTcp +// VirtualNodeConnectionPoolMemberGrpc +// VirtualNodeConnectionPoolMemberHttp +// VirtualNodeConnectionPoolMemberHttp2 +// VirtualNodeConnectionPoolMemberTcp type VirtualNodeConnectionPool interface { isVirtualNodeConnectionPool() } @@ -3073,9 +3056,8 @@ type VirtualServiceData struct { // An object that represents the provider for a virtual service. // // The following types satisfy this interface: -// -// VirtualServiceProviderMemberVirtualNode -// VirtualServiceProviderMemberVirtualRouter +// VirtualServiceProviderMemberVirtualNode +// VirtualServiceProviderMemberVirtualRouter type VirtualServiceProvider interface { isVirtualServiceProvider() } diff --git a/service/apprunner/types/errors.go b/service/apprunner/types/errors.go index 19c6db7a757..ec1f7e7acba 100644 --- a/service/apprunner/types/errors.go +++ b/service/apprunner/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServiceErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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..28db40e7836 100644 --- a/service/appstream/types/errors.go +++ b/service/appstream/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -45,7 +52,10 @@ func (e *EntitlementAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EntitlementAlreadyExistsException) ErrorCode() string { - return "EntitlementAlreadyExistsException" + if e.Code == nil { + return "EntitlementAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "EntitlementNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncompatibleImageException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAccountStatusException" + } + return *e.Code +} func (e *InvalidAccountStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates an incorrect combination of parameters, or a missing parameter. type InvalidParameterCombinationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -124,7 +157,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.Code == nil { + return "InvalidParameterCombinationException" + } + return *e.Code } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -134,6 +170,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidRoleException struct { Message *string + Code *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.Code == nil { + return "InvalidRoleException" + } + return *e.Code +} func (e *InvalidRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested limit exceeds the permitted limit for an account. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The attempted operation is not permitted. type OperationNotPermittedException struct { Message *string + Code *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.Code == nil { + return "OperationNotPermittedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RequestLimitExceededException" + } + return *e.Code +} func (e *RequestLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotAvailableException" + } + return *e.Code +} func (e *ResourceNotAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..1c7c9c011ec 100644 --- a/service/appsync/types/errors.go +++ b/service/appsync/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The API key exceeded a limit. Try your request again. type ApiKeyLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ApiKeyLimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *ApiKeyValidityOutOfBoundsException) ErrorMessage() string { return *e.Message } func (e *ApiKeyValidityOutOfBoundsException) ErrorCode() string { - return "ApiKeyValidityOutOfBoundsException" + if e.Code == nil { + return "ApiKeyValidityOutOfBoundsException" + } + return *e.Code } func (e *ApiKeyValidityOutOfBoundsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -73,6 +92,8 @@ func (e *ApiKeyValidityOutOfBoundsException) ErrorFault() smithy.ErrorFault { type ApiLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ApiLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -129,7 +164,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "GraphQLSchemaException" + } + return *e.Code +} func (e *GraphQLSchemaException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal AppSync error occurred. Try your request again. type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request exceeded a limit. Try your request again. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You aren't authorized to perform this operation. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..e26e800c62c 100644 --- a/service/arczonalshift/types/errors.go +++ b/service/arczonalshift/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal server error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input requested a resource that was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..9a305c883e9 100644 --- a/service/athena/types/errors.go +++ b/service/athena/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MetadataException" + } + return *e.Code +} func (e *MetadataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource, such as a workgroup, was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified session already exists. type SessionAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "SessionAlreadyExistsException" + } + return *e.Code +} func (e *SessionAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the request was throttled. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..c6bae38ac12 100644 --- a/service/auditmanager/types/errors.go +++ b/service/auditmanager/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has invalid or missing parameters. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..dc7ed91c725 100644 --- a/service/autoscaling/types/errors.go +++ b/service/autoscaling/types/errors.go @@ -12,6 +12,8 @@ import ( type ActiveInstanceRefreshNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ActiveInstanceRefreshNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ActiveInstanceRefreshNotFoundFault) ErrorCode() string { - return "ActiveInstanceRefreshNotFound" + if e.Code == nil { + return "ActiveInstanceRefreshNotFound" + } + return *e.Code } func (e *ActiveInstanceRefreshNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -35,6 +40,8 @@ func (e *ActiveInstanceRefreshNotFoundFault) ErrorFault() smithy.ErrorFault { type AlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "AlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InstanceRefreshInProgress" + } + return *e.Code +} func (e *InstanceRefreshInProgressFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The NextToken value is not valid. type InvalidNextToken struct { Message *string + Code *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.Code == nil { + return "InvalidNextToken" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceContention" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ScalingActivityInProgress" + } + return *e.Code +} func (e *ScalingActivityInProgressFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service-linked role is not yet ready for use. type ServiceLinkedRoleFailure struct { Message *string + Code *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.Code == nil { + return "ServiceLinkedRoleFailure" + } + return *e.Code +} 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..73e048af1df 100644 --- a/service/autoscalingplans/types/errors.go +++ b/service/autoscalingplans/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentUpdateException struct { Message *string + Code *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.Code == nil { + return "ConcurrentUpdateException" + } + return *e.Code +} func (e *ConcurrentUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service encountered an internal error. type InternalServiceException struct { Message *string + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The token provided is not valid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified object could not be found. type ObjectNotFoundException struct { Message *string + Code *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.Code == nil { + return "ObjectNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..b4330cea282 100644 --- a/service/backup/types/errors.go +++ b/service/backup/types/errors.go @@ -11,7 +11,8 @@ import ( type AlreadyExistsException struct { Message *string - Code *string + Code *string + CreatorRequestId *string Arn *string Type *string @@ -29,7 +30,12 @@ func (e *AlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *AlreadyExistsException) ErrorCode() string { return "AlreadyExistsException" } +func (e *AlreadyExistsException) ErrorCode() string { + if e.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Backup can't perform the action that you requested until it finishes performing @@ -37,7 +43,8 @@ func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy. type ConflictException struct { Message *string - Code *string + Code *string + Type *string Context *string @@ -53,7 +60,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A dependent Amazon Web Services service or resource returned an error to the @@ -61,7 +73,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type DependencyFailureException struct { Message *string - Code *string + Code *string + Type *string Context *string @@ -77,7 +90,12 @@ func (e *DependencyFailureException) ErrorMessage() string { } return *e.Message } -func (e *DependencyFailureException) ErrorCode() string { return "DependencyFailureException" } +func (e *DependencyFailureException) ErrorCode() string { + if e.Code == nil { + return "DependencyFailureException" + } + return *e.Code +} func (e *DependencyFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that something is wrong with a parameter's value. For example, the @@ -85,7 +103,8 @@ func (e *DependencyFailureException) ErrorFault() smithy.ErrorFault { return smi type InvalidParameterValueException struct { Message *string - Code *string + Code *string + Type *string Context *string @@ -101,7 +120,12 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that something is wrong with the input to the request. For example, a @@ -109,7 +133,8 @@ func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string - Code *string + Code *string + Type *string Context *string @@ -125,7 +150,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Backup is already performing an action on this recovery point. It can't perform @@ -133,7 +163,8 @@ func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy type InvalidResourceStateException struct { Message *string - Code *string + Code *string + Type *string Context *string @@ -149,7 +180,12 @@ func (e *InvalidResourceStateException) ErrorMessage() string { } return *e.Message } -func (e *InvalidResourceStateException) ErrorCode() string { return "InvalidResourceStateException" } +func (e *InvalidResourceStateException) ErrorCode() string { + if e.Code == nil { + return "InvalidResourceStateException" + } + return *e.Code +} 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,7 +193,8 @@ func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return type LimitExceededException struct { Message *string - Code *string + Code *string + Type *string Context *string @@ -173,14 +210,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a required parameter is missing. type MissingParameterValueException struct { Message *string - Code *string + Code *string + Type *string Context *string @@ -196,14 +239,20 @@ func (e *MissingParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *MissingParameterValueException) ErrorCode() string { return "MissingParameterValueException" } +func (e *MissingParameterValueException) ErrorCode() string { + if e.Code == nil { + return "MissingParameterValueException" + } + return *e.Code +} 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 - Code *string + Code *string + Type *string Context *string @@ -219,14 +268,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 - Code *string + Code *string + Type *string Context *string @@ -242,5 +297,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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..bb30c6fb43a 100644 --- a/service/backupgateway/types/errors.go +++ b/service/backupgateway/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation cannot proceed because it is not supported. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because a validation error occurred. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..392ced89bcc 100644 --- a/service/backupstorage/types/errors.go +++ b/service/backupstorage/types/errors.go @@ -10,6 +10,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DataAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IllegalArgumentException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidKeyUsageException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -106,7 +136,10 @@ func (e *NotReadableInputStreamException) ErrorMessage() string { return *e.Message } func (e *NotReadableInputStreamException) ErrorCode() string { - return "NotReadableInputStreamException" + if e.Code == nil { + return "NotReadableInputStreamException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RetryableException" + } + return *e.Code +} func (e *RetryableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Deprecated. To be removed from the model. type ServiceInternalException struct { Message *string + Code *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.Code == nil { + return "ServiceInternalException" + } + return *e.Code +} func (e *ServiceInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Retryable exception, indicates internal server error. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..e7defdbe83f 100644 --- a/service/batch/types/errors.go +++ b/service/batch/types/errors.go @@ -14,6 +14,8 @@ import ( type ClientException struct { Message *string + Code *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.Code == nil { + return "ClientException" + } + return *e.Code +} func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a server issue. type ServerException struct { Message *string + Code *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.Code == nil { + return "ServerException" + } + return *e.Code +} 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..c43d33e265f 100644 --- a/service/billingconductor/types/errors.go +++ b/service/billingconductor/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing a request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service limit to exceed. type ServiceLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceLimitExceededException" + } + return *e.Code +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..5bbb3bda799 100644 --- a/service/braket/types/errors.go +++ b/service/braket/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred due to a conflict. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified device is currently offline. type DeviceOfflineException struct { Message *string + Code *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.Code == nil { + return "DeviceOfflineException" + } + return *e.Code +} func (e *DeviceOfflineException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified device has been retired. type DeviceRetiredException struct { Message *string + Code *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.Code == nil { + return "DeviceRetiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because a service quota is exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling rate limit is met. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..ab2083ea01c 100644 --- a/service/budgets/types/errors.go +++ b/service/budgets/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've exceeded the notification or subscriber limit. type CreationLimitExceededException struct { Message *string + Code *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.Code == nil { + return "CreationLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateRecordException" + } + return *e.Code +} func (e *DuplicateRecordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pagination token expired. type ExpiredNextTokenException struct { Message *string + Code *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.Code == nil { + return "ExpiredNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The pagination token is invalid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We can’t locate the resource that you specified. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceLockedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..97cbc6ef06d 100644 --- a/service/chime/types/errors.go +++ b/service/chime/types/errors.go @@ -11,7 +11,7 @@ import ( type AccessDeniedException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -25,14 +25,19 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input parameters don't match the service's restrictions. type BadRequestException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -46,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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -54,7 +64,7 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -68,14 +78,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -89,14 +104,19 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -110,14 +130,19 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -131,14 +156,19 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -152,14 +182,19 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.Code == nil { + return "ServiceFailureException" + } + return *e.Code +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -173,14 +208,19 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -194,14 +234,19 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.Code == nil { + return "ThrottledClientException" + } + return *e.Code +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -215,7 +260,12 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedClientException" + } + return *e.Code +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was well-formed but was unable to be followed due to semantic @@ -223,7 +273,7 @@ func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return sm type UnprocessableEntityException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -237,5 +287,10 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.Code == nil { + return "UnprocessableEntityException" + } + return *e.Code +} 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..31e9f2c0f7e 100644 --- a/service/chimesdkidentity/types/errors.go +++ b/service/chimesdkidentity/types/errors.go @@ -11,7 +11,7 @@ import ( type BadRequestException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -25,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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -33,7 +38,7 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -47,14 +52,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -68,14 +78,19 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -89,14 +104,19 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -110,14 +130,19 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.Code == nil { + return "ServiceFailureException" + } + return *e.Code +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -131,14 +156,19 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -152,14 +182,19 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.Code == nil { + return "ThrottledClientException" + } + return *e.Code +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -173,5 +208,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedClientException" + } + return *e.Code +} 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..2956ae820f6 100644 --- a/service/chimesdkmediapipelines/types/errors.go +++ b/service/chimesdkmediapipelines/types/errors.go @@ -11,7 +11,8 @@ import ( type BadRequestException struct { Message *string - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -26,14 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -48,14 +55,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -70,14 +83,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -92,14 +111,20 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -114,14 +139,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.Code == nil { + return "ServiceFailureException" + } + return *e.Code +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -136,14 +167,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -158,14 +195,20 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.Code == nil { + return "ThrottledClientException" + } + return *e.Code +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string - Code ErrorCode + Code *string + RequestId *string noSmithyDocumentSerde @@ -180,5 +223,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedClientException" + } + return *e.Code +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chimesdkmeetings/api_op_UntagResource.go b/service/chimesdkmeetings/api_op_UntagResource.go index 5fc52b63fdd..ef8f66ba703 100644 --- a/service/chimesdkmeetings/api_op_UntagResource.go +++ b/service/chimesdkmeetings/api_op_UntagResource.go @@ -29,8 +29,7 @@ import ( // that created the resource. For example, to remove the tags from an Amazon EC2 // instance using the UntagResources operation, you must have both of the following // permissions: tag:UntagResource -// -// ChimeSDKMeetings:DeleteTags +// ChimeSDKMeetings:DeleteTags func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/chimesdkmeetings/types/errors.go b/service/chimesdkmeetings/types/errors.go index 474eae2b52e..05dca27f282 100644 --- a/service/chimesdkmeetings/types/errors.go +++ b/service/chimesdkmeetings/types/errors.go @@ -11,7 +11,8 @@ import ( type BadRequestException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -26,14 +27,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Multiple instances of the same request have been made simultaneously. type ConflictException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -48,14 +55,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -70,14 +83,20 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type LimitExceededException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -92,14 +111,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -114,14 +139,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 - Code *string + Code *string + RequestId *string ResourceName *string @@ -137,14 +168,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -159,14 +196,20 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.Code == nil { + return "ServiceFailureException" + } + return *e.Code +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string - Code *string + Code *string + RequestId *string RetryAfterSeconds *string @@ -182,14 +225,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The number of customer requests exceeds the request rate limit. type ThrottlingException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -204,14 +253,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many tags were added to the specified resource. type TooManyTagsException struct { Message *string - Code *string + Code *string + RequestId *string ResourceName *string @@ -227,14 +282,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user isn't authorized to request a resource. type UnauthorizedException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -249,7 +310,12 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was well-formed but was unable to be followed due to semantic @@ -257,7 +323,8 @@ func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.F type UnprocessableEntityException struct { Message *string - Code *string + Code *string + RequestId *string noSmithyDocumentSerde @@ -272,5 +339,10 @@ func (e *UnprocessableEntityException) ErrorMessage() string { } return *e.Message } -func (e *UnprocessableEntityException) ErrorCode() string { return "UnprocessableEntityException" } +func (e *UnprocessableEntityException) ErrorCode() string { + if e.Code == nil { + return "UnprocessableEntityException" + } + return *e.Code +} 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..b090b5dc414 100644 --- a/service/chimesdkmessaging/types/errors.go +++ b/service/chimesdkmessaging/types/errors.go @@ -11,7 +11,7 @@ import ( type BadRequestException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -25,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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request could not be processed because of conflict in the current state of @@ -33,7 +38,7 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConflictException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -47,14 +52,19 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is permanently forbidden from making the request. type ForbiddenException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -68,14 +78,19 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -89,14 +104,19 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the resource limit. type ResourceLimitExceededException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -110,14 +130,19 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected error. type ServiceFailureException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -131,14 +156,19 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.Code == nil { + return "ServiceFailureException" + } + return *e.Code +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -152,14 +182,19 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client exceeded its request rate limit. type ThrottledClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -173,14 +208,19 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.Code == nil { + return "ThrottledClientException" + } + return *e.Code +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -194,5 +234,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedClientException" + } + return *e.Code +} func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/chimesdkvoice/doc.go b/service/chimesdkvoice/doc.go index 42cf4aa4e96..3297695482a 100644 --- a/service/chimesdkvoice/doc.go +++ b/service/chimesdkvoice/doc.go @@ -2,4 +2,5 @@ // Package chimesdkvoice provides the API client, operations, and parameter types // for Amazon Chime SDK Voice. +// package chimesdkvoice diff --git a/service/chimesdkvoice/types/errors.go b/service/chimesdkvoice/types/errors.go index 70461f3ab75..1e0c0dc3e14 100644 --- a/service/chimesdkvoice/types/errors.go +++ b/service/chimesdkvoice/types/errors.go @@ -10,7 +10,7 @@ import ( type AccessDeniedException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -24,13 +24,18 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type BadRequestException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -44,13 +49,18 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -64,13 +74,18 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ForbiddenException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -84,13 +99,18 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type NotFoundException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -104,13 +124,18 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceLimitExceededException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -124,13 +149,18 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceFailureException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -144,13 +174,18 @@ func (e *ServiceFailureException) ErrorMessage() string { } return *e.Message } -func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } +func (e *ServiceFailureException) ErrorCode() string { + if e.Code == nil { + return "ServiceFailureException" + } + return *e.Code +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ServiceUnavailableException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -164,13 +199,18 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type ThrottledClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -184,13 +224,18 @@ func (e *ThrottledClientException) ErrorMessage() string { } return *e.Message } -func (e *ThrottledClientException) ErrorCode() string { return "ThrottledClientException" } +func (e *ThrottledClientException) ErrorCode() string { + if e.Code == nil { + return "ThrottledClientException" + } + return *e.Code +} func (e *ThrottledClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type UnauthorizedClientException struct { Message *string - Code ErrorCode + Code *string noSmithyDocumentSerde } @@ -204,5 +249,10 @@ func (e *UnauthorizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedClientException) ErrorCode() string { return "UnauthorizedClientException" } +func (e *UnauthorizedClientException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedClientException" + } + return *e.Code +} 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..c5d940cfbef 100644 --- a/service/cloud9/types/errors.go +++ b/service/cloud9/types/errors.go @@ -11,8 +11,9 @@ import ( type BadRequestException struct { Message *string + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -26,15 +27,21 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A concurrent access issue occurred. type ConcurrentAccessException struct { Message *string + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -48,15 +55,21 @@ func (e *ConcurrentAccessException) ErrorMessage() string { } return *e.Message } -func (e *ConcurrentAccessException) ErrorCode() string { return "ConcurrentAccessException" } +func (e *ConcurrentAccessException) ErrorCode() string { + if e.Code == nil { + return "ConcurrentAccessException" + } + return *e.Code +} func (e *ConcurrentAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict occurred. type ConflictException struct { Message *string + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -70,15 +83,21 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An access permissions issue occurred. type ForbiddenException struct { Message *string + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -92,15 +111,21 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal server error occurred. type InternalServerErrorException struct { Message *string + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -114,15 +139,21 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A service limit was exceeded. type LimitExceededException struct { Message *string + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -136,15 +167,21 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target resource cannot be found. type NotFoundException struct { Message *string + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -158,15 +195,21 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *string + ClassName *string - Code int32 noSmithyDocumentSerde } @@ -180,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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..6914ef72b6b 100644 --- a/service/cloudcontrol/types/errors.go +++ b/service/cloudcontrol/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClientTokenConflictException" + } + return *e.Code +} func (e *ClientTokenConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is currently being modified by another operation. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConcurrentOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "GeneralServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HandlerFailureException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -145,7 +187,10 @@ func (e *HandlerInternalFailureException) ErrorMessage() string { return *e.Message } func (e *HandlerInternalFailureException) ErrorCode() string { - return "HandlerInternalFailureException" + if e.Code == nil { + return "HandlerInternalFailureException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidCredentialsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NetworkFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotStabilizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotUpdatableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PrivateTypeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RequestTokenNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified identifier can't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceInternalErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceLimitExceededException" + } + return *e.Code +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified extension doesn't exist in the CloudFormation registry. type TypeNotFoundException struct { Message *string + Code *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.Code == nil { + return "TypeNotFoundException" + } + return *e.Code +} func (e *TypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't support this resource operation. type UnsupportedActionException struct { Message *string + Code *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.Code == nil { + return "UnsupportedActionException" + } + return *e.Code +} 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..45be8c002da 100644 --- a/service/clouddirectory/types/errors.go +++ b/service/clouddirectory/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A BatchWrite exception has occurred. type BatchWriteException struct { Message *string + Code *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.Code == nil { + return "BatchWriteException" + } + return *e.Code +} func (e *BatchWriteException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot list the parents of a Directory root. type CannotListParentOfRootException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -67,7 +83,10 @@ func (e *CannotListParentOfRootException) ErrorMessage() string { return *e.Message } func (e *CannotListParentOfRootException) ErrorCode() string { - return "CannotListParentOfRootException" + if e.Code == nil { + return "CannotListParentOfRootException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -89,7 +110,10 @@ func (e *DirectoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DirectoryAlreadyExistsException) ErrorCode() string { - return "DirectoryAlreadyExistsException" + if e.Code == nil { + return "DirectoryAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DirectoryDeletedException" + } + return *e.Code +} func (e *DirectoryDeletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation can only operate on a disabled directory. type DirectoryNotDisabledException struct { Message *string + Code *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.Code == nil { + return "DirectoryNotDisabledException" + } + return *e.Code +} func (e *DirectoryNotDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Operations are only permitted on enabled directories. type DirectoryNotEnabledException struct { Message *string + Code *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.Code == nil { + return "DirectoryNotEnabledException" + } + return *e.Code +} func (e *DirectoryNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A facet with the same name already exists. type FacetAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "FacetAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FacetInUseException" + } + return *e.Code +} func (e *FacetInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Facet could not be found. type FacetNotFoundException struct { Message *string + Code *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.Code == nil { + return "FacetNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FacetValidationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncompatibleSchemaException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -268,7 +350,10 @@ func (e *IndexedAttributeMissingException) ErrorMessage() string { return *e.Message } func (e *IndexedAttributeMissingException) ErrorCode() string { - return "IndexedAttributeMissingException" + if e.Code == nil { + return "IndexedAttributeMissingException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that the provided ARN value is not valid. type InvalidArnException struct { Message *string + Code *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.Code == nil { + return "InvalidArnException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAttachmentException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFacetUpdateException" + } + return *e.Code +} func (e *InvalidFacetUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the NextToken value is not valid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRuleException" + } + return *e.Code +} func (e *InvalidRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the provided SchemaDoc value is not valid. type InvalidSchemaDocException struct { Message *string + Code *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.Code == nil { + return "InvalidSchemaDocException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTaggingRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LinkNameAlreadyInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotIndexException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotNodeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotPolicyException" + } + return *e.Code +} func (e *NotPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the object is not attached to the index. type ObjectAlreadyDetachedException struct { Message *string + Code *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.Code == nil { + return "ObjectAlreadyDetachedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ObjectNotDetachedException" + } + return *e.Code +} func (e *ObjectNotDetachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RetryableConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SchemaAlreadyExistsException" + } + return *e.Code +} func (e *SchemaAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a schema is already published. type SchemaAlreadyPublishedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -650,7 +863,10 @@ func (e *SchemaAlreadyPublishedException) ErrorMessage() string { return *e.Message } func (e *SchemaAlreadyPublishedException) ErrorCode() string { - return "SchemaAlreadyPublishedException" + if e.Code == nil { + return "SchemaAlreadyPublishedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "StillContainsLinksException" + } + return *e.Code +} func (e *StillContainsLinksException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the requested index type is not supported. type UnsupportedIndexTypeException struct { Message *string + Code *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.Code == nil { + return "UnsupportedIndexTypeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/clouddirectory/types/types.go b/service/clouddirectory/types/types.go index dd631ad9552..955a072b754 100644 --- a/service/clouddirectory/types/types.go +++ b/service/clouddirectory/types/types.go @@ -1511,12 +1511,11 @@ type Tag struct { // single value. // // The following types satisfy this interface: -// -// TypedAttributeValueMemberBinaryValue -// TypedAttributeValueMemberBooleanValue -// TypedAttributeValueMemberDatetimeValue -// TypedAttributeValueMemberNumberValue -// TypedAttributeValueMemberStringValue +// TypedAttributeValueMemberBinaryValue +// TypedAttributeValueMemberBooleanValue +// TypedAttributeValueMemberDatetimeValue +// TypedAttributeValueMemberNumberValue +// TypedAttributeValueMemberStringValue type TypedAttributeValue interface { isTypedAttributeValue() } diff --git a/service/cloudformation/types/errors.go b/service/cloudformation/types/errors.go index 8f73076e5a3..5aec82c4833 100644 --- a/service/cloudformation/types/errors.go +++ b/service/cloudformation/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred during a CloudFormation registry operation. type CFNRegistryException struct { Message *string + Code *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.Code == nil { + return "CFNRegistryException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ChangeSetNotFound" + } + return *e.Code +} func (e *ChangeSetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource exists, but has been changed. type CreatedButModifiedException struct { Message *string + Code *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.Code == nil { + return "CreatedButModifiedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *InsufficientCapabilitiesException) ErrorMessage() string { return *e.Message } func (e *InsufficientCapabilitiesException) ErrorCode() string { - return "InsufficientCapabilitiesException" + if e.Code == nil { + return "InsufficientCapabilitiesException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidChangeSetStatus" + } + return *e.Code +} func (e *InvalidChangeSetStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified operation isn't valid. type InvalidOperationException struct { Message *string + Code *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.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateTransition" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified name is already in use. type NameAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "NameAlreadyExistsException" + } + return *e.Code +} func (e *NameAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified operation ID already exists. type OperationIdAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -225,7 +295,10 @@ func (e *OperationIdAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OperationIdAlreadyExistsException) ErrorCode() string { - return "OperationIdAlreadyExistsException" + if e.Code == nil { + return "OperationIdAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OperationInProgressException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OperationNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConditionalCheckFailed" + } + return *e.Code +} func (e *OperationStatusCheckFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -295,6 +389,8 @@ func (e *OperationStatusCheckFailedException) ErrorFault() smithy.ErrorFault { type StackInstanceNotFoundException struct { Message *string + Code *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.Code == nil { + return "StackInstanceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StackNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StackSetNotEmptyException" + } + return *e.Code +} func (e *StackSetNotEmptyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified stack set doesn't exist. type StackSetNotFoundException struct { Message *string + Code *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.Code == nil { + return "StackSetNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StaleRequestException" + } + return *e.Code +} func (e *StaleRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A client request token already exists. type TokenAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "TokenAlreadyExistsException" + } + return *e.Code +} func (e *TokenAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified extension configuration can't be found. type TypeConfigurationNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -426,7 +564,10 @@ func (e *TypeConfigurationNotFoundException) ErrorMessage() string { return *e.Message } func (e *TypeConfigurationNotFoundException) ErrorCode() string { - return "TypeConfigurationNotFoundException" + if e.Code == nil { + return "TypeConfigurationNotFoundException" + } + return *e.Code } func (e *TypeConfigurationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -436,6 +577,8 @@ func (e *TypeConfigurationNotFoundException) ErrorFault() smithy.ErrorFault { type TypeNotFoundException struct { Message *string + Code *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.Code == nil { + return "TypeNotFoundException" + } + return *e.Code +} func (e *TypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudfront/types/errors.go b/service/cloudfront/types/errors.go index a2627c0182e..1a32ea0417e 100644 --- a/service/cloudfront/types/errors.go +++ b/service/cloudfront/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDenied struct { Message *string + Code *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.Code == nil { + return "AccessDenied" + } + return *e.Code +} func (e *AccessDenied) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalidation batch specified is too large. type BatchTooLarge struct { Message *string + Code *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.Code == nil { + return "BatchTooLarge" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CachePolicyAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CachePolicyInUse" + } + return *e.Code +} func (e *CachePolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't change the value of a public key. type CannotChangeImmutablePublicKeyFields struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *CannotChangeImmutablePublicKeyFields) ErrorMessage() string { return *e.Message } func (e *CannotChangeImmutablePublicKeyFields) ErrorCode() string { - return "CannotChangeImmutablePublicKeyFields" + if e.Code == nil { + return "CannotChangeImmutablePublicKeyFields" + } + return *e.Code } func (e *CannotChangeImmutablePublicKeyFields) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -115,6 +148,8 @@ func (e *CannotChangeImmutablePublicKeyFields) ErrorFault() smithy.ErrorFault { type CloudFrontOriginAccessIdentityAlreadyExists struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -128,7 +163,10 @@ func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorMessage() string { return *e.Message } func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorCode() string { - return "CloudFrontOriginAccessIdentityAlreadyExists" + if e.Code == nil { + return "CloudFrontOriginAccessIdentityAlreadyExists" + } + return *e.Code } func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -138,6 +176,8 @@ func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorFault() smithy.ErrorF type CloudFrontOriginAccessIdentityInUse struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -151,7 +191,10 @@ func (e *CloudFrontOriginAccessIdentityInUse) ErrorMessage() string { return *e.Message } func (e *CloudFrontOriginAccessIdentityInUse) ErrorCode() string { - return "CloudFrontOriginAccessIdentityInUse" + if e.Code == nil { + return "CloudFrontOriginAccessIdentityInUse" + } + return *e.Code } func (e *CloudFrontOriginAccessIdentityInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -161,6 +204,8 @@ func (e *CloudFrontOriginAccessIdentityInUse) ErrorFault() smithy.ErrorFault { type CNAMEAlreadyExists struct { Message *string + Code *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.Code == nil { + return "CNAMEAlreadyExists" + } + return *e.Code +} func (e *CNAMEAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A continuous deployment policy with this configuration already exists. type ContinuousDeploymentPolicyAlreadyExists struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -193,7 +245,10 @@ func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorCode() string { - return "ContinuousDeploymentPolicyAlreadyExists" + if e.Code == nil { + return "ContinuousDeploymentPolicyAlreadyExists" + } + return *e.Code } func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -204,6 +259,8 @@ func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorFault() smithy.ErrorFault type ContinuousDeploymentPolicyInUse struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -217,7 +274,10 @@ func (e *ContinuousDeploymentPolicyInUse) ErrorMessage() string { return *e.Message } func (e *ContinuousDeploymentPolicyInUse) ErrorCode() string { - return "ContinuousDeploymentPolicyInUse" + if e.Code == nil { + return "ContinuousDeploymentPolicyInUse" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DistributionAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DistributionNotDisabled" + } + return *e.Code +} func (e *DistributionNotDisabled) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration for field-level encryption already exists. type FieldLevelEncryptionConfigAlreadyExists struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -278,7 +354,10 @@ func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorCode() string { - return "FieldLevelEncryptionConfigAlreadyExists" + if e.Code == nil { + return "FieldLevelEncryptionConfigAlreadyExists" + } + return *e.Code } func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -288,6 +367,8 @@ func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorFault() smithy.ErrorFault type FieldLevelEncryptionConfigInUse struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -301,7 +382,10 @@ func (e *FieldLevelEncryptionConfigInUse) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionConfigInUse) ErrorCode() string { - return "FieldLevelEncryptionConfigInUse" + if e.Code == nil { + return "FieldLevelEncryptionConfigInUse" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -322,7 +408,10 @@ func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorCode() string { - return "FieldLevelEncryptionProfileAlreadyExists" + if e.Code == nil { + return "FieldLevelEncryptionProfileAlreadyExists" + } + return *e.Code } func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -332,6 +421,8 @@ func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorFault() smithy.ErrorFaul type FieldLevelEncryptionProfileInUse struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -345,7 +436,10 @@ func (e *FieldLevelEncryptionProfileInUse) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileInUse) ErrorCode() string { - return "FieldLevelEncryptionProfileInUse" + if e.Code == nil { + return "FieldLevelEncryptionProfileInUse" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -366,7 +462,10 @@ func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorCode() string { - return "FieldLevelEncryptionProfileSizeExceeded" + if e.Code == nil { + return "FieldLevelEncryptionProfileSizeExceeded" + } + return *e.Code } func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -378,6 +477,8 @@ func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorFault() smithy.ErrorFault type FunctionAlreadyExists struct { Message *string + Code *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.Code == nil { + return "FunctionAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FunctionInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FunctionSizeLimitExceeded" + } + return *e.Code +} func (e *FunctionSizeLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot delete a managed policy. type IllegalDelete struct { Message *string + Code *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.Code == nil { + return "IllegalDelete" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -470,7 +599,10 @@ func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorMes return *e.Message } func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorCode() string { - return "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" + if e.Code == nil { + return "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" + } + return *e.Code } func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -481,6 +613,8 @@ func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorFau type IllegalOriginAccessConfiguration struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -494,7 +628,10 @@ func (e *IllegalOriginAccessConfiguration) ErrorMessage() string { return *e.Message } func (e *IllegalOriginAccessConfiguration) ErrorCode() string { - return "IllegalOriginAccessConfiguration" + if e.Code == nil { + return "IllegalOriginAccessConfiguration" + } + return *e.Code } 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 + Code *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.Code == nil { + return "IllegalUpdate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InconsistentQuantities" + } + return *e.Code +} func (e *InconsistentQuantities) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An argument is invalid. type InvalidArgument struct { Message *string + Code *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.Code == nil { + return "InvalidArgument" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDefaultRootObject" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -592,7 +759,10 @@ func (e *InvalidDomainNameForOriginAccessControl) ErrorMessage() string { return *e.Message } func (e *InvalidDomainNameForOriginAccessControl) ErrorCode() string { - return "InvalidDomainNameForOriginAccessControl" + if e.Code == nil { + return "InvalidDomainNameForOriginAccessControl" + } + return *e.Code } func (e *InvalidDomainNameForOriginAccessControl) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -602,6 +772,8 @@ func (e *InvalidDomainNameForOriginAccessControl) ErrorFault() smithy.ErrorFault type InvalidErrorCode struct { Message *string + Code *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.Code == nil { + return "InvalidErrorCode" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidForwardCookies" + } + return *e.Code +} func (e *InvalidForwardCookies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A CloudFront function association is invalid. type InvalidFunctionAssociation struct { Message *string + Code *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.Code == nil { + return "InvalidFunctionAssociation" + } + return *e.Code +} func (e *InvalidFunctionAssociation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified geo restriction parameter is not valid. type InvalidGeoRestrictionParameter struct { Message *string + Code *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.Code == nil { + return "InvalidGeoRestrictionParameter" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidHeadersForS3Origin" + } + return *e.Code +} func (e *InvalidHeadersForS3Origin) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The If-Match version is missing or not valid. type InvalidIfMatchVersion struct { Message *string + Code *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.Code == nil { + return "InvalidIfMatchVersion" + } + return *e.Code +} func (e *InvalidIfMatchVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Lambda@Edge function association is invalid. type InvalidLambdaFunctionAssociation struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -732,7 +946,10 @@ func (e *InvalidLambdaFunctionAssociation) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaFunctionAssociation) ErrorCode() string { - return "InvalidLambdaFunctionAssociation" + if e.Code == nil { + return "InvalidLambdaFunctionAssociation" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidLocationCode" + } + return *e.Code +} func (e *InvalidLocationCode) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The minimum protocol version specified is not valid. type InvalidMinimumProtocolVersion struct { Message *string + Code *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.Code == nil { + return "InvalidMinimumProtocolVersion" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOrigin" + } + return *e.Code +} func (e *InvalidOrigin) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The origin access control is not valid. type InvalidOriginAccessControl struct { Message *string + Code *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.Code == nil { + return "InvalidOriginAccessControl" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOriginAccessIdentity" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOriginKeepaliveTimeout" + } + return *e.Code +} func (e *InvalidOriginKeepaliveTimeout) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The read timeout specified for the origin is not valid. type InvalidOriginReadTimeout struct { Message *string + Code *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.Code == nil { + return "InvalidOriginReadTimeout" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidProtocolSettings" + } + return *e.Code +} func (e *InvalidProtocolSettings) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query string parameters specified are not valid. type InvalidQueryStringParameters struct { Message *string + Code *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.Code == nil { + return "InvalidQueryStringParameters" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRelativePath" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequiredProtocol" + } + return *e.Code +} func (e *InvalidRequiredProtocol) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A response code is not valid. type InvalidResponseCode struct { Message *string + Code *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.Code == nil { + return "InvalidResponseCode" + } + return *e.Code +} func (e *InvalidResponseCode) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tagging specified is not valid. type InvalidTagging struct { Message *string + Code *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.Code == nil { + return "InvalidTagging" + } + return *e.Code +} func (e *InvalidTagging) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The TTL order specified is not valid. type InvalidTTLOrder struct { Message *string + Code *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.Code == nil { + return "InvalidTTLOrder" + } + return *e.Code +} func (e *InvalidTTLOrder) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A viewer certificate specified is not valid. type InvalidViewerCertificate struct { Message *string + Code *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.Code == nil { + return "InvalidViewerCertificate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidWebACLId" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KeyGroupAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MissingBody" + } + return *e.Code +} func (e *MissingBody) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A monitoring subscription already exists for the specified distribution. type MonitoringSubscriptionAlreadyExists struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1106,7 +1451,10 @@ func (e *MonitoringSubscriptionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *MonitoringSubscriptionAlreadyExists) ErrorCode() string { - return "MonitoringSubscriptionAlreadyExists" + if e.Code == nil { + return "MonitoringSubscriptionAlreadyExists" + } + return *e.Code } func (e *MonitoringSubscriptionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1116,6 +1464,8 @@ func (e *MonitoringSubscriptionAlreadyExists) ErrorFault() smithy.ErrorFault { type NoSuchCachePolicy struct { Message *string + Code *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.Code == nil { + return "NoSuchCachePolicy" + } + return *e.Code +} func (e *NoSuchCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified origin access identity does not exist. type NoSuchCloudFrontOriginAccessIdentity struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1148,7 +1505,10 @@ func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorMessage() string { return *e.Message } func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorCode() string { - return "NoSuchCloudFrontOriginAccessIdentity" + if e.Code == nil { + return "NoSuchCloudFrontOriginAccessIdentity" + } + return *e.Code } func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1158,6 +1518,8 @@ func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorFault() smithy.ErrorFault { type NoSuchContinuousDeploymentPolicy struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1171,7 +1533,10 @@ func (e *NoSuchContinuousDeploymentPolicy) ErrorMessage() string { return *e.Message } func (e *NoSuchContinuousDeploymentPolicy) ErrorCode() string { - return "NoSuchContinuousDeploymentPolicy" + if e.Code == nil { + return "NoSuchContinuousDeploymentPolicy" + } + return *e.Code } 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 + Code *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.Code == nil { + return "NoSuchDistribution" + } + return *e.Code +} func (e *NoSuchDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration for field-level encryption doesn't exist. type NoSuchFieldLevelEncryptionConfig struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1211,7 +1585,10 @@ func (e *NoSuchFieldLevelEncryptionConfig) ErrorMessage() string { return *e.Message } func (e *NoSuchFieldLevelEncryptionConfig) ErrorCode() string { - return "NoSuchFieldLevelEncryptionConfig" + if e.Code == nil { + return "NoSuchFieldLevelEncryptionConfig" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1232,7 +1611,10 @@ func (e *NoSuchFieldLevelEncryptionProfile) ErrorMessage() string { return *e.Message } func (e *NoSuchFieldLevelEncryptionProfile) ErrorCode() string { - return "NoSuchFieldLevelEncryptionProfile" + if e.Code == nil { + return "NoSuchFieldLevelEncryptionProfile" + } + return *e.Code } 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 + Code *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.Code == nil { + return "NoSuchFunctionExists" + } + return *e.Code +} func (e *NoSuchFunctionExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified invalidation does not exist. type NoSuchInvalidation struct { Message *string + Code *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.Code == nil { + return "NoSuchInvalidation" + } + return *e.Code +} func (e *NoSuchInvalidation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A monitoring subscription does not exist for the specified distribution. type NoSuchMonitoringSubscription struct { Message *string + Code *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.Code == nil { + return "NoSuchMonitoringSubscription" + } + return *e.Code +} func (e *NoSuchMonitoringSubscription) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No origin exists with the specified Origin Id. type NoSuchOrigin struct { Message *string + Code *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.Code == nil { + return "NoSuchOrigin" + } + return *e.Code +} func (e *NoSuchOrigin) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The origin access control does not exist. type NoSuchOriginAccessControl struct { Message *string + Code *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.Code == nil { + return "NoSuchOriginAccessControl" + } + return *e.Code +} func (e *NoSuchOriginAccessControl) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The origin request policy does not exist. type NoSuchOriginRequestPolicy struct { Message *string + Code *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.Code == nil { + return "NoSuchOriginRequestPolicy" + } + return *e.Code +} func (e *NoSuchOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified public key doesn't exist. type NoSuchPublicKey struct { Message *string + Code *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.Code == nil { + return "NoSuchPublicKey" + } + return *e.Code +} func (e *NoSuchPublicKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The real-time log configuration does not exist. type NoSuchRealtimeLogConfig struct { Message *string + Code *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.Code == nil { + return "NoSuchRealtimeLogConfig" + } + return *e.Code +} func (e *NoSuchRealtimeLogConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource that was specified is not valid. type NoSuchResource struct { Message *string + Code *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.Code == nil { + return "NoSuchResource" + } + return *e.Code +} func (e *NoSuchResource) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The response headers policy does not exist. type NoSuchResponseHeadersPolicy struct { Message *string + Code *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.Code == nil { + return "NoSuchResponseHeadersPolicy" + } + return *e.Code +} func (e *NoSuchResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified streaming distribution does not exist. type NoSuchStreamingDistribution struct { Message *string + Code *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.Code == nil { + return "NoSuchStreamingDistribution" + } + return *e.Code +} func (e *NoSuchStreamingDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An origin access control with the specified parameters already exists. type OriginAccessControlAlreadyExists struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1462,7 +1923,10 @@ func (e *OriginAccessControlAlreadyExists) ErrorMessage() string { return *e.Message } func (e *OriginAccessControlAlreadyExists) ErrorCode() string { - return "OriginAccessControlAlreadyExists" + if e.Code == nil { + return "OriginAccessControlAlreadyExists" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OriginAccessControlInUse" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1505,7 +1978,10 @@ func (e *OriginRequestPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *OriginRequestPolicyAlreadyExists) ErrorCode() string { - return "OriginRequestPolicyAlreadyExists" + if e.Code == nil { + return "OriginRequestPolicyAlreadyExists" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OriginRequestPolicyInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PreconditionFailed" + } + return *e.Code +} func (e *PreconditionFailed) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified public key already exists. type PublicKeyAlreadyExists struct { Message *string + Code *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.Code == nil { + return "PublicKeyAlreadyExists" + } + return *e.Code +} func (e *PublicKeyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified public key is in use. type PublicKeyInUse struct { Message *string + Code *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.Code == nil { + return "PublicKeyInUse" + } + return *e.Code +} func (e *PublicKeyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No profile specified for the field-level encryption query argument. type QueryArgProfileEmpty struct { Message *string + Code *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.Code == nil { + return "QueryArgProfileEmpty" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RealtimeLogConfigAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RealtimeLogConfigInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RealtimeLogConfigOwnerMismatch" + } + return *e.Code +} func (e *RealtimeLogConfigOwnerMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot delete this resource because it is in use. type ResourceInUse struct { Message *string + Code *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.Code == nil { + return "ResourceInUse" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1704,7 +2245,10 @@ func (e *ResponseHeadersPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ResponseHeadersPolicyAlreadyExists) ErrorCode() string { - return "ResponseHeadersPolicyAlreadyExists" + if e.Code == nil { + return "ResponseHeadersPolicyAlreadyExists" + } + return *e.Code } func (e *ResponseHeadersPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1715,6 +2259,8 @@ func (e *ResponseHeadersPolicyAlreadyExists) ErrorFault() smithy.ErrorFault { type ResponseHeadersPolicyInUse struct { Message *string + Code *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.Code == nil { + return "ResponseHeadersPolicyInUse" + } + return *e.Code +} func (e *ResponseHeadersPolicyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A continuous deployment policy for this staging distribution already exists. type StagingDistributionInUse struct { Message *string + Code *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.Code == nil { + return "StagingDistributionInUse" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1767,7 +2327,10 @@ func (e *StreamingDistributionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *StreamingDistributionAlreadyExists) ErrorCode() string { - return "StreamingDistributionAlreadyExists" + if e.Code == nil { + return "StreamingDistributionAlreadyExists" + } + return *e.Code } func (e *StreamingDistributionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1778,6 +2341,8 @@ func (e *StreamingDistributionAlreadyExists) ErrorFault() smithy.ErrorFault { type StreamingDistributionNotDisabled struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1791,7 +2356,10 @@ func (e *StreamingDistributionNotDisabled) ErrorMessage() string { return *e.Message } func (e *StreamingDistributionNotDisabled) ErrorCode() string { - return "StreamingDistributionNotDisabled" + if e.Code == nil { + return "StreamingDistributionNotDisabled" + } + return *e.Code } 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 + Code *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.Code == nil { + return "TestFunctionFailed" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1834,7 +2411,10 @@ func (e *TooLongCSPInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooLongCSPInResponseHeadersPolicy) ErrorCode() string { - return "TooLongCSPInResponseHeadersPolicy" + if e.Code == nil { + return "TooLongCSPInResponseHeadersPolicy" + } + return *e.Code } 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 + Code *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.Code == nil { + return "TooManyCacheBehaviors" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyCachePolicies" + } + return *e.Code +} func (e *TooManyCachePolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot create anymore custom SSL/TLS certificates. type TooManyCertificates struct { Message *string + Code *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.Code == nil { + return "TooManyCertificates" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1916,7 +2519,10 @@ func (e *TooManyCloudFrontOriginAccessIdentities) ErrorMessage() string { return *e.Message } func (e *TooManyCloudFrontOriginAccessIdentities) ErrorCode() string { - return "TooManyCloudFrontOriginAccessIdentities" + if e.Code == nil { + return "TooManyCloudFrontOriginAccessIdentities" + } + return *e.Code } func (e *TooManyCloudFrontOriginAccessIdentities) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1927,6 +2533,8 @@ func (e *TooManyCloudFrontOriginAccessIdentities) ErrorFault() smithy.ErrorFault type TooManyContinuousDeploymentPolicies struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1940,7 +2548,10 @@ func (e *TooManyContinuousDeploymentPolicies) ErrorMessage() string { return *e.Message } func (e *TooManyContinuousDeploymentPolicies) ErrorCode() string { - return "TooManyContinuousDeploymentPolicies" + if e.Code == nil { + return "TooManyContinuousDeploymentPolicies" + } + return *e.Code } func (e *TooManyContinuousDeploymentPolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1951,6 +2562,8 @@ func (e *TooManyContinuousDeploymentPolicies) ErrorFault() smithy.ErrorFault { type TooManyCookieNamesInWhiteList struct { Message *string + Code *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.Code == nil { + return "TooManyCookieNamesInWhiteList" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyCookiesInCachePolicy" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2008,7 +2635,10 @@ func (e *TooManyCookiesInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyCookiesInOriginRequestPolicy) ErrorCode() string { - return "TooManyCookiesInOriginRequestPolicy" + if e.Code == nil { + return "TooManyCookiesInOriginRequestPolicy" + } + return *e.Code } func (e *TooManyCookiesInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2021,6 +2651,8 @@ func (e *TooManyCookiesInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { type TooManyCustomHeadersInResponseHeadersPolicy struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2034,7 +2666,10 @@ func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorCode() string { - return "TooManyCustomHeadersInResponseHeadersPolicy" + if e.Code == nil { + return "TooManyCustomHeadersInResponseHeadersPolicy" + } + return *e.Code } func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2044,6 +2679,8 @@ func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorFault() smithy.ErrorF type TooManyDistributionCNAMEs struct { Message *string + Code *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.Code == nil { + return "TooManyDistributionCNAMEs" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyDistributions" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2099,7 +2750,10 @@ func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorCode() string { - return "TooManyDistributionsAssociatedToCachePolicy" + if e.Code == nil { + return "TooManyDistributionsAssociatedToCachePolicy" + } + return *e.Code } func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2110,6 +2764,8 @@ func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorFault() smithy.ErrorF type TooManyDistributionsAssociatedToFieldLevelEncryptionConfig struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2123,7 +2779,10 @@ func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorMessag return *e.Message } func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorCode() string { - return "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig" + if e.Code == nil { + return "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig" + } + return *e.Code } func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2136,6 +2795,8 @@ func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorFault( type TooManyDistributionsAssociatedToKeyGroup struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2149,7 +2810,10 @@ func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorCode() string { - return "TooManyDistributionsAssociatedToKeyGroup" + if e.Code == nil { + return "TooManyDistributionsAssociatedToKeyGroup" + } + return *e.Code } func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2162,6 +2826,8 @@ func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorFault() smithy.ErrorFaul type TooManyDistributionsAssociatedToOriginAccessControl struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2175,7 +2841,10 @@ func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorMessage() str return *e.Message } func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorCode() string { - return "TooManyDistributionsAssociatedToOriginAccessControl" + if e.Code == nil { + return "TooManyDistributionsAssociatedToOriginAccessControl" + } + return *e.Code } func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2188,6 +2857,8 @@ func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorFault() smith type TooManyDistributionsAssociatedToOriginRequestPolicy struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2201,7 +2872,10 @@ func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorMessage() str return *e.Message } func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorCode() string { - return "TooManyDistributionsAssociatedToOriginRequestPolicy" + if e.Code == nil { + return "TooManyDistributionsAssociatedToOriginRequestPolicy" + } + return *e.Code } func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2214,6 +2888,8 @@ func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorFault() smith type TooManyDistributionsAssociatedToResponseHeadersPolicy struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2227,7 +2903,10 @@ func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorMessage() s return *e.Message } func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorCode() string { - return "TooManyDistributionsAssociatedToResponseHeadersPolicy" + if e.Code == nil { + return "TooManyDistributionsAssociatedToResponseHeadersPolicy" + } + return *e.Code } func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2240,6 +2919,8 @@ func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorFault() smi type TooManyDistributionsWithFunctionAssociations struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2253,7 +2934,10 @@ func (e *TooManyDistributionsWithFunctionAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithFunctionAssociations) ErrorCode() string { - return "TooManyDistributionsWithFunctionAssociations" + if e.Code == nil { + return "TooManyDistributionsWithFunctionAssociations" + } + return *e.Code } func (e *TooManyDistributionsWithFunctionAssociations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2264,6 +2948,8 @@ func (e *TooManyDistributionsWithFunctionAssociations) ErrorFault() smithy.Error type TooManyDistributionsWithLambdaAssociations struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2277,7 +2963,10 @@ func (e *TooManyDistributionsWithLambdaAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithLambdaAssociations) ErrorCode() string { - return "TooManyDistributionsWithLambdaAssociations" + if e.Code == nil { + return "TooManyDistributionsWithLambdaAssociations" + } + return *e.Code } func (e *TooManyDistributionsWithLambdaAssociations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2288,6 +2977,8 @@ func (e *TooManyDistributionsWithLambdaAssociations) ErrorFault() smithy.ErrorFa type TooManyDistributionsWithSingleFunctionARN struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2301,7 +2992,10 @@ func (e *TooManyDistributionsWithSingleFunctionARN) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithSingleFunctionARN) ErrorCode() string { - return "TooManyDistributionsWithSingleFunctionARN" + if e.Code == nil { + return "TooManyDistributionsWithSingleFunctionARN" + } + return *e.Code } func (e *TooManyDistributionsWithSingleFunctionARN) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2312,6 +3006,8 @@ func (e *TooManyDistributionsWithSingleFunctionARN) ErrorFault() smithy.ErrorFau type TooManyFieldLevelEncryptionConfigs struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2325,7 +3021,10 @@ func (e *TooManyFieldLevelEncryptionConfigs) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionConfigs) ErrorCode() string { - return "TooManyFieldLevelEncryptionConfigs" + if e.Code == nil { + return "TooManyFieldLevelEncryptionConfigs" + } + return *e.Code } func (e *TooManyFieldLevelEncryptionConfigs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2336,6 +3035,8 @@ func (e *TooManyFieldLevelEncryptionConfigs) ErrorFault() smithy.ErrorFault { type TooManyFieldLevelEncryptionContentTypeProfiles struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2349,7 +3050,10 @@ func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorCode() string { - return "TooManyFieldLevelEncryptionContentTypeProfiles" + if e.Code == nil { + return "TooManyFieldLevelEncryptionContentTypeProfiles" + } + return *e.Code } func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2360,6 +3064,8 @@ func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorFault() smithy.Err type TooManyFieldLevelEncryptionEncryptionEntities struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2373,7 +3079,10 @@ func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorCode() string { - return "TooManyFieldLevelEncryptionEncryptionEntities" + if e.Code == nil { + return "TooManyFieldLevelEncryptionEncryptionEntities" + } + return *e.Code } func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2384,6 +3093,8 @@ func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorFault() smithy.Erro type TooManyFieldLevelEncryptionFieldPatterns struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2397,7 +3108,10 @@ func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorCode() string { - return "TooManyFieldLevelEncryptionFieldPatterns" + if e.Code == nil { + return "TooManyFieldLevelEncryptionFieldPatterns" + } + return *e.Code } func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2407,6 +3121,8 @@ func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorFault() smithy.ErrorFaul type TooManyFieldLevelEncryptionProfiles struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2420,7 +3136,10 @@ func (e *TooManyFieldLevelEncryptionProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionProfiles) ErrorCode() string { - return "TooManyFieldLevelEncryptionProfiles" + if e.Code == nil { + return "TooManyFieldLevelEncryptionProfiles" + } + return *e.Code } func (e *TooManyFieldLevelEncryptionProfiles) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2431,6 +3150,8 @@ func (e *TooManyFieldLevelEncryptionProfiles) ErrorFault() smithy.ErrorFault { type TooManyFieldLevelEncryptionQueryArgProfiles struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2444,7 +3165,10 @@ func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorCode() string { - return "TooManyFieldLevelEncryptionQueryArgProfiles" + if e.Code == nil { + return "TooManyFieldLevelEncryptionQueryArgProfiles" + } + return *e.Code } func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2457,6 +3181,8 @@ func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorFault() smithy.ErrorF type TooManyFunctionAssociations struct { Message *string + Code *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.Code == nil { + return "TooManyFunctionAssociations" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyFunctions" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyHeadersInCachePolicy" + } + return *e.Code +} func (e *TooManyHeadersInCachePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains too many headers in forwarded values. type TooManyHeadersInForwardedValues struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2533,7 +3280,10 @@ func (e *TooManyHeadersInForwardedValues) ErrorMessage() string { return *e.Message } func (e *TooManyHeadersInForwardedValues) ErrorCode() string { - return "TooManyHeadersInForwardedValues" + if e.Code == nil { + return "TooManyHeadersInForwardedValues" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -2557,7 +3309,10 @@ func (e *TooManyHeadersInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyHeadersInOriginRequestPolicy) ErrorCode() string { - return "TooManyHeadersInOriginRequestPolicy" + if e.Code == nil { + return "TooManyHeadersInOriginRequestPolicy" + } + return *e.Code } func (e *TooManyHeadersInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2568,6 +3323,8 @@ func (e *TooManyHeadersInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { type TooManyInvalidationsInProgress struct { Message *string + Code *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.Code == nil { + return "TooManyInvalidationsInProgress" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyKeyGroups" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2625,7 +3396,10 @@ func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorMessage() string { return *e.Message } func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorCode() string { - return "TooManyKeyGroupsAssociatedToDistribution" + if e.Code == nil { + return "TooManyKeyGroupsAssociatedToDistribution" + } + return *e.Code } func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2636,6 +3410,8 @@ func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorFault() smithy.ErrorFaul type TooManyLambdaFunctionAssociations struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2649,7 +3425,10 @@ func (e *TooManyLambdaFunctionAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyLambdaFunctionAssociations) ErrorCode() string { - return "TooManyLambdaFunctionAssociations" + if e.Code == nil { + return "TooManyLambdaFunctionAssociations" + } + return *e.Code } 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 + Code *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.Code == nil { + return "TooManyOriginAccessControls" + } + return *e.Code +} func (e *TooManyOriginAccessControls) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains too many origin custom headers. type TooManyOriginCustomHeaders struct { Message *string + Code *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.Code == nil { + return "TooManyOriginCustomHeaders" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2712,7 +3507,10 @@ func (e *TooManyOriginGroupsPerDistribution) ErrorMessage() string { return *e.Message } func (e *TooManyOriginGroupsPerDistribution) ErrorCode() string { - return "TooManyOriginGroupsPerDistribution" + if e.Code == nil { + return "TooManyOriginGroupsPerDistribution" + } + return *e.Code } func (e *TooManyOriginGroupsPerDistribution) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2725,6 +3523,8 @@ func (e *TooManyOriginGroupsPerDistribution) ErrorFault() smithy.ErrorFault { type TooManyOriginRequestPolicies struct { Message *string + Code *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.Code == nil { + return "TooManyOriginRequestPolicies" + } + return *e.Code +} func (e *TooManyOriginRequestPolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You cannot create more origins for the distribution. type TooManyOrigins struct { Message *string + Code *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.Code == nil { + return "TooManyOrigins" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyPublicKeys" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyPublicKeysInKeyGroup" + } + return *e.Code +} func (e *TooManyPublicKeysInKeyGroup) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains too many query string parameters. type TooManyQueryStringParameters struct { Message *string + Code *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.Code == nil { + return "TooManyQueryStringParameters" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2840,7 +3675,10 @@ func (e *TooManyQueryStringsInCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyQueryStringsInCachePolicy) ErrorCode() string { - return "TooManyQueryStringsInCachePolicy" + if e.Code == nil { + return "TooManyQueryStringsInCachePolicy" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -2864,7 +3704,10 @@ func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorCode() string { - return "TooManyQueryStringsInOriginRequestPolicy" + if e.Code == nil { + return "TooManyQueryStringsInOriginRequestPolicy" + } + return *e.Code } func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2877,6 +3720,8 @@ func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorFault() smithy.ErrorFaul type TooManyRealtimeLogConfigs struct { Message *string + Code *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.Code == nil { + return "TooManyRealtimeLogConfigs" + } + return *e.Code +} func (e *TooManyRealtimeLogConfigs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of response headers policies for this Amazon @@ -2899,6 +3749,8 @@ func (e *TooManyRealtimeLogConfigs) ErrorFault() smithy.ErrorFault { return smit type TooManyResponseHeadersPolicies struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2911,13 +3763,20 @@ func (e *TooManyResponseHeadersPolicies) ErrorMessage() string { } return *e.Message } -func (e *TooManyResponseHeadersPolicies) ErrorCode() string { return "TooManyResponseHeadersPolicies" } +func (e *TooManyResponseHeadersPolicies) ErrorCode() string { + if e.Code == nil { + return "TooManyResponseHeadersPolicies" + } + return *e.Code +} func (e *TooManyResponseHeadersPolicies) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your request contains more CNAMEs than are allowed per distribution. type TooManyStreamingDistributionCNAMEs struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2931,7 +3790,10 @@ func (e *TooManyStreamingDistributionCNAMEs) ErrorMessage() string { return *e.Message } func (e *TooManyStreamingDistributionCNAMEs) ErrorCode() string { - return "TooManyStreamingDistributionCNAMEs" + if e.Code == nil { + return "TooManyStreamingDistributionCNAMEs" + } + return *e.Code } func (e *TooManyStreamingDistributionCNAMEs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2942,6 +3804,8 @@ func (e *TooManyStreamingDistributionCNAMEs) ErrorFault() smithy.ErrorFault { type TooManyStreamingDistributions struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2954,13 +3818,20 @@ func (e *TooManyStreamingDistributions) ErrorMessage() string { } return *e.Message } -func (e *TooManyStreamingDistributions) ErrorCode() string { return "TooManyStreamingDistributions" } +func (e *TooManyStreamingDistributions) ErrorCode() string { + if e.Code == nil { + return "TooManyStreamingDistributions" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2973,13 +3844,20 @@ func (e *TooManyTrustedSigners) ErrorMessage() string { } return *e.Message } -func (e *TooManyTrustedSigners) ErrorCode() string { return "TooManyTrustedSigners" } +func (e *TooManyTrustedSigners) ErrorCode() string { + if e.Code == nil { + return "TooManyTrustedSigners" + } + return *e.Code +} func (e *TooManyTrustedSigners) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key group does not exist. type TrustedKeyGroupDoesNotExist struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2992,13 +3870,20 @@ func (e *TrustedKeyGroupDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *TrustedKeyGroupDoesNotExist) ErrorCode() string { return "TrustedKeyGroupDoesNotExist" } +func (e *TrustedKeyGroupDoesNotExist) ErrorCode() string { + if e.Code == nil { + return "TrustedKeyGroupDoesNotExist" + } + return *e.Code +} func (e *TrustedKeyGroupDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of your trusted signers don't exist. type TrustedSignerDoesNotExist struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3011,13 +3896,20 @@ func (e *TrustedSignerDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *TrustedSignerDoesNotExist) ErrorCode() string { return "TrustedSignerDoesNotExist" } +func (e *TrustedSignerDoesNotExist) ErrorCode() string { + if e.Code == nil { + return "TrustedSignerDoesNotExist" + } + return *e.Code +} func (e *TrustedSignerDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not supported in this region. type UnsupportedOperation struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3030,5 +3922,10 @@ func (e *UnsupportedOperation) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedOperation) ErrorCode() string { return "UnsupportedOperation" } +func (e *UnsupportedOperation) ErrorCode() string { + if e.Code == nil { + return "UnsupportedOperation" + } + return *e.Code +} 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..420b8a05d8e 100644 --- a/service/cloudhsm/types/errors.go +++ b/service/cloudhsm/types/errors.go @@ -11,6 +11,8 @@ import ( type CloudHsmInternalException struct { Message *string + Code *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.Code == nil { + return "CloudHsmInternalException" + } + return *e.Code +} func (e *CloudHsmInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that an exception occurred in the AWS CloudHSM service. type CloudHsmServiceException struct { Message *string + Code *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.Code == nil { + return "CloudHsmServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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..d80c496f90a 100644 --- a/service/cloudhsmv2/types/errors.go +++ b/service/cloudhsmv2/types/errors.go @@ -12,6 +12,8 @@ import ( type CloudHsmAccessDeniedException struct { Message *string + Code *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.Code == nil { + return "CloudHsmAccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *CloudHsmInternalFailureException) ErrorMessage() string { return *e.Message } func (e *CloudHsmInternalFailureException) ErrorCode() string { - return "CloudHsmInternalFailureException" + if e.Code == nil { + return "CloudHsmInternalFailureException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -66,7 +80,10 @@ func (e *CloudHsmInvalidRequestException) ErrorMessage() string { return *e.Message } func (e *CloudHsmInvalidRequestException) ErrorCode() string { - return "CloudHsmInvalidRequestException" + if e.Code == nil { + return "CloudHsmInvalidRequestException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -87,7 +106,10 @@ func (e *CloudHsmResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *CloudHsmResourceNotFoundException) ErrorCode() string { - return "CloudHsmResourceNotFoundException" + if e.Code == nil { + return "CloudHsmResourceNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "CloudHsmServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CloudHsmTagException" + } + return *e.Code +} 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..19a84dfa4fe 100644 --- a/service/cloudsearch/types/errors.go +++ b/service/cloudsearch/types/errors.go @@ -25,7 +25,12 @@ func (e *BaseException) ErrorMessage() string { } return *e.Message } -func (e *BaseException) ErrorCode() string { return "BaseException" } +func (e *BaseException) ErrorCode() string { + if e.Code == nil { + return "BaseException" + } + return *e.Code +} func (e *BaseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted an operation which is not enabled. @@ -46,7 +51,12 @@ func (e *DisabledOperationException) ErrorMessage() string { } return *e.Message } -func (e *DisabledOperationException) ErrorCode() string { return "DisabledAction" } +func (e *DisabledOperationException) ErrorCode() string { + if e.Code == nil { + return "DisabledAction" + } + return *e.Code +} func (e *DisabledOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred while processing the request. If this problem @@ -69,7 +79,12 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.Code == nil { + return "InternalException" + } + return *e.Code +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was rejected because it specified an invalid type definition. @@ -90,7 +105,12 @@ func (e *InvalidTypeException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTypeException) ErrorCode() string { return "InvalidType" } +func (e *InvalidTypeException) ErrorCode() string { + if e.Code == nil { + return "InvalidType" + } + return *e.Code +} func (e *InvalidTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because a resource limit has already been met. @@ -111,7 +131,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceeded" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceeded" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create a resource that already @@ -133,7 +158,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExists" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.Code == nil { + return "ResourceAlreadyExists" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to reference a resource that does @@ -155,7 +185,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it has invalid parameters. @@ -176,5 +211,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..b1c5e57f78c 100644 --- a/service/cloudsearchdomain/types/errors.go +++ b/service/cloudsearchdomain/types/errors.go @@ -11,6 +11,8 @@ import ( type DocumentServiceException struct { Message *string + Code *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.Code == nil { + return "DocumentServiceException" + } + return *e.Code +} func (e *DocumentServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Information about any problems encountered while processing a search request. type SearchException struct { Message *string + Code *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.Code == nil { + return "SearchException" + } + return *e.Code +} 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..502bbacf73e 100644 --- a/service/cloudtrail/types/errors.go +++ b/service/cloudtrail/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountHasOngoingImportException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *AccountHasOngoingImportException) ErrorMessage() string { return *e.Message } func (e *AccountHasOngoingImportException) ErrorCode() string { - return "AccountHasOngoingImportException" + if e.Code == nil { + return "AccountHasOngoingImportException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AccountNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AccountNotRegisteredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AccountRegisteredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -107,7 +135,10 @@ func (e *CannotDelegateManagementAccountException) ErrorMessage() string { return *e.Message } func (e *CannotDelegateManagementAccountException) ErrorCode() string { - return "CannotDelegateManagementAccountException" + if e.Code == nil { + return "CannotDelegateManagementAccountException" + } + return *e.Code } func (e *CannotDelegateManagementAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -117,6 +148,8 @@ func (e *CannotDelegateManagementAccountException) ErrorFault() smithy.ErrorFaul type ChannelARNInvalidException struct { Message *string + Code *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.Code == nil { + return "ChannelARNInvalidException" + } + return *e.Code +} func (e *ChannelARNInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified channel was not found. type ChannelNotFoundException struct { Message *string + Code *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.Code == nil { + return "ChannelNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -173,7 +220,10 @@ func (e *CloudTrailAccessNotEnabledException) ErrorMessage() string { return *e.Message } func (e *CloudTrailAccessNotEnabledException) ErrorCode() string { - return "CloudTrailAccessNotEnabledException" + if e.Code == nil { + return "CloudTrailAccessNotEnabledException" + } + return *e.Code } func (e *CloudTrailAccessNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -185,6 +235,8 @@ func (e *CloudTrailAccessNotEnabledException) ErrorFault() smithy.ErrorFault { type CloudTrailARNInvalidException struct { Message *string + Code *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.Code == nil { + return "CloudTrailARNInvalidException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -220,7 +279,10 @@ func (e *CloudTrailInvalidClientTokenIdException) ErrorMessage() string { return *e.Message } func (e *CloudTrailInvalidClientTokenIdException) ErrorCode() string { - return "CloudTrailInvalidClientTokenIdException" + if e.Code == nil { + return "CloudTrailInvalidClientTokenIdException" + } + return *e.Code } func (e *CloudTrailInvalidClientTokenIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -230,6 +292,8 @@ func (e *CloudTrailInvalidClientTokenIdException) ErrorFault() smithy.ErrorFault type CloudWatchLogsDeliveryUnavailableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -243,7 +307,10 @@ func (e *CloudWatchLogsDeliveryUnavailableException) ErrorMessage() string { return *e.Message } func (e *CloudWatchLogsDeliveryUnavailableException) ErrorCode() string { - return "CloudWatchLogsDeliveryUnavailableException" + if e.Code == nil { + return "CloudWatchLogsDeliveryUnavailableException" + } + return *e.Code } func (e *CloudWatchLogsDeliveryUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -256,6 +323,8 @@ func (e *CloudWatchLogsDeliveryUnavailableException) ErrorFault() smithy.ErrorFa type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -289,7 +365,10 @@ func (e *DelegatedAdminAccountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DelegatedAdminAccountLimitExceededException) ErrorCode() string { - return "DelegatedAdminAccountLimitExceededException" + if e.Code == nil { + return "DelegatedAdminAccountLimitExceededException" + } + return *e.Code } func (e *DelegatedAdminAccountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -299,6 +378,8 @@ func (e *DelegatedAdminAccountLimitExceededException) ErrorFault() smithy.ErrorF type EventDataStoreAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -312,7 +393,10 @@ func (e *EventDataStoreAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreAlreadyExistsException) ErrorCode() string { - return "EventDataStoreAlreadyExistsException" + if e.Code == nil { + return "EventDataStoreAlreadyExistsException" + } + return *e.Code } func (e *EventDataStoreAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -323,6 +407,8 @@ func (e *EventDataStoreAlreadyExistsException) ErrorFault() smithy.ErrorFault { type EventDataStoreARNInvalidException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -336,7 +422,10 @@ func (e *EventDataStoreARNInvalidException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreARNInvalidException) ErrorCode() string { - return "EventDataStoreARNInvalidException" + if e.Code == nil { + return "EventDataStoreARNInvalidException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -358,7 +449,10 @@ func (e *EventDataStoreHasOngoingImportException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreHasOngoingImportException) ErrorCode() string { - return "EventDataStoreHasOngoingImportException" + if e.Code == nil { + return "EventDataStoreHasOngoingImportException" + } + return *e.Code } func (e *EventDataStoreHasOngoingImportException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -368,6 +462,8 @@ func (e *EventDataStoreHasOngoingImportException) ErrorFault() smithy.ErrorFault type EventDataStoreMaxLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -381,7 +477,10 @@ func (e *EventDataStoreMaxLimitExceededException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreMaxLimitExceededException) ErrorCode() string { - return "EventDataStoreMaxLimitExceededException" + if e.Code == nil { + return "EventDataStoreMaxLimitExceededException" + } + return *e.Code } func (e *EventDataStoreMaxLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -391,6 +490,8 @@ func (e *EventDataStoreMaxLimitExceededException) ErrorFault() smithy.ErrorFault type EventDataStoreNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -404,7 +505,10 @@ func (e *EventDataStoreNotFoundException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreNotFoundException) ErrorCode() string { - return "EventDataStoreNotFoundException" + if e.Code == nil { + return "EventDataStoreNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -426,7 +532,10 @@ func (e *EventDataStoreTerminationProtectedException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreTerminationProtectedException) ErrorCode() string { - return "EventDataStoreTerminationProtectedException" + if e.Code == nil { + return "EventDataStoreTerminationProtectedException" + } + return *e.Code } func (e *EventDataStoreTerminationProtectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -436,6 +545,8 @@ func (e *EventDataStoreTerminationProtectedException) ErrorFault() smithy.ErrorF type ImportNotFoundException struct { Message *string + Code *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.Code == nil { + return "ImportNotFoundException" + } + return *e.Code +} func (e *ImportNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The event data store is inactive. type InactiveEventDataStoreException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -468,7 +586,10 @@ func (e *InactiveEventDataStoreException) ErrorMessage() string { return *e.Message } func (e *InactiveEventDataStoreException) ErrorCode() string { - return "InactiveEventDataStoreException" + if e.Code == nil { + return "InactiveEventDataStoreException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InactiveQueryException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InsightNotEnabledException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -531,7 +668,10 @@ func (e *InsufficientDependencyServiceAccessPermissionException) ErrorMessage() return *e.Message } func (e *InsufficientDependencyServiceAccessPermissionException) ErrorCode() string { - return "InsufficientDependencyServiceAccessPermissionException" + if e.Code == nil { + return "InsufficientDependencyServiceAccessPermissionException" + } + return *e.Code } func (e *InsufficientDependencyServiceAccessPermissionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -542,6 +682,8 @@ func (e *InsufficientDependencyServiceAccessPermissionException) ErrorFault() sm type InsufficientEncryptionPolicyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -555,7 +697,10 @@ func (e *InsufficientEncryptionPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientEncryptionPolicyException) ErrorCode() string { - return "InsufficientEncryptionPolicyException" + if e.Code == nil { + return "InsufficientEncryptionPolicyException" + } + return *e.Code } func (e *InsufficientEncryptionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -565,6 +710,8 @@ func (e *InsufficientEncryptionPolicyException) ErrorFault() smithy.ErrorFault { type InsufficientS3BucketPolicyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -578,7 +725,10 @@ func (e *InsufficientS3BucketPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientS3BucketPolicyException) ErrorCode() string { - return "InsufficientS3BucketPolicyException" + if e.Code == nil { + return "InsufficientS3BucketPolicyException" + } + return *e.Code } func (e *InsufficientS3BucketPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -589,6 +739,8 @@ func (e *InsufficientS3BucketPolicyException) ErrorFault() smithy.ErrorFault { type InsufficientSnsTopicPolicyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -602,7 +754,10 @@ func (e *InsufficientSnsTopicPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientSnsTopicPolicyException) ErrorCode() string { - return "InsufficientSnsTopicPolicyException" + if e.Code == nil { + return "InsufficientSnsTopicPolicyException" + } + return *e.Code } func (e *InsufficientSnsTopicPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -613,6 +768,8 @@ func (e *InsufficientSnsTopicPolicyException) ErrorFault() smithy.ErrorFault { type InvalidCloudWatchLogsLogGroupArnException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -626,7 +783,10 @@ func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorCode() string { - return "InvalidCloudWatchLogsLogGroupArnException" + if e.Code == nil { + return "InvalidCloudWatchLogsLogGroupArnException" + } + return *e.Code } func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -636,6 +796,8 @@ func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorFault() smithy.ErrorFau type InvalidCloudWatchLogsRoleArnException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -649,7 +811,10 @@ func (e *InvalidCloudWatchLogsRoleArnException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchLogsRoleArnException) ErrorCode() string { - return "InvalidCloudWatchLogsRoleArnException" + if e.Code == nil { + return "InvalidCloudWatchLogsRoleArnException" + } + return *e.Code } func (e *InvalidCloudWatchLogsRoleArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -663,6 +828,8 @@ func (e *InvalidCloudWatchLogsRoleArnException) ErrorFault() smithy.ErrorFault { type InvalidDateRangeException struct { Message *string + Code *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.Code == nil { + return "InvalidDateRangeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidEventCategoryException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -716,7 +897,10 @@ func (e *InvalidEventDataStoreCategoryException) ErrorMessage() string { return *e.Message } func (e *InvalidEventDataStoreCategoryException) ErrorCode() string { - return "InvalidEventDataStoreCategoryException" + if e.Code == nil { + return "InvalidEventDataStoreCategoryException" + } + return *e.Code } func (e *InvalidEventDataStoreCategoryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -726,6 +910,8 @@ func (e *InvalidEventDataStoreCategoryException) ErrorFault() smithy.ErrorFault type InvalidEventDataStoreStatusException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -739,7 +925,10 @@ func (e *InvalidEventDataStoreStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidEventDataStoreStatusException) ErrorCode() string { - return "InvalidEventDataStoreStatusException" + if e.Code == nil { + return "InvalidEventDataStoreStatusException" + } + return *e.Code } func (e *InvalidEventDataStoreStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -772,6 +961,8 @@ func (e *InvalidEventDataStoreStatusException) ErrorFault() smithy.ErrorFault { type InvalidEventSelectorsException struct { Message *string + Code *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.Code == nil { + return "InvalidEventSelectorsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidHomeRegionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidImportSourceException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -847,7 +1059,10 @@ func (e *InvalidInsightSelectorsException) ErrorMessage() string { return *e.Message } func (e *InvalidInsightSelectorsException) ErrorCode() string { - return "InvalidInsightSelectorsException" + if e.Code == nil { + return "InvalidInsightSelectorsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidKmsKeyIdException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -887,7 +1111,10 @@ func (e *InvalidLookupAttributesException) ErrorMessage() string { return *e.Message } func (e *InvalidLookupAttributesException) ErrorCode() string { - return "InvalidLookupAttributesException" + if e.Code == nil { + return "InvalidLookupAttributesException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidMaxResultsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -948,7 +1191,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.Code == nil { + return "InvalidParameterCombinationException" + } + return *e.Code } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -958,6 +1204,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidQueryStatementException" + } + return *e.Code +} func (e *InvalidQueryStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query status is not valid for the operation. type InvalidQueryStatusException struct { Message *string + Code *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.Code == nil { + return "InvalidQueryStatusException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidS3BucketNameException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidS3PrefixException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSnsTopicNameException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTagParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTimeRangeException" + } + return *e.Code +} func (e *InvalidTimeRangeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Reserved for future use. type InvalidTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTrailNameException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KmsException" + } + return *e.Code +} func (e *KmsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is no longer in use. type KmsKeyDisabledException struct { Message *string + Code *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.Code == nil { + return "KmsKeyDisabledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KmsKeyNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MaxConcurrentQueriesException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1263,7 +1609,10 @@ func (e *MaximumNumberOfTrailsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumNumberOfTrailsExceededException) ErrorCode() string { - return "MaximumNumberOfTrailsExceededException" + if e.Code == nil { + return "MaximumNumberOfTrailsExceededException" + } + return *e.Code } func (e *MaximumNumberOfTrailsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1274,6 +1623,8 @@ func (e *MaximumNumberOfTrailsExceededException) ErrorFault() smithy.ErrorFault type NoManagementAccountSLRExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1287,7 +1638,10 @@ func (e *NoManagementAccountSLRExistsException) ErrorMessage() string { return *e.Message } func (e *NoManagementAccountSLRExistsException) ErrorCode() string { - return "NoManagementAccountSLRExistsException" + if e.Code == nil { + return "NoManagementAccountSLRExistsException" + } + return *e.Code } func (e *NoManagementAccountSLRExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1298,6 +1652,8 @@ func (e *NoManagementAccountSLRExistsException) ErrorFault() smithy.ErrorFault { type NotOrganizationManagementAccountException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1311,7 +1667,10 @@ func (e *NotOrganizationManagementAccountException) ErrorMessage() string { return *e.Message } func (e *NotOrganizationManagementAccountException) ErrorCode() string { - return "NotOrganizationManagementAccountException" + if e.Code == nil { + return "NotOrganizationManagementAccountException" + } + return *e.Code } func (e *NotOrganizationManagementAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1327,6 +1686,8 @@ func (e *NotOrganizationManagementAccountException) ErrorFault() smithy.ErrorFau type NotOrganizationMasterAccountException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1340,7 +1701,10 @@ func (e *NotOrganizationMasterAccountException) ErrorMessage() string { return *e.Message } func (e *NotOrganizationMasterAccountException) ErrorCode() string { - return "NotOrganizationMasterAccountException" + if e.Code == nil { + return "NotOrganizationMasterAccountException" + } + return *e.Code } func (e *NotOrganizationMasterAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1350,6 +1714,8 @@ func (e *NotOrganizationMasterAccountException) ErrorFault() smithy.ErrorFault { type OperationNotPermittedException struct { Message *string + Code *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.Code == nil { + return "OperationNotPermittedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1384,7 +1757,10 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotInAllFeaturesModeException) ErrorCode() string { - return "OrganizationNotInAllFeaturesModeException" + if e.Code == nil { + return "OrganizationNotInAllFeaturesModeException" + } + return *e.Code } func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1396,6 +1772,8 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFau type OrganizationsNotInUseException struct { Message *string + Code *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.Code == nil { + return "OrganizationsNotInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "QueryIdNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1467,7 +1866,10 @@ func (e *ResourceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ResourceTypeNotSupportedException) ErrorCode() string { - return "ResourceTypeNotSupportedException" + if e.Code == nil { + return "ResourceTypeNotSupportedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "S3BucketDoesNotExistException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagsLimitExceededException" + } + return *e.Code +} func (e *TagsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the specified trail already exists. type TrailAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "TrailAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TrailNotFoundException" + } + return *e.Code +} func (e *TrailNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is no longer in use. type TrailNotProvidedException struct { Message *string + Code *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.Code == nil { + return "TrailNotProvidedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} 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..391812f2266 100644 --- a/service/cloudwatch/types/errors.go +++ b/service/cloudwatch/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidParameterInput" + } + return *e.Code +} func (e *DashboardInvalidInputError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified dashboard does not exist. type DashboardNotFoundError struct { Message *string + Code *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.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceError" + } + return *e.Code +} func (e *InternalServiceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Data was not syntactically valid JSON. type InvalidFormatFault struct { Message *string + Code *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.Code == nil { + return "InvalidFormat" + } + return *e.Code +} func (e *InvalidFormatFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The next token specified is invalid. type InvalidNextToken struct { Message *string + Code *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.Code == nil { + return "InvalidNextToken" + } + return *e.Code +} func (e *InvalidNextToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Parameters were used together that cannot be used together. type InvalidParameterCombinationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -142,7 +184,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombination" + if e.Code == nil { + return "InvalidParameterCombination" + } + return *e.Code } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -152,6 +197,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterValueException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterValue" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation exceeded one or more limits. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceeded" + } + return *e.Code +} func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An input parameter that is required is missing. type MissingRequiredParameterException struct { Message *string + Code *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.Code == nil { + return "MissingParameter" + } + return *e.Code +} func (e *MissingRequiredParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The named resource does not exist. type ResourceNotFound struct { Message *string + Code *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.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The named resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..d1507caf46f 100644 --- a/service/cloudwatchevents/types/errors.go +++ b/service/cloudwatchevents/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "IllegalStatusException" + } + return *e.Code +} func (e *IllegalStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs due to unexpected causes. type InternalException struct { Message *string + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The event pattern is not valid. type InvalidEventPatternException struct { Message *string + Code *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.Code == nil { + return "InvalidEventPatternException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ManagedRuleException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OperationDisabledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyLengthExceededException" + } + return *e.Code +} func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you are trying to create already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity that you specified does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cloudwatchlogs/types/errors.go b/service/cloudwatchlogs/types/errors.go index a83f9c25942..a1c48b68fe2 100644 --- a/service/cloudwatchlogs/types/errors.go +++ b/service/cloudwatchlogs/types/errors.go @@ -11,6 +11,8 @@ import ( type DataAlreadyAcceptedException struct { Message *string + Code *string + ExpectedSequenceToken *string noSmithyDocumentSerde @@ -25,13 +27,20 @@ func (e *DataAlreadyAcceptedException) ErrorMessage() string { } return *e.Message } -func (e *DataAlreadyAcceptedException) ErrorCode() string { return "DataAlreadyAcceptedException" } +func (e *DataAlreadyAcceptedException) ErrorCode() string { + if e.Code == nil { + return "DataAlreadyAcceptedException" + } + return *e.Code +} func (e *DataAlreadyAcceptedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not valid on the specified resource. type InvalidOperationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -44,13 +53,20 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is specified incorrectly. type InvalidParameterException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -63,7 +79,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The sequence token is not valid. You can get the correct sequence token in the @@ -71,6 +92,8 @@ func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smit type InvalidSequenceTokenException struct { Message *string + Code *string + ExpectedSequenceToken *string noSmithyDocumentSerde @@ -85,13 +108,20 @@ func (e *InvalidSequenceTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSequenceTokenException) ErrorCode() string { return "InvalidSequenceTokenException" } +func (e *InvalidSequenceTokenException) ErrorCode() string { + if e.Code == nil { + return "InvalidSequenceTokenException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -104,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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query string is not valid. Details about this error are displayed in a @@ -116,6 +151,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MalformedQueryException struct { Message *string + Code *string + QueryCompileError *QueryCompileError noSmithyDocumentSerde @@ -130,13 +167,20 @@ func (e *MalformedQueryException) ErrorMessage() string { } return *e.Message } -func (e *MalformedQueryException) ErrorCode() string { return "MalformedQueryException" } +func (e *MalformedQueryException) ErrorCode() string { + if e.Code == nil { + return "MalformedQueryException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -149,13 +193,20 @@ func (e *OperationAbortedException) ErrorMessage() string { } return *e.Message } -func (e *OperationAbortedException) ErrorCode() string { return "OperationAbortedException" } +func (e *OperationAbortedException) ErrorCode() string { + if e.Code == nil { + return "OperationAbortedException" + } + return *e.Code +} func (e *OperationAbortedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -168,13 +219,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -187,13 +245,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service cannot complete the request. type ServiceUnavailableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -206,13 +271,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A resource can have no more than 50 tags. type TooManyTagsException struct { Message *string + Code *string + ResourceName *string noSmithyDocumentSerde @@ -227,7 +299,12 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The most likely cause is an Amazon Web Services access key ID or secret key @@ -235,6 +312,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type UnrecognizedClientException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -247,5 +326,10 @@ func (e *UnrecognizedClientException) ErrorMessage() string { } return *e.Message } -func (e *UnrecognizedClientException) ErrorCode() string { return "UnrecognizedClientException" } +func (e *UnrecognizedClientException) ErrorCode() string { + if e.Code == nil { + return "UnrecognizedClientException" + } + return *e.Code +} 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..0db445953c9 100644 --- a/service/codeartifact/types/errors.go +++ b/service/codeartifact/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation did not succeed because prerequisites are not met. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..b42159cc837 100644 --- a/service/codebuild/types/errors.go +++ b/service/codebuild/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountLimitExceededException struct { Message *string + Code *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.Code == nil { + return "AccountLimitExceededException" + } + return *e.Code +} func (e *AccountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input value that was provided is not valid. type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a problem with the underlying OAuth provider. type OAuthProviderException struct { Message *string + Code *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.Code == nil { + return "OAuthProviderException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Web Services resource cannot be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..c531b4bcfea 100644 --- a/service/codecatalyst/types/errors.go +++ b/service/codecatalyst/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codecatalyst/types/types.go b/service/codecatalyst/types/types.go index e1c56e4533d..2fba80c7fc7 100644 --- a/service/codecatalyst/types/types.go +++ b/service/codecatalyst/types/types.go @@ -252,6 +252,7 @@ type ExecuteCommandSessionConfiguration struct { noSmithyDocumentSerde } +// type Filter struct { // diff --git a/service/codecommit/types/errors.go b/service/codecommit/types/errors.go index 78e387b9860..25b20f4f160 100644 --- a/service/codecommit/types/errors.go +++ b/service/codecommit/types/errors.go @@ -11,6 +11,8 @@ import ( type ActorDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "ActorDoesNotExistException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ApprovalRuleContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleContentRequiredException) ErrorCode() string { - return "ApprovalRuleContentRequiredException" + if e.Code == nil { + return "ApprovalRuleContentRequiredException" + } + return *e.Code } func (e *ApprovalRuleContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *ApprovalRuleContentRequiredException) ErrorFault() smithy.ErrorFault { type ApprovalRuleDoesNotExistException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *ApprovalRuleDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleDoesNotExistException) ErrorCode() string { - return "ApprovalRuleDoesNotExistException" + if e.Code == nil { + return "ApprovalRuleDoesNotExistException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -89,7 +108,10 @@ func (e *ApprovalRuleNameAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleNameAlreadyExistsException) ErrorCode() string { - return "ApprovalRuleNameAlreadyExistsException" + if e.Code == nil { + return "ApprovalRuleNameAlreadyExistsException" + } + return *e.Code } func (e *ApprovalRuleNameAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -99,6 +121,8 @@ func (e *ApprovalRuleNameAlreadyExistsException) ErrorFault() smithy.ErrorFault type ApprovalRuleNameRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -112,7 +136,10 @@ func (e *ApprovalRuleNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleNameRequiredException) ErrorCode() string { - return "ApprovalRuleNameRequiredException" + if e.Code == nil { + return "ApprovalRuleNameRequiredException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -134,7 +163,10 @@ func (e *ApprovalRuleTemplateContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateContentRequiredException) ErrorCode() string { - return "ApprovalRuleTemplateContentRequiredException" + if e.Code == nil { + return "ApprovalRuleTemplateContentRequiredException" + } + return *e.Code } func (e *ApprovalRuleTemplateContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -146,6 +178,8 @@ func (e *ApprovalRuleTemplateContentRequiredException) ErrorFault() smithy.Error type ApprovalRuleTemplateDoesNotExistException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -159,7 +193,10 @@ func (e *ApprovalRuleTemplateDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateDoesNotExistException) ErrorCode() string { - return "ApprovalRuleTemplateDoesNotExistException" + if e.Code == nil { + return "ApprovalRuleTemplateDoesNotExistException" + } + return *e.Code } func (e *ApprovalRuleTemplateDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -171,6 +208,8 @@ func (e *ApprovalRuleTemplateDoesNotExistException) ErrorFault() smithy.ErrorFau type ApprovalRuleTemplateInUseException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -184,7 +223,10 @@ func (e *ApprovalRuleTemplateInUseException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateInUseException) ErrorCode() string { - return "ApprovalRuleTemplateInUseException" + if e.Code == nil { + return "ApprovalRuleTemplateInUseException" + } + return *e.Code } func (e *ApprovalRuleTemplateInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -196,6 +238,8 @@ func (e *ApprovalRuleTemplateInUseException) ErrorFault() smithy.ErrorFault { type ApprovalRuleTemplateNameAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -209,7 +253,10 @@ func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorCode() string { - return "ApprovalRuleTemplateNameAlreadyExistsException" + if e.Code == nil { + return "ApprovalRuleTemplateNameAlreadyExistsException" + } + return *e.Code } func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -219,6 +266,8 @@ func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorFault() smithy.Err type ApprovalRuleTemplateNameRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -232,7 +281,10 @@ func (e *ApprovalRuleTemplateNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateNameRequiredException) ErrorCode() string { - return "ApprovalRuleTemplateNameRequiredException" + if e.Code == nil { + return "ApprovalRuleTemplateNameRequiredException" + } + return *e.Code } func (e *ApprovalRuleTemplateNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -242,6 +294,8 @@ func (e *ApprovalRuleTemplateNameRequiredException) ErrorFault() smithy.ErrorFau type ApprovalStateRequiredException struct { Message *string + Code *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.Code == nil { + return "ApprovalStateRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AuthorDoesNotExistException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -294,7 +362,10 @@ func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorMessage() string { return *e.Message } func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorCode() string { - return "BeforeCommitIdAndAfterCommitIdAreSameException" + if e.Code == nil { + return "BeforeCommitIdAndAfterCommitIdAreSameException" + } + return *e.Code } func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -304,6 +375,8 @@ func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorFault() smithy.Err type BlobIdDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "BlobIdDoesNotExistException" + } + return *e.Code +} func (e *BlobIdDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A blob ID is required, but was not specified. type BlobIdRequiredException struct { Message *string + Code *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.Code == nil { + return "BlobIdRequiredException" + } + return *e.Code +} func (e *BlobIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified branch does not exist. type BranchDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "BranchDoesNotExistException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BranchNameExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BranchNameIsTagNameException" + } + return *e.Code +} func (e *BranchNameIsTagNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A branch name is required, but was not specified. type BranchNameRequiredException struct { Message *string + Code *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.Code == nil { + return "BranchNameRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -435,7 +550,10 @@ func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorMessage() string { return *e.Message } func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorCode() string { - return "CannotDeleteApprovalRuleFromTemplateException" + if e.Code == nil { + return "CannotDeleteApprovalRuleFromTemplateException" + } + return *e.Code } func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -446,6 +564,8 @@ func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorFault() smithy.Erro type CannotModifyApprovalRuleFromTemplateException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -459,7 +579,10 @@ func (e *CannotModifyApprovalRuleFromTemplateException) ErrorMessage() string { return *e.Message } func (e *CannotModifyApprovalRuleFromTemplateException) ErrorCode() string { - return "CannotModifyApprovalRuleFromTemplateException" + if e.Code == nil { + return "CannotModifyApprovalRuleFromTemplateException" + } + return *e.Code } func (e *CannotModifyApprovalRuleFromTemplateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -473,6 +596,8 @@ func (e *CannotModifyApprovalRuleFromTemplateException) ErrorFault() smithy.Erro type ClientRequestTokenRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -486,7 +611,10 @@ func (e *ClientRequestTokenRequiredException) ErrorMessage() string { return *e.Message } func (e *ClientRequestTokenRequiredException) ErrorCode() string { - return "ClientRequestTokenRequiredException" + if e.Code == nil { + return "ClientRequestTokenRequiredException" + } + return *e.Code } func (e *ClientRequestTokenRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -497,6 +625,8 @@ func (e *ClientRequestTokenRequiredException) ErrorFault() smithy.ErrorFault { type CommentContentRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -510,7 +640,10 @@ func (e *CommentContentRequiredException) ErrorMessage() string { return *e.Message } func (e *CommentContentRequiredException) ErrorCode() string { - return "CommentContentRequiredException" + if e.Code == nil { + return "CommentContentRequiredException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -531,7 +666,10 @@ func (e *CommentContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CommentContentSizeLimitExceededException) ErrorCode() string { - return "CommentContentSizeLimitExceededException" + if e.Code == nil { + return "CommentContentSizeLimitExceededException" + } + return *e.Code } func (e *CommentContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -542,6 +680,8 @@ func (e *CommentContentSizeLimitExceededException) ErrorFault() smithy.ErrorFaul type CommentDeletedException struct { Message *string + Code *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.Code == nil { + return "CommentDeletedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CommentDoesNotExistException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CommentIdRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -614,7 +775,10 @@ func (e *CommentNotCreatedByCallerException) ErrorMessage() string { return *e.Message } func (e *CommentNotCreatedByCallerException) ErrorCode() string { - return "CommentNotCreatedByCallerException" + if e.Code == nil { + return "CommentNotCreatedByCallerException" + } + return *e.Code } func (e *CommentNotCreatedByCallerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -625,6 +789,8 @@ func (e *CommentNotCreatedByCallerException) ErrorFault() smithy.ErrorFault { type CommitDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "CommitDoesNotExistException" + } + return *e.Code +} func (e *CommitDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified commit ID does not exist. type CommitIdDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "CommitIdDoesNotExistException" + } + return *e.Code +} func (e *CommitIdDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A commit ID was not specified. type CommitIdRequiredException struct { Message *string + Code *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.Code == nil { + return "CommitIdRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -696,7 +883,10 @@ func (e *CommitIdsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CommitIdsLimitExceededException) ErrorCode() string { - return "CommitIdsLimitExceededException" + if e.Code == nil { + return "CommitIdsLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "CommitIdsListRequiredException" + } + return *e.Code +} func (e *CommitIdsListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The commit message is too long. Provide a shorter string. type CommitMessageLengthExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -737,7 +936,10 @@ func (e *CommitMessageLengthExceededException) ErrorMessage() string { return *e.Message } func (e *CommitMessageLengthExceededException) ErrorCode() string { - return "CommitMessageLengthExceededException" + if e.Code == nil { + return "CommitMessageLengthExceededException" + } + return *e.Code } func (e *CommitMessageLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -747,6 +949,8 @@ func (e *CommitMessageLengthExceededException) ErrorFault() smithy.ErrorFault { type CommitRequiredException struct { Message *string + Code *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.Code == nil { + return "CommitRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -781,7 +992,10 @@ func (e *ConcurrentReferenceUpdateException) ErrorMessage() string { return *e.Message } func (e *ConcurrentReferenceUpdateException) ErrorCode() string { - return "ConcurrentReferenceUpdateException" + if e.Code == nil { + return "ConcurrentReferenceUpdateException" + } + return *e.Code } func (e *ConcurrentReferenceUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -793,6 +1007,8 @@ func (e *ConcurrentReferenceUpdateException) ErrorFault() smithy.ErrorFault { type DefaultBranchCannotBeDeletedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -806,7 +1022,10 @@ func (e *DefaultBranchCannotBeDeletedException) ErrorMessage() string { return *e.Message } func (e *DefaultBranchCannotBeDeletedException) ErrorCode() string { - return "DefaultBranchCannotBeDeletedException" + if e.Code == nil { + return "DefaultBranchCannotBeDeletedException" + } + return *e.Code } func (e *DefaultBranchCannotBeDeletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -818,6 +1037,8 @@ func (e *DefaultBranchCannotBeDeletedException) ErrorFault() smithy.ErrorFault { type DirectoryNameConflictsWithFileNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -831,7 +1052,10 @@ func (e *DirectoryNameConflictsWithFileNameException) ErrorMessage() string { return *e.Message } func (e *DirectoryNameConflictsWithFileNameException) ErrorCode() string { - return "DirectoryNameConflictsWithFileNameException" + if e.Code == nil { + return "DirectoryNameConflictsWithFileNameException" + } + return *e.Code } func (e *DirectoryNameConflictsWithFileNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -841,6 +1065,8 @@ func (e *DirectoryNameConflictsWithFileNameException) ErrorFault() smithy.ErrorF type EncryptionIntegrityChecksFailedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -854,7 +1080,10 @@ func (e *EncryptionIntegrityChecksFailedException) ErrorMessage() string { return *e.Message } func (e *EncryptionIntegrityChecksFailedException) ErrorCode() string { - return "EncryptionIntegrityChecksFailedException" + if e.Code == nil { + return "EncryptionIntegrityChecksFailedException" + } + return *e.Code } func (e *EncryptionIntegrityChecksFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -864,6 +1093,8 @@ func (e *EncryptionIntegrityChecksFailedException) ErrorFault() smithy.ErrorFaul type EncryptionKeyAccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -877,7 +1108,10 @@ func (e *EncryptionKeyAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyAccessDeniedException) ErrorCode() string { - return "EncryptionKeyAccessDeniedException" + if e.Code == nil { + return "EncryptionKeyAccessDeniedException" + } + return *e.Code } func (e *EncryptionKeyAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -887,6 +1121,8 @@ func (e *EncryptionKeyAccessDeniedException) ErrorFault() smithy.ErrorFault { type EncryptionKeyDisabledException struct { Message *string + Code *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.Code == nil { + return "EncryptionKeyDisabledException" + } + return *e.Code +} func (e *EncryptionKeyDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No encryption key was found. type EncryptionKeyNotFoundException struct { Message *string + Code *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.Code == nil { + return "EncryptionKeyNotFoundException" + } + return *e.Code +} func (e *EncryptionKeyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The encryption key is not available. type EncryptionKeyUnavailableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -938,7 +1188,10 @@ func (e *EncryptionKeyUnavailableException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyUnavailableException) ErrorCode() string { - return "EncryptionKeyUnavailableException" + if e.Code == nil { + return "EncryptionKeyUnavailableException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -961,7 +1216,10 @@ func (e *FileContentAndSourceFileSpecifiedException) ErrorMessage() string { return *e.Message } func (e *FileContentAndSourceFileSpecifiedException) ErrorCode() string { - return "FileContentAndSourceFileSpecifiedException" + if e.Code == nil { + return "FileContentAndSourceFileSpecifiedException" + } + return *e.Code } func (e *FileContentAndSourceFileSpecifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -972,6 +1230,8 @@ func (e *FileContentAndSourceFileSpecifiedException) ErrorFault() smithy.ErrorFa type FileContentRequiredException struct { Message *string + Code *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.Code == nil { + return "FileContentRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1006,7 +1273,10 @@ func (e *FileContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FileContentSizeLimitExceededException) ErrorCode() string { - return "FileContentSizeLimitExceededException" + if e.Code == nil { + return "FileContentSizeLimitExceededException" + } + return *e.Code } func (e *FileContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1017,6 +1287,8 @@ func (e *FileContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { type FileDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "FileDoesNotExistException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FileEntryRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FileModeRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1091,7 +1384,10 @@ func (e *FileNameConflictsWithDirectoryNameException) ErrorMessage() string { return *e.Message } func (e *FileNameConflictsWithDirectoryNameException) ErrorCode() string { - return "FileNameConflictsWithDirectoryNameException" + if e.Code == nil { + return "FileNameConflictsWithDirectoryNameException" + } + return *e.Code } func (e *FileNameConflictsWithDirectoryNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1103,6 +1399,8 @@ func (e *FileNameConflictsWithDirectoryNameException) ErrorFault() smithy.ErrorF type FilePathConflictsWithSubmodulePathException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1116,7 +1414,10 @@ func (e *FilePathConflictsWithSubmodulePathException) ErrorMessage() string { return *e.Message } func (e *FilePathConflictsWithSubmodulePathException) ErrorCode() string { - return "FilePathConflictsWithSubmodulePathException" + if e.Code == nil { + return "FilePathConflictsWithSubmodulePathException" + } + return *e.Code } func (e *FilePathConflictsWithSubmodulePathException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1128,6 +1429,8 @@ func (e *FilePathConflictsWithSubmodulePathException) ErrorFault() smithy.ErrorF type FileTooLargeException struct { Message *string + Code *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.Code == nil { + return "FileTooLargeException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1163,7 +1473,10 @@ func (e *FolderContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FolderContentSizeLimitExceededException) ErrorCode() string { - return "FolderContentSizeLimitExceededException" + if e.Code == nil { + return "FolderContentSizeLimitExceededException" + } + return *e.Code } func (e *FolderContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1174,6 +1487,8 @@ func (e *FolderContentSizeLimitExceededException) ErrorFault() smithy.ErrorFault type FolderDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "FolderDoesNotExistException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1207,7 +1529,10 @@ func (e *IdempotencyParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotencyParameterMismatchException) ErrorCode() string { - return "IdempotencyParameterMismatchException" + if e.Code == nil { + return "IdempotencyParameterMismatchException" + } + return *e.Code } func (e *IdempotencyParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1219,6 +1544,8 @@ func (e *IdempotencyParameterMismatchException) ErrorFault() smithy.ErrorFault { type InvalidActorArnException struct { Message *string + Code *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.Code == nil { + return "InvalidActorArnException" + } + return *e.Code +} func (e *InvalidActorArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The content for the approval rule is not valid. type InvalidApprovalRuleContentException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1251,7 +1585,10 @@ func (e *InvalidApprovalRuleContentException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleContentException) ErrorCode() string { - return "InvalidApprovalRuleContentException" + if e.Code == nil { + return "InvalidApprovalRuleContentException" + } + return *e.Code } func (e *InvalidApprovalRuleContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1261,6 +1598,8 @@ func (e *InvalidApprovalRuleContentException) ErrorFault() smithy.ErrorFault { type InvalidApprovalRuleNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1274,7 +1613,10 @@ func (e *InvalidApprovalRuleNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleNameException) ErrorCode() string { - return "InvalidApprovalRuleNameException" + if e.Code == nil { + return "InvalidApprovalRuleNameException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1295,7 +1639,10 @@ func (e *InvalidApprovalRuleTemplateContentException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleTemplateContentException) ErrorCode() string { - return "InvalidApprovalRuleTemplateContentException" + if e.Code == nil { + return "InvalidApprovalRuleTemplateContentException" + } + return *e.Code } func (e *InvalidApprovalRuleTemplateContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1308,6 +1655,8 @@ func (e *InvalidApprovalRuleTemplateContentException) ErrorFault() smithy.ErrorF type InvalidApprovalRuleTemplateDescriptionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1321,7 +1670,10 @@ func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorMessage() string return *e.Message } func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorCode() string { - return "InvalidApprovalRuleTemplateDescriptionException" + if e.Code == nil { + return "InvalidApprovalRuleTemplateDescriptionException" + } + return *e.Code } func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1334,6 +1686,8 @@ func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorFault() smithy.Er type InvalidApprovalRuleTemplateNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1347,7 +1701,10 @@ func (e *InvalidApprovalRuleTemplateNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleTemplateNameException) ErrorCode() string { - return "InvalidApprovalRuleTemplateNameException" + if e.Code == nil { + return "InvalidApprovalRuleTemplateNameException" + } + return *e.Code } func (e *InvalidApprovalRuleTemplateNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1358,6 +1715,8 @@ func (e *InvalidApprovalRuleTemplateNameException) ErrorFault() smithy.ErrorFaul type InvalidApprovalStateException struct { Message *string + Code *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.Code == nil { + return "InvalidApprovalStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAuthorArnException" + } + return *e.Code +} func (e *InvalidAuthorArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified blob is not valid. type InvalidBlobIdException struct { Message *string + Code *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.Code == nil { + return "InvalidBlobIdException" + } + return *e.Code +} func (e *InvalidBlobIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reference name is not valid. type InvalidBranchNameException struct { Message *string + Code *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.Code == nil { + return "InvalidBranchNameException" + } + return *e.Code +} func (e *InvalidBranchNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client request token is not valid. type InvalidClientRequestTokenException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1448,7 +1835,10 @@ func (e *InvalidClientRequestTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidClientRequestTokenException) ErrorCode() string { - return "InvalidClientRequestTokenException" + if e.Code == nil { + return "InvalidClientRequestTokenException" + } + return *e.Code } func (e *InvalidClientRequestTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1459,6 +1849,8 @@ func (e *InvalidClientRequestTokenException) ErrorFault() smithy.ErrorFault { type InvalidCommentIdException struct { Message *string + Code *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.Code == nil { + return "InvalidCommentIdException" + } + return *e.Code +} func (e *InvalidCommentIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified commit is not valid. type InvalidCommitException struct { Message *string + Code *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.Code == nil { + return "InvalidCommitException" + } + return *e.Code +} func (e *InvalidCommitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified commit ID is not valid. type InvalidCommitIdException struct { Message *string + Code *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.Code == nil { + return "InvalidCommitIdException" + } + return *e.Code +} func (e *InvalidCommitIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified conflict detail level is not valid. type InvalidConflictDetailLevelException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1529,7 +1942,10 @@ func (e *InvalidConflictDetailLevelException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictDetailLevelException) ErrorCode() string { - return "InvalidConflictDetailLevelException" + if e.Code == nil { + return "InvalidConflictDetailLevelException" + } + return *e.Code } func (e *InvalidConflictDetailLevelException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1539,6 +1955,8 @@ func (e *InvalidConflictDetailLevelException) ErrorFault() smithy.ErrorFault { type InvalidConflictResolutionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1552,7 +1970,10 @@ func (e *InvalidConflictResolutionException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictResolutionException) ErrorCode() string { - return "InvalidConflictResolutionException" + if e.Code == nil { + return "InvalidConflictResolutionException" + } + return *e.Code } func (e *InvalidConflictResolutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1562,6 +1983,8 @@ func (e *InvalidConflictResolutionException) ErrorFault() smithy.ErrorFault { type InvalidConflictResolutionStrategyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1575,7 +1998,10 @@ func (e *InvalidConflictResolutionStrategyException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictResolutionStrategyException) ErrorCode() string { - return "InvalidConflictResolutionStrategyException" + if e.Code == nil { + return "InvalidConflictResolutionStrategyException" + } + return *e.Code } func (e *InvalidConflictResolutionStrategyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1585,6 +2011,8 @@ func (e *InvalidConflictResolutionStrategyException) ErrorFault() smithy.ErrorFa type InvalidContinuationTokenException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1598,7 +2026,10 @@ func (e *InvalidContinuationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidContinuationTokenException) ErrorCode() string { - return "InvalidContinuationTokenException" + if e.Code == nil { + return "InvalidContinuationTokenException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1619,7 +2052,10 @@ func (e *InvalidDeletionParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidDeletionParameterException) ErrorCode() string { - return "InvalidDeletionParameterException" + if e.Code == nil { + return "InvalidDeletionParameterException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidDescriptionException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1661,7 +2106,10 @@ func (e *InvalidDestinationCommitSpecifierException) ErrorMessage() string { return *e.Message } func (e *InvalidDestinationCommitSpecifierException) ErrorCode() string { - return "InvalidDestinationCommitSpecifierException" + if e.Code == nil { + return "InvalidDestinationCommitSpecifierException" + } + return *e.Code } func (e *InvalidDestinationCommitSpecifierException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1673,6 +2121,8 @@ func (e *InvalidDestinationCommitSpecifierException) ErrorFault() smithy.ErrorFa type InvalidEmailException struct { Message *string + Code *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.Code == nil { + return "InvalidEmailException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFileLocationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFileModeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFilePositionException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1765,7 +2243,10 @@ func (e *InvalidMaxConflictFilesException) ErrorMessage() string { return *e.Message } func (e *InvalidMaxConflictFilesException) ErrorCode() string { - return "InvalidMaxConflictFilesException" + if e.Code == nil { + return "InvalidMaxConflictFilesException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidMaxMergeHunksException" + } + return *e.Code +} func (e *InvalidMaxMergeHunksException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified number of maximum results is not valid. type InvalidMaxResultsException struct { Message *string + Code *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.Code == nil { + return "InvalidMaxResultsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidMergeOptionException" + } + return *e.Code +} func (e *InvalidMergeOptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified sort order is not valid. type InvalidOrderException struct { Message *string + Code *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.Code == nil { + return "InvalidOrderException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOverrideStatusException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParentCommitIdException" + } + return *e.Code +} func (e *InvalidParentCommitIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified path is not valid. type InvalidPathException struct { Message *string + Code *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.Code == nil { + return "InvalidPathException" + } + return *e.Code +} func (e *InvalidPathException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pull request event type is not valid. type InvalidPullRequestEventTypeException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1922,7 +2454,10 @@ func (e *InvalidPullRequestEventTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestEventTypeException) ErrorCode() string { - return "InvalidPullRequestEventTypeException" + if e.Code == nil { + return "InvalidPullRequestEventTypeException" + } + return *e.Code } func (e *InvalidPullRequestEventTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1933,6 +2468,8 @@ func (e *InvalidPullRequestEventTypeException) ErrorFault() smithy.ErrorFault { type InvalidPullRequestIdException struct { Message *string + Code *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.Code == nil { + return "InvalidPullRequestIdException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1965,7 +2509,10 @@ func (e *InvalidPullRequestStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestStatusException) ErrorCode() string { - return "InvalidPullRequestStatusException" + if e.Code == nil { + return "InvalidPullRequestStatusException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1987,7 +2536,10 @@ func (e *InvalidPullRequestStatusUpdateException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestStatusUpdateException) ErrorCode() string { - return "InvalidPullRequestStatusUpdateException" + if e.Code == nil { + return "InvalidPullRequestStatusUpdateException" + } + return *e.Code } func (e *InvalidPullRequestStatusUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1997,6 +2549,8 @@ func (e *InvalidPullRequestStatusUpdateException) ErrorFault() smithy.ErrorFault type InvalidReactionUserArnException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2010,7 +2564,10 @@ func (e *InvalidReactionUserArnException) ErrorMessage() string { return *e.Message } func (e *InvalidReactionUserArnException) ErrorCode() string { - return "InvalidReactionUserArnException" + if e.Code == nil { + return "InvalidReactionUserArnException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidReactionValueException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidReferenceNameException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2076,7 +2649,10 @@ func (e *InvalidRelativeFileVersionEnumException) ErrorMessage() string { return *e.Message } func (e *InvalidRelativeFileVersionEnumException) ErrorCode() string { - return "InvalidRelativeFileVersionEnumException" + if e.Code == nil { + return "InvalidRelativeFileVersionEnumException" + } + return *e.Code } func (e *InvalidRelativeFileVersionEnumException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2087,6 +2663,8 @@ func (e *InvalidRelativeFileVersionEnumException) ErrorFault() smithy.ErrorFault type InvalidReplacementContentException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2100,7 +2678,10 @@ func (e *InvalidReplacementContentException) ErrorMessage() string { return *e.Message } func (e *InvalidReplacementContentException) ErrorCode() string { - return "InvalidReplacementContentException" + if e.Code == nil { + return "InvalidReplacementContentException" + } + return *e.Code } func (e *InvalidReplacementContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2111,6 +2692,8 @@ func (e *InvalidReplacementContentException) ErrorFault() smithy.ErrorFault { type InvalidReplacementTypeException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2124,7 +2707,10 @@ func (e *InvalidReplacementTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidReplacementTypeException) ErrorCode() string { - return "InvalidReplacementTypeException" + if e.Code == nil { + return "InvalidReplacementTypeException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -2145,7 +2733,10 @@ func (e *InvalidRepositoryDescriptionException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryDescriptionException) ErrorCode() string { - return "InvalidRepositoryDescriptionException" + if e.Code == nil { + return "InvalidRepositoryDescriptionException" + } + return *e.Code } func (e *InvalidRepositoryDescriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2157,6 +2748,8 @@ func (e *InvalidRepositoryDescriptionException) ErrorFault() smithy.ErrorFault { type InvalidRepositoryNameException struct { Message *string + Code *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.Code == nil { + return "InvalidRepositoryNameException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2189,7 +2789,10 @@ func (e *InvalidRepositoryTriggerBranchNameException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerBranchNameException) ErrorCode() string { - return "InvalidRepositoryTriggerBranchNameException" + if e.Code == nil { + return "InvalidRepositoryTriggerBranchNameException" + } + return *e.Code } func (e *InvalidRepositoryTriggerBranchNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2199,6 +2802,8 @@ func (e *InvalidRepositoryTriggerBranchNameException) ErrorFault() smithy.ErrorF type InvalidRepositoryTriggerCustomDataException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2212,7 +2817,10 @@ func (e *InvalidRepositoryTriggerCustomDataException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerCustomDataException) ErrorCode() string { - return "InvalidRepositoryTriggerCustomDataException" + if e.Code == nil { + return "InvalidRepositoryTriggerCustomDataException" + } + return *e.Code } func (e *InvalidRepositoryTriggerCustomDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2224,6 +2832,8 @@ func (e *InvalidRepositoryTriggerCustomDataException) ErrorFault() smithy.ErrorF type InvalidRepositoryTriggerDestinationArnException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2237,7 +2847,10 @@ func (e *InvalidRepositoryTriggerDestinationArnException) ErrorMessage() string return *e.Message } func (e *InvalidRepositoryTriggerDestinationArnException) ErrorCode() string { - return "InvalidRepositoryTriggerDestinationArnException" + if e.Code == nil { + return "InvalidRepositoryTriggerDestinationArnException" + } + return *e.Code } func (e *InvalidRepositoryTriggerDestinationArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2248,6 +2861,8 @@ func (e *InvalidRepositoryTriggerDestinationArnException) ErrorFault() smithy.Er type InvalidRepositoryTriggerEventsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2261,7 +2876,10 @@ func (e *InvalidRepositoryTriggerEventsException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerEventsException) ErrorCode() string { - return "InvalidRepositoryTriggerEventsException" + if e.Code == nil { + return "InvalidRepositoryTriggerEventsException" + } + return *e.Code } func (e *InvalidRepositoryTriggerEventsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2271,6 +2889,8 @@ func (e *InvalidRepositoryTriggerEventsException) ErrorFault() smithy.ErrorFault type InvalidRepositoryTriggerNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2284,7 +2904,10 @@ func (e *InvalidRepositoryTriggerNameException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerNameException) ErrorCode() string { - return "InvalidRepositoryTriggerNameException" + if e.Code == nil { + return "InvalidRepositoryTriggerNameException" + } + return *e.Code } func (e *InvalidRepositoryTriggerNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2296,6 +2919,8 @@ func (e *InvalidRepositoryTriggerNameException) ErrorFault() smithy.ErrorFault { type InvalidRepositoryTriggerRegionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2309,7 +2934,10 @@ func (e *InvalidRepositoryTriggerRegionException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerRegionException) ErrorCode() string { - return "InvalidRepositoryTriggerRegionException" + if e.Code == nil { + return "InvalidRepositoryTriggerRegionException" + } + return *e.Code } func (e *InvalidRepositoryTriggerRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2322,6 +2950,8 @@ func (e *InvalidRepositoryTriggerRegionException) ErrorFault() smithy.ErrorFault type InvalidResourceArnException struct { Message *string + Code *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.Code == nil { + return "InvalidResourceArnException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRevisionIdException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2373,7 +3017,10 @@ func (e *InvalidRuleContentSha256Exception) ErrorMessage() string { return *e.Message } func (e *InvalidRuleContentSha256Exception) ErrorCode() string { - return "InvalidRuleContentSha256Exception" + if e.Code == nil { + return "InvalidRuleContentSha256Exception" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidSortByException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2414,7 +3070,10 @@ func (e *InvalidSourceCommitSpecifierException) ErrorMessage() string { return *e.Message } func (e *InvalidSourceCommitSpecifierException) ErrorCode() string { - return "InvalidSourceCommitSpecifierException" + if e.Code == nil { + return "InvalidSourceCommitSpecifierException" + } + return *e.Code } func (e *InvalidSourceCommitSpecifierException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2424,6 +3083,8 @@ func (e *InvalidSourceCommitSpecifierException) ErrorFault() smithy.ErrorFault { type InvalidSystemTagUsageException struct { Message *string + Code *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.Code == nil { + return "InvalidSystemTagUsageException" + } + return *e.Code +} func (e *InvalidSystemTagUsageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The list of tags is not valid. type InvalidTagKeysListException struct { Message *string + Code *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.Code == nil { + return "InvalidTagKeysListException" + } + return *e.Code +} func (e *InvalidTagKeysListException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The map of tags is not valid. type InvalidTagsMapException struct { Message *string + Code *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.Code == nil { + return "InvalidTagsMapException" + } + return *e.Code +} func (e *InvalidTagsMapException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified target branch is not valid. type InvalidTargetBranchException struct { Message *string + Code *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.Code == nil { + return "InvalidTargetBranchException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTargetException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTargetsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTitleException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ManualMergeRequiredException" + } + return *e.Code +} func (e *ManualMergeRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of branches for the trigger was exceeded. type MaximumBranchesExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2596,7 +3313,10 @@ func (e *MaximumBranchesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumBranchesExceededException) ErrorCode() string { - return "MaximumBranchesExceededException" + if e.Code == nil { + return "MaximumBranchesExceededException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -2617,7 +3339,10 @@ func (e *MaximumConflictResolutionEntriesExceededException) ErrorMessage() strin return *e.Message } func (e *MaximumConflictResolutionEntriesExceededException) ErrorCode() string { - return "MaximumConflictResolutionEntriesExceededException" + if e.Code == nil { + return "MaximumConflictResolutionEntriesExceededException" + } + return *e.Code } func (e *MaximumConflictResolutionEntriesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2627,6 +3352,8 @@ func (e *MaximumConflictResolutionEntriesExceededException) ErrorFault() smithy. type MaximumFileContentToLoadExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2640,7 +3367,10 @@ func (e *MaximumFileContentToLoadExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumFileContentToLoadExceededException) ErrorCode() string { - return "MaximumFileContentToLoadExceededException" + if e.Code == nil { + return "MaximumFileContentToLoadExceededException" + } + return *e.Code } func (e *MaximumFileContentToLoadExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2652,6 +3382,8 @@ func (e *MaximumFileContentToLoadExceededException) ErrorFault() smithy.ErrorFau type MaximumFileEntriesExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2665,7 +3397,10 @@ func (e *MaximumFileEntriesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumFileEntriesExceededException) ErrorCode() string { - return "MaximumFileEntriesExceededException" + if e.Code == nil { + return "MaximumFileEntriesExceededException" + } + return *e.Code } func (e *MaximumFileEntriesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2676,6 +3411,8 @@ func (e *MaximumFileEntriesExceededException) ErrorFault() smithy.ErrorFault { type MaximumItemsToCompareExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2689,7 +3426,10 @@ func (e *MaximumItemsToCompareExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumItemsToCompareExceededException) ErrorCode() string { - return "MaximumItemsToCompareExceededException" + if e.Code == nil { + return "MaximumItemsToCompareExceededException" + } + return *e.Code } func (e *MaximumItemsToCompareExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2700,6 +3440,8 @@ func (e *MaximumItemsToCompareExceededException) ErrorFault() smithy.ErrorFault type MaximumNumberOfApprovalsExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2713,7 +3455,10 @@ func (e *MaximumNumberOfApprovalsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumNumberOfApprovalsExceededException) ErrorCode() string { - return "MaximumNumberOfApprovalsExceededException" + if e.Code == nil { + return "MaximumNumberOfApprovalsExceededException" + } + return *e.Code } func (e *MaximumNumberOfApprovalsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2725,6 +3470,8 @@ func (e *MaximumNumberOfApprovalsExceededException) ErrorFault() smithy.ErrorFau type MaximumOpenPullRequestsExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2738,7 +3485,10 @@ func (e *MaximumOpenPullRequestsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumOpenPullRequestsExceededException) ErrorCode() string { - return "MaximumOpenPullRequestsExceededException" + if e.Code == nil { + return "MaximumOpenPullRequestsExceededException" + } + return *e.Code } func (e *MaximumOpenPullRequestsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2749,6 +3499,8 @@ func (e *MaximumOpenPullRequestsExceededException) ErrorFault() smithy.ErrorFaul type MaximumRepositoryNamesExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2762,7 +3514,10 @@ func (e *MaximumRepositoryNamesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumRepositoryNamesExceededException) ErrorCode() string { - return "MaximumRepositoryNamesExceededException" + if e.Code == nil { + return "MaximumRepositoryNamesExceededException" + } + return *e.Code } func (e *MaximumRepositoryNamesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2772,6 +3527,8 @@ func (e *MaximumRepositoryNamesExceededException) ErrorFault() smithy.ErrorFault type MaximumRepositoryTriggersExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2785,7 +3542,10 @@ func (e *MaximumRepositoryTriggersExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumRepositoryTriggersExceededException) ErrorCode() string { - return "MaximumRepositoryTriggersExceededException" + if e.Code == nil { + return "MaximumRepositoryTriggersExceededException" + } + return *e.Code } func (e *MaximumRepositoryTriggersExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2797,6 +3557,8 @@ func (e *MaximumRepositoryTriggersExceededException) ErrorFault() smithy.ErrorFa type MaximumRuleTemplatesAssociatedWithRepositoryException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2810,7 +3572,10 @@ func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorMessage() s return *e.Message } func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorCode() string { - return "MaximumRuleTemplatesAssociatedWithRepositoryException" + if e.Code == nil { + return "MaximumRuleTemplatesAssociatedWithRepositoryException" + } + return *e.Code } func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2820,6 +3585,8 @@ func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorFault() smi type MergeOptionRequiredException struct { Message *string + Code *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.Code == nil { + return "MergeOptionRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2853,7 +3627,10 @@ func (e *MultipleConflictResolutionEntriesException) ErrorMessage() string { return *e.Message } func (e *MultipleConflictResolutionEntriesException) ErrorCode() string { - return "MultipleConflictResolutionEntriesException" + if e.Code == nil { + return "MultipleConflictResolutionEntriesException" + } + return *e.Code } func (e *MultipleConflictResolutionEntriesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2864,6 +3641,8 @@ func (e *MultipleConflictResolutionEntriesException) ErrorFault() smithy.ErrorFa type MultipleRepositoriesInPullRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2877,7 +3656,10 @@ func (e *MultipleRepositoriesInPullRequestException) ErrorMessage() string { return *e.Message } func (e *MultipleRepositoriesInPullRequestException) ErrorCode() string { - return "MultipleRepositoriesInPullRequestException" + if e.Code == nil { + return "MultipleRepositoriesInPullRequestException" + } + return *e.Code } func (e *MultipleRepositoriesInPullRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2888,6 +3670,8 @@ func (e *MultipleRepositoriesInPullRequestException) ErrorFault() smithy.ErrorFa type NameLengthExceededException struct { Message *string + Code *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.Code == nil { + return "NameLengthExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoChangeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NumberOfRulesExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2961,7 +3766,10 @@ func (e *NumberOfRuleTemplatesExceededException) ErrorMessage() string { return *e.Message } func (e *NumberOfRuleTemplatesExceededException) ErrorCode() string { - return "NumberOfRuleTemplatesExceededException" + if e.Code == nil { + return "NumberOfRuleTemplatesExceededException" + } + return *e.Code } func (e *NumberOfRuleTemplatesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2971,6 +3779,8 @@ func (e *NumberOfRuleTemplatesExceededException) ErrorFault() smithy.ErrorFault type OverrideAlreadySetException struct { Message *string + Code *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.Code == nil { + return "OverrideAlreadySetException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -3004,7 +3821,10 @@ func (e *OverrideStatusRequiredException) ErrorMessage() string { return *e.Message } func (e *OverrideStatusRequiredException) ErrorCode() string { - return "OverrideStatusRequiredException" + if e.Code == nil { + return "OverrideStatusRequiredException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3026,7 +3848,10 @@ func (e *ParentCommitDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ParentCommitDoesNotExistException) ErrorCode() string { - return "ParentCommitDoesNotExistException" + if e.Code == nil { + return "ParentCommitDoesNotExistException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3049,7 +3876,10 @@ func (e *ParentCommitIdOutdatedException) ErrorMessage() string { return *e.Message } func (e *ParentCommitIdOutdatedException) ErrorCode() string { - return "ParentCommitIdOutdatedException" + if e.Code == nil { + return "ParentCommitIdOutdatedException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3071,7 +3903,10 @@ func (e *ParentCommitIdRequiredException) ErrorMessage() string { return *e.Message } func (e *ParentCommitIdRequiredException) ErrorCode() string { - return "ParentCommitIdRequiredException" + if e.Code == nil { + return "ParentCommitIdRequiredException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "PathDoesNotExistException" + } + return *e.Code +} func (e *PathDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The folderPath for a location cannot be null. type PathRequiredException struct { Message *string + Code *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.Code == nil { + return "PathRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -3130,7 +3981,10 @@ func (e *PullRequestAlreadyClosedException) ErrorMessage() string { return *e.Message } func (e *PullRequestAlreadyClosedException) ErrorCode() string { - return "PullRequestAlreadyClosedException" + if e.Code == nil { + return "PullRequestAlreadyClosedException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3152,7 +4008,10 @@ func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorMessage() string { return *e.Message } func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorCode() string { - return "PullRequestApprovalRulesNotSatisfiedException" + if e.Code == nil { + return "PullRequestApprovalRulesNotSatisfiedException" + } + return *e.Code } func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3164,6 +4023,8 @@ func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorFault() smithy.Erro type PullRequestCannotBeApprovedByAuthorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3177,7 +4038,10 @@ func (e *PullRequestCannotBeApprovedByAuthorException) ErrorMessage() string { return *e.Message } func (e *PullRequestCannotBeApprovedByAuthorException) ErrorCode() string { - return "PullRequestCannotBeApprovedByAuthorException" + if e.Code == nil { + return "PullRequestCannotBeApprovedByAuthorException" + } + return *e.Code } func (e *PullRequestCannotBeApprovedByAuthorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3188,6 +4052,8 @@ func (e *PullRequestCannotBeApprovedByAuthorException) ErrorFault() smithy.Error type PullRequestDoesNotExistException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3201,7 +4067,10 @@ func (e *PullRequestDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *PullRequestDoesNotExistException) ErrorCode() string { - return "PullRequestDoesNotExistException" + if e.Code == nil { + return "PullRequestDoesNotExistException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "PullRequestIdRequiredException" + } + return *e.Code +} func (e *PullRequestIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A pull request status is required, but none was provided. type PullRequestStatusRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3241,7 +4119,10 @@ func (e *PullRequestStatusRequiredException) ErrorMessage() string { return *e.Message } func (e *PullRequestStatusRequiredException) ErrorCode() string { - return "PullRequestStatusRequiredException" + if e.Code == nil { + return "PullRequestStatusRequiredException" + } + return *e.Code } func (e *PullRequestStatusRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3252,6 +4133,8 @@ func (e *PullRequestStatusRequiredException) ErrorFault() smithy.ErrorFault { type PutFileEntryConflictException struct { Message *string + Code *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.Code == nil { + return "PutFileEntryConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReactionLimitExceededException" + } + return *e.Code +} func (e *ReactionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A reaction value is required. type ReactionValueRequiredException struct { Message *string + Code *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.Code == nil { + return "ReactionValueRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReferenceDoesNotExistException" + } + return *e.Code +} func (e *ReferenceDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A reference name is required, but none was provided. type ReferenceNameRequiredException struct { Message *string + Code *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.Code == nil { + return "ReferenceNameRequiredException" + } + return *e.Code +} func (e *ReferenceNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reference is not a supported type. type ReferenceTypeNotSupportedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3361,7 +4279,10 @@ func (e *ReferenceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ReferenceTypeNotSupportedException) ErrorCode() string { - return "ReferenceTypeNotSupportedException" + if e.Code == nil { + return "ReferenceTypeNotSupportedException" + } + return *e.Code } func (e *ReferenceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3371,6 +4292,8 @@ func (e *ReferenceTypeNotSupportedException) ErrorFault() smithy.ErrorFault { type ReplacementContentRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3384,7 +4307,10 @@ func (e *ReplacementContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ReplacementContentRequiredException) ErrorCode() string { - return "ReplacementContentRequiredException" + if e.Code == nil { + return "ReplacementContentRequiredException" + } + return *e.Code } func (e *ReplacementContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3394,6 +4320,8 @@ func (e *ReplacementContentRequiredException) ErrorFault() smithy.ErrorFault { type ReplacementTypeRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3407,7 +4335,10 @@ func (e *ReplacementTypeRequiredException) ErrorMessage() string { return *e.Message } func (e *ReplacementTypeRequiredException) ErrorCode() string { - return "ReplacementTypeRequiredException" + if e.Code == nil { + return "ReplacementTypeRequiredException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3428,7 +4361,10 @@ func (e *RepositoryDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *RepositoryDoesNotExistException) ErrorCode() string { - return "RepositoryDoesNotExistException" + if e.Code == nil { + return "RepositoryDoesNotExistException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3449,7 +4387,10 @@ func (e *RepositoryLimitExceededException) ErrorMessage() string { return *e.Message } func (e *RepositoryLimitExceededException) ErrorCode() string { - return "RepositoryLimitExceededException" + if e.Code == nil { + return "RepositoryLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "RepositoryNameExistsException" + } + return *e.Code +} func (e *RepositoryNameExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A repository name is required, but was not specified. type RepositoryNameRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3489,7 +4439,10 @@ func (e *RepositoryNameRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryNameRequiredException) ErrorCode() string { - return "RepositoryNameRequiredException" + if e.Code == nil { + return "RepositoryNameRequiredException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3510,7 +4465,10 @@ func (e *RepositoryNamesRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryNamesRequiredException) ErrorCode() string { - return "RepositoryNamesRequiredException" + if e.Code == nil { + return "RepositoryNamesRequiredException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -3532,7 +4492,10 @@ func (e *RepositoryNotAssociatedWithPullRequestException) ErrorMessage() string return *e.Message } func (e *RepositoryNotAssociatedWithPullRequestException) ErrorCode() string { - return "RepositoryNotAssociatedWithPullRequestException" + if e.Code == nil { + return "RepositoryNotAssociatedWithPullRequestException" + } + return *e.Code } func (e *RepositoryNotAssociatedWithPullRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3543,6 +4506,8 @@ func (e *RepositoryNotAssociatedWithPullRequestException) ErrorFault() smithy.Er type RepositoryTriggerBranchNameListRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3556,7 +4521,10 @@ func (e *RepositoryTriggerBranchNameListRequiredException) ErrorMessage() string return *e.Message } func (e *RepositoryTriggerBranchNameListRequiredException) ErrorCode() string { - return "RepositoryTriggerBranchNameListRequiredException" + if e.Code == nil { + return "RepositoryTriggerBranchNameListRequiredException" + } + return *e.Code } func (e *RepositoryTriggerBranchNameListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3567,6 +4535,8 @@ func (e *RepositoryTriggerBranchNameListRequiredException) ErrorFault() smithy.E type RepositoryTriggerDestinationArnRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3580,7 +4550,10 @@ func (e *RepositoryTriggerDestinationArnRequiredException) ErrorMessage() string return *e.Message } func (e *RepositoryTriggerDestinationArnRequiredException) ErrorCode() string { - return "RepositoryTriggerDestinationArnRequiredException" + if e.Code == nil { + return "RepositoryTriggerDestinationArnRequiredException" + } + return *e.Code } func (e *RepositoryTriggerDestinationArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3590,6 +4563,8 @@ func (e *RepositoryTriggerDestinationArnRequiredException) ErrorFault() smithy.E type RepositoryTriggerEventsListRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3603,7 +4578,10 @@ func (e *RepositoryTriggerEventsListRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggerEventsListRequiredException) ErrorCode() string { - return "RepositoryTriggerEventsListRequiredException" + if e.Code == nil { + return "RepositoryTriggerEventsListRequiredException" + } + return *e.Code } func (e *RepositoryTriggerEventsListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3613,6 +4591,8 @@ func (e *RepositoryTriggerEventsListRequiredException) ErrorFault() smithy.Error type RepositoryTriggerNameRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3626,7 +4606,10 @@ func (e *RepositoryTriggerNameRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggerNameRequiredException) ErrorCode() string { - return "RepositoryTriggerNameRequiredException" + if e.Code == nil { + return "RepositoryTriggerNameRequiredException" + } + return *e.Code } func (e *RepositoryTriggerNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3636,6 +4619,8 @@ func (e *RepositoryTriggerNameRequiredException) ErrorFault() smithy.ErrorFault type RepositoryTriggersListRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3649,7 +4634,10 @@ func (e *RepositoryTriggersListRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggersListRequiredException) ErrorCode() string { - return "RepositoryTriggersListRequiredException" + if e.Code == nil { + return "RepositoryTriggersListRequiredException" + } + return *e.Code } func (e *RepositoryTriggersListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3663,6 +4651,8 @@ func (e *RepositoryTriggersListRequiredException) ErrorFault() smithy.ErrorFault type ResourceArnRequiredException struct { Message *string + Code *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.Code == nil { + return "ResourceArnRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RestrictedSourceFileException" + } + return *e.Code +} func (e *RestrictedSourceFileException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A revision ID is required, but was not provided. type RevisionIdRequiredException struct { Message *string + Code *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.Code == nil { + return "RevisionIdRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RevisionNotCurrentException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SameFileContentException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SamePathRequestException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -3798,7 +4830,10 @@ func (e *SourceAndDestinationAreSameException) ErrorMessage() string { return *e.Message } func (e *SourceAndDestinationAreSameException) ErrorCode() string { - return "SourceAndDestinationAreSameException" + if e.Code == nil { + return "SourceAndDestinationAreSameException" + } + return *e.Code } func (e *SourceAndDestinationAreSameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3809,6 +4844,8 @@ func (e *SourceAndDestinationAreSameException) ErrorFault() smithy.ErrorFault { type SourceFileOrContentRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3822,7 +4859,10 @@ func (e *SourceFileOrContentRequiredException) ErrorMessage() string { return *e.Message } func (e *SourceFileOrContentRequiredException) ErrorCode() string { - return "SourceFileOrContentRequiredException" + if e.Code == nil { + return "SourceFileOrContentRequiredException" + } + return *e.Code } func (e *SourceFileOrContentRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3832,6 +4872,8 @@ func (e *SourceFileOrContentRequiredException) ErrorFault() smithy.ErrorFault { type TagKeysListRequiredException struct { Message *string + Code *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.Code == nil { + return "TagKeysListRequiredException" + } + return *e.Code +} func (e *TagKeysListRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag policy is not valid. type TagPolicyException struct { Message *string + Code *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.Code == nil { + return "TagPolicyException" + } + return *e.Code +} func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A map of tags is required. type TagsMapRequiredException struct { Message *string + Code *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.Code == nil { + return "TagsMapRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TargetRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TargetsRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -3944,7 +5021,10 @@ func (e *TipOfSourceReferenceIsDifferentException) ErrorMessage() string { return *e.Message } func (e *TipOfSourceReferenceIsDifferentException) ErrorCode() string { - return "TipOfSourceReferenceIsDifferentException" + if e.Code == nil { + return "TipOfSourceReferenceIsDifferentException" + } + return *e.Code } func (e *TipOfSourceReferenceIsDifferentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -3956,6 +5036,8 @@ func (e *TipOfSourceReferenceIsDifferentException) ErrorFault() smithy.ErrorFaul type TipsDivergenceExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -3969,7 +5051,10 @@ func (e *TipsDivergenceExceededException) ErrorMessage() string { return *e.Message } func (e *TipsDivergenceExceededException) ErrorCode() string { - return "TipsDivergenceExceededException" + if e.Code == nil { + return "TipsDivergenceExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "TitleRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..cc29890c815 100644 --- a/service/codedeploy/types/errors.go +++ b/service/codedeploy/types/errors.go @@ -11,6 +11,8 @@ import ( type AlarmsLimitExceededException struct { Message *string + Code *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.Code == nil { + return "AlarmsLimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ApplicationAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApplicationAlreadyExistsException) ErrorCode() string { - return "ApplicationAlreadyExistsException" + if e.Code == nil { + return "ApplicationAlreadyExistsException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -65,7 +79,10 @@ func (e *ApplicationDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApplicationDoesNotExistException) ErrorCode() string { - return "ApplicationDoesNotExistException" + if e.Code == nil { + return "ApplicationDoesNotExistException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -86,7 +105,10 @@ func (e *ApplicationLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ApplicationLimitExceededException) ErrorCode() string { - return "ApplicationLimitExceededException" + if e.Code == nil { + return "ApplicationLimitExceededException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -107,7 +131,10 @@ func (e *ApplicationNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApplicationNameRequiredException) ErrorCode() string { - return "ApplicationNameRequiredException" + if e.Code == nil { + return "ApplicationNameRequiredException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ArnNotSupportedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BatchLimitExceededException" + } + return *e.Code +} func (e *BatchLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A bucket name is required, but was not provided. type BucketNameFilterRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -167,7 +210,10 @@ func (e *BucketNameFilterRequiredException) ErrorMessage() string { return *e.Message } func (e *BucketNameFilterRequiredException) ErrorCode() string { - return "BucketNameFilterRequiredException" + if e.Code == nil { + return "BucketNameFilterRequiredException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -188,7 +236,10 @@ func (e *DeploymentAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *DeploymentAlreadyCompletedException) ErrorCode() string { - return "DeploymentAlreadyCompletedException" + if e.Code == nil { + return "DeploymentAlreadyCompletedException" + } + return *e.Code } func (e *DeploymentAlreadyCompletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -199,6 +250,8 @@ func (e *DeploymentAlreadyCompletedException) ErrorFault() smithy.ErrorFault { type DeploymentConfigAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -212,7 +265,10 @@ func (e *DeploymentConfigAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigAlreadyExistsException) ErrorCode() string { - return "DeploymentConfigAlreadyExistsException" + if e.Code == nil { + return "DeploymentConfigAlreadyExistsException" + } + return *e.Code } func (e *DeploymentConfigAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -223,6 +279,8 @@ func (e *DeploymentConfigAlreadyExistsException) ErrorFault() smithy.ErrorFault type DeploymentConfigDoesNotExistException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -236,7 +294,10 @@ func (e *DeploymentConfigDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigDoesNotExistException) ErrorCode() string { - return "DeploymentConfigDoesNotExistException" + if e.Code == nil { + return "DeploymentConfigDoesNotExistException" + } + return *e.Code } func (e *DeploymentConfigDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -246,6 +307,8 @@ func (e *DeploymentConfigDoesNotExistException) ErrorFault() smithy.ErrorFault { type DeploymentConfigInUseException struct { Message *string + Code *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.Code == nil { + return "DeploymentConfigInUseException" + } + return *e.Code +} func (e *DeploymentConfigInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The deployment configurations limit was exceeded. type DeploymentConfigLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -278,7 +348,10 @@ func (e *DeploymentConfigLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigLimitExceededException) ErrorCode() string { - return "DeploymentConfigLimitExceededException" + if e.Code == nil { + return "DeploymentConfigLimitExceededException" + } + return *e.Code } func (e *DeploymentConfigLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -288,6 +361,8 @@ func (e *DeploymentConfigLimitExceededException) ErrorFault() smithy.ErrorFault type DeploymentConfigNameRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -301,7 +376,10 @@ func (e *DeploymentConfigNameRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigNameRequiredException) ErrorCode() string { - return "DeploymentConfigNameRequiredException" + if e.Code == nil { + return "DeploymentConfigNameRequiredException" + } + return *e.Code } func (e *DeploymentConfigNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -311,6 +389,8 @@ func (e *DeploymentConfigNameRequiredException) ErrorFault() smithy.ErrorFault { type DeploymentDoesNotExistException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -324,7 +404,10 @@ func (e *DeploymentDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentDoesNotExistException) ErrorCode() string { - return "DeploymentDoesNotExistException" + if e.Code == nil { + return "DeploymentDoesNotExistException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -346,7 +431,10 @@ func (e *DeploymentGroupAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupAlreadyExistsException) ErrorCode() string { - return "DeploymentGroupAlreadyExistsException" + if e.Code == nil { + return "DeploymentGroupAlreadyExistsException" + } + return *e.Code } func (e *DeploymentGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -357,6 +445,8 @@ func (e *DeploymentGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { type DeploymentGroupDoesNotExistException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -370,7 +460,10 @@ func (e *DeploymentGroupDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupDoesNotExistException) ErrorCode() string { - return "DeploymentGroupDoesNotExistException" + if e.Code == nil { + return "DeploymentGroupDoesNotExistException" + } + return *e.Code } func (e *DeploymentGroupDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -380,6 +473,8 @@ func (e *DeploymentGroupDoesNotExistException) ErrorFault() smithy.ErrorFault { type DeploymentGroupLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -393,7 +488,10 @@ func (e *DeploymentGroupLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupLimitExceededException) ErrorCode() string { - return "DeploymentGroupLimitExceededException" + if e.Code == nil { + return "DeploymentGroupLimitExceededException" + } + return *e.Code } func (e *DeploymentGroupLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -403,6 +501,8 @@ func (e *DeploymentGroupLimitExceededException) ErrorFault() smithy.ErrorFault { type DeploymentGroupNameRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -416,7 +516,10 @@ func (e *DeploymentGroupNameRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupNameRequiredException) ErrorCode() string { - return "DeploymentGroupNameRequiredException" + if e.Code == nil { + return "DeploymentGroupNameRequiredException" + } + return *e.Code } func (e *DeploymentGroupNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -426,6 +529,8 @@ func (e *DeploymentGroupNameRequiredException) ErrorFault() smithy.ErrorFault { type DeploymentIdRequiredException struct { Message *string + Code *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.Code == nil { + return "DeploymentIdRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -458,7 +570,10 @@ func (e *DeploymentIsNotInReadyStateException) ErrorMessage() string { return *e.Message } func (e *DeploymentIsNotInReadyStateException) ErrorCode() string { - return "DeploymentIsNotInReadyStateException" + if e.Code == nil { + return "DeploymentIsNotInReadyStateException" + } + return *e.Code } func (e *DeploymentIsNotInReadyStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -468,6 +583,8 @@ func (e *DeploymentIsNotInReadyStateException) ErrorFault() smithy.ErrorFault { type DeploymentLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -481,7 +598,10 @@ func (e *DeploymentLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentLimitExceededException) ErrorCode() string { - return "DeploymentLimitExceededException" + if e.Code == nil { + return "DeploymentLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DeploymentNotStartedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -521,7 +650,10 @@ func (e *DeploymentTargetDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetDoesNotExistException) ErrorCode() string { - return "DeploymentTargetDoesNotExistException" + if e.Code == nil { + return "DeploymentTargetDoesNotExistException" + } + return *e.Code } func (e *DeploymentTargetDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -531,6 +663,8 @@ func (e *DeploymentTargetDoesNotExistException) ErrorFault() smithy.ErrorFault { type DeploymentTargetIdRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -544,7 +678,10 @@ func (e *DeploymentTargetIdRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetIdRequiredException) ErrorCode() string { - return "DeploymentTargetIdRequiredException" + if e.Code == nil { + return "DeploymentTargetIdRequiredException" + } + return *e.Code } func (e *DeploymentTargetIdRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -557,6 +694,8 @@ func (e *DeploymentTargetIdRequiredException) ErrorFault() smithy.ErrorFault { type DeploymentTargetListSizeExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -570,7 +709,10 @@ func (e *DeploymentTargetListSizeExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetListSizeExceededException) ErrorCode() string { - return "DeploymentTargetListSizeExceededException" + if e.Code == nil { + return "DeploymentTargetListSizeExceededException" + } + return *e.Code } func (e *DeploymentTargetListSizeExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -580,6 +722,8 @@ func (e *DeploymentTargetListSizeExceededException) ErrorFault() smithy.ErrorFau type DescriptionTooLongException struct { Message *string + Code *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.Code == nil { + return "DescriptionTooLongException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -613,7 +764,10 @@ func (e *ECSServiceMappingLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ECSServiceMappingLimitExceededException) ErrorCode() string { - return "ECSServiceMappingLimitExceededException" + if e.Code == nil { + return "ECSServiceMappingLimitExceededException" + } + return *e.Code } func (e *ECSServiceMappingLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -623,6 +777,8 @@ func (e *ECSServiceMappingLimitExceededException) ErrorFault() smithy.ErrorFault type GitHubAccountTokenDoesNotExistException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -636,7 +792,10 @@ func (e *GitHubAccountTokenDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *GitHubAccountTokenDoesNotExistException) ErrorCode() string { - return "GitHubAccountTokenDoesNotExistException" + if e.Code == nil { + return "GitHubAccountTokenDoesNotExistException" + } + return *e.Code } func (e *GitHubAccountTokenDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -646,6 +805,8 @@ func (e *GitHubAccountTokenDoesNotExistException) ErrorFault() smithy.ErrorFault type GitHubAccountTokenNameRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -659,7 +820,10 @@ func (e *GitHubAccountTokenNameRequiredException) ErrorMessage() string { return *e.Message } func (e *GitHubAccountTokenNameRequiredException) ErrorCode() string { - return "GitHubAccountTokenNameRequiredException" + if e.Code == nil { + return "GitHubAccountTokenNameRequiredException" + } + return *e.Code } func (e *GitHubAccountTokenNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -670,6 +834,8 @@ func (e *GitHubAccountTokenNameRequiredException) ErrorFault() smithy.ErrorFault type IamArnRequiredException struct { Message *string + Code *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.Code == nil { + return "IamArnRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -703,7 +876,10 @@ func (e *IamSessionArnAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *IamSessionArnAlreadyRegisteredException) ErrorCode() string { - return "IamSessionArnAlreadyRegisteredException" + if e.Code == nil { + return "IamSessionArnAlreadyRegisteredException" + } + return *e.Code } func (e *IamSessionArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -713,6 +889,8 @@ func (e *IamSessionArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault type IamUserArnAlreadyRegisteredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -726,7 +904,10 @@ func (e *IamUserArnAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *IamUserArnAlreadyRegisteredException) ErrorCode() string { - return "IamUserArnAlreadyRegisteredException" + if e.Code == nil { + return "IamUserArnAlreadyRegisteredException" + } + return *e.Code } func (e *IamUserArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -736,6 +917,8 @@ func (e *IamUserArnAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { type IamUserArnRequiredException struct { Message *string + Code *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.Code == nil { + return "IamUserArnRequiredException" + } + return *e.Code +} func (e *IamUserArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance does not exist in the deployment group. type InstanceDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "InstanceDoesNotExistException" + } + return *e.Code +} func (e *InstanceDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The instance ID was not specified. type InstanceIdRequiredException struct { Message *string + Code *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.Code == nil { + return "InstanceIdRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InstanceLimitExceededException" + } + return *e.Code +} func (e *InstanceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified on-premises instance name is already registered. type InstanceNameAlreadyRegisteredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -826,7 +1037,10 @@ func (e *InstanceNameAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *InstanceNameAlreadyRegisteredException) ErrorCode() string { - return "InstanceNameAlreadyRegisteredException" + if e.Code == nil { + return "InstanceNameAlreadyRegisteredException" + } + return *e.Code } func (e *InstanceNameAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -836,6 +1050,8 @@ func (e *InstanceNameAlreadyRegisteredException) ErrorFault() smithy.ErrorFault type InstanceNameRequiredException struct { Message *string + Code *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.Code == nil { + return "InstanceNameRequiredException" + } + return *e.Code +} func (e *InstanceNameRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified on-premises instance is not registered. type InstanceNotRegisteredException struct { Message *string + Code *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.Code == nil { + return "InstanceNotRegisteredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAlarmConfigException" + } + return *e.Code +} func (e *InvalidAlarmConfigException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The application name was specified in an invalid format. type InvalidApplicationNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -920,7 +1157,10 @@ func (e *InvalidApplicationNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationNameException) ErrorCode() string { - return "InvalidApplicationNameException" + if e.Code == nil { + return "InvalidApplicationNameException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidArnException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -962,7 +1211,10 @@ func (e *InvalidAutoRollbackConfigException) ErrorMessage() string { return *e.Message } func (e *InvalidAutoRollbackConfigException) ErrorCode() string { - return "InvalidAutoRollbackConfigException" + if e.Code == nil { + return "InvalidAutoRollbackConfigException" + } + return *e.Code } func (e *InvalidAutoRollbackConfigException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -972,6 +1224,8 @@ func (e *InvalidAutoRollbackConfigException) ErrorFault() smithy.ErrorFault { type InvalidAutoScalingGroupException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -985,7 +1239,10 @@ func (e *InvalidAutoScalingGroupException) ErrorMessage() string { return *e.Message } func (e *InvalidAutoScalingGroupException) ErrorCode() string { - return "InvalidAutoScalingGroupException" + if e.Code == nil { + return "InvalidAutoScalingGroupException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1008,7 +1267,10 @@ func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorMessage() string return *e.Message } func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorCode() string { - return "InvalidBlueGreenDeploymentConfigurationException" + if e.Code == nil { + return "InvalidBlueGreenDeploymentConfigurationException" + } + return *e.Code } func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1018,6 +1280,8 @@ func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorFault() smithy.E type InvalidBucketNameFilterException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1031,7 +1295,10 @@ func (e *InvalidBucketNameFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidBucketNameFilterException) ErrorCode() string { - return "InvalidBucketNameFilterException" + if e.Code == nil { + return "InvalidBucketNameFilterException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1053,7 +1322,10 @@ func (e *InvalidComputePlatformException) ErrorMessage() string { return *e.Message } func (e *InvalidComputePlatformException) ErrorCode() string { - return "InvalidComputePlatformException" + if e.Code == nil { + return "InvalidComputePlatformException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1074,7 +1348,10 @@ func (e *InvalidDeployedStateFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidDeployedStateFilterException) ErrorCode() string { - return "InvalidDeployedStateFilterException" + if e.Code == nil { + return "InvalidDeployedStateFilterException" + } + return *e.Code } func (e *InvalidDeployedStateFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1084,6 +1361,8 @@ func (e *InvalidDeployedStateFilterException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentConfigNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1097,7 +1376,10 @@ func (e *InvalidDeploymentConfigNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentConfigNameException) ErrorCode() string { - return "InvalidDeploymentConfigNameException" + if e.Code == nil { + return "InvalidDeploymentConfigNameException" + } + return *e.Code } func (e *InvalidDeploymentConfigNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1107,6 +1389,8 @@ func (e *InvalidDeploymentConfigNameException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentGroupNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1120,7 +1404,10 @@ func (e *InvalidDeploymentGroupNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentGroupNameException) ErrorCode() string { - return "InvalidDeploymentGroupNameException" + if e.Code == nil { + return "InvalidDeploymentGroupNameException" + } + return *e.Code } func (e *InvalidDeploymentGroupNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1130,6 +1417,8 @@ func (e *InvalidDeploymentGroupNameException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentIdException struct { Message *string + Code *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.Code == nil { + return "InvalidDeploymentIdException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1163,7 +1459,10 @@ func (e *InvalidDeploymentInstanceTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentInstanceTypeException) ErrorCode() string { - return "InvalidDeploymentInstanceTypeException" + if e.Code == nil { + return "InvalidDeploymentInstanceTypeException" + } + return *e.Code } func (e *InvalidDeploymentInstanceTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1173,6 +1472,8 @@ func (e *InvalidDeploymentInstanceTypeException) ErrorFault() smithy.ErrorFault type InvalidDeploymentStatusException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1186,7 +1487,10 @@ func (e *InvalidDeploymentStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentStatusException) ErrorCode() string { - return "InvalidDeploymentStatusException" + if e.Code == nil { + return "InvalidDeploymentStatusException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1209,7 +1515,10 @@ func (e *InvalidDeploymentStyleException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentStyleException) ErrorCode() string { - return "InvalidDeploymentStyleException" + if e.Code == nil { + return "InvalidDeploymentStyleException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1230,7 +1541,10 @@ func (e *InvalidDeploymentTargetIdException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentTargetIdException) ErrorCode() string { - return "InvalidDeploymentTargetIdException" + if e.Code == nil { + return "InvalidDeploymentTargetIdException" + } + return *e.Code } func (e *InvalidDeploymentTargetIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1240,6 +1554,8 @@ func (e *InvalidDeploymentTargetIdException) ErrorFault() smithy.ErrorFault { type InvalidDeploymentWaitTypeException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1253,7 +1569,10 @@ func (e *InvalidDeploymentWaitTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentWaitTypeException) ErrorCode() string { - return "InvalidDeploymentWaitTypeException" + if e.Code == nil { + return "InvalidDeploymentWaitTypeException" + } + return *e.Code } func (e *InvalidDeploymentWaitTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1264,6 +1583,8 @@ func (e *InvalidDeploymentWaitTypeException) ErrorFault() smithy.ErrorFault { type InvalidEC2TagCombinationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1277,7 +1598,10 @@ func (e *InvalidEC2TagCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidEC2TagCombinationException) ErrorCode() string { - return "InvalidEC2TagCombinationException" + if e.Code == nil { + return "InvalidEC2TagCombinationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidEC2TagException" + } + return *e.Code +} func (e *InvalidEC2TagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Amazon ECS service identifier is not valid. type InvalidECSServiceException struct { Message *string + Code *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.Code == nil { + return "InvalidECSServiceException" + } + return *e.Code +} func (e *InvalidECSServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The external ID was specified in an invalid format. type InvalidExternalIdException struct { Message *string + Code *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.Code == nil { + return "InvalidExternalIdException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1358,7 +1705,10 @@ func (e *InvalidFileExistsBehaviorException) ErrorMessage() string { return *e.Message } func (e *InvalidFileExistsBehaviorException) ErrorCode() string { - return "InvalidFileExistsBehaviorException" + if e.Code == nil { + return "InvalidFileExistsBehaviorException" + } + return *e.Code } func (e *InvalidFileExistsBehaviorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1368,6 +1718,8 @@ func (e *InvalidFileExistsBehaviorException) ErrorFault() smithy.ErrorFault { type InvalidGitHubAccountTokenException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1381,7 +1733,10 @@ func (e *InvalidGitHubAccountTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidGitHubAccountTokenException) ErrorCode() string { - return "InvalidGitHubAccountTokenException" + if e.Code == nil { + return "InvalidGitHubAccountTokenException" + } + return *e.Code } func (e *InvalidGitHubAccountTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1391,6 +1746,8 @@ func (e *InvalidGitHubAccountTokenException) ErrorFault() smithy.ErrorFault { type InvalidGitHubAccountTokenNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1404,7 +1761,10 @@ func (e *InvalidGitHubAccountTokenNameException) ErrorMessage() string { return *e.Message } func (e *InvalidGitHubAccountTokenNameException) ErrorCode() string { - return "InvalidGitHubAccountTokenNameException" + if e.Code == nil { + return "InvalidGitHubAccountTokenNameException" + } + return *e.Code } func (e *InvalidGitHubAccountTokenNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1414,6 +1774,8 @@ func (e *InvalidGitHubAccountTokenNameException) ErrorFault() smithy.ErrorFault type InvalidIamSessionArnException struct { Message *string + Code *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.Code == nil { + return "InvalidIamSessionArnException" + } + return *e.Code +} func (e *InvalidIamSessionArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The IAM user ARN was specified in an invalid format. type InvalidIamUserArnException struct { Message *string + Code *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.Code == nil { + return "InvalidIamUserArnException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1466,7 +1842,10 @@ func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorMessage() stri return *e.Message } func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorCode() string { - return "InvalidIgnoreApplicationStopFailuresValueException" + if e.Code == nil { + return "InvalidIgnoreApplicationStopFailuresValueException" + } + return *e.Code } func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1476,6 +1855,8 @@ func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorFault() smithy type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInstanceNameException" + } + return *e.Code +} func (e *InvalidInstanceNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance status does not exist. type InvalidInstanceStatusException struct { Message *string + Code *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.Code == nil { + return "InvalidInstanceStatusException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInstanceTypeException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1567,7 +1976,10 @@ func (e *InvalidKeyPrefixFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidKeyPrefixFilterException) ErrorCode() string { - return "InvalidKeyPrefixFilterException" + if e.Code == nil { + return "InvalidKeyPrefixFilterException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1589,7 +2003,10 @@ func (e *InvalidLifecycleEventHookExecutionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidLifecycleEventHookExecutionIdException) ErrorCode() string { - return "InvalidLifecycleEventHookExecutionIdException" + if e.Code == nil { + return "InvalidLifecycleEventHookExecutionIdException" + } + return *e.Code } func (e *InvalidLifecycleEventHookExecutionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1600,6 +2017,8 @@ func (e *InvalidLifecycleEventHookExecutionIdException) ErrorFault() smithy.Erro type InvalidLifecycleEventHookExecutionStatusException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1613,7 +2032,10 @@ func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorMessage() strin return *e.Message } func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorCode() string { - return "InvalidLifecycleEventHookExecutionStatusException" + if e.Code == nil { + return "InvalidLifecycleEventHookExecutionStatusException" + } + return *e.Code } func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1623,6 +2045,8 @@ func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorFault() smithy. type InvalidLoadBalancerInfoException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1636,7 +2060,10 @@ func (e *InvalidLoadBalancerInfoException) ErrorMessage() string { return *e.Message } func (e *InvalidLoadBalancerInfoException) ErrorCode() string { - return "InvalidLoadBalancerInfoException" + if e.Code == nil { + return "InvalidLoadBalancerInfoException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1657,7 +2086,10 @@ func (e *InvalidMinimumHealthyHostValueException) ErrorMessage() string { return *e.Message } func (e *InvalidMinimumHealthyHostValueException) ErrorCode() string { - return "InvalidMinimumHealthyHostValueException" + if e.Code == nil { + return "InvalidMinimumHealthyHostValueException" + } + return *e.Code } func (e *InvalidMinimumHealthyHostValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1667,6 +2099,8 @@ func (e *InvalidMinimumHealthyHostValueException) ErrorFault() smithy.ErrorFault type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1700,7 +2141,10 @@ func (e *InvalidOnPremisesTagCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidOnPremisesTagCombinationException) ErrorCode() string { - return "InvalidOnPremisesTagCombinationException" + if e.Code == nil { + return "InvalidOnPremisesTagCombinationException" + } + return *e.Code } func (e *InvalidOnPremisesTagCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1710,6 +2154,8 @@ func (e *InvalidOnPremisesTagCombinationException) ErrorFault() smithy.ErrorFaul type InvalidOperationException struct { Message *string + Code *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.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The registration status was specified in an invalid format. type InvalidRegistrationStatusException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1742,7 +2195,10 @@ func (e *InvalidRegistrationStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidRegistrationStatusException) ErrorCode() string { - return "InvalidRegistrationStatusException" + if e.Code == nil { + return "InvalidRegistrationStatusException" + } + return *e.Code } func (e *InvalidRegistrationStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1752,6 +2208,8 @@ func (e *InvalidRegistrationStatusException) ErrorFault() smithy.ErrorFault { type InvalidRevisionException struct { Message *string + Code *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.Code == nil { + return "InvalidRevisionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRoleException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSortByException" + } + return *e.Code +} func (e *InvalidSortByException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The sort order was specified in an invalid format. type InvalidSortOrderException struct { Message *string + Code *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.Code == nil { + return "InvalidSortOrderException" + } + return *e.Code +} func (e *InvalidSortOrderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag was specified in an invalid format. type InvalidTagException struct { Message *string + Code *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.Code == nil { + return "InvalidTagException" + } + return *e.Code +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag filter was specified in an invalid format. type InvalidTagFilterException struct { Message *string + Code *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.Code == nil { + return "InvalidTagFilterException" + } + return *e.Code +} func (e *InvalidTagFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified tags are not valid. type InvalidTagsToAddException struct { Message *string + Code *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.Code == nil { + return "InvalidTagsToAddException" + } + return *e.Code +} func (e *InvalidTagsToAddException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target filter name is invalid. type InvalidTargetFilterNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1901,7 +2408,10 @@ func (e *InvalidTargetFilterNameException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetFilterNameException) ErrorCode() string { - return "InvalidTargetFilterNameException" + if e.Code == nil { + return "InvalidTargetFilterNameException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1922,7 +2434,10 @@ func (e *InvalidTargetGroupPairException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetGroupPairException) ErrorCode() string { - return "InvalidTargetGroupPairException" + if e.Code == nil { + return "InvalidTargetGroupPairException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1955,7 +2472,10 @@ func (e *InvalidTargetInstancesException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetInstancesException) ErrorCode() string { - return "InvalidTargetInstancesException" + if e.Code == nil { + return "InvalidTargetInstancesException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidTimeRangeException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1996,7 +2525,10 @@ func (e *InvalidTrafficRoutingConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidTrafficRoutingConfigurationException) ErrorCode() string { - return "InvalidTrafficRoutingConfigurationException" + if e.Code == nil { + return "InvalidTrafficRoutingConfigurationException" + } + return *e.Code } func (e *InvalidTrafficRoutingConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2006,6 +2538,8 @@ func (e *InvalidTrafficRoutingConfigurationException) ErrorFault() smithy.ErrorF type InvalidTriggerConfigException struct { Message *string + Code *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.Code == nil { + return "InvalidTriggerConfigException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2039,7 +2580,10 @@ func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorMessage() string return *e.Message } func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorCode() string { - return "InvalidUpdateOutdatedInstancesOnlyValueException" + if e.Code == nil { + return "InvalidUpdateOutdatedInstancesOnlyValueException" + } + return *e.Code } func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2050,6 +2594,8 @@ func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorFault() smithy.E type LifecycleEventAlreadyCompletedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2063,7 +2609,10 @@ func (e *LifecycleEventAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *LifecycleEventAlreadyCompletedException) ErrorCode() string { - return "LifecycleEventAlreadyCompletedException" + if e.Code == nil { + return "LifecycleEventAlreadyCompletedException" + } + return *e.Code } func (e *LifecycleEventAlreadyCompletedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2073,6 +2622,8 @@ func (e *LifecycleEventAlreadyCompletedException) ErrorFault() smithy.ErrorFault type LifecycleHookLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2086,7 +2637,10 @@ func (e *LifecycleHookLimitExceededException) ErrorMessage() string { return *e.Message } func (e *LifecycleHookLimitExceededException) ErrorCode() string { - return "LifecycleHookLimitExceededException" + if e.Code == nil { + return "LifecycleHookLimitExceededException" + } + return *e.Code } func (e *LifecycleHookLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2097,6 +2651,8 @@ func (e *LifecycleHookLimitExceededException) ErrorFault() smithy.ErrorFault { type MultipleIamArnsProvidedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2110,7 +2666,10 @@ func (e *MultipleIamArnsProvidedException) ErrorMessage() string { return *e.Message } func (e *MultipleIamArnsProvidedException) ErrorCode() string { - return "MultipleIamArnsProvidedException" + if e.Code == nil { + return "MultipleIamArnsProvidedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OperationNotSupportedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceArnRequiredException" + } + return *e.Code +} func (e *ResourceArnRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource could not be validated. type ResourceValidationException struct { Message *string + Code *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.Code == nil { + return "ResourceValidationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RevisionDoesNotExistException" + } + return *e.Code +} func (e *RevisionDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The revision ID was not specified. type RevisionRequiredException struct { Message *string + Code *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.Code == nil { + return "RevisionRequiredException" + } + return *e.Code +} func (e *RevisionRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The role ID was not specified. type RoleRequiredException struct { Message *string + Code *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.Code == nil { + return "RoleRequiredException" + } + return *e.Code +} func (e *RoleRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of tags was exceeded. type TagLimitExceededException struct { Message *string + Code *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.Code == nil { + return "TagLimitExceededException" + } + return *e.Code +} func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A tag was not specified. type TagRequiredException struct { Message *string + Code *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.Code == nil { + return "TagRequiredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2285,7 +2902,10 @@ func (e *TagSetListLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagSetListLimitExceededException) ErrorCode() string { - return "TagSetListLimitExceededException" + if e.Code == nil { + return "TagSetListLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of triggers was exceeded. type TriggerTargetsLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2325,7 +2954,10 @@ func (e *TriggerTargetsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TriggerTargetsLimitExceededException) ErrorCode() string { - return "TriggerTargetsLimitExceededException" + if e.Code == nil { + return "TriggerTargetsLimitExceededException" + } + return *e.Code } func (e *TriggerTargetsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2335,6 +2967,8 @@ func (e *TriggerTargetsLimitExceededException) ErrorFault() smithy.ErrorFault { type UnsupportedActionForDeploymentTypeException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2348,7 +2982,10 @@ func (e *UnsupportedActionForDeploymentTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedActionForDeploymentTypeException) ErrorCode() string { - return "UnsupportedActionForDeploymentTypeException" + if e.Code == nil { + return "UnsupportedActionForDeploymentTypeException" + } + return *e.Code } 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..a1b94a86499 100644 --- a/service/codeguruprofiler/types/errors.go +++ b/service/codeguruprofiler/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource specified in the request does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..e72edc569bd 100644 --- a/service/codegurureviewer/types/errors.go +++ b/service/codegurureviewer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource specified in the request was not found. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the specified constraints. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..61f9bcb636a 100644 --- a/service/codepipeline/types/errors.go +++ b/service/codepipeline/types/errors.go @@ -11,6 +11,8 @@ import ( type ActionNotFoundException struct { Message *string + Code *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.Code == nil { + return "ActionNotFoundException" + } + return *e.Code +} func (e *ActionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified action type cannot be found. type ActionTypeNotFoundException struct { Message *string + Code *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.Code == nil { + return "ActionTypeNotFoundException" + } + return *e.Code +} func (e *ActionTypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The approval action has already been approved or rejected. type ApprovalAlreadyCompletedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *ApprovalAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *ApprovalAlreadyCompletedException) ErrorCode() string { - return "ApprovalAlreadyCompletedException" + if e.Code == nil { + return "ApprovalAlreadyCompletedException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -83,7 +104,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicatedStopRequestException" + } + return *e.Code +} func (e *DuplicatedStopRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action declaration was specified in an invalid format. type InvalidActionDeclarationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -147,7 +187,10 @@ func (e *InvalidActionDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidActionDeclarationException) ErrorCode() string { - return "InvalidActionDeclarationException" + if e.Code == nil { + return "InvalidActionDeclarationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidApprovalTokenException" + } + return *e.Code +} func (e *InvalidApprovalTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource ARN is invalid. type InvalidArnException struct { Message *string + Code *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.Code == nil { + return "InvalidArnException" + } + return *e.Code +} func (e *InvalidArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Reserved for future use. type InvalidBlockerDeclarationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -206,7 +265,10 @@ func (e *InvalidBlockerDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidBlockerDeclarationException) ErrorCode() string { - return "InvalidBlockerDeclarationException" + if e.Code == nil { + return "InvalidBlockerDeclarationException" + } + return *e.Code } func (e *InvalidBlockerDeclarationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -216,6 +278,8 @@ func (e *InvalidBlockerDeclarationException) ErrorFault() smithy.ErrorFault { type InvalidClientTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidClientTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidJobException" + } + return *e.Code +} func (e *InvalidJobException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The job state was specified in an invalid format. type InvalidJobStateException struct { Message *string + Code *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.Code == nil { + return "InvalidJobStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The nonce was specified in an invalid format. type InvalidNonceException struct { Message *string + Code *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.Code == nil { + return "InvalidNonceException" + } + return *e.Code +} func (e *InvalidNonceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The stage declaration was specified in an invalid format. type InvalidStageDeclarationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -325,7 +424,10 @@ func (e *InvalidStageDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidStageDeclarationException) ErrorCode() string { - return "InvalidStageDeclarationException" + if e.Code == nil { + return "InvalidStageDeclarationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidStructureException" + } + return *e.Code +} func (e *InvalidStructureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource tags are invalid. type InvalidTagsException struct { Message *string + Code *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.Code == nil { + return "InvalidTagsException" + } + return *e.Code +} func (e *InvalidTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified authentication type is in an invalid format. type InvalidWebhookAuthenticationParametersException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -384,7 +502,10 @@ func (e *InvalidWebhookAuthenticationParametersException) ErrorMessage() string return *e.Message } func (e *InvalidWebhookAuthenticationParametersException) ErrorCode() string { - return "InvalidWebhookAuthenticationParametersException" + if e.Code == nil { + return "InvalidWebhookAuthenticationParametersException" + } + return *e.Code } func (e *InvalidWebhookAuthenticationParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -394,6 +515,8 @@ func (e *InvalidWebhookAuthenticationParametersException) ErrorFault() smithy.Er type InvalidWebhookFilterPatternException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -407,7 +530,10 @@ func (e *InvalidWebhookFilterPatternException) ErrorMessage() string { return *e.Message } func (e *InvalidWebhookFilterPatternException) ErrorCode() string { - return "InvalidWebhookFilterPatternException" + if e.Code == nil { + return "InvalidWebhookFilterPatternException" + } + return *e.Code } func (e *InvalidWebhookFilterPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -417,6 +543,8 @@ func (e *InvalidWebhookFilterPatternException) ErrorFault() smithy.ErrorFault { type JobNotFoundException struct { Message *string + Code *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.Code == nil { + return "JobNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -470,7 +612,10 @@ func (e *NotLatestPipelineExecutionException) ErrorMessage() string { return *e.Message } func (e *NotLatestPipelineExecutionException) ErrorCode() string { - return "NotLatestPipelineExecutionException" + if e.Code == nil { + return "NotLatestPipelineExecutionException" + } + return *e.Code } func (e *NotLatestPipelineExecutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -480,6 +625,8 @@ func (e *NotLatestPipelineExecutionException) ErrorFault() smithy.ErrorFault { type OutputVariablesSizeExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -493,7 +640,10 @@ func (e *OutputVariablesSizeExceededException) ErrorMessage() string { return *e.Message } func (e *OutputVariablesSizeExceededException) ErrorCode() string { - return "OutputVariablesSizeExceededException" + if e.Code == nil { + return "OutputVariablesSizeExceededException" + } + return *e.Code } func (e *OutputVariablesSizeExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -504,6 +654,8 @@ func (e *OutputVariablesSizeExceededException) ErrorFault() smithy.ErrorFault { type PipelineExecutionNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -517,7 +669,10 @@ func (e *PipelineExecutionNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineExecutionNotFoundException) ErrorCode() string { - return "PipelineExecutionNotFoundException" + if e.Code == nil { + return "PipelineExecutionNotFoundException" + } + return *e.Code } func (e *PipelineExecutionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -528,6 +683,8 @@ func (e *PipelineExecutionNotFoundException) ErrorFault() smithy.ErrorFault { type PipelineExecutionNotStoppableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -541,7 +698,10 @@ func (e *PipelineExecutionNotStoppableException) ErrorMessage() string { return *e.Message } func (e *PipelineExecutionNotStoppableException) ErrorCode() string { - return "PipelineExecutionNotStoppableException" + if e.Code == nil { + return "PipelineExecutionNotStoppableException" + } + return *e.Code } func (e *PipelineExecutionNotStoppableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -551,6 +711,8 @@ func (e *PipelineExecutionNotStoppableException) ErrorFault() smithy.ErrorFault type PipelineNameInUseException struct { Message *string + Code *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.Code == nil { + return "PipelineNameInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PipelineNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -602,7 +778,10 @@ func (e *PipelineVersionNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineVersionNotFoundException) ErrorCode() string { - return "PipelineVersionNotFoundException" + if e.Code == nil { + return "PipelineVersionNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "RequestFailedException" + } + return *e.Code +} func (e *RequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was specified in an invalid format. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StageNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StageNotRetryableException" + } + return *e.Code +} func (e *StageNotRetryableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tags limit for a resource has been exceeded. type TooManyTagsException struct { Message *string + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The validation was specified in an invalid format. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "WebhookNotFoundException" + } + return *e.Code +} 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..a0ac9f4777c 100644 --- a/service/codestar/types/errors.go +++ b/service/codestar/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service role is not valid. type InvalidServiceRoleException struct { Message *string + Code *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.Code == nil { + return "InvalidServiceRoleException" + } + return *e.Code +} func (e *InvalidServiceRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource limit has been exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ProjectAlreadyExistsException" + } + return *e.Code +} func (e *ProjectAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Project configuration information is required but not specified. type ProjectConfigurationException struct { Message *string + Code *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.Code == nil { + return "ProjectConfigurationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ProjectCreationFailedException" + } + return *e.Code +} func (e *ProjectCreationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified AWS CodeStar project was not found. type ProjectNotFoundException struct { Message *string + Code *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.Code == nil { + return "ProjectNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -183,7 +239,10 @@ func (e *TeamMemberAlreadyAssociatedException) ErrorMessage() string { return *e.Message } func (e *TeamMemberAlreadyAssociatedException) ErrorCode() string { - return "TeamMemberAlreadyAssociatedException" + if e.Code == nil { + return "TeamMemberAlreadyAssociatedException" + } + return *e.Code } func (e *TeamMemberAlreadyAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -193,6 +252,8 @@ func (e *TeamMemberAlreadyAssociatedException) ErrorFault() smithy.ErrorFault { type TeamMemberNotFoundException struct { Message *string + Code *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.Code == nil { + return "TeamMemberNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -227,7 +295,10 @@ func (e *UserProfileAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *UserProfileAlreadyExistsException) ErrorCode() string { - return "UserProfileAlreadyExistsException" + if e.Code == nil { + return "UserProfileAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "UserProfileNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..1e523086fbe 100644 --- a/service/codestarconnections/types/errors.go +++ b/service/codestarconnections/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exceeded the maximum limit for connections. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} 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..8aa293d03c2 100644 --- a/service/codestarnotifications/types/errors.go +++ b/service/codestarnotifications/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConfigurationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameter values are not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..82a3672d159 100644 --- a/service/cognitoidentity/types/errors.go +++ b/service/cognitoidentity/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -46,7 +53,10 @@ func (e *DeveloperUserAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *DeveloperUserAlreadyRegisteredException) ErrorCode() string { - return "DeveloperUserAlreadyRegisteredException" + if e.Code == nil { + return "DeveloperUserAlreadyRegisteredException" + } + return *e.Code } func (e *DeveloperUserAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -57,6 +67,8 @@ func (e *DeveloperUserAlreadyRegisteredException) ErrorFault() smithy.ErrorFault type ExternalServiceException struct { Message *string + Code *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.Code == nil { + return "ExternalServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -109,7 +135,10 @@ func (e *InvalidIdentityPoolConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidIdentityPoolConfigurationException) ErrorCode() string { - return "InvalidIdentityPoolConfigurationException" + if e.Code == nil { + return "InvalidIdentityPoolConfigurationException" + } + return *e.Code } func (e *InvalidIdentityPoolConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -119,6 +148,8 @@ func (e *InvalidIdentityPoolConfigurationException) ErrorFault() smithy.ErrorFau type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown when a request is throttled. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..fba276c841c 100644 --- a/service/cognitoidentityprovider/types/errors.go +++ b/service/cognitoidentityprovider/types/errors.go @@ -15,6 +15,8 @@ import ( type AliasExistsException struct { Message *string + Code *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.Code == nil { + return "AliasExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CodeDeliveryFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CodeMismatchException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -87,7 +110,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DuplicateProviderException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -129,7 +164,10 @@ func (e *EnableSoftwareTokenMFAException) ErrorMessage() string { return *e.Message } func (e *EnableSoftwareTokenMFAException) ErrorCode() string { - return "EnableSoftwareTokenMFAException" + if e.Code == nil { + return "EnableSoftwareTokenMFAException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ExpiredCodeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "GroupExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -229,7 +297,10 @@ func (e *InvalidEmailRoleAccessPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidEmailRoleAccessPolicyException) ErrorCode() string { - return "InvalidEmailRoleAccessPolicyException" + if e.Code == nil { + return "InvalidEmailRoleAccessPolicyException" + } + return *e.Code } func (e *InvalidEmailRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -240,6 +311,8 @@ func (e *InvalidEmailRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { type InvalidLambdaResponseException struct { Message *string + Code *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.Code == nil { + return "InvalidLambdaResponseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOAuthFlowException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPasswordException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -331,7 +432,10 @@ func (e *InvalidSmsRoleAccessPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidSmsRoleAccessPolicyException) ErrorCode() string { - return "InvalidSmsRoleAccessPolicyException" + if e.Code == nil { + return "InvalidSmsRoleAccessPolicyException" + } + return *e.Code } func (e *InvalidSmsRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -344,6 +448,8 @@ func (e *InvalidSmsRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { type InvalidSmsRoleTrustRelationshipException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -357,7 +463,10 @@ func (e *InvalidSmsRoleTrustRelationshipException) ErrorMessage() string { return *e.Message } func (e *InvalidSmsRoleTrustRelationshipException) ErrorCode() string { - return "InvalidSmsRoleTrustRelationshipException" + if e.Code == nil { + return "InvalidSmsRoleTrustRelationshipException" + } + return *e.Code } func (e *InvalidSmsRoleTrustRelationshipException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -367,6 +476,8 @@ func (e *InvalidSmsRoleTrustRelationshipException) ErrorFault() smithy.ErrorFaul type InvalidUserPoolConfigurationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -380,7 +491,10 @@ func (e *InvalidUserPoolConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidUserPoolConfigurationException) ErrorCode() string { - return "InvalidUserPoolConfigurationException" + if e.Code == nil { + return "InvalidUserPoolConfigurationException" + } + return *e.Code } func (e *InvalidUserPoolConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -391,6 +505,8 @@ func (e *InvalidUserPoolConfigurationException) ErrorFault() smithy.ErrorFault { type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MFAMethodNotFoundException" + } + return *e.Code +} func (e *MFAMethodNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a user isn't authorized. type NotAuthorizedException struct { Message *string + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a password reset is required. type PasswordResetRequiredException struct { Message *string + Code *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.Code == nil { + return "PasswordResetRequiredException" + } + return *e.Code +} func (e *PasswordResetRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a precondition is not met. type PreconditionNotMetException struct { Message *string + Code *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.Code == nil { + return "PreconditionNotMetException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ScopeDoesNotExistException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -540,7 +705,10 @@ func (e *SoftwareTokenMFANotFoundException) ErrorMessage() string { return *e.Message } func (e *SoftwareTokenMFANotFoundException) ErrorCode() string { - return "SoftwareTokenMFANotFoundException" + if e.Code == nil { + return "SoftwareTokenMFANotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "TooManyFailedAttemptsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnexpectedLambdaException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -641,7 +839,10 @@ func (e *UnsupportedIdentityProviderException) ErrorMessage() string { return *e.Message } func (e *UnsupportedIdentityProviderException) ErrorCode() string { - return "UnsupportedIdentityProviderException" + if e.Code == nil { + return "UnsupportedIdentityProviderException" + } + return *e.Code } func (e *UnsupportedIdentityProviderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -652,6 +853,8 @@ func (e *UnsupportedIdentityProviderException) ErrorFault() smithy.ErrorFault { type UnsupportedOperationException struct { Message *string + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedTokenTypeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedUserStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UserImportInProgressException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UserLambdaValidationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UsernameExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UserNotConfirmedException" + } + return *e.Code +} func (e *UserNotConfirmedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when a user isn't found. type UserNotFoundException struct { Message *string + Code *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.Code == nil { + return "UserNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -820,7 +1079,10 @@ func (e *UserPoolAddOnNotEnabledException) ErrorMessage() string { return *e.Message } func (e *UserPoolAddOnNotEnabledException) ErrorCode() string { - return "UserPoolAddOnNotEnabledException" + if e.Code == nil { + return "UserPoolAddOnNotEnabledException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "UserPoolTaggingException" + } + return *e.Code +} 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..f566892788b 100644 --- a/service/cognitosync/types/errors.go +++ b/service/cognitosync/types/errors.go @@ -12,6 +12,8 @@ import ( type AlreadyStreamedException struct { Message *string + Code *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.Code == nil { + return "AlreadyStreamedException" + } + return *e.Code +} func (e *AlreadyStreamedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown if there are parallel requests to modify a resource. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DuplicateRequestException" + } + return *e.Code +} func (e *DuplicateRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates an internal service error. type InternalErrorException struct { Message *string + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidConfigurationException struct { Message *string + Code *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.Code == nil { + return "InvalidConfigurationException" + } + return *e.Code +} func (e *InvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The AWS Lambda function returned invalid output or an exception. type InvalidLambdaFunctionOutputException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -122,7 +157,10 @@ func (e *InvalidLambdaFunctionOutputException) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaFunctionOutputException) ErrorCode() string { - return "InvalidLambdaFunctionOutputException" + if e.Code == nil { + return "InvalidLambdaFunctionOutputException" + } + return *e.Code } func (e *InvalidLambdaFunctionOutputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -132,6 +170,8 @@ func (e *InvalidLambdaFunctionOutputException) ErrorFault() smithy.ErrorFault { type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // AWS Lambda throttled your account, please contact AWS Support type LambdaThrottledException struct { Message *string + Code *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.Code == nil { + return "LambdaThrottledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown if the resource doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Thrown if the request is throttled. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..39d98a440b5 100644 --- a/service/comprehend/types/errors.go +++ b/service/comprehend/types/errors.go @@ -12,6 +12,8 @@ import ( type BatchSizeLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *BatchSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *BatchSizeLimitExceededException) ErrorCode() string { - return "BatchSizeLimitExceededException" + if e.Code == nil { + return "BatchSizeLimitExceededException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -47,7 +54,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFilterException" + } + return *e.Code +} func (e *InvalidFilterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is invalid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "JobNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KmsKeyValidationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TextSizeLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagKeysException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedLanguageException" + } + return *e.Code +} 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..41d43333835 100644 --- a/service/comprehendmedical/types/errors.go +++ b/service/comprehendmedical/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidEncodingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TextSizeLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..91ff4901dd8 100644 --- a/service/computeoptimizer/types/errors.go +++ b/service/computeoptimizer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. Try your call again. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds a limit of the service. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MissingAuthenticationToken" + } + return *e.Code +} func (e *MissingAuthenticationToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account is not opted in to Compute Optimizer. type OptInRequiredException struct { Message *string + Code *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.Code == nil { + return "OptInRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/configservice/api_op_DeleteConfigRule.go b/service/configservice/api_op_DeleteConfigRule.go index 946f682b510..ad2e578ab60 100644 --- a/service/configservice/api_op_DeleteConfigRule.go +++ b/service/configservice/api_op_DeleteConfigRule.go @@ -31,6 +31,7 @@ func (c *Client) DeleteConfigRule(ctx context.Context, params *DeleteConfigRuleI return out, nil } +// type DeleteConfigRuleInput struct { // The name of the Config rule that you want to delete. diff --git a/service/configservice/api_op_DeleteEvaluationResults.go b/service/configservice/api_op_DeleteEvaluationResults.go index 506297cc471..1b68bedd163 100644 --- a/service/configservice/api_op_DeleteEvaluationResults.go +++ b/service/configservice/api_op_DeleteEvaluationResults.go @@ -29,6 +29,7 @@ func (c *Client) DeleteEvaluationResults(ctx context.Context, params *DeleteEval return out, nil } +// type DeleteEvaluationResultsInput struct { // The name of the Config rule for which you want to delete the evaluation results. diff --git a/service/configservice/api_op_DescribeComplianceByConfigRule.go b/service/configservice/api_op_DescribeComplianceByConfigRule.go index 67b796bb13c..32bac13dbb8 100644 --- a/service/configservice/api_op_DescribeComplianceByConfigRule.go +++ b/service/configservice/api_op_DescribeComplianceByConfigRule.go @@ -48,6 +48,7 @@ func (c *Client) DescribeComplianceByConfigRule(ctx context.Context, params *Des return out, nil } +// type DescribeComplianceByConfigRuleInput struct { // Filters the results by compliance. The allowed values are COMPLIANT and @@ -64,6 +65,7 @@ type DescribeComplianceByConfigRuleInput struct { noSmithyDocumentSerde } +// type DescribeComplianceByConfigRuleOutput struct { // Indicates whether each of the specified Config rules is compliant. diff --git a/service/configservice/api_op_DescribeComplianceByResource.go b/service/configservice/api_op_DescribeComplianceByResource.go index 917722f145a..4a65a7d5808 100644 --- a/service/configservice/api_op_DescribeComplianceByResource.go +++ b/service/configservice/api_op_DescribeComplianceByResource.go @@ -49,6 +49,7 @@ func (c *Client) DescribeComplianceByResource(ctx context.Context, params *Descr return out, nil } +// type DescribeComplianceByResourceInput struct { // Filters the results by compliance. The allowed values are COMPLIANT, @@ -78,6 +79,7 @@ type DescribeComplianceByResourceInput struct { noSmithyDocumentSerde } +// type DescribeComplianceByResourceOutput struct { // Indicates whether the specified Amazon Web Services resource complies with all diff --git a/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go b/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go index 4b11b26c8d1..a9a9c04fa3f 100644 --- a/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go +++ b/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go @@ -31,6 +31,7 @@ func (c *Client) DescribeConfigRuleEvaluationStatus(ctx context.Context, params return out, nil } +// type DescribeConfigRuleEvaluationStatusInput struct { // The name of the Config managed rules for which you want status information. If @@ -52,6 +53,7 @@ type DescribeConfigRuleEvaluationStatusInput struct { noSmithyDocumentSerde } +// type DescribeConfigRuleEvaluationStatusOutput struct { // Status information about your Config managed rules. diff --git a/service/configservice/api_op_DescribeConfigRules.go b/service/configservice/api_op_DescribeConfigRules.go index 7e68cd293c2..f1a812a5312 100644 --- a/service/configservice/api_op_DescribeConfigRules.go +++ b/service/configservice/api_op_DescribeConfigRules.go @@ -28,6 +28,7 @@ func (c *Client) DescribeConfigRules(ctx context.Context, params *DescribeConfig return out, nil } +// type DescribeConfigRulesInput struct { // The names of the Config rules for which you want details. If you do not specify @@ -45,6 +46,7 @@ type DescribeConfigRulesInput struct { noSmithyDocumentSerde } +// type DescribeConfigRulesOutput struct { // The details about your Config rules. diff --git a/service/configservice/api_op_GetComplianceDetailsByConfigRule.go b/service/configservice/api_op_GetComplianceDetailsByConfigRule.go index a384bd9b5cb..f2beafa0774 100644 --- a/service/configservice/api_op_GetComplianceDetailsByConfigRule.go +++ b/service/configservice/api_op_GetComplianceDetailsByConfigRule.go @@ -31,6 +31,7 @@ func (c *Client) GetComplianceDetailsByConfigRule(ctx context.Context, params *G return out, nil } +// type GetComplianceDetailsByConfigRuleInput struct { // The name of the Config rule for which you want compliance information. @@ -54,6 +55,7 @@ type GetComplianceDetailsByConfigRuleInput struct { noSmithyDocumentSerde } +// type GetComplianceDetailsByConfigRuleOutput struct { // Indicates whether the Amazon Web Services resource complies with the specified diff --git a/service/configservice/api_op_GetComplianceDetailsByResource.go b/service/configservice/api_op_GetComplianceDetailsByResource.go index 5e8878b741f..a04bea8ff81 100644 --- a/service/configservice/api_op_GetComplianceDetailsByResource.go +++ b/service/configservice/api_op_GetComplianceDetailsByResource.go @@ -30,6 +30,7 @@ func (c *Client) GetComplianceDetailsByResource(ctx context.Context, params *Get return out, nil } +// type GetComplianceDetailsByResourceInput struct { // Filters the results by compliance. The allowed values are COMPLIANT, @@ -56,6 +57,7 @@ type GetComplianceDetailsByResourceInput struct { noSmithyDocumentSerde } +// type GetComplianceDetailsByResourceOutput struct { // Indicates whether the specified Amazon Web Services resource complies each diff --git a/service/configservice/api_op_GetComplianceSummaryByConfigRule.go b/service/configservice/api_op_GetComplianceSummaryByConfigRule.go index 0773f8933e8..2d394a85e76 100644 --- a/service/configservice/api_op_GetComplianceSummaryByConfigRule.go +++ b/service/configservice/api_op_GetComplianceSummaryByConfigRule.go @@ -32,6 +32,7 @@ type GetComplianceSummaryByConfigRuleInput struct { noSmithyDocumentSerde } +// type GetComplianceSummaryByConfigRuleOutput struct { // The number of Config rules that are compliant and the number that are diff --git a/service/configservice/api_op_GetComplianceSummaryByResourceType.go b/service/configservice/api_op_GetComplianceSummaryByResourceType.go index 4c9e797a443..53c75f60366 100644 --- a/service/configservice/api_op_GetComplianceSummaryByResourceType.go +++ b/service/configservice/api_op_GetComplianceSummaryByResourceType.go @@ -29,6 +29,7 @@ func (c *Client) GetComplianceSummaryByResourceType(ctx context.Context, params return out, nil } +// type GetComplianceSummaryByResourceTypeInput struct { // Specify one or more resource types to get the number of resources that are @@ -41,6 +42,7 @@ type GetComplianceSummaryByResourceTypeInput struct { noSmithyDocumentSerde } +// type GetComplianceSummaryByResourceTypeOutput struct { // The number of resources that are compliant and the number that are noncompliant. diff --git a/service/configservice/api_op_ListDiscoveredResources.go b/service/configservice/api_op_ListDiscoveredResources.go index c818aea260d..2ca5794f63e 100644 --- a/service/configservice/api_op_ListDiscoveredResources.go +++ b/service/configservice/api_op_ListDiscoveredResources.go @@ -38,6 +38,7 @@ func (c *Client) ListDiscoveredResources(ctx context.Context, params *ListDiscov return out, nil } +// type ListDiscoveredResourcesInput struct { // The type of resources that you want Config to list in the response. @@ -71,6 +72,7 @@ type ListDiscoveredResourcesInput struct { noSmithyDocumentSerde } +// type ListDiscoveredResourcesOutput struct { // The string that you use in a subsequent request to get the next page of results diff --git a/service/configservice/api_op_PutEvaluations.go b/service/configservice/api_op_PutEvaluations.go index fea49d85f64..db13ea7bbc5 100644 --- a/service/configservice/api_op_PutEvaluations.go +++ b/service/configservice/api_op_PutEvaluations.go @@ -28,6 +28,7 @@ func (c *Client) PutEvaluations(ctx context.Context, params *PutEvaluationsInput return out, nil } +// type PutEvaluationsInput struct { // An encrypted token that associates an evaluation with an Config rule. Identifies @@ -51,6 +52,7 @@ type PutEvaluationsInput struct { noSmithyDocumentSerde } +// type PutEvaluationsOutput struct { // Requests that failed because of a client or server error. diff --git a/service/configservice/api_op_StartConfigRulesEvaluation.go b/service/configservice/api_op_StartConfigRulesEvaluation.go index e2526fef550..f6e713d9072 100644 --- a/service/configservice/api_op_StartConfigRulesEvaluation.go +++ b/service/configservice/api_op_StartConfigRulesEvaluation.go @@ -54,6 +54,7 @@ func (c *Client) StartConfigRulesEvaluation(ctx context.Context, params *StartCo return out, nil } +// type StartConfigRulesEvaluationInput struct { // The list of names of Config rules that you want to run evaluations for. diff --git a/service/configservice/types/errors.go b/service/configservice/types/errors.go index 20801f8475b..12b8163194d 100644 --- a/service/configservice/types/errors.go +++ b/service/configservice/types/errors.go @@ -11,6 +11,8 @@ import ( type ConformancePackTemplateValidationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConformancePackTemplateValidationException) ErrorMessage() string { return *e.Message } func (e *ConformancePackTemplateValidationException) ErrorCode() string { - return "ConformancePackTemplateValidationException" + if e.Code == nil { + return "ConformancePackTemplateValidationException" + } + return *e.Code } func (e *ConformancePackTemplateValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -35,6 +40,8 @@ func (e *ConformancePackTemplateValidationException) ErrorFault() smithy.ErrorFa type IdempotentParameterMismatch struct { Message *string + Code *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.Code == nil { + return "IdempotentParameterMismatch" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *InsufficientDeliveryPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientDeliveryPolicyException) ErrorCode() string { - return "InsufficientDeliveryPolicyException" + if e.Code == nil { + return "InsufficientDeliveryPolicyException" + } + return *e.Code } func (e *InsufficientDeliveryPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -99,6 +116,8 @@ func (e *InsufficientDeliveryPolicyException) ErrorFault() smithy.ErrorFault { type InsufficientPermissionsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -112,7 +131,10 @@ func (e *InsufficientPermissionsException) ErrorMessage() string { return *e.Message } func (e *InsufficientPermissionsException) ErrorCode() string { - return "InsufficientPermissionsException" + if e.Code == nil { + return "InsufficientPermissionsException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -133,7 +157,10 @@ func (e *InvalidConfigurationRecorderNameException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRecorderNameException) ErrorCode() string { - return "InvalidConfigurationRecorderNameException" + if e.Code == nil { + return "InvalidConfigurationRecorderNameException" + } + return *e.Code } func (e *InvalidConfigurationRecorderNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -143,6 +170,8 @@ func (e *InvalidConfigurationRecorderNameException) ErrorFault() smithy.ErrorFau type InvalidDeliveryChannelNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -156,7 +185,10 @@ func (e *InvalidDeliveryChannelNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeliveryChannelNameException) ErrorCode() string { - return "InvalidDeliveryChannelNameException" + if e.Code == nil { + return "InvalidDeliveryChannelNameException" + } + return *e.Code } func (e *InvalidDeliveryChannelNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -166,6 +198,8 @@ func (e *InvalidDeliveryChannelNameException) ErrorFault() smithy.ErrorFault { type InvalidExpressionException struct { Message *string + Code *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.Code == nil { + return "InvalidExpressionException" + } + return *e.Code +} func (e *InvalidExpressionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified limit is outside the allowable range. type InvalidLimitException struct { Message *string + Code *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.Code == nil { + return "InvalidLimitException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRecordingGroupException" + } + return *e.Code +} func (e *InvalidRecordingGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ResultToken is invalid. type InvalidResultTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidResultTokenException" + } + return *e.Code +} func (e *InvalidResultTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have provided a null or empty role ARN. type InvalidRoleException struct { Message *string + Code *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.Code == nil { + return "InvalidRoleException" + } + return *e.Code +} func (e *InvalidRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon S3 key prefix is invalid. type InvalidS3KeyPrefixException struct { Message *string + Code *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.Code == nil { + return "InvalidS3KeyPrefixException" + } + return *e.Code +} func (e *InvalidS3KeyPrefixException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon KMS Key ARN is invalid. type InvalidS3KmsKeyArnException struct { Message *string + Code *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.Code == nil { + return "InvalidS3KmsKeyArnException" + } + return *e.Code +} func (e *InvalidS3KmsKeyArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon SNS topic does not exist. type InvalidSNSTopicARNException struct { Message *string + Code *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.Code == nil { + return "InvalidSNSTopicARNException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTimeRangeException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -393,7 +504,10 @@ func (e *LastDeliveryChannelDeleteFailedException) ErrorMessage() string { return *e.Message } func (e *LastDeliveryChannelDeleteFailedException) ErrorCode() string { - return "LastDeliveryChannelDeleteFailedException" + if e.Code == nil { + return "LastDeliveryChannelDeleteFailedException" + } + return *e.Code } func (e *LastDeliveryChannelDeleteFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -406,6 +520,8 @@ func (e *LastDeliveryChannelDeleteFailedException) ErrorFault() smithy.ErrorFaul type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -440,7 +563,10 @@ func (e *MaxActiveResourcesExceededException) ErrorMessage() string { return *e.Message } func (e *MaxActiveResourcesExceededException) ErrorCode() string { - return "MaxActiveResourcesExceededException" + if e.Code == nil { + return "MaxActiveResourcesExceededException" + } + return *e.Code } func (e *MaxActiveResourcesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -452,6 +578,8 @@ func (e *MaxActiveResourcesExceededException) ErrorFault() smithy.ErrorFault { type MaxNumberOfConfigRulesExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -465,7 +593,10 @@ func (e *MaxNumberOfConfigRulesExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfConfigRulesExceededException) ErrorCode() string { - return "MaxNumberOfConfigRulesExceededException" + if e.Code == nil { + return "MaxNumberOfConfigRulesExceededException" + } + return *e.Code } func (e *MaxNumberOfConfigRulesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -475,6 +606,8 @@ func (e *MaxNumberOfConfigRulesExceededException) ErrorFault() smithy.ErrorFault type MaxNumberOfConfigurationRecordersExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -488,7 +621,10 @@ func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorMessage() stri return *e.Message } func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorCode() string { - return "MaxNumberOfConfigurationRecordersExceededException" + if e.Code == nil { + return "MaxNumberOfConfigurationRecordersExceededException" + } + return *e.Code } func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -501,6 +637,8 @@ func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorFault() smithy type MaxNumberOfConformancePacksExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -514,7 +652,10 @@ func (e *MaxNumberOfConformancePacksExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfConformancePacksExceededException) ErrorCode() string { - return "MaxNumberOfConformancePacksExceededException" + if e.Code == nil { + return "MaxNumberOfConformancePacksExceededException" + } + return *e.Code } func (e *MaxNumberOfConformancePacksExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -524,6 +665,8 @@ func (e *MaxNumberOfConformancePacksExceededException) ErrorFault() smithy.Error type MaxNumberOfDeliveryChannelsExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -537,7 +680,10 @@ func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorCode() string { - return "MaxNumberOfDeliveryChannelsExceededException" + if e.Code == nil { + return "MaxNumberOfDeliveryChannelsExceededException" + } + return *e.Code } func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -550,6 +696,8 @@ func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorFault() smithy.Error type MaxNumberOfOrganizationConfigRulesExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -563,7 +711,10 @@ func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorMessage() str return *e.Message } func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorCode() string { - return "MaxNumberOfOrganizationConfigRulesExceededException" + if e.Code == nil { + return "MaxNumberOfOrganizationConfigRulesExceededException" + } + return *e.Code } func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -576,6 +727,8 @@ func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorFault() smith type MaxNumberOfOrganizationConformancePacksExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -589,7 +742,10 @@ func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorMessage( return *e.Message } func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorCode() string { - return "MaxNumberOfOrganizationConformancePacksExceededException" + if e.Code == nil { + return "MaxNumberOfOrganizationConformancePacksExceededException" + } + return *e.Code } func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -600,6 +756,8 @@ func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorFault() type MaxNumberOfRetentionConfigurationsExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -613,7 +771,10 @@ func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorMessage() str return *e.Message } func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorCode() string { - return "MaxNumberOfRetentionConfigurationsExceededException" + if e.Code == nil { + return "MaxNumberOfRetentionConfigurationsExceededException" + } + return *e.Code } func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -624,6 +785,8 @@ func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorFault() smith type NoAvailableConfigurationRecorderException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -637,7 +800,10 @@ func (e *NoAvailableConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoAvailableConfigurationRecorderException) ErrorCode() string { - return "NoAvailableConfigurationRecorderException" + if e.Code == nil { + return "NoAvailableConfigurationRecorderException" + } + return *e.Code } func (e *NoAvailableConfigurationRecorderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -647,6 +813,8 @@ func (e *NoAvailableConfigurationRecorderException) ErrorFault() smithy.ErrorFau type NoAvailableDeliveryChannelException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -660,7 +828,10 @@ func (e *NoAvailableDeliveryChannelException) ErrorMessage() string { return *e.Message } func (e *NoAvailableDeliveryChannelException) ErrorCode() string { - return "NoAvailableDeliveryChannelException" + if e.Code == nil { + return "NoAvailableDeliveryChannelException" + } + return *e.Code } func (e *NoAvailableDeliveryChannelException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -670,6 +841,8 @@ func (e *NoAvailableDeliveryChannelException) ErrorFault() smithy.ErrorFault { type NoAvailableOrganizationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -683,7 +856,10 @@ func (e *NoAvailableOrganizationException) ErrorMessage() string { return *e.Message } func (e *NoAvailableOrganizationException) ErrorCode() string { - return "NoAvailableOrganizationException" + if e.Code == nil { + return "NoAvailableOrganizationException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -704,7 +882,10 @@ func (e *NoRunningConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoRunningConfigurationRecorderException) ErrorCode() string { - return "NoRunningConfigurationRecorderException" + if e.Code == nil { + return "NoRunningConfigurationRecorderException" + } + return *e.Code } func (e *NoRunningConfigurationRecorderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -714,6 +895,8 @@ func (e *NoRunningConfigurationRecorderException) ErrorFault() smithy.ErrorFault type NoSuchBucketException struct { Message *string + Code *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.Code == nil { + return "NoSuchBucketException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchConfigRuleException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -767,7 +964,10 @@ func (e *NoSuchConfigRuleInConformancePackException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigRuleInConformancePackException) ErrorCode() string { - return "NoSuchConfigRuleInConformancePackException" + if e.Code == nil { + return "NoSuchConfigRuleInConformancePackException" + } + return *e.Code } func (e *NoSuchConfigRuleInConformancePackException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -777,6 +977,8 @@ func (e *NoSuchConfigRuleInConformancePackException) ErrorFault() smithy.ErrorFa type NoSuchConfigurationAggregatorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -790,7 +992,10 @@ func (e *NoSuchConfigurationAggregatorException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigurationAggregatorException) ErrorCode() string { - return "NoSuchConfigurationAggregatorException" + if e.Code == nil { + return "NoSuchConfigurationAggregatorException" + } + return *e.Code } func (e *NoSuchConfigurationAggregatorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -800,6 +1005,8 @@ func (e *NoSuchConfigurationAggregatorException) ErrorFault() smithy.ErrorFault type NoSuchConfigurationRecorderException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -813,7 +1020,10 @@ func (e *NoSuchConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigurationRecorderException) ErrorCode() string { - return "NoSuchConfigurationRecorderException" + if e.Code == nil { + return "NoSuchConfigurationRecorderException" + } + return *e.Code } func (e *NoSuchConfigurationRecorderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -823,6 +1033,8 @@ func (e *NoSuchConfigurationRecorderException) ErrorFault() smithy.ErrorFault { type NoSuchConformancePackException struct { Message *string + Code *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.Code == nil { + return "NoSuchConformancePackException" + } + return *e.Code +} func (e *NoSuchConformancePackException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have specified a delivery channel that does not exist. type NoSuchDeliveryChannelException struct { Message *string + Code *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.Code == nil { + return "NoSuchDeliveryChannelException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -876,7 +1102,10 @@ func (e *NoSuchOrganizationConfigRuleException) ErrorMessage() string { return *e.Message } func (e *NoSuchOrganizationConfigRuleException) ErrorCode() string { - return "NoSuchOrganizationConfigRuleException" + if e.Code == nil { + return "NoSuchOrganizationConfigRuleException" + } + return *e.Code } func (e *NoSuchOrganizationConfigRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -888,6 +1117,8 @@ func (e *NoSuchOrganizationConfigRuleException) ErrorFault() smithy.ErrorFault { type NoSuchOrganizationConformancePackException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -901,7 +1132,10 @@ func (e *NoSuchOrganizationConformancePackException) ErrorMessage() string { return *e.Message } func (e *NoSuchOrganizationConformancePackException) ErrorCode() string { - return "NoSuchOrganizationConformancePackException" + if e.Code == nil { + return "NoSuchOrganizationConformancePackException" + } + return *e.Code } func (e *NoSuchOrganizationConformancePackException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -911,6 +1145,8 @@ func (e *NoSuchOrganizationConformancePackException) ErrorFault() smithy.ErrorFa type NoSuchRemediationConfigurationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -924,7 +1160,10 @@ func (e *NoSuchRemediationConfigurationException) ErrorMessage() string { return *e.Message } func (e *NoSuchRemediationConfigurationException) ErrorCode() string { - return "NoSuchRemediationConfigurationException" + if e.Code == nil { + return "NoSuchRemediationConfigurationException" + } + return *e.Code } func (e *NoSuchRemediationConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -934,6 +1173,8 @@ func (e *NoSuchRemediationConfigurationException) ErrorFault() smithy.ErrorFault type NoSuchRemediationExceptionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -947,7 +1188,10 @@ func (e *NoSuchRemediationExceptionException) ErrorMessage() string { return *e.Message } func (e *NoSuchRemediationExceptionException) ErrorCode() string { - return "NoSuchRemediationExceptionException" + if e.Code == nil { + return "NoSuchRemediationExceptionException" + } + return *e.Code } func (e *NoSuchRemediationExceptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -957,6 +1201,8 @@ func (e *NoSuchRemediationExceptionException) ErrorFault() smithy.ErrorFault { type NoSuchRetentionConfigurationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -970,7 +1216,10 @@ func (e *NoSuchRetentionConfigurationException) ErrorMessage() string { return *e.Message } func (e *NoSuchRetentionConfigurationException) ErrorCode() string { - return "NoSuchRetentionConfigurationException" + if e.Code == nil { + return "NoSuchRetentionConfigurationException" + } + return *e.Code } func (e *NoSuchRetentionConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1005,6 +1254,8 @@ func (e *NoSuchRetentionConfigurationException) ErrorFault() smithy.ErrorFault { type OrganizationAccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1018,7 +1269,10 @@ func (e *OrganizationAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *OrganizationAccessDeniedException) ErrorCode() string { - return "OrganizationAccessDeniedException" + if e.Code == nil { + return "OrganizationAccessDeniedException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1040,7 +1296,10 @@ func (e *OrganizationAllFeaturesNotEnabledException) ErrorMessage() string { return *e.Message } func (e *OrganizationAllFeaturesNotEnabledException) ErrorCode() string { - return "OrganizationAllFeaturesNotEnabledException" + if e.Code == nil { + return "OrganizationAllFeaturesNotEnabledException" + } + return *e.Code } func (e *OrganizationAllFeaturesNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1050,6 +1309,8 @@ func (e *OrganizationAllFeaturesNotEnabledException) ErrorFault() smithy.ErrorFa type OrganizationConformancePackTemplateValidationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1063,7 +1324,10 @@ func (e *OrganizationConformancePackTemplateValidationException) ErrorMessage() return *e.Message } func (e *OrganizationConformancePackTemplateValidationException) ErrorCode() string { - return "OrganizationConformancePackTemplateValidationException" + if e.Code == nil { + return "OrganizationConformancePackTemplateValidationException" + } + return *e.Code } func (e *OrganizationConformancePackTemplateValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1073,6 +1337,8 @@ func (e *OrganizationConformancePackTemplateValidationException) ErrorFault() sm type OversizedConfigurationItemException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1086,7 +1352,10 @@ func (e *OversizedConfigurationItemException) ErrorMessage() string { return *e.Message } func (e *OversizedConfigurationItemException) ErrorCode() string { - return "OversizedConfigurationItemException" + if e.Code == nil { + return "OversizedConfigurationItemException" + } + return *e.Code } func (e *OversizedConfigurationItemException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1097,6 +1366,8 @@ func (e *OversizedConfigurationItemException) ErrorFault() smithy.ErrorFault { type RemediationInProgressException struct { Message *string + Code *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.Code == nil { + return "RemediationInProgressException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1130,7 +1408,10 @@ func (e *ResourceConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ResourceConcurrentModificationException) ErrorCode() string { - return "ResourceConcurrentModificationException" + if e.Code == nil { + return "ResourceConcurrentModificationException" + } + return *e.Code } func (e *ResourceConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1166,6 +1447,8 @@ func (e *ResourceConcurrentModificationException) ErrorFault() smithy.ErrorFault type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotDiscoveredException" + } + return *e.Code +} func (e *ResourceNotDiscoveredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have specified a resource that does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..57c3071e197 100644 --- a/service/connect/types/errors.go +++ b/service/connect/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The flow has not been published. type ContactFlowNotPublishedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *ContactFlowNotPublishedException) ErrorMessage() string { return *e.Message } func (e *ContactFlowNotPublishedException) ErrorCode() string { - return "ContactFlowNotPublishedException" + if e.Code == nil { + return "ContactFlowNotPublishedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ContactNotFoundException" + } + return *e.Code +} func (e *ContactNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Outbound calls to the destination number are not allowed. type DestinationNotAllowedException struct { Message *string + Code *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.Code == nil { + return "DestinationNotAllowedException" + } + return *e.Code +} func (e *DestinationNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified name already exists. type DuplicateResourceException struct { Message *string + Code *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.Code == nil { + return "DuplicateResourceException" + } + return *e.Code +} func (e *DuplicateResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity with the same name already exists. type IdempotencyException struct { Message *string + Code *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.Code == nil { + return "IdempotencyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The flow is not valid. type InvalidContactFlowException struct { Message *string + Code *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.Code == nil { + return "InvalidContactFlowException" + } + return *e.Code +} func (e *InvalidContactFlowException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The problems with the module. Please fix before trying again. type InvalidContactFlowModuleException struct { Message *string + Code *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.Code == nil { + return "InvalidContactFlowModuleException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The allowed limit for the resource has been exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The contact is not permitted. type OutboundContactNotPermittedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -261,7 +343,10 @@ func (e *OutboundContactNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OutboundContactNotPermittedException) ErrorCode() string { - return "OutboundContactNotPermittedException" + if e.Code == nil { + return "OutboundContactNotPermittedException" + } + return *e.Code } func (e *OutboundContactNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -271,6 +356,8 @@ func (e *OutboundContactNotPermittedException) ErrorFault() smithy.ErrorFault { type PropertyValidationException struct { Message *string + Code *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.Code == nil { + return "PropertyValidationException" + } + return *e.Code +} func (e *PropertyValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource already has that name. type ResourceConflictException struct { Message *string + Code *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.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // That resource is already in use. Please try another. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is not ready. type ResourceNotReadyException struct { Message *string + Code *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.Code == nil { + return "ResourceNotReadyException" + } + return *e.Code +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling limit has been exceeded. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UserNotFoundException" + } + return *e.Code +} func (e *UserNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connect/types/types.go b/service/connect/types/types.go index a28f94b0944..67386f663bb 100644 --- a/service/connect/types/types.go +++ b/service/connect/types/types.go @@ -1627,13 +1627,12 @@ type Reference struct { // one non null field between the URL and attachment based on the reference type. // // The following types satisfy this interface: -// -// ReferenceSummaryMemberAttachment -// ReferenceSummaryMemberDate -// ReferenceSummaryMemberEmail -// ReferenceSummaryMemberNumber -// ReferenceSummaryMemberString -// ReferenceSummaryMemberUrl +// ReferenceSummaryMemberAttachment +// ReferenceSummaryMemberDate +// ReferenceSummaryMemberEmail +// ReferenceSummaryMemberNumber +// ReferenceSummaryMemberString +// ReferenceSummaryMemberUrl type ReferenceSummary interface { isReferenceSummary() } diff --git a/service/connectcampaigns/types/errors.go b/service/connectcampaigns/types/errors.go index ea10aa3aa0b..21576e42269 100644 --- a/service/connectcampaigns/types/errors.go +++ b/service/connectcampaigns/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidCampaignStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connectcampaigns/types/types.go b/service/connectcampaigns/types/types.go index 5f384ba5720..208fe912e8d 100644 --- a/service/connectcampaigns/types/types.go +++ b/service/connectcampaigns/types/types.go @@ -95,9 +95,8 @@ type CampaignSummary struct { // The possible types of dialer config parameters // // The following types satisfy this interface: -// -// DialerConfigMemberPredictiveDialerConfig -// DialerConfigMemberProgressiveDialerConfig +// DialerConfigMemberPredictiveDialerConfig +// DialerConfigMemberProgressiveDialerConfig type DialerConfig interface { isDialerConfig() } diff --git a/service/connectcases/types/errors.go b/service/connectcases/types/errors.go index 60dd4568fd0..bf64ec4e4a7 100644 --- a/service/connectcases/types/errors.go +++ b/service/connectcases/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/connectcases/types/types.go b/service/connectcases/types/types.go index 4b690d8b141..9ceecc41568 100644 --- a/service/connectcases/types/types.go +++ b/service/connectcases/types/types.go @@ -34,10 +34,9 @@ type CaseEventIncludedData struct { // A filter for cases. Only one value can be provided. // // The following types satisfy this interface: -// -// CaseFilterMemberAndAll -// CaseFilterMemberField -// CaseFilterMemberNot +// CaseFilterMemberAndAll +// CaseFilterMemberField +// CaseFilterMemberNot type CaseFilter interface { isCaseFilter() } @@ -223,13 +222,12 @@ type FieldError struct { // A filter for fields. Only one value can be provided. // // The following types satisfy this interface: -// -// FieldFilterMemberContains -// FieldFilterMemberEqualTo -// FieldFilterMemberGreaterThan -// FieldFilterMemberGreaterThanOrEqualTo -// FieldFilterMemberLessThan -// FieldFilterMemberLessThanOrEqualTo +// FieldFilterMemberContains +// FieldFilterMemberEqualTo +// FieldFilterMemberGreaterThan +// FieldFilterMemberGreaterThanOrEqualTo +// FieldFilterMemberLessThan +// FieldFilterMemberLessThanOrEqualTo type FieldFilter interface { isFieldFilter() } @@ -417,10 +415,9 @@ type FieldValue struct { // Object to store union of Field values. // // The following types satisfy this interface: -// -// FieldValueUnionMemberBooleanValue -// FieldValueUnionMemberDoubleValue -// FieldValueUnionMemberStringValue +// FieldValueUnionMemberBooleanValue +// FieldValueUnionMemberDoubleValue +// FieldValueUnionMemberStringValue type FieldValueUnion interface { isFieldValueUnion() } @@ -504,8 +501,7 @@ type LayoutConfiguration struct { // Object to store union of different versions of layout content. // // The following types satisfy this interface: -// -// LayoutContentMemberBasic +// LayoutContentMemberBasic type LayoutContent interface { isLayoutContent() } @@ -554,9 +550,8 @@ type LayoutSummary struct { // Represents the content of a particular type of related item. // // The following types satisfy this interface: -// -// RelatedItemContentMemberComment -// RelatedItemContentMemberContact +// RelatedItemContentMemberComment +// RelatedItemContentMemberContact type RelatedItemContent interface { isRelatedItemContent() } @@ -593,9 +588,8 @@ type RelatedItemEventIncludedData struct { // Represents the content of a related item to be created. // // The following types satisfy this interface: -// -// RelatedItemInputContentMemberComment -// RelatedItemInputContentMemberContact +// RelatedItemInputContentMemberComment +// RelatedItemInputContentMemberContact type RelatedItemInputContent interface { isRelatedItemInputContent() } @@ -621,9 +615,8 @@ func (*RelatedItemInputContentMemberContact) isRelatedItemInputContent() {} // The list of types of related items and their parameters to use for filtering. // // The following types satisfy this interface: -// -// RelatedItemTypeFilterMemberComment -// RelatedItemTypeFilterMemberContact +// RelatedItemTypeFilterMemberComment +// RelatedItemTypeFilterMemberContact type RelatedItemTypeFilter interface { isRelatedItemTypeFilter() } @@ -715,8 +708,7 @@ type SearchRelatedItemsResponseItem struct { // This represents a sections within a panel or tab of the page layout. // // The following types satisfy this interface: -// -// SectionMemberFieldGroup +// SectionMemberFieldGroup type Section interface { isSection() } diff --git a/service/connectcontactlens/types/errors.go b/service/connectcontactlens/types/errors.go index c313d3a021b..7c2f3c36cbc 100644 --- a/service/connectcontactlens/types/errors.go +++ b/service/connectcontactlens/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The throttling limit has been exceeded. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..c3f49014db1 100644 --- a/service/connectparticipant/types/errors.go +++ b/service/connectparticipant/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An attachment with that identifier is already being uploaded. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The number of attachments per contact exceeds the quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..16b475b9c58 100644 --- a/service/controltower/types/errors.go +++ b/service/controltower/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error during processing of request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource which does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..81ae5d1529c 100644 --- a/service/costandusagereportservice/types/errors.go +++ b/service/costandusagereportservice/types/errors.go @@ -12,6 +12,8 @@ import ( type DuplicateReportNameException struct { Message *string + Code *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.Code == nil { + return "DuplicateReportNameException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReportLimitReachedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..46780ce0a7a 100644 --- a/service/costexplorer/types/errors.go +++ b/service/costexplorer/types/errors.go @@ -11,6 +11,8 @@ import ( type BillExpirationException struct { Message *string + Code *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.Code == nil { + return "BillExpirationException" + } + return *e.Code +} func (e *BillExpirationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested data is unavailable. type DataUnavailableException struct { Message *string + Code *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.Code == nil { + return "DataUnavailableException" + } + return *e.Code +} func (e *DataUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A request to generate a recommendation is already in progress. type GenerationExistsException struct { Message *string + Code *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.Code == nil { + return "GenerationExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RequestChangedException" + } + return *e.Code +} func (e *RequestChangedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ARN in the request doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cost anomaly monitor does not exist for the account. type UnknownMonitorException struct { Message *string + Code *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.Code == nil { + return "UnknownMonitorException" + } + return *e.Code +} func (e *UnknownMonitorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cost anomaly subscription does not exist for the account. type UnknownSubscriptionException struct { Message *string + Code *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.Code == nil { + return "UnknownSubscriptionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnresolvableUsageUnitException" + } + return *e.Code +} 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..ed9c09d6ee4 100644 --- a/service/customerprofiles/types/errors.go +++ b/service/customerprofiles/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist, or access was denied. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded the maximum number of requests. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/databasemigrationservice/api_op_AddTagsToResource.go b/service/databasemigrationservice/api_op_AddTagsToResource.go index d79c4ac3220..dde09b74f34 100644 --- a/service/databasemigrationservice/api_op_AddTagsToResource.go +++ b/service/databasemigrationservice/api_op_AddTagsToResource.go @@ -50,6 +50,7 @@ type AddTagsToResourceInput struct { noSmithyDocumentSerde } +// type AddTagsToResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_ApplyPendingMaintenanceAction.go b/service/databasemigrationservice/api_op_ApplyPendingMaintenanceAction.go index 02996daa71f..58fe02f716f 100644 --- a/service/databasemigrationservice/api_op_ApplyPendingMaintenanceAction.go +++ b/service/databasemigrationservice/api_op_ApplyPendingMaintenanceAction.go @@ -28,6 +28,7 @@ func (c *Client) ApplyPendingMaintenanceAction(ctx context.Context, params *Appl return out, nil } +// type ApplyPendingMaintenanceActionInput struct { // The pending maintenance action to apply to this resource. Valid values: @@ -60,6 +61,7 @@ type ApplyPendingMaintenanceActionInput struct { noSmithyDocumentSerde } +// type ApplyPendingMaintenanceActionOutput struct { // The DMS resource that the pending maintenance action will be applied to. diff --git a/service/databasemigrationservice/api_op_CancelReplicationTaskAssessmentRun.go b/service/databasemigrationservice/api_op_CancelReplicationTaskAssessmentRun.go index ce17d48cac3..b17ef7ee00f 100644 --- a/service/databasemigrationservice/api_op_CancelReplicationTaskAssessmentRun.go +++ b/service/databasemigrationservice/api_op_CancelReplicationTaskAssessmentRun.go @@ -29,6 +29,7 @@ func (c *Client) CancelReplicationTaskAssessmentRun(ctx context.Context, params return out, nil } +// type CancelReplicationTaskAssessmentRunInput struct { // Amazon Resource Name (ARN) of the premigration assessment run to be canceled. @@ -39,6 +40,7 @@ type CancelReplicationTaskAssessmentRunInput struct { noSmithyDocumentSerde } +// type CancelReplicationTaskAssessmentRunOutput struct { // The ReplicationTaskAssessmentRun object for the canceled assessment run. diff --git a/service/databasemigrationservice/api_op_CreateEndpoint.go b/service/databasemigrationservice/api_op_CreateEndpoint.go index 2471bd55880..470dc86bc0e 100644 --- a/service/databasemigrationservice/api_op_CreateEndpoint.go +++ b/service/databasemigrationservice/api_op_CreateEndpoint.go @@ -32,6 +32,7 @@ func (c *Client) CreateEndpoint(ctx context.Context, params *CreateEndpointInput return out, nil } +// type CreateEndpointInput struct { // The database endpoint identifier. Identifiers must begin with a letter and must @@ -248,6 +249,7 @@ type CreateEndpointInput struct { noSmithyDocumentSerde } +// type CreateEndpointOutput struct { // The endpoint that was created. diff --git a/service/databasemigrationservice/api_op_CreateEventSubscription.go b/service/databasemigrationservice/api_op_CreateEventSubscription.go index 12214ce8d38..f9efd698d0a 100644 --- a/service/databasemigrationservice/api_op_CreateEventSubscription.go +++ b/service/databasemigrationservice/api_op_CreateEventSubscription.go @@ -40,6 +40,7 @@ func (c *Client) CreateEventSubscription(ctx context.Context, params *CreateEven return out, nil } +// type CreateEventSubscriptionInput struct { // The Amazon Resource Name (ARN) of the Amazon SNS topic created for event @@ -84,6 +85,7 @@ type CreateEventSubscriptionInput struct { noSmithyDocumentSerde } +// type CreateEventSubscriptionOutput struct { // The event subscription that was created. diff --git a/service/databasemigrationservice/api_op_CreateReplicationInstance.go b/service/databasemigrationservice/api_op_CreateReplicationInstance.go index a2622b95043..5ad3e7b5f61 100644 --- a/service/databasemigrationservice/api_op_CreateReplicationInstance.go +++ b/service/databasemigrationservice/api_op_CreateReplicationInstance.go @@ -34,6 +34,7 @@ func (c *Client) CreateReplicationInstance(ctx context.Context, params *CreateRe return out, nil } +// type CreateReplicationInstanceInput struct { // The compute and memory capacity of the replication instance as defined for the @@ -140,6 +141,7 @@ type CreateReplicationInstanceInput struct { noSmithyDocumentSerde } +// type CreateReplicationInstanceOutput struct { // The replication instance that was created. diff --git a/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go b/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go index 8b541dccd16..fb283ded5b9 100644 --- a/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go +++ b/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go @@ -30,6 +30,7 @@ func (c *Client) CreateReplicationSubnetGroup(ctx context.Context, params *Creat return out, nil } +// type CreateReplicationSubnetGroupInput struct { // The description for the subnet group. @@ -56,6 +57,7 @@ type CreateReplicationSubnetGroupInput struct { noSmithyDocumentSerde } +// type CreateReplicationSubnetGroupOutput struct { // The replication subnet group that was created. diff --git a/service/databasemigrationservice/api_op_CreateReplicationTask.go b/service/databasemigrationservice/api_op_CreateReplicationTask.go index a0017fe7a67..755c09a53c0 100644 --- a/service/databasemigrationservice/api_op_CreateReplicationTask.go +++ b/service/databasemigrationservice/api_op_CreateReplicationTask.go @@ -28,6 +28,7 @@ func (c *Client) CreateReplicationTask(ctx context.Context, params *CreateReplic return out, nil } +// type CreateReplicationTaskInput struct { // The migration type. Valid values: full-load | cdc | full-load-and-cdc @@ -128,6 +129,7 @@ type CreateReplicationTaskInput struct { noSmithyDocumentSerde } +// type CreateReplicationTaskOutput struct { // The replication task that was created. diff --git a/service/databasemigrationservice/api_op_DeleteConnection.go b/service/databasemigrationservice/api_op_DeleteConnection.go index 3f9d7c08478..29ad4fca7b8 100644 --- a/service/databasemigrationservice/api_op_DeleteConnection.go +++ b/service/databasemigrationservice/api_op_DeleteConnection.go @@ -27,6 +27,7 @@ func (c *Client) DeleteConnection(ctx context.Context, params *DeleteConnectionI return out, nil } +// type DeleteConnectionInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -42,6 +43,7 @@ type DeleteConnectionInput struct { noSmithyDocumentSerde } +// type DeleteConnectionOutput struct { // The connection that is being deleted. diff --git a/service/databasemigrationservice/api_op_DeleteEndpoint.go b/service/databasemigrationservice/api_op_DeleteEndpoint.go index 15650286482..ca400c989fa 100644 --- a/service/databasemigrationservice/api_op_DeleteEndpoint.go +++ b/service/databasemigrationservice/api_op_DeleteEndpoint.go @@ -28,6 +28,7 @@ func (c *Client) DeleteEndpoint(ctx context.Context, params *DeleteEndpointInput return out, nil } +// type DeleteEndpointInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -38,6 +39,7 @@ type DeleteEndpointInput struct { noSmithyDocumentSerde } +// type DeleteEndpointOutput struct { // The endpoint that was deleted. diff --git a/service/databasemigrationservice/api_op_DeleteEventSubscription.go b/service/databasemigrationservice/api_op_DeleteEventSubscription.go index fd11d71c2de..09bafd0fc22 100644 --- a/service/databasemigrationservice/api_op_DeleteEventSubscription.go +++ b/service/databasemigrationservice/api_op_DeleteEventSubscription.go @@ -27,6 +27,7 @@ func (c *Client) DeleteEventSubscription(ctx context.Context, params *DeleteEven return out, nil } +// type DeleteEventSubscriptionInput struct { // The name of the DMS event notification subscription to be deleted. @@ -37,6 +38,7 @@ type DeleteEventSubscriptionInput struct { noSmithyDocumentSerde } +// type DeleteEventSubscriptionOutput struct { // The event subscription that was deleted. diff --git a/service/databasemigrationservice/api_op_DeleteReplicationInstance.go b/service/databasemigrationservice/api_op_DeleteReplicationInstance.go index 7860b5d5f7f..770907cd328 100644 --- a/service/databasemigrationservice/api_op_DeleteReplicationInstance.go +++ b/service/databasemigrationservice/api_op_DeleteReplicationInstance.go @@ -28,6 +28,7 @@ func (c *Client) DeleteReplicationInstance(ctx context.Context, params *DeleteRe return out, nil } +// type DeleteReplicationInstanceInput struct { // The Amazon Resource Name (ARN) of the replication instance to be deleted. @@ -38,6 +39,7 @@ type DeleteReplicationInstanceInput struct { noSmithyDocumentSerde } +// type DeleteReplicationInstanceOutput struct { // The replication instance that was deleted. diff --git a/service/databasemigrationservice/api_op_DeleteReplicationSubnetGroup.go b/service/databasemigrationservice/api_op_DeleteReplicationSubnetGroup.go index aef90701ee9..23b5ac4f98e 100644 --- a/service/databasemigrationservice/api_op_DeleteReplicationSubnetGroup.go +++ b/service/databasemigrationservice/api_op_DeleteReplicationSubnetGroup.go @@ -26,6 +26,7 @@ func (c *Client) DeleteReplicationSubnetGroup(ctx context.Context, params *Delet return out, nil } +// type DeleteReplicationSubnetGroupInput struct { // The subnet group name of the replication instance. @@ -36,6 +37,7 @@ type DeleteReplicationSubnetGroupInput struct { noSmithyDocumentSerde } +// type DeleteReplicationSubnetGroupOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DeleteReplicationTask.go b/service/databasemigrationservice/api_op_DeleteReplicationTask.go index afff5a4ecba..53c743a30ea 100644 --- a/service/databasemigrationservice/api_op_DeleteReplicationTask.go +++ b/service/databasemigrationservice/api_op_DeleteReplicationTask.go @@ -27,6 +27,7 @@ func (c *Client) DeleteReplicationTask(ctx context.Context, params *DeleteReplic return out, nil } +// type DeleteReplicationTaskInput struct { // The Amazon Resource Name (ARN) of the replication task to be deleted. @@ -37,6 +38,7 @@ type DeleteReplicationTaskInput struct { noSmithyDocumentSerde } +// type DeleteReplicationTaskOutput struct { // The deleted replication task. diff --git a/service/databasemigrationservice/api_op_DeleteReplicationTaskAssessmentRun.go b/service/databasemigrationservice/api_op_DeleteReplicationTaskAssessmentRun.go index 950df11d799..782b135705c 100644 --- a/service/databasemigrationservice/api_op_DeleteReplicationTaskAssessmentRun.go +++ b/service/databasemigrationservice/api_op_DeleteReplicationTaskAssessmentRun.go @@ -30,6 +30,7 @@ func (c *Client) DeleteReplicationTaskAssessmentRun(ctx context.Context, params return out, nil } +// type DeleteReplicationTaskAssessmentRunInput struct { // Amazon Resource Name (ARN) of the premigration assessment run to be deleted. @@ -40,6 +41,7 @@ type DeleteReplicationTaskAssessmentRunInput struct { noSmithyDocumentSerde } +// type DeleteReplicationTaskAssessmentRunOutput struct { // The ReplicationTaskAssessmentRun object for the deleted assessment run. diff --git a/service/databasemigrationservice/api_op_DescribeAccountAttributes.go b/service/databasemigrationservice/api_op_DescribeAccountAttributes.go index df75de2686f..9a6685d6aad 100644 --- a/service/databasemigrationservice/api_op_DescribeAccountAttributes.go +++ b/service/databasemigrationservice/api_op_DescribeAccountAttributes.go @@ -34,10 +34,12 @@ func (c *Client) DescribeAccountAttributes(ctx context.Context, params *Describe return out, nil } +// type DescribeAccountAttributesInput struct { noSmithyDocumentSerde } +// type DescribeAccountAttributesOutput struct { // Account quota information. diff --git a/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go b/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go index 2c7170a3fa2..f6ef2d50fc5 100644 --- a/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go +++ b/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go @@ -44,6 +44,7 @@ func (c *Client) DescribeApplicableIndividualAssessments(ctx context.Context, pa return out, nil } +// type DescribeApplicableIndividualAssessmentsInput struct { // Optional pagination token provided by a previous request. If this parameter is @@ -79,6 +80,7 @@ type DescribeApplicableIndividualAssessmentsInput struct { noSmithyDocumentSerde } +// type DescribeApplicableIndividualAssessmentsOutput struct { // List of names for the individual assessments supported by the premigration diff --git a/service/databasemigrationservice/api_op_DescribeConnections.go b/service/databasemigrationservice/api_op_DescribeConnections.go index 008cc179a47..e9bfb862448 100644 --- a/service/databasemigrationservice/api_op_DescribeConnections.go +++ b/service/databasemigrationservice/api_op_DescribeConnections.go @@ -34,6 +34,7 @@ func (c *Client) DescribeConnections(ctx context.Context, params *DescribeConnec return out, nil } +// type DescribeConnectionsInput struct { // The filters applied to the connection. Valid filter names: endpoint-arn | @@ -54,6 +55,7 @@ type DescribeConnectionsInput struct { noSmithyDocumentSerde } +// type DescribeConnectionsOutput struct { // A description of the connections. diff --git a/service/databasemigrationservice/api_op_DescribeEndpointTypes.go b/service/databasemigrationservice/api_op_DescribeEndpointTypes.go index f2c5b68900e..fdda508f6bf 100644 --- a/service/databasemigrationservice/api_op_DescribeEndpointTypes.go +++ b/service/databasemigrationservice/api_op_DescribeEndpointTypes.go @@ -28,6 +28,7 @@ func (c *Client) DescribeEndpointTypes(ctx context.Context, params *DescribeEndp return out, nil } +// type DescribeEndpointTypesInput struct { // Filters applied to the endpoint types. Valid filter names: engine-name | @@ -48,6 +49,7 @@ type DescribeEndpointTypesInput struct { noSmithyDocumentSerde } +// type DescribeEndpointTypesOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_DescribeEndpoints.go b/service/databasemigrationservice/api_op_DescribeEndpoints.go index 60edb190020..5f1e136dbb8 100644 --- a/service/databasemigrationservice/api_op_DescribeEndpoints.go +++ b/service/databasemigrationservice/api_op_DescribeEndpoints.go @@ -33,6 +33,7 @@ func (c *Client) DescribeEndpoints(ctx context.Context, params *DescribeEndpoint return out, nil } +// type DescribeEndpointsInput struct { // Filters applied to the endpoints. Valid filter names: endpoint-arn | @@ -53,6 +54,7 @@ type DescribeEndpointsInput struct { noSmithyDocumentSerde } +// type DescribeEndpointsOutput struct { // Endpoint description. diff --git a/service/databasemigrationservice/api_op_DescribeEventCategories.go b/service/databasemigrationservice/api_op_DescribeEventCategories.go index 1fa061857da..4a97c433098 100644 --- a/service/databasemigrationservice/api_op_DescribeEventCategories.go +++ b/service/databasemigrationservice/api_op_DescribeEventCategories.go @@ -31,6 +31,7 @@ func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEv return out, nil } +// type DescribeEventCategoriesInput struct { // Filters applied to the event categories. @@ -43,6 +44,7 @@ type DescribeEventCategoriesInput struct { noSmithyDocumentSerde } +// type DescribeEventCategoriesOutput struct { // A list of event categories. diff --git a/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go b/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go index d410526d177..41d564708f8 100644 --- a/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go +++ b/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go @@ -31,6 +31,7 @@ func (c *Client) DescribeEventSubscriptions(ctx context.Context, params *Describ return out, nil } +// type DescribeEventSubscriptionsInput struct { // Filters applied to event subscriptions. Valid filter names: @@ -54,6 +55,7 @@ type DescribeEventSubscriptionsInput struct { noSmithyDocumentSerde } +// type DescribeEventSubscriptionsOutput struct { // A list of event subscriptions. diff --git a/service/databasemigrationservice/api_op_DescribeEvents.go b/service/databasemigrationservice/api_op_DescribeEvents.go index cd4f1598b6d..e864e9df719 100644 --- a/service/databasemigrationservice/api_op_DescribeEvents.go +++ b/service/databasemigrationservice/api_op_DescribeEvents.go @@ -33,6 +33,7 @@ func (c *Client) DescribeEvents(ctx context.Context, params *DescribeEventsInput return out, nil } +// type DescribeEventsInput struct { // The duration of the events to be listed. @@ -71,6 +72,7 @@ type DescribeEventsInput struct { noSmithyDocumentSerde } +// type DescribeEventsOutput struct { // The events described. diff --git a/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go b/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go index 8f18cd13b9c..98f5d259481 100644 --- a/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go +++ b/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go @@ -29,6 +29,7 @@ func (c *Client) DescribeOrderableReplicationInstances(ctx context.Context, para return out, nil } +// type DescribeOrderableReplicationInstancesInput struct { // An optional pagination token provided by a previous request. If this parameter @@ -45,6 +46,7 @@ type DescribeOrderableReplicationInstancesInput struct { noSmithyDocumentSerde } +// type DescribeOrderableReplicationInstancesOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go b/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go index c9570f66dc9..a2f9a40dfdb 100644 --- a/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go +++ b/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go @@ -28,6 +28,7 @@ func (c *Client) DescribePendingMaintenanceActions(ctx context.Context, params * return out, nil } +// type DescribePendingMaintenanceActionsInput struct { // @@ -50,6 +51,7 @@ type DescribePendingMaintenanceActionsInput struct { noSmithyDocumentSerde } +// type DescribePendingMaintenanceActionsOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_DescribeRefreshSchemasStatus.go b/service/databasemigrationservice/api_op_DescribeRefreshSchemasStatus.go index b3eead75ab0..f424a758c27 100644 --- a/service/databasemigrationservice/api_op_DescribeRefreshSchemasStatus.go +++ b/service/databasemigrationservice/api_op_DescribeRefreshSchemasStatus.go @@ -27,6 +27,7 @@ func (c *Client) DescribeRefreshSchemasStatus(ctx context.Context, params *Descr return out, nil } +// type DescribeRefreshSchemasStatusInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -37,6 +38,7 @@ type DescribeRefreshSchemasStatusInput struct { noSmithyDocumentSerde } +// type DescribeRefreshSchemasStatusOutput struct { // The status of the schema. diff --git a/service/databasemigrationservice/api_op_DescribeReplicationInstances.go b/service/databasemigrationservice/api_op_DescribeReplicationInstances.go index 6fdffb328bc..6ba3fab1389 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationInstances.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationInstances.go @@ -34,6 +34,7 @@ func (c *Client) DescribeReplicationInstances(ctx context.Context, params *Descr return out, nil } +// type DescribeReplicationInstancesInput struct { // Filters applied to replication instances. Valid filter names: @@ -55,6 +56,7 @@ type DescribeReplicationInstancesInput struct { noSmithyDocumentSerde } +// type DescribeReplicationInstancesOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go b/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go index 25ba8c1d350..1152f624fcd 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go @@ -28,6 +28,7 @@ func (c *Client) DescribeReplicationSubnetGroups(ctx context.Context, params *De return out, nil } +// type DescribeReplicationSubnetGroupsInput struct { // Filters applied to replication subnet groups. Valid filter names: @@ -48,6 +49,7 @@ type DescribeReplicationSubnetGroupsInput struct { noSmithyDocumentSerde } +// type DescribeReplicationSubnetGroupsOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go index 314d6f208c7..10ef4b32724 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go @@ -33,6 +33,7 @@ func (c *Client) DescribeReplicationTaskAssessmentResults(ctx context.Context, p return out, nil } +// type DescribeReplicationTaskAssessmentResultsInput struct { // An optional pagination token provided by a previous request. If this parameter @@ -54,6 +55,7 @@ type DescribeReplicationTaskAssessmentResultsInput struct { noSmithyDocumentSerde } +// type DescribeReplicationTaskAssessmentResultsOutput struct { // - The Amazon S3 bucket where the task assessment report is located. diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go index 087e75f59f1..5f3ca07450c 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go @@ -33,6 +33,7 @@ func (c *Client) DescribeReplicationTaskAssessmentRuns(ctx context.Context, para return out, nil } +// type DescribeReplicationTaskAssessmentRunsInput struct { // Filters applied to the premigration assessment runs described in the form of @@ -53,6 +54,7 @@ type DescribeReplicationTaskAssessmentRunsInput struct { noSmithyDocumentSerde } +// type DescribeReplicationTaskAssessmentRunsOutput struct { // A pagination token returned for you to pass to a subsequent request. If you pass diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go b/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go index 5e5997820db..7d90466f10b 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go @@ -30,6 +30,7 @@ func (c *Client) DescribeReplicationTaskIndividualAssessments(ctx context.Contex return out, nil } +// type DescribeReplicationTaskIndividualAssessmentsInput struct { // Filters applied to the individual assessments described in the form of key-value @@ -50,6 +51,7 @@ type DescribeReplicationTaskIndividualAssessmentsInput struct { noSmithyDocumentSerde } +// type DescribeReplicationTaskIndividualAssessmentsOutput struct { // A pagination token returned for you to pass to a subsequent request. If you pass diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTasks.go b/service/databasemigrationservice/api_op_DescribeReplicationTasks.go index 00799294d82..c78428920c6 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTasks.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTasks.go @@ -34,6 +34,7 @@ func (c *Client) DescribeReplicationTasks(ctx context.Context, params *DescribeR return out, nil } +// type DescribeReplicationTasksInput struct { // Filters applied to replication tasks. Valid filter names: replication-task-arn | @@ -59,6 +60,7 @@ type DescribeReplicationTasksInput struct { noSmithyDocumentSerde } +// type DescribeReplicationTasksOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_DescribeSchemas.go b/service/databasemigrationservice/api_op_DescribeSchemas.go index 630534d956b..ed7795f57c5 100644 --- a/service/databasemigrationservice/api_op_DescribeSchemas.go +++ b/service/databasemigrationservice/api_op_DescribeSchemas.go @@ -27,6 +27,7 @@ func (c *Client) DescribeSchemas(ctx context.Context, params *DescribeSchemasInp return out, nil } +// type DescribeSchemasInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -48,6 +49,7 @@ type DescribeSchemasInput struct { noSmithyDocumentSerde } +// type DescribeSchemasOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_DescribeTableStatistics.go b/service/databasemigrationservice/api_op_DescribeTableStatistics.go index ffd4b43e4b1..5f3432369aa 100644 --- a/service/databasemigrationservice/api_op_DescribeTableStatistics.go +++ b/service/databasemigrationservice/api_op_DescribeTableStatistics.go @@ -32,6 +32,7 @@ func (c *Client) DescribeTableStatistics(ctx context.Context, params *DescribeTa return out, nil } +// type DescribeTableStatisticsInput struct { // The Amazon Resource Name (ARN) of the replication task. @@ -58,6 +59,7 @@ type DescribeTableStatisticsInput struct { noSmithyDocumentSerde } +// type DescribeTableStatisticsOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/databasemigrationservice/api_op_ListTagsForResource.go b/service/databasemigrationservice/api_op_ListTagsForResource.go index 88047afcf3b..cf2176c7098 100644 --- a/service/databasemigrationservice/api_op_ListTagsForResource.go +++ b/service/databasemigrationservice/api_op_ListTagsForResource.go @@ -30,6 +30,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes return out, nil } +// type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the DMS resource @@ -46,6 +47,7 @@ type ListTagsForResourceInput struct { noSmithyDocumentSerde } +// type ListTagsForResourceOutput struct { // A list of tags for the resource. diff --git a/service/databasemigrationservice/api_op_ModifyEndpoint.go b/service/databasemigrationservice/api_op_ModifyEndpoint.go index a2a3367178c..b2ee6289bb3 100644 --- a/service/databasemigrationservice/api_op_ModifyEndpoint.go +++ b/service/databasemigrationservice/api_op_ModifyEndpoint.go @@ -32,6 +32,7 @@ func (c *Client) ModifyEndpoint(ctx context.Context, params *ModifyEndpointInput return out, nil } +// type ModifyEndpointInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -246,6 +247,7 @@ type ModifyEndpointInput struct { noSmithyDocumentSerde } +// type ModifyEndpointOutput struct { // The modified endpoint. diff --git a/service/databasemigrationservice/api_op_ModifyEventSubscription.go b/service/databasemigrationservice/api_op_ModifyEventSubscription.go index a58da83291d..a73fc646c30 100644 --- a/service/databasemigrationservice/api_op_ModifyEventSubscription.go +++ b/service/databasemigrationservice/api_op_ModifyEventSubscription.go @@ -27,6 +27,7 @@ func (c *Client) ModifyEventSubscription(ctx context.Context, params *ModifyEven return out, nil } +// type ModifyEventSubscriptionInput struct { // The name of the DMS event notification subscription to be modified. @@ -53,6 +54,7 @@ type ModifyEventSubscriptionInput struct { noSmithyDocumentSerde } +// type ModifyEventSubscriptionOutput struct { // The modified event subscription. diff --git a/service/databasemigrationservice/api_op_ModifyReplicationInstance.go b/service/databasemigrationservice/api_op_ModifyReplicationInstance.go index 17b86a968fa..43dd1fc7f94 100644 --- a/service/databasemigrationservice/api_op_ModifyReplicationInstance.go +++ b/service/databasemigrationservice/api_op_ModifyReplicationInstance.go @@ -29,6 +29,7 @@ func (c *Client) ModifyReplicationInstance(ctx context.Context, params *ModifyRe return out, nil } +// type ModifyReplicationInstanceInput struct { // The Amazon Resource Name (ARN) of the replication instance. @@ -108,6 +109,7 @@ type ModifyReplicationInstanceInput struct { noSmithyDocumentSerde } +// type ModifyReplicationInstanceOutput struct { // The modified replication instance. diff --git a/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go b/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go index d7195c2a14e..ff64c10e173 100644 --- a/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go +++ b/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go @@ -27,6 +27,7 @@ func (c *Client) ModifyReplicationSubnetGroup(ctx context.Context, params *Modif return out, nil } +// type ModifyReplicationSubnetGroupInput struct { // The name of the replication instance subnet group. @@ -45,6 +46,7 @@ type ModifyReplicationSubnetGroupInput struct { noSmithyDocumentSerde } +// type ModifyReplicationSubnetGroupOutput struct { // The modified replication subnet group. diff --git a/service/databasemigrationservice/api_op_ModifyReplicationTask.go b/service/databasemigrationservice/api_op_ModifyReplicationTask.go index f50e92eff0b..93a59e6f455 100644 --- a/service/databasemigrationservice/api_op_ModifyReplicationTask.go +++ b/service/databasemigrationservice/api_op_ModifyReplicationTask.go @@ -32,6 +32,7 @@ func (c *Client) ModifyReplicationTask(ctx context.Context, params *ModifyReplic return out, nil } +// type ModifyReplicationTaskInput struct { // The Amazon Resource Name (ARN) of the replication task. @@ -99,6 +100,7 @@ type ModifyReplicationTaskInput struct { noSmithyDocumentSerde } +// type ModifyReplicationTaskOutput struct { // The replication task that was modified. diff --git a/service/databasemigrationservice/api_op_MoveReplicationTask.go b/service/databasemigrationservice/api_op_MoveReplicationTask.go index 9022e85db96..8151a60f96b 100644 --- a/service/databasemigrationservice/api_op_MoveReplicationTask.go +++ b/service/databasemigrationservice/api_op_MoveReplicationTask.go @@ -30,6 +30,7 @@ func (c *Client) MoveReplicationTask(ctx context.Context, params *MoveReplicatio return out, nil } +// type MoveReplicationTaskInput struct { // The Amazon Resource Name (ARN) of the task that you want to move. @@ -45,6 +46,7 @@ type MoveReplicationTaskInput struct { noSmithyDocumentSerde } +// type MoveReplicationTaskOutput struct { // The replication task that was moved. diff --git a/service/databasemigrationservice/api_op_RefreshSchemas.go b/service/databasemigrationservice/api_op_RefreshSchemas.go index 72f20f78223..321ff99450d 100644 --- a/service/databasemigrationservice/api_op_RefreshSchemas.go +++ b/service/databasemigrationservice/api_op_RefreshSchemas.go @@ -29,6 +29,7 @@ func (c *Client) RefreshSchemas(ctx context.Context, params *RefreshSchemasInput return out, nil } +// type RefreshSchemasInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -44,6 +45,7 @@ type RefreshSchemasInput struct { noSmithyDocumentSerde } +// type RefreshSchemasOutput struct { // The status of the refreshed schema. diff --git a/service/databasemigrationservice/api_op_RemoveTagsFromResource.go b/service/databasemigrationservice/api_op_RemoveTagsFromResource.go index 3ef1f558607..2aefb1135c0 100644 --- a/service/databasemigrationservice/api_op_RemoveTagsFromResource.go +++ b/service/databasemigrationservice/api_op_RemoveTagsFromResource.go @@ -46,6 +46,7 @@ type RemoveTagsFromResourceInput struct { noSmithyDocumentSerde } +// type RemoveTagsFromResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_StartReplicationTask.go b/service/databasemigrationservice/api_op_StartReplicationTask.go index 81f3fe74555..1dca0db587a 100644 --- a/service/databasemigrationservice/api_op_StartReplicationTask.go +++ b/service/databasemigrationservice/api_op_StartReplicationTask.go @@ -31,6 +31,7 @@ func (c *Client) StartReplicationTask(ctx context.Context, params *StartReplicat return out, nil } +// type StartReplicationTaskInput struct { // The Amazon Resource Name (ARN) of the replication task to be started. @@ -79,6 +80,7 @@ type StartReplicationTaskInput struct { noSmithyDocumentSerde } +// type StartReplicationTaskOutput struct { // The replication task started. diff --git a/service/databasemigrationservice/api_op_StartReplicationTaskAssessment.go b/service/databasemigrationservice/api_op_StartReplicationTaskAssessment.go index 2a0483f2039..4234bd47363 100644 --- a/service/databasemigrationservice/api_op_StartReplicationTaskAssessment.go +++ b/service/databasemigrationservice/api_op_StartReplicationTaskAssessment.go @@ -40,6 +40,7 @@ func (c *Client) StartReplicationTaskAssessment(ctx context.Context, params *Sta return out, nil } +// type StartReplicationTaskAssessmentInput struct { // The Amazon Resource Name (ARN) of the replication task. @@ -50,6 +51,7 @@ type StartReplicationTaskAssessmentInput struct { noSmithyDocumentSerde } +// type StartReplicationTaskAssessmentOutput struct { // The assessed replication task. diff --git a/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go b/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go index 05afa0190ab..dc30f4d0596 100644 --- a/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go +++ b/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go @@ -33,6 +33,7 @@ func (c *Client) StartReplicationTaskAssessmentRun(ctx context.Context, params * return out, nil } +// type StartReplicationTaskAssessmentRunInput struct { // Unique name to identify the assessment run. @@ -101,6 +102,7 @@ type StartReplicationTaskAssessmentRunInput struct { noSmithyDocumentSerde } +// type StartReplicationTaskAssessmentRunOutput struct { // The premigration assessment run that was started. diff --git a/service/databasemigrationservice/api_op_StopReplicationTask.go b/service/databasemigrationservice/api_op_StopReplicationTask.go index ec58a11a4a0..ce03d2f5715 100644 --- a/service/databasemigrationservice/api_op_StopReplicationTask.go +++ b/service/databasemigrationservice/api_op_StopReplicationTask.go @@ -27,6 +27,7 @@ func (c *Client) StopReplicationTask(ctx context.Context, params *StopReplicatio return out, nil } +// type StopReplicationTaskInput struct { // The Amazon Resource Name(ARN) of the replication task to be stopped. @@ -37,6 +38,7 @@ type StopReplicationTaskInput struct { noSmithyDocumentSerde } +// type StopReplicationTaskOutput struct { // The replication task stopped. diff --git a/service/databasemigrationservice/api_op_TestConnection.go b/service/databasemigrationservice/api_op_TestConnection.go index b6bc840f585..00a0b6f7aab 100644 --- a/service/databasemigrationservice/api_op_TestConnection.go +++ b/service/databasemigrationservice/api_op_TestConnection.go @@ -27,6 +27,7 @@ func (c *Client) TestConnection(ctx context.Context, params *TestConnectionInput return out, nil } +// type TestConnectionInput struct { // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -42,6 +43,7 @@ type TestConnectionInput struct { noSmithyDocumentSerde } +// type TestConnectionOutput struct { // The connection tested. diff --git a/service/databasemigrationservice/api_op_UpdateSubscriptionsToEventBridge.go b/service/databasemigrationservice/api_op_UpdateSubscriptionsToEventBridge.go index 931ef5c9138..80bf5e51f8c 100644 --- a/service/databasemigrationservice/api_op_UpdateSubscriptionsToEventBridge.go +++ b/service/databasemigrationservice/api_op_UpdateSubscriptionsToEventBridge.go @@ -38,6 +38,7 @@ func (c *Client) UpdateSubscriptionsToEventBridge(ctx context.Context, params *U return out, nil } +// type UpdateSubscriptionsToEventBridgeInput struct { // When set to true, this operation migrates DMS subscriptions for Amazon SNS @@ -49,6 +50,7 @@ type UpdateSubscriptionsToEventBridgeInput struct { noSmithyDocumentSerde } +// type UpdateSubscriptionsToEventBridgeOutput struct { // A string that indicates how many event subscriptions were migrated and how many diff --git a/service/databasemigrationservice/types/errors.go b/service/databasemigrationservice/types/errors.go index 910f5cc9861..1d1c93f4fbc 100644 --- a/service/databasemigrationservice/types/errors.go +++ b/service/databasemigrationservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedFault struct { Message *string + Code *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.Code == nil { + return "AccessDeniedFault" + } + return *e.Code +} func (e *AccessDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified collector doesn't exist. type CollectorNotFoundFault struct { Message *string + Code *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.Code == nil { + return "CollectorNotFoundFault" + } + return *e.Code +} func (e *CollectorNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are not enough resources allocated to the database migration. type InsufficientResourceCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *InsufficientResourceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientResourceCapacityFault) ErrorCode() string { - return "InsufficientResourceCapacityFault" + if e.Code == nil { + return "InsufficientResourceCapacityFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidCertificateFault" + } + return *e.Code +} func (e *InvalidCertificateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action or operation requested isn't valid. type InvalidOperationFault struct { Message *string + Code *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.Code == nil { + return "InvalidOperationFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidResourceStateFault" + } + return *e.Code +} func (e *InvalidResourceStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet provided is invalid. type InvalidSubnet struct { Message *string + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSAccessDeniedFault" + } + return *e.Code +} func (e *KMSAccessDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified KMS key isn't enabled. type KMSDisabledFault struct { Message *string + Code *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.Code == nil { + return "KMSDisabledFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidStateFault" + } + return *e.Code +} func (e *KMSInvalidStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DMS cannot access the KMS key. type KMSKeyNotAccessibleFault struct { Message *string + Code *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.Code == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.Code +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified KMS entity or resource can't be found. type KMSNotFoundFault struct { Message *string + Code *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.Code == nil { + return "KMSNotFoundFault" + } + return *e.Code +} func (e *KMSNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request triggered KMS request throttling. type KMSThrottlingFault struct { Message *string + Code *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.Code == nil { + return "KMSThrottlingFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -296,7 +394,10 @@ func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "ReplicationSubnetGroupDoesNotCoverEnoughAZs" + if e.Code == nil { + return "ReplicationSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.Code } func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -306,6 +407,8 @@ func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorF type ResourceAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsFault" + } + return *e.Code +} func (e *ResourceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundFault" + } + return *e.Code +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for this resource quota has been exceeded. type ResourceQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "ResourceQuotaExceededFault" + } + return *e.Code +} func (e *ResourceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Insufficient privileges are preventing access to an Amazon S3 object. type S3AccessDeniedFault struct { Message *string + Code *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.Code == nil { + return "S3AccessDeniedFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "S3ResourceNotFoundFault" + } + return *e.Code +} func (e *S3ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic is invalid. type SNSInvalidTopicFault struct { Message *string + Code *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.Code == nil { + return "SNSInvalidTopicFault" + } + return *e.Code +} func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized for the SNS subscription. type SNSNoAuthorizationFault struct { Message *string + Code *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.Code == nil { + return "SNSNoAuthorizationFault" + } + return *e.Code +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The storage quota has been exceeded. type StorageQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "StorageQuotaExceededFault" + } + return *e.Code +} func (e *StorageQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet is already in use. type SubnetAlreadyInUse struct { Message *string + Code *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.Code == nil { + return "SubnetAlreadyInUse" + } + return *e.Code +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An upgrade dependency is preventing the database migration. type UpgradeDependencyFailureFault struct { Message *string + Code *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.Code == nil { + return "UpgradeDependencyFailureFault" + } + return *e.Code +} 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..192d1af5bda 100644 --- a/service/databrew/types/errors.go +++ b/service/databrew/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service failure occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service quota is exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input parameters for this request failed validation. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..d651e3f0baa 100644 --- a/service/dataexchange/types/errors.go +++ b/service/dataexchange/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception occurred with the service. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource couldn't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has exceeded the quotas imposed by the service. type ServiceLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was invalid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..f06c02bfd5c 100644 --- a/service/datapipeline/types/errors.go +++ b/service/datapipeline/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServiceError struct { Message *string + Code *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.Code == nil { + return "InternalServiceError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified pipeline has been deleted. type PipelineDeletedException struct { Message *string + Code *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.Code == nil { + return "PipelineDeletedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PipelineNotFoundException" + } + return *e.Code +} func (e *PipelineNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified task was not found. type TaskNotFoundException struct { Message *string + Code *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.Code == nil { + return "TaskNotFoundException" + } + return *e.Code +} 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..740ae578422 100644 --- a/service/datasync/types/errors.go +++ b/service/datasync/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalException struct { Message *string + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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..534e89d4104 100644 --- a/service/dax/types/errors.go +++ b/service/dax/types/errors.go @@ -11,6 +11,8 @@ import ( type ClusterAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "ClusterAlreadyExistsFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClusterNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - return "ClusterQuotaForCustomerExceededFault" + if e.Code == nil { + return "ClusterQuotaForCustomerExceededFault" + } + return *e.Code } func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -74,6 +93,8 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type InsufficientClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -87,7 +108,10 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientClusterCapacityFault) ErrorCode() string { - return "InsufficientClusterCapacityFault" + if e.Code == nil { + return "InsufficientClusterCapacityFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidARNFault" + } + return *e.Code +} func (e *InvalidARNFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested DAX cluster is not in the available state. type InvalidClusterStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidClusterStateFault" + } + return *e.Code +} func (e *InvalidClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two or more incompatible parameters were specified. type InvalidParameterCombinationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -146,7 +186,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.Code == nil { + return "InvalidParameterCombinationException" + } + return *e.Code } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -156,6 +199,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterGroupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -169,7 +214,10 @@ func (e *InvalidParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidParameterGroupStateFault) ErrorCode() string { - return "InvalidParameterGroupStateFault" + if e.Code == nil { + return "InvalidParameterGroupStateFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid subnet identifier was specified. type InvalidSubnet struct { Message *string + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The VPC network is in an invalid state. type InvalidVPCNetworkStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NodeNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -266,7 +344,10 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { - return "NodeQuotaForClusterExceededFault" + if e.Code == nil { + return "NodeQuotaForClusterExceededFault" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -287,7 +370,10 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { - return "NodeQuotaForCustomerExceededFault" + if e.Code == nil { + return "NodeQuotaForCustomerExceededFault" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -308,7 +396,10 @@ func (e *ParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupAlreadyExistsFault) ErrorCode() string { - return "ParameterGroupAlreadyExistsFault" + if e.Code == nil { + return "ParameterGroupAlreadyExistsFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ParameterGroupNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -348,7 +448,10 @@ func (e *ParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupQuotaExceededFault) ErrorCode() string { - return "ParameterGroupQuotaExceededFault" + if e.Code == nil { + return "ParameterGroupQuotaExceededFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ServiceLinkedRoleNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet group already exists. type SubnetGroupAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "SubnetGroupAlreadyExistsFault" + } + return *e.Code +} func (e *SubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet group is currently in use. type SubnetGroupInUseFault struct { Message *string + Code *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.Code == nil { + return "SubnetGroupInUseFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetGroupNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetGroupQuotaExceededFault" + } + return *e.Code +} func (e *SubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet is being used by another subnet group. type SubnetInUse struct { Message *string + Code *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.Code == nil { + return "SubnetInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetQuotaExceededFault" + } + return *e.Code +} func (e *SubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag does not exist. type TagNotFoundFault struct { Message *string + Code *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.Code == nil { + return "TagNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagQuotaPerResourceExceeded" + } + return *e.Code +} func (e *TagQuotaPerResourceExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/detective/types/errors.go b/service/detective/types/errors.go index 0fd4aea7d05..5bff0de3e36 100644 --- a/service/detective/types/errors.go +++ b/service/detective/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request refers to a nonexistent resource. type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -61,7 +77,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request cannot be completed for one of the following reasons. @@ -80,6 +101,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string + Code *string + Resources []string noSmithyDocumentSerde @@ -94,7 +117,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request cannot be completed because too many other requests are occurring at @@ -102,6 +130,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type TooManyRequestsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -114,13 +144,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request parameters are invalid. type ValidationException struct { Message *string + Code *string + ErrorCode_ ErrorCode ErrorCodeReason *string @@ -136,5 +173,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..4ebf24e3ba4 100644 --- a/service/devicefarm/types/errors.go +++ b/service/devicefarm/types/errors.go @@ -11,6 +11,8 @@ import ( type ArgumentException struct { Message *string + Code *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.Code == nil { + return "ArgumentException" + } + return *e.Code +} func (e *ArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested object could not be deleted. type CannotDeleteException struct { Message *string + Code *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.Code == nil { + return "CannotDeleteException" + } + return *e.Code +} func (e *CannotDeleteException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity with the same name already exists. type IdempotencyException struct { Message *string + Code *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.Code == nil { + return "IdempotencyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit was exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotEligibleException" + } + return *e.Code +} func (e *NotEligibleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified entity was not found. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a problem with the service account. type ServiceAccountException struct { Message *string + Code *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.Code == nil { + return "ServiceAccountException" + } + return *e.Code +} func (e *ServiceAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation was not successful. Try again. type TagOperationException struct { Message *string + Code *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.Code == nil { + return "TagOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagPolicyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..ee84f61e66e 100644 --- a/service/devopsguru/types/errors.go +++ b/service/devopsguru/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception that is thrown when a conflict occurs. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal failure in an Amazon service occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A requested resource could not be found type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains a value that exceeds a maximum quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to a request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..78b08d99c31 100644 --- a/service/directconnect/types/errors.go +++ b/service/directconnect/types/errors.go @@ -11,6 +11,8 @@ import ( type DirectConnectClientException struct { Message *string + Code *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.Code == nil { + return "DirectConnectClientException" + } + return *e.Code +} func (e *DirectConnectClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A server-side error occurred. type DirectConnectServerException struct { Message *string + Code *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.Code == nil { + return "DirectConnectServerException" + } + return *e.Code +} func (e *DirectConnectServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A tag key was specified more than once. type DuplicateTagKeysException struct { Message *string + Code *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.Code == nil { + return "DuplicateTagKeysException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..919f4791148 100644 --- a/service/directoryservice/types/errors.go +++ b/service/directoryservice/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An authentication error occurred. type AuthenticationFailedException struct { Message *string + Code *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.Code == nil { + return "AuthenticationFailedException" + } + return *e.Code +} func (e *AuthenticationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate has already been registered into the system. type CertificateAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "CertificateAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "CertificateDoesNotExistException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "CertificateInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CertificateLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ClientException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DirectoryAlreadyInRegionException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DirectoryAlreadySharedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DirectoryDoesNotExistException" + } + return *e.Code +} func (e *DirectoryDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The directory is already updated to desired update type settings. type DirectoryInDesiredStateException struct { Message *string + Code *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.Code == nil { + return "DirectoryInDesiredStateException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DirectoryLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DirectoryNotSharedException" + } + return *e.Code +} func (e *DirectoryNotSharedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified directory is unavailable or could not be found. type DirectoryUnavailableException struct { Message *string + Code *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.Code == nil { + return "DirectoryUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DomainControllerLimitExceededException" + } + return *e.Code } func (e *DomainControllerLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -353,6 +442,8 @@ func (e *DomainControllerLimitExceededException) ErrorFault() smithy.ErrorFault type EntityAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "EntityAlreadyExistsException" + } + return *e.Code +} func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified entity could not be found. type EntityDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "EntityDoesNotExistException" + } + return *e.Code +} func (e *EntityDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified directory setting is not compatible with other settings. type IncompatibleSettingsException struct { Message *string + Code *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.Code == nil { + return "IncompatibleSettingsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InsufficientPermissionsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidCertificateException" + } + return *e.Code +} func (e *InvalidCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Client authentication is already enabled. type InvalidClientAuthStatusException struct { Message *string + Code *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.Code == nil { + return "InvalidClientAuthStatusException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidLDAPSStatusException" + } + return *e.Code +} func (e *InvalidLDAPSStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The NextToken value is not valid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters are not valid. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPasswordException" + } + return *e.Code +} func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified shared target is not valid. type InvalidTargetException struct { Message *string + Code *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.Code == nil { + return "InvalidTargetException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IpRouteLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoAvailableCertificateException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OrganizationsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RegionLimitExceededException" + } + return *e.Code +} func (e *RegionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception has occurred in Directory Service. type ServiceException struct { Message *string + Code *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.Code == nil { + return "ServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ShareLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapshotLimitExceededException" + } + return *e.Code +} func (e *SnapshotLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum allowed number of tags was exceeded. type TagLimitExceededException struct { Message *string + Code *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.Code == nil { + return "TagLimitExceededException" + } + return *e.Code +} func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not supported. type UnsupportedOperationException struct { Message *string + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified directory setting is not supported. type UnsupportedSettingsException struct { Message *string + Code *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.Code == nil { + return "UnsupportedSettingsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UserDoesNotExistException" + } + return *e.Code +} 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..cca27103a94 100644 --- a/service/dlm/types/errors.go +++ b/service/dlm/types/errors.go @@ -25,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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Bad request. The request is missing required parameters or has invalid @@ -33,7 +38,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidRequestException struct { Message *string - Code *string + Code *string + RequiredParameters []string MutuallyExclusiveParameters []string @@ -49,14 +55,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because a limit was exceeded. type LimitExceededException struct { Message *string - Code *string + Code *string + ResourceType *string noSmithyDocumentSerde @@ -71,14 +83,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A requested resource was not found. type ResourceNotFoundException struct { Message *string - Code *string + Code *string + ResourceType *string ResourceIds []string @@ -94,5 +112,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..311689b9b7c 100644 --- a/service/docdb/types/errors.go +++ b/service/docdb/types/errors.go @@ -13,6 +13,8 @@ import ( type AuthorizationNotFoundFault struct { Message *string + Code *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.Code == nil { + return "AuthorizationNotFound" + } + return *e.Code +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // CertificateIdentifier doesn't refer to an existing certificate. type CertificateNotFoundFault struct { Message *string + Code *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.Code == nil { + return "CertificateNotFound" + } + return *e.Code +} func (e *CertificateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a cluster with the given identifier. type DBClusterAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBClusterAlreadyExistsFault" + } + return *e.Code +} func (e *DBClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBClusterIdentifier doesn't refer to an existing cluster. type DBClusterNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -103,7 +133,10 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - return "DBClusterParameterGroupNotFound" + if e.Code == nil { + return "DBClusterParameterGroupNotFound" + } + return *e.Code } func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -114,6 +147,8 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type DBClusterQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "DBClusterQuotaExceededFault" + } + return *e.Code +} func (e *DBClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a cluster snapshot with the given identifier. type DBClusterSnapshotAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -146,7 +188,10 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - return "DBClusterSnapshotAlreadyExistsFault" + if e.Code == nil { + return "DBClusterSnapshotAlreadyExistsFault" + } + return *e.Code } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -156,6 +201,8 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterSnapshotNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterSnapshotNotFoundFault" + } + return *e.Code +} func (e *DBClusterSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a instance with the given identifier. type DBInstanceAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBInstanceAlreadyExists" + } + return *e.Code +} func (e *DBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBInstanceIdentifier doesn't refer to an existing instance. type DBInstanceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBInstanceNotFound" + } + return *e.Code +} func (e *DBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter group with the same name already exists. type DBParameterGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -226,7 +294,10 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - return "DBParameterGroupAlreadyExists" + if e.Code == nil { + return "DBParameterGroupAlreadyExists" + } + return *e.Code } func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -236,6 +307,8 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBParameterGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBParameterGroupNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -268,7 +348,10 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - return "DBParameterGroupQuotaExceeded" + if e.Code == nil { + return "DBParameterGroupQuotaExceeded" + } + return *e.Code } func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -278,6 +361,8 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBSecurityGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSecurityGroupNotFound" + } + return *e.Code +} func (e *DBSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier is already being used by an existing snapshot. type DBSnapshotAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBSnapshotAlreadyExists" + } + return *e.Code +} func (e *DBSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier doesn't refer to an existing snapshot. type DBSnapshotNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSnapshotNotFound" + } + return *e.Code +} func (e *DBSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName is already being used by an existing subnet group. type DBSubnetGroupAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBSubnetGroupAlreadyExists" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -368,7 +481,10 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "DBSubnetGroupDoesNotCoverEnoughAZs" + if e.Code == nil { + return "DBSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.Code } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -378,6 +494,8 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { type DBSubnetGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSubnetGroupNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBSubnetGroupQuotaExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBSubnetQuotaExceededFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBUpgradeDependencyFailure" + } + return *e.Code +} func (e *DBUpgradeDependencyFailureFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of event subscriptions. type EventSubscriptionQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -468,7 +614,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.Code == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.Code } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -479,6 +628,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type GlobalClusterAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -492,7 +643,10 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - return "GlobalClusterAlreadyExistsFault" + if e.Code == nil { + return "GlobalClusterAlreadyExistsFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "GlobalClusterNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -533,7 +696,10 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - return "GlobalClusterQuotaExceededFault" + if e.Code == nil { + return "GlobalClusterQuotaExceededFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InstanceQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -573,7 +748,10 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - return "InsufficientDBClusterCapacityFault" + if e.Code == nil { + return "InsufficientDBClusterCapacityFault" + } + return *e.Code } func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -583,6 +761,8 @@ func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientDBInstanceCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -596,7 +776,10 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - return "InsufficientDBInstanceCapacity" + if e.Code == nil { + return "InsufficientDBInstanceCapacity" + } + return *e.Code } func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -608,6 +791,8 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientStorageClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -621,7 +806,10 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - return "InsufficientStorageClusterCapacity" + if e.Code == nil { + return "InsufficientStorageClusterCapacity" + } + return *e.Code } func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -631,6 +819,8 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault type InvalidDBClusterSnapshotStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -644,7 +834,10 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - return "InvalidDBClusterSnapshotStateFault" + if e.Code == nil { + return "InvalidDBClusterSnapshotStateFault" + } + return *e.Code } func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -654,6 +847,8 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBClusterStateFault" + } + return *e.Code +} func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance isn't in the available state. type InvalidDBInstanceStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBInstanceState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDBParameterGroupState" + } + return *e.Code +} func (e *InvalidDBParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the security group doesn't allow deletion. type InvalidDBSecurityGroupStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBSecurityGroupState" + } + return *e.Code +} func (e *InvalidDBSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the snapshot doesn't allow deletion. type InvalidDBSnapshotStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBSnapshotState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDBSubnetGroupStateFault" + } + return *e.Code +} func (e *InvalidDBSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet isn't in the available state. type InvalidDBSubnetStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBSubnetStateFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -803,7 +1047,10 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - return "InvalidEventSubscriptionState" + if e.Code == nil { + return "InvalidEventSubscriptionState" + } + return *e.Code } func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -813,6 +1060,8 @@ func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { type InvalidGlobalClusterStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidGlobalClusterStateFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRestoreFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.Code +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred when accessing an KMS key. type KMSKeyNotAccessibleFault struct { Message *string + Code *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.Code == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.Code +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource ID was not found. type ResourceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SharedSnapshotQuotaExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapshotQuotaExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SNSInvalidTopic" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SNSNoAuthorization" + } + return *e.Code +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic Amazon Resource Name (ARN) does not exist. type SNSTopicArnNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SNSTopicArnNotFound" + } + return *e.Code +} func (e *SNSTopicArnNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested source could not be found. type SourceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SourceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StorageQuotaExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StorageTypeNotSupported" + } + return *e.Code +} func (e *StorageTypeNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subnet is already in use in the Availability Zone. type SubnetAlreadyInUse struct { Message *string + Code *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.Code == nil { + return "SubnetAlreadyInUse" + } + return *e.Code +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided subscription name already exists. type SubscriptionAlreadyExistFault struct { Message *string + Code *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.Code == nil { + return "SubscriptionAlreadyExist" + } + return *e.Code +} func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided category does not exist. type SubscriptionCategoryNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SubscriptionCategoryNotFound" + } + return *e.Code +} func (e *SubscriptionCategoryNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subscription name does not exist. type SubscriptionNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SubscriptionNotFound" + } + return *e.Code +} 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..a97b9fab854 100644 --- a/service/docdbelastic/types/errors.go +++ b/service/docdbelastic/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an access conflict. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal server error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be located. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota for the action was exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A structure defining a validation exception. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..69fcea79281 100644 --- a/service/drs/types/errors.go +++ b/service/drs/types/errors.go @@ -25,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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,7 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string - Code *string + Code *string + ResourceId *string ResourceType *string @@ -49,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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -57,6 +68,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + Code *string + RetryAfterSeconds int64 noSmithyDocumentSerde @@ -71,14 +84,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource for this operation was not found. type ResourceNotFoundException struct { Message *string - Code *string + Code *string + ResourceId *string ResourceType *string @@ -94,14 +113,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 - Code *string + Code *string + ResourceId *string ResourceType *string ServiceCode *string @@ -119,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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *string @@ -142,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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account performing the request has not been initialized. @@ -163,14 +200,20 @@ func (e *UninitializedAccountException) ErrorMessage() string { } return *e.Message } -func (e *UninitializedAccountException) ErrorCode() string { return "UninitializedAccountException" } +func (e *UninitializedAccountException) ErrorCode() string { + if e.Code == nil { + return "UninitializedAccountException" + } + return *e.Code +} 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 - Code *string + Code *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -186,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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..8d34bf4e6f5 100644 --- a/service/dynamodb/types/errors.go +++ b/service/dynamodb/types/errors.go @@ -12,6 +12,8 @@ import ( type BackupInUseException struct { Message *string + Code *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.Code == nil { + return "BackupInUseException" + } + return *e.Code +} func (e *BackupInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Backup not found for the given BackupARN. type BackupNotFoundException struct { Message *string + Code *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.Code == nil { + return "BackupNotFoundException" + } + return *e.Code +} func (e *BackupNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A condition specified in the operation could not be evaluated. type ConditionalCheckFailedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *ConditionalCheckFailedException) ErrorMessage() string { return *e.Message } func (e *ConditionalCheckFailedException) ErrorCode() string { - return "ConditionalCheckFailedException" + if e.Code == nil { + return "ConditionalCheckFailedException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -84,7 +105,10 @@ func (e *ContinuousBackupsUnavailableException) ErrorMessage() string { return *e.Message } func (e *ContinuousBackupsUnavailableException) ErrorCode() string { - return "ContinuousBackupsUnavailableException" + if e.Code == nil { + return "ContinuousBackupsUnavailableException" + } + return *e.Code } func (e *ContinuousBackupsUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -95,6 +119,8 @@ func (e *ContinuousBackupsUnavailableException) ErrorFault() smithy.ErrorFault { type DuplicateItemException struct { Message *string + Code *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.Code == nil { + return "DuplicateItemException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ExportConflictException" + } + return *e.Code +} func (e *ExportConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified export was not found. type ExportNotFoundException struct { Message *string + Code *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.Code == nil { + return "ExportNotFoundException" + } + return *e.Code +} func (e *ExportNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified global table already exists. type GlobalTableAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -165,7 +212,10 @@ func (e *GlobalTableAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *GlobalTableAlreadyExistsException) ErrorCode() string { - return "GlobalTableAlreadyExistsException" + if e.Code == nil { + return "GlobalTableAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "GlobalTableNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -206,7 +265,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -218,6 +280,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type ImportConflictException struct { Message *string + Code *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.Code == nil { + return "ImportConflictException" + } + return *e.Code +} func (e *ImportConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified import was not found. type ImportNotFoundException struct { Message *string + Code *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.Code == nil { + return "ImportNotFoundException" + } + return *e.Code +} func (e *ImportNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation tried to access a nonexistent index. type IndexNotFoundException struct { Message *string + Code *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.Code == nil { + return "IndexNotFoundException" + } + return *e.Code +} func (e *IndexNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidEndpointException struct { Message *string + Code *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.Code == nil { + return "InvalidEndpointException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidExportTimeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRestoreTimeException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -365,7 +478,10 @@ func (e *ItemCollectionSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ItemCollectionSizeLimitExceededException) ErrorCode() string { - return "ItemCollectionSizeLimitExceededException" + if e.Code == nil { + return "ItemCollectionSizeLimitExceededException" + } + return *e.Code } func (e *ItemCollectionSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -384,6 +500,8 @@ func (e *ItemCollectionSizeLimitExceededException) ErrorFault() smithy.ErrorFaul type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -416,7 +541,10 @@ func (e *PointInTimeRecoveryUnavailableException) ErrorMessage() string { return *e.Message } func (e *PointInTimeRecoveryUnavailableException) ErrorCode() string { - return "PointInTimeRecoveryUnavailableException" + if e.Code == nil { + return "PointInTimeRecoveryUnavailableException" + } + return *e.Code } func (e *PointInTimeRecoveryUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -432,6 +560,8 @@ func (e *PointInTimeRecoveryUnavailableException) ErrorFault() smithy.ErrorFault type ProvisionedThroughputExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -445,7 +575,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.Code == nil { + return "ProvisionedThroughputExceededException" + } + return *e.Code } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -455,6 +588,8 @@ func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault type ReplicaAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ReplicaAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReplicaNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RequestLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A target table with the specified name already exists. type TableAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "TableAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TableInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TableNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TransactionCanceledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TransactionConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TransactionInProgressException" + } + return *e.Code +} func (e *TransactionInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/dynamodb/types/types.go b/service/dynamodb/types/types.go index fb8b2ed31c4..83fb5072b09 100644 --- a/service/dynamodb/types/types.go +++ b/service/dynamodb/types/types.go @@ -61,17 +61,16 @@ type AttributeDefinition struct { // in the Amazon DynamoDB Developer Guide. // // The following types satisfy this interface: -// -// AttributeValueMemberB -// AttributeValueMemberBOOL -// AttributeValueMemberBS -// AttributeValueMemberL -// AttributeValueMemberM -// AttributeValueMemberN -// AttributeValueMemberNS -// AttributeValueMemberNULL -// AttributeValueMemberS -// AttributeValueMemberSS +// AttributeValueMemberB +// AttributeValueMemberBOOL +// AttributeValueMemberBS +// AttributeValueMemberL +// AttributeValueMemberM +// AttributeValueMemberN +// AttributeValueMemberNS +// AttributeValueMemberNULL +// AttributeValueMemberS +// AttributeValueMemberSS type AttributeValue interface { isAttributeValue() } diff --git a/service/dynamodbstreams/types/errors.go b/service/dynamodbstreams/types/errors.go index 70882df91d1..19674f9f831 100644 --- a/service/dynamodbstreams/types/errors.go +++ b/service/dynamodbstreams/types/errors.go @@ -13,6 +13,8 @@ import ( type ExpiredIteratorException struct { Message *string + Code *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.Code == nil { + return "ExpiredIteratorException" + } + return *e.Code +} func (e *ExpiredIteratorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TrimmedDataAccessException" + } + return *e.Code +} func (e *TrimmedDataAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/dynamodbstreams/types/types.go b/service/dynamodbstreams/types/types.go index be732543388..7ae787f749d 100644 --- a/service/dynamodbstreams/types/types.go +++ b/service/dynamodbstreams/types/types.go @@ -14,17 +14,16 @@ import ( // in the Amazon DynamoDB Developer Guide. // // The following types satisfy this interface: -// -// AttributeValueMemberB -// AttributeValueMemberBOOL -// AttributeValueMemberBS -// AttributeValueMemberL -// AttributeValueMemberM -// AttributeValueMemberN -// AttributeValueMemberNS -// AttributeValueMemberNULL -// AttributeValueMemberS -// AttributeValueMemberSS +// AttributeValueMemberB +// AttributeValueMemberBOOL +// AttributeValueMemberBS +// AttributeValueMemberL +// AttributeValueMemberM +// AttributeValueMemberN +// AttributeValueMemberNS +// AttributeValueMemberNULL +// AttributeValueMemberS +// AttributeValueMemberSS type AttributeValue interface { isAttributeValue() } diff --git a/service/ebs/types/errors.go b/service/ebs/types/errors.go index 5c48d52d095..6906ae704bb 100644 --- a/service/ebs/types/errors.go +++ b/service/ebs/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -48,7 +57,10 @@ func (e *ConcurrentLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ConcurrentLimitExceededException) ErrorCode() string { - return "ConcurrentLimitExceededException" + if e.Code == nil { + return "ConcurrentLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RequestThrottledException" + } + return *e.Code +} func (e *RequestThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..50d45b8f076 100644 --- a/service/ec2instanceconnect/types/errors.go +++ b/service/ec2instanceconnect/types/errors.go @@ -12,6 +12,8 @@ import ( type AuthException struct { Message *string + Code *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.Code == nil { + return "AuthException" + } + return *e.Code +} func (e *AuthException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified instance was not found. type EC2InstanceNotFoundException struct { Message *string + Code *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.Code == nil { + return "EC2InstanceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -65,7 +81,10 @@ func (e *EC2InstanceStateInvalidException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceStateInvalidException) ErrorCode() string { - return "EC2InstanceStateInvalidException" + if e.Code == nil { + return "EC2InstanceStateInvalidException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -87,7 +108,10 @@ func (e *EC2InstanceTypeInvalidException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceTypeInvalidException) ErrorCode() string { - return "EC2InstanceTypeInvalidException" + if e.Code == nil { + return "EC2InstanceTypeInvalidException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -108,7 +134,10 @@ func (e *EC2InstanceUnavailableException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceUnavailableException) ErrorCode() string { - return "EC2InstanceUnavailableException" + if e.Code == nil { + return "EC2InstanceUnavailableException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidArgsException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -152,7 +190,10 @@ func (e *SerialConsoleAccessDisabledException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleAccessDisabledException) ErrorCode() string { - return "SerialConsoleAccessDisabledException" + if e.Code == nil { + return "SerialConsoleAccessDisabledException" + } + return *e.Code } func (e *SerialConsoleAccessDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -163,6 +204,8 @@ func (e *SerialConsoleAccessDisabledException) ErrorFault() smithy.ErrorFault { type SerialConsoleSessionLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -176,7 +219,10 @@ func (e *SerialConsoleSessionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleSessionLimitExceededException) ErrorCode() string { - return "SerialConsoleSessionLimitExceededException" + if e.Code == nil { + return "SerialConsoleSessionLimitExceededException" + } + return *e.Code } func (e *SerialConsoleSessionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -186,6 +232,8 @@ func (e *SerialConsoleSessionLimitExceededException) ErrorFault() smithy.ErrorFa type SerialConsoleSessionUnavailableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -199,7 +247,10 @@ func (e *SerialConsoleSessionUnavailableException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleSessionUnavailableException) ErrorCode() string { - return "SerialConsoleSessionUnavailableException" + if e.Code == nil { + return "SerialConsoleSessionUnavailableException" + } + return *e.Code } func (e *SerialConsoleSessionUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -210,6 +261,8 @@ func (e *SerialConsoleSessionUnavailableException) ErrorFault() smithy.ErrorFaul type ServiceException struct { Message *string + Code *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.Code == nil { + return "ServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..262f39896bc 100644 --- a/service/ecr/types/errors.go +++ b/service/ecr/types/errors.go @@ -11,6 +11,8 @@ import ( type EmptyUploadException struct { Message *string + Code *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.Code == nil { + return "EmptyUploadException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ImageAlreadyExistsException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ImageDigestDoesNotMatchException) ErrorMessage() string { return *e.Message } func (e *ImageDigestDoesNotMatchException) ErrorCode() string { - return "ImageDigestDoesNotMatchException" + if e.Code == nil { + return "ImageDigestDoesNotMatchException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ImageNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ImageTagAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidLayerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidLayerPartException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTagParameterException" + } + return *e.Code +} func (e *InvalidTagParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed due to a KMS exception. type KmsException struct { Message *string + Code *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.Code == nil { + return "KmsException" + } + return *e.Code +} func (e *KmsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The image layer already exists in the associated repository. type LayerAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "LayerAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LayerInaccessibleException" + } + return *e.Code +} func (e *LayerInaccessibleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Layer parts must be at least 5 MiB in size. type LayerPartTooSmallException struct { Message *string + Code *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.Code == nil { + return "LayerPartTooSmallException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LayersNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -309,7 +407,10 @@ func (e *LifecyclePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyNotFoundException) ErrorCode() string { - return "LifecyclePolicyNotFoundException" + if e.Code == nil { + return "LifecyclePolicyNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -331,7 +434,10 @@ func (e *LifecyclePolicyPreviewInProgressException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyPreviewInProgressException) ErrorCode() string { - return "LifecyclePolicyPreviewInProgressException" + if e.Code == nil { + return "LifecyclePolicyPreviewInProgressException" + } + return *e.Code } func (e *LifecyclePolicyPreviewInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -341,6 +447,8 @@ func (e *LifecyclePolicyPreviewInProgressException) ErrorFault() smithy.ErrorFau type LifecyclePolicyPreviewNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -354,7 +462,10 @@ func (e *LifecyclePolicyPreviewNotFoundException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyPreviewNotFoundException) ErrorCode() string { - return "LifecyclePolicyPreviewNotFoundException" + if e.Code == nil { + return "LifecyclePolicyPreviewNotFoundException" + } + return *e.Code } func (e *LifecyclePolicyPreviewNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -367,6 +478,8 @@ func (e *LifecyclePolicyPreviewNotFoundException) ErrorFault() smithy.ErrorFault type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -400,7 +520,10 @@ func (e *PullThroughCacheRuleAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *PullThroughCacheRuleAlreadyExistsException) ErrorCode() string { - return "PullThroughCacheRuleAlreadyExistsException" + if e.Code == nil { + return "PullThroughCacheRuleAlreadyExistsException" + } + return *e.Code } func (e *PullThroughCacheRuleAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -411,6 +534,8 @@ func (e *PullThroughCacheRuleAlreadyExistsException) ErrorFault() smithy.ErrorFa type PullThroughCacheRuleNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -424,7 +549,10 @@ func (e *PullThroughCacheRuleNotFoundException) ErrorMessage() string { return *e.Message } func (e *PullThroughCacheRuleNotFoundException) ErrorCode() string { - return "PullThroughCacheRuleNotFoundException" + if e.Code == nil { + return "PullThroughCacheRuleNotFoundException" + } + return *e.Code } func (e *PullThroughCacheRuleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -434,6 +562,8 @@ func (e *PullThroughCacheRuleNotFoundException) ErrorFault() smithy.ErrorFault { type ReferencedImagesNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -447,7 +577,10 @@ func (e *ReferencedImagesNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReferencedImagesNotFoundException) ErrorCode() string { - return "ReferencedImagesNotFoundException" + if e.Code == nil { + return "ReferencedImagesNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -468,7 +603,10 @@ func (e *RegistryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RegistryPolicyNotFoundException) ErrorCode() string { - return "RegistryPolicyNotFoundException" + if e.Code == nil { + return "RegistryPolicyNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -489,7 +629,10 @@ func (e *RepositoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *RepositoryAlreadyExistsException) ErrorCode() string { - return "RepositoryAlreadyExistsException" + if e.Code == nil { + return "RepositoryAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "RepositoryNotEmptyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RepositoryNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -552,7 +711,10 @@ func (e *RepositoryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryPolicyNotFoundException) ErrorCode() string { - return "RepositoryPolicyNotFoundException" + if e.Code == nil { + return "RepositoryPolicyNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ScanNotFoundException" + } + return *e.Code +} func (e *ScanNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a server-side issue. type ServerException struct { Message *string + Code *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.Code == nil { + return "ServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The image is of a type that cannot be scanned. type UnsupportedImageTypeException struct { Message *string + Code *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.Code == nil { + return "UnsupportedImageTypeException" + } + return *e.Code +} func (e *UnsupportedImageTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified upstream registry isn't supported. type UnsupportedUpstreamRegistryException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -651,7 +843,10 @@ func (e *UnsupportedUpstreamRegistryException) ErrorMessage() string { return *e.Message } func (e *UnsupportedUpstreamRegistryException) ErrorCode() string { - return "UnsupportedUpstreamRegistryException" + if e.Code == nil { + return "UnsupportedUpstreamRegistryException" + } + return *e.Code } func (e *UnsupportedUpstreamRegistryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -662,6 +857,8 @@ func (e *UnsupportedUpstreamRegistryException) ErrorFault() smithy.ErrorFault { type UploadNotFoundException struct { Message *string + Code *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.Code == nil { + return "UploadNotFoundException" + } + return *e.Code +} func (e *UploadNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an exception validating this request. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..5e6aaa4cdd0 100644 --- a/service/ecrpublic/types/errors.go +++ b/service/ecrpublic/types/errors.go @@ -11,6 +11,8 @@ import ( type EmptyUploadException struct { Message *string + Code *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.Code == nil { + return "EmptyUploadException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ImageAlreadyExistsException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *ImageDigestDoesNotMatchException) ErrorMessage() string { return *e.Message } func (e *ImageDigestDoesNotMatchException) ErrorCode() string { - return "ImageDigestDoesNotMatchException" + if e.Code == nil { + return "ImageDigestDoesNotMatchException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ImageNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ImageTagAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidLayerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidLayerPartException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTagParameterException" + } + return *e.Code +} func (e *InvalidTagParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The image layer already exists in the associated repository. type LayerAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "LayerAlreadyExistsException" + } + return *e.Code +} func (e *LayerAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Layer parts must be at least 5 MiB in size. type LayerPartTooSmallException struct { Message *string + Code *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.Code == nil { + return "LayerPartTooSmallException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LayersNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -290,7 +381,10 @@ func (e *ReferencedImagesNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReferencedImagesNotFoundException) ErrorCode() string { - return "ReferencedImagesNotFoundException" + if e.Code == nil { + return "ReferencedImagesNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "RegistryNotFoundException" + } + return *e.Code +} func (e *RegistryNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified repository already exists in the specified registry. type RepositoryAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -330,7 +433,10 @@ func (e *RepositoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *RepositoryAlreadyExistsException) ErrorCode() string { - return "RepositoryAlreadyExistsException" + if e.Code == nil { + return "RepositoryAlreadyExistsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "RepositoryNotEmptyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RepositoryNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -393,7 +515,10 @@ func (e *RepositoryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryPolicyNotFoundException) ErrorCode() string { - return "RepositoryPolicyNotFoundException" + if e.Code == nil { + return "RepositoryPolicyNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The action is not supported in this Region. type UnsupportedCommandException struct { Message *string + Code *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.Code == nil { + return "UnsupportedCommandException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UploadNotFoundException" + } + return *e.Code +} 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..a75828e8163 100644 --- a/service/ecs/types/errors.go +++ b/service/ecs/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *AttributeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AttributeLimitExceededException) ErrorCode() string { - return "AttributeLimitExceededException" + if e.Code == nil { + return "AttributeLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "BlockedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClientException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -110,7 +138,10 @@ func (e *ClusterContainsContainerInstancesException) ErrorMessage() string { return *e.Message } func (e *ClusterContainsContainerInstancesException) ErrorCode() string { - return "ClusterContainsContainerInstancesException" + if e.Code == nil { + return "ClusterContainsContainerInstancesException" + } + return *e.Code } func (e *ClusterContainsContainerInstancesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -122,6 +153,8 @@ func (e *ClusterContainsContainerInstancesException) ErrorFault() smithy.ErrorFa type ClusterContainsServicesException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -135,7 +168,10 @@ func (e *ClusterContainsServicesException) ErrorMessage() string { return *e.Message } func (e *ClusterContainsServicesException) ErrorCode() string { - return "ClusterContainsServicesException" + if e.Code == nil { + return "ClusterContainsServicesException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ClusterContainsTasksException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClusterNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit for the resource was exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MissingVersionException" + } + return *e.Code +} func (e *MissingVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified namespace wasn't found. type NamespaceNotFoundException struct { Message *string + Code *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.Code == nil { + return "NamespaceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoUpdateAvailableException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -297,7 +384,10 @@ func (e *PlatformTaskDefinitionIncompatibilityException) ErrorMessage() string { return *e.Message } func (e *PlatformTaskDefinitionIncompatibilityException) ErrorCode() string { - return "PlatformTaskDefinitionIncompatibilityException" + if e.Code == nil { + return "PlatformTaskDefinitionIncompatibilityException" + } + return *e.Code } func (e *PlatformTaskDefinitionIncompatibilityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -307,6 +397,8 @@ func (e *PlatformTaskDefinitionIncompatibilityException) ErrorFault() smithy.Err type PlatformUnknownException struct { Message *string + Code *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.Code == nil { + return "PlatformUnknownException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource wasn't found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // These errors are usually caused by a server issue. type ServerException struct { Message *string + Code *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.Code == nil { + return "ServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceNotActiveException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TargetNotConnectedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TargetNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TaskSetNotFoundException" + } + return *e.Code +} func (e *TaskSetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified task isn't supported in this Region. type UnsupportedFeatureException struct { Message *string + Code *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.Code == nil { + return "UnsupportedFeatureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UpdateInProgressException" + } + return *e.Code +} func (e *UpdateInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/efs/api_op_CreateMountTarget.go b/service/efs/api_op_CreateMountTarget.go index 7d1193574af..211d5cac6d4 100644 --- a/service/efs/api_op_CreateMountTarget.go +++ b/service/efs/api_op_CreateMountTarget.go @@ -136,6 +136,7 @@ func (c *Client) CreateMountTarget(ctx context.Context, params *CreateMountTarge return out, nil } +// type CreateMountTargetInput struct { // The ID of the file system for which to create the mount target. diff --git a/service/efs/api_op_CreateTags.go b/service/efs/api_op_CreateTags.go index 0674d9b158e..fb965c86f19 100644 --- a/service/efs/api_op_CreateTags.go +++ b/service/efs/api_op_CreateTags.go @@ -35,6 +35,7 @@ func (c *Client) CreateTags(ctx context.Context, params *CreateTagsInput, optFns return out, nil } +// type CreateTagsInput struct { // The ID of the file system whose tags you want to modify (String). This operation diff --git a/service/efs/api_op_DeleteFileSystem.go b/service/efs/api_op_DeleteFileSystem.go index 8889701f160..00ba3e936b6 100644 --- a/service/efs/api_op_DeleteFileSystem.go +++ b/service/efs/api_op_DeleteFileSystem.go @@ -41,6 +41,7 @@ func (c *Client) DeleteFileSystem(ctx context.Context, params *DeleteFileSystemI return out, nil } +// type DeleteFileSystemInput struct { // The ID of the file system you want to delete. diff --git a/service/efs/api_op_DeleteMountTarget.go b/service/efs/api_op_DeleteMountTarget.go index 9bd45cc91bb..626c4fbc521 100644 --- a/service/efs/api_op_DeleteMountTarget.go +++ b/service/efs/api_op_DeleteMountTarget.go @@ -46,6 +46,7 @@ func (c *Client) DeleteMountTarget(ctx context.Context, params *DeleteMountTarge return out, nil } +// type DeleteMountTargetInput struct { // The ID of the mount target to delete (String). diff --git a/service/efs/api_op_DeleteTags.go b/service/efs/api_op_DeleteTags.go index 9a7665ca712..846a01c7df4 100644 --- a/service/efs/api_op_DeleteTags.go +++ b/service/efs/api_op_DeleteTags.go @@ -35,6 +35,7 @@ func (c *Client) DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns return out, nil } +// type DeleteTagsInput struct { // The ID of the file system whose tags you want to delete (String). diff --git a/service/efs/api_op_DescribeFileSystems.go b/service/efs/api_op_DescribeFileSystems.go index 7d38e36cb77..67fd540b35a 100644 --- a/service/efs/api_op_DescribeFileSystems.go +++ b/service/efs/api_op_DescribeFileSystems.go @@ -45,6 +45,7 @@ func (c *Client) DescribeFileSystems(ctx context.Context, params *DescribeFileSy return out, nil } +// type DescribeFileSystemsInput struct { // (Optional) Restricts the list to the file system with this creation token diff --git a/service/efs/api_op_DescribeMountTargetSecurityGroups.go b/service/efs/api_op_DescribeMountTargetSecurityGroups.go index 4ae6db567ac..932b8c5479e 100644 --- a/service/efs/api_op_DescribeMountTargetSecurityGroups.go +++ b/service/efs/api_op_DescribeMountTargetSecurityGroups.go @@ -36,6 +36,7 @@ func (c *Client) DescribeMountTargetSecurityGroups(ctx context.Context, params * return out, nil } +// type DescribeMountTargetSecurityGroupsInput struct { // The ID of the mount target whose security groups you want to retrieve. diff --git a/service/efs/api_op_DescribeMountTargets.go b/service/efs/api_op_DescribeMountTargets.go index 508ee0eb63e..2eb624109a1 100644 --- a/service/efs/api_op_DescribeMountTargets.go +++ b/service/efs/api_op_DescribeMountTargets.go @@ -32,6 +32,7 @@ func (c *Client) DescribeMountTargets(ctx context.Context, params *DescribeMount return out, nil } +// type DescribeMountTargetsInput struct { // (Optional) The ID of the access point whose mount targets that you want to list. @@ -62,6 +63,7 @@ type DescribeMountTargetsInput struct { noSmithyDocumentSerde } +// type DescribeMountTargetsOutput struct { // If the request included the Marker, the response returns that value in this diff --git a/service/efs/api_op_DescribeTags.go b/service/efs/api_op_DescribeTags.go index c0353b2440c..3f8272fb091 100644 --- a/service/efs/api_op_DescribeTags.go +++ b/service/efs/api_op_DescribeTags.go @@ -36,6 +36,7 @@ func (c *Client) DescribeTags(ctx context.Context, params *DescribeTagsInput, op return out, nil } +// type DescribeTagsInput struct { // The ID of the file system whose tag set you want to retrieve. @@ -57,6 +58,7 @@ type DescribeTagsInput struct { noSmithyDocumentSerde } +// type DescribeTagsOutput struct { // Returns tags associated with the file system as an array of Tag objects. diff --git a/service/efs/api_op_ModifyMountTargetSecurityGroups.go b/service/efs/api_op_ModifyMountTargetSecurityGroups.go index 8e03e017f7d..ee7a117b2ab 100644 --- a/service/efs/api_op_ModifyMountTargetSecurityGroups.go +++ b/service/efs/api_op_ModifyMountTargetSecurityGroups.go @@ -39,6 +39,7 @@ func (c *Client) ModifyMountTargetSecurityGroups(ctx context.Context, params *Mo return out, nil } +// type ModifyMountTargetSecurityGroupsInput struct { // The ID of the mount target whose security groups you want to modify. diff --git a/service/efs/types/errors.go b/service/efs/types/errors.go index 37f5470b97f..00a96ddbdd8 100644 --- a/service/efs/types/errors.go +++ b/service/efs/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessPointAlreadyExists struct { Message *string + Code *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.Code == nil { + return "AccessPointAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AccessPointLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AccessPointNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AvailabilityZonesMismatch" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequest" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DependencyTimeout" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FileSystemAlreadyExists" + } + return *e.Code +} func (e *FileSystemAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a file system has mount targets. type FileSystemInUse struct { Message *string + Code *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.Code == nil { + return "FileSystemInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FileSystemLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FileSystemNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncorrectFileSystemLifeCycleState" + } + return *e.Code } 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 + Code *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.Code == nil { + return "IncorrectMountTargetState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InsufficientThroughputCapacity" + } + return *e.Code +} func (e *InsufficientThroughputCapacity) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returned if an error occurred on the server side. type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPolicyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IpAddressInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MountTargetConflict" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MountTargetNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NetworkInterfaceLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoFreeAddressesInSubnet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReplicationNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SecurityGroupLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SecurityGroupNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThroughputLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequests" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedAvailabilityZone" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..297be61d4c0 100644 --- a/service/eks/types/errors.go +++ b/service/eks/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClientException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have encountered a service limit on the specified resource. type ResourceLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -233,7 +298,10 @@ func (e *ResourcePropagationDelayException) ErrorMessage() string { return *e.Message } func (e *ResourcePropagationDelayException) ErrorCode() string { - return "ResourcePropagationDelayException" + if e.Code == nil { + return "ResourcePropagationDelayException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ServerException" + } + return *e.Code +} func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is unavailable. Back off and retry the operation. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedAvailabilityZoneException" + } + return *e.Code } 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..fc65de64576 100644 --- a/service/elasticache/types/errors.go +++ b/service/elasticache/types/errors.go @@ -11,6 +11,8 @@ import ( type APICallRateForCustomerExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *APICallRateForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *APICallRateForCustomerExceededFault) ErrorCode() string { - return "APICallRateForCustomerExceeded" + if e.Code == nil { + return "APICallRateForCustomerExceeded" + } + return *e.Code } func (e *APICallRateForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -35,6 +40,8 @@ func (e *APICallRateForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type AuthorizationAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "AuthorizationAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AuthorizationNotFound" + } + return *e.Code +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a cluster with the given identifier. type CacheClusterAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "CacheClusterAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CacheClusterNotFound" + } + return *e.Code +} func (e *CacheClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cache parameter group with the requested name already exists. type CacheParameterGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -125,7 +160,10 @@ func (e *CacheParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheParameterGroupAlreadyExistsFault) ErrorCode() string { - return "CacheParameterGroupAlreadyExists" + if e.Code == nil { + return "CacheParameterGroupAlreadyExists" + } + return *e.Code } func (e *CacheParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -136,6 +174,8 @@ func (e *CacheParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type CacheParameterGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "CacheParameterGroupNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -169,7 +216,10 @@ func (e *CacheParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheParameterGroupQuotaExceededFault) ErrorCode() string { - return "CacheParameterGroupQuotaExceeded" + if e.Code == nil { + return "CacheParameterGroupQuotaExceeded" + } + return *e.Code } func (e *CacheParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -179,6 +229,8 @@ func (e *CacheParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type CacheSecurityGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -192,7 +244,10 @@ func (e *CacheSecurityGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheSecurityGroupAlreadyExistsFault) ErrorCode() string { - return "CacheSecurityGroupAlreadyExists" + if e.Code == nil { + return "CacheSecurityGroupAlreadyExists" + } + return *e.Code } func (e *CacheSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -203,6 +258,8 @@ func (e *CacheSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type CacheSecurityGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "CacheSecurityGroupNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -236,7 +300,10 @@ func (e *CacheSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheSecurityGroupQuotaExceededFault) ErrorCode() string { - return "QuotaExceeded.CacheSecurityGroup" + if e.Code == nil { + return "QuotaExceeded.CacheSecurityGroup" + } + return *e.Code } func (e *CacheSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -247,6 +314,8 @@ func (e *CacheSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type CacheSubnetGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -260,7 +329,10 @@ func (e *CacheSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupAlreadyExistsFault) ErrorCode() string { - return "CacheSubnetGroupAlreadyExists" + if e.Code == nil { + return "CacheSubnetGroupAlreadyExists" + } + return *e.Code } func (e *CacheSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +342,8 @@ func (e *CacheSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type CacheSubnetGroupInUse struct { Message *string + Code *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.Code == nil { + return "CacheSubnetGroupInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CacheSubnetGroupNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -323,7 +411,10 @@ func (e *CacheSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupQuotaExceededFault) ErrorCode() string { - return "CacheSubnetGroupQuotaExceeded" + if e.Code == nil { + return "CacheSubnetGroupQuotaExceeded" + } + return *e.Code } func (e *CacheSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -334,6 +425,8 @@ func (e *CacheSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type CacheSubnetQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "CacheSubnetQuotaExceededFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -367,7 +467,10 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - return "ClusterQuotaForCustomerExceeded" + if e.Code == nil { + return "ClusterQuotaForCustomerExceeded" + } + return *e.Code } func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -377,6 +480,8 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { type DefaultUserAssociatedToUserGroupFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -390,7 +495,10 @@ func (e *DefaultUserAssociatedToUserGroupFault) ErrorMessage() string { return *e.Message } func (e *DefaultUserAssociatedToUserGroupFault) ErrorCode() string { - return "DefaultUserAssociatedToUserGroup" + if e.Code == nil { + return "DefaultUserAssociatedToUserGroup" + } + return *e.Code } func (e *DefaultUserAssociatedToUserGroupFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -400,6 +508,8 @@ func (e *DefaultUserAssociatedToUserGroupFault) ErrorFault() smithy.ErrorFault { type DefaultUserRequired struct { Message *string + Code *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.Code == nil { + return "DefaultUserRequired" + } + return *e.Code +} func (e *DefaultUserRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A user with this username already exists. type DuplicateUserNameFault struct { Message *string + Code *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.Code == nil { + return "DuplicateUserName" + } + return *e.Code +} func (e *DuplicateUserNameFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Global datastore name already exists. type GlobalReplicationGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -451,7 +575,10 @@ func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorCode() string { - return "GlobalReplicationGroupAlreadyExistsFault" + if e.Code == nil { + return "GlobalReplicationGroupAlreadyExistsFault" + } + return *e.Code } func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -461,6 +588,8 @@ func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFaul type GlobalReplicationGroupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -474,7 +603,10 @@ func (e *GlobalReplicationGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *GlobalReplicationGroupNotFoundFault) ErrorCode() string { - return "GlobalReplicationGroupNotFoundFault" + if e.Code == nil { + return "GlobalReplicationGroupNotFoundFault" + } + return *e.Code } func (e *GlobalReplicationGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -487,6 +619,8 @@ func (e *GlobalReplicationGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type InsufficientCacheClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -500,7 +634,10 @@ func (e *InsufficientCacheClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientCacheClusterCapacityFault) ErrorCode() string { - return "InsufficientCacheClusterCapacity" + if e.Code == nil { + return "InsufficientCacheClusterCapacity" + } + return *e.Code } func (e *InsufficientCacheClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -510,6 +647,8 @@ func (e *InsufficientCacheClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InvalidARNFault struct { Message *string + Code *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.Code == nil { + return "InvalidARN" + } + return *e.Code +} func (e *InvalidARNFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested cluster is not in the available state. type InvalidCacheClusterStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidCacheClusterState" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -562,7 +715,10 @@ func (e *InvalidCacheParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCacheParameterGroupStateFault) ErrorCode() string { - return "InvalidCacheParameterGroupState" + if e.Code == nil { + return "InvalidCacheParameterGroupState" + } + return *e.Code } func (e *InvalidCacheParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -572,6 +728,8 @@ func (e *InvalidCacheParameterGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidCacheSecurityGroupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -585,7 +743,10 @@ func (e *InvalidCacheSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCacheSecurityGroupStateFault) ErrorCode() string { - return "InvalidCacheSecurityGroupState" + if e.Code == nil { + return "InvalidCacheSecurityGroupState" + } + return *e.Code } func (e *InvalidCacheSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -595,6 +756,8 @@ func (e *InvalidCacheSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidGlobalReplicationGroupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -608,7 +771,10 @@ func (e *InvalidGlobalReplicationGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidGlobalReplicationGroupStateFault) ErrorCode() string { - return "InvalidGlobalReplicationGroupState" + if e.Code == nil { + return "InvalidGlobalReplicationGroupState" + } + return *e.Code } func (e *InvalidGlobalReplicationGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -618,6 +784,8 @@ func (e *InvalidGlobalReplicationGroupStateFault) ErrorFault() smithy.ErrorFault type InvalidKMSKeyFault struct { Message *string + Code *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.Code == nil { + return "InvalidKMSKeyFault" + } + return *e.Code +} func (e *InvalidKMSKeyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two or more incompatible parameters were specified. type InvalidParameterCombinationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -650,7 +825,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombination" + if e.Code == nil { + return "InvalidParameterCombination" + } + return *e.Code } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -660,6 +838,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterValueException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterValue" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested replication group is not in the available state. type InvalidReplicationGroupStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidReplicationGroupState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSnapshotState" + } + return *e.Code +} func (e *InvalidSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An invalid subnet identifier was specified. type InvalidSubnet struct { Message *string + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user group is not in an active state. type InvalidUserGroupStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidUserGroupState" + } + return *e.Code +} func (e *InvalidUserGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user is not in active state. type InvalidUserStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidUserState" + } + return *e.Code +} func (e *InvalidUserStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The VPC network is in an invalid state. type InvalidVPCNetworkStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NodeGroupNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -830,7 +1066,10 @@ func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorMessage() string return *e.Message } func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorCode() string { - return "NodeGroupsPerReplicationGroupQuotaExceeded" + if e.Code == nil { + return "NodeGroupsPerReplicationGroupQuotaExceeded" + } + return *e.Code } func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -841,6 +1080,8 @@ func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorFault() smithy.Er type NodeQuotaForClusterExceededFault struct { Message *string + Code *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.Code == nil { + return "NodeQuotaForClusterExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NodeQuotaForCustomerExceeded" + } + return *e.Code +} func (e *NodeQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation was not performed because no changes were required. type NoOperationFault struct { Message *string + Code *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.Code == nil { + return "NoOperationFault" + } + return *e.Code +} func (e *NoOperationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified replication group already exists. type ReplicationGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -912,7 +1174,10 @@ func (e *ReplicationGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupAlreadyExistsFault) ErrorCode() string { - return "ReplicationGroupAlreadyExists" + if e.Code == nil { + return "ReplicationGroupAlreadyExists" + } + return *e.Code } func (e *ReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -922,6 +1187,8 @@ func (e *ReplicationGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ReplicationGroupAlreadyUnderMigrationFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -935,7 +1202,10 @@ func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorCode() string { - return "ReplicationGroupAlreadyUnderMigrationFault" + if e.Code == nil { + return "ReplicationGroupAlreadyUnderMigrationFault" + } + return *e.Code } func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -945,6 +1215,8 @@ func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorFault() smithy.ErrorFa type ReplicationGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ReplicationGroupNotFoundFault" + } + return *e.Code +} func (e *ReplicationGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated replication group is not available for data migration. type ReplicationGroupNotUnderMigrationFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -977,7 +1256,10 @@ func (e *ReplicationGroupNotUnderMigrationFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupNotUnderMigrationFault) ErrorCode() string { - return "ReplicationGroupNotUnderMigrationFault" + if e.Code == nil { + return "ReplicationGroupNotUnderMigrationFault" + } + return *e.Code } func (e *ReplicationGroupNotUnderMigrationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -987,6 +1269,8 @@ func (e *ReplicationGroupNotUnderMigrationFault) ErrorFault() smithy.ErrorFault type ReservedCacheNodeAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1000,7 +1284,10 @@ func (e *ReservedCacheNodeAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodeAlreadyExistsFault) ErrorCode() string { - return "ReservedCacheNodeAlreadyExists" + if e.Code == nil { + return "ReservedCacheNodeAlreadyExists" + } + return *e.Code } func (e *ReservedCacheNodeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1010,6 +1297,8 @@ func (e *ReservedCacheNodeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ReservedCacheNodeNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ReservedCacheNodeNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1043,7 +1339,10 @@ func (e *ReservedCacheNodeQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodeQuotaExceededFault) ErrorCode() string { - return "ReservedCacheNodeQuotaExceeded" + if e.Code == nil { + return "ReservedCacheNodeQuotaExceeded" + } + return *e.Code } func (e *ReservedCacheNodeQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1053,6 +1352,8 @@ func (e *ReservedCacheNodeQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ReservedCacheNodesOfferingNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1066,7 +1367,10 @@ func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorCode() string { - return "ReservedCacheNodesOfferingNotFound" + if e.Code == nil { + return "ReservedCacheNodesOfferingNotFound" + } + return *e.Code } func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1076,6 +1380,8 @@ func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault type ServiceLinkedRoleNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ServiceLinkedRoleNotFoundFault" + } + return *e.Code +} func (e *ServiceLinkedRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service update doesn't exist type ServiceUpdateNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ServiceUpdateNotFoundFault" + } + return *e.Code +} func (e *ServiceUpdateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You already have a snapshot with the given name. type SnapshotAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "SnapshotAlreadyExistsFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1155,7 +1482,10 @@ func (e *SnapshotFeatureNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *SnapshotFeatureNotSupportedFault) ErrorCode() string { - return "SnapshotFeatureNotSupportedFault" + if e.Code == nil { + return "SnapshotFeatureNotSupportedFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "SnapshotNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapshotQuotaExceededFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetNotAllowedFault" + } + return *e.Code +} func (e *SubnetNotAllowedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested tag was not found on this resource. type TagNotFoundFault struct { Message *string + Code *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.Code == nil { + return "TagNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagQuotaPerResourceExceeded" + } + return *e.Code +} func (e *TagQuotaPerResourceExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The TestFailover action is not available. type TestFailoverNotAvailableFault struct { Message *string + Code *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.Code == nil { + return "TestFailoverNotAvailableFault" + } + return *e.Code +} func (e *TestFailoverNotAvailableFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A user with this ID already exists. type UserAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "UserAlreadyExists" + } + return *e.Code +} func (e *UserAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user group with this ID already exists. type UserGroupAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "UserGroupAlreadyExists" + } + return *e.Code +} func (e *UserGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user group was not found or does not exist type UserGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "UserGroupNotFound" + } + return *e.Code +} func (e *UserGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of users exceeds the user group limit. type UserGroupQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "UserGroupQuotaExceeded" + } + return *e.Code +} func (e *UserGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user does not exist or could not be found. type UserNotFoundFault struct { Message *string + Code *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.Code == nil { + return "UserNotFound" + } + return *e.Code +} func (e *UserNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota of users has been exceeded. type UserQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "UserQuotaExceeded" + } + return *e.Code +} func (e *UserQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/elasticbeanstalk/api_op_AbortEnvironmentUpdate.go b/service/elasticbeanstalk/api_op_AbortEnvironmentUpdate.go index cc5d05c3c8b..bb3eb20bf83 100644 --- a/service/elasticbeanstalk/api_op_AbortEnvironmentUpdate.go +++ b/service/elasticbeanstalk/api_op_AbortEnvironmentUpdate.go @@ -27,6 +27,7 @@ func (c *Client) AbortEnvironmentUpdate(ctx context.Context, params *AbortEnviro return out, nil } +// type AbortEnvironmentUpdateInput struct { // This specifies the ID of the environment with the in-progress update that you diff --git a/service/elasticbeanstalk/api_op_CreateApplicationVersion.go b/service/elasticbeanstalk/api_op_CreateApplicationVersion.go index a5755f78c1c..d9e08732918 100644 --- a/service/elasticbeanstalk/api_op_CreateApplicationVersion.go +++ b/service/elasticbeanstalk/api_op_CreateApplicationVersion.go @@ -37,6 +37,7 @@ func (c *Client) CreateApplicationVersion(ctx context.Context, params *CreateApp return out, nil } +// type CreateApplicationVersionInput struct { // The name of the application. If no application is found with this name, and diff --git a/service/elasticbeanstalk/api_op_CreateEnvironment.go b/service/elasticbeanstalk/api_op_CreateEnvironment.go index 1376535b761..8ed13b564a1 100644 --- a/service/elasticbeanstalk/api_op_CreateEnvironment.go +++ b/service/elasticbeanstalk/api_op_CreateEnvironment.go @@ -29,6 +29,7 @@ func (c *Client) CreateEnvironment(ctx context.Context, params *CreateEnvironmen return out, nil } +// type CreateEnvironmentInput struct { // The name of the application that is associated with this environment. diff --git a/service/elasticbeanstalk/api_op_RebuildEnvironment.go b/service/elasticbeanstalk/api_op_RebuildEnvironment.go index a7625efc37b..70446c114d3 100644 --- a/service/elasticbeanstalk/api_op_RebuildEnvironment.go +++ b/service/elasticbeanstalk/api_op_RebuildEnvironment.go @@ -27,6 +27,7 @@ func (c *Client) RebuildEnvironment(ctx context.Context, params *RebuildEnvironm return out, nil } +// type RebuildEnvironmentInput struct { // The ID of the environment to rebuild. Condition: You must specify either this or diff --git a/service/elasticbeanstalk/api_op_RestartAppServer.go b/service/elasticbeanstalk/api_op_RestartAppServer.go index 38b1d894bd3..2af64085fd8 100644 --- a/service/elasticbeanstalk/api_op_RestartAppServer.go +++ b/service/elasticbeanstalk/api_op_RestartAppServer.go @@ -27,6 +27,7 @@ func (c *Client) RestartAppServer(ctx context.Context, params *RestartAppServerI return out, nil } +// type RestartAppServerInput struct { // The ID of the environment to restart the server for. Condition: You must specify diff --git a/service/elasticbeanstalk/api_op_UpdateApplicationVersion.go b/service/elasticbeanstalk/api_op_UpdateApplicationVersion.go index 790daa43d72..ee48f4cbe8f 100644 --- a/service/elasticbeanstalk/api_op_UpdateApplicationVersion.go +++ b/service/elasticbeanstalk/api_op_UpdateApplicationVersion.go @@ -29,6 +29,7 @@ func (c *Client) UpdateApplicationVersion(ctx context.Context, params *UpdateApp return out, nil } +// type UpdateApplicationVersionInput struct { // The name of the application associated with this version. If no application is diff --git a/service/elasticbeanstalk/types/errors.go b/service/elasticbeanstalk/types/errors.go index 747cae602f3..5c94d4ec032 100644 --- a/service/elasticbeanstalk/types/errors.go +++ b/service/elasticbeanstalk/types/errors.go @@ -11,6 +11,8 @@ import ( type CodeBuildNotInServiceRegionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *CodeBuildNotInServiceRegionException) ErrorMessage() string { return *e.Message } func (e *CodeBuildNotInServiceRegionException) ErrorCode() string { - return "CodeBuildNotInServiceRegionException" + if e.Code == nil { + return "CodeBuildNotInServiceRegionException" + } + return *e.Code } func (e *CodeBuildNotInServiceRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -34,6 +39,8 @@ func (e *CodeBuildNotInServiceRegionException) ErrorFault() smithy.ErrorFault { type ElasticBeanstalkServiceException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -47,7 +54,10 @@ func (e *ElasticBeanstalkServiceException) ErrorMessage() string { return *e.Message } func (e *ElasticBeanstalkServiceException) ErrorCode() string { - return "ElasticBeanstalkServiceException" + if e.Code == nil { + return "ElasticBeanstalkServiceException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -69,7 +81,10 @@ func (e *InsufficientPrivilegesException) ErrorMessage() string { return *e.Message } func (e *InsufficientPrivilegesException) ErrorCode() string { - return "InsufficientPrivilegesException" + if e.Code == nil { + return "InsufficientPrivilegesException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot modify the managed action in its current state. type ManagedActionInvalidStateException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -110,7 +134,10 @@ func (e *ManagedActionInvalidStateException) ErrorMessage() string { return *e.Message } func (e *ManagedActionInvalidStateException) ErrorCode() string { - return "ManagedActionInvalidStateException" + if e.Code == nil { + return "ManagedActionInvalidStateException" + } + return *e.Code } func (e *ManagedActionInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -121,6 +148,8 @@ func (e *ManagedActionInvalidStateException) ErrorFault() smithy.ErrorFault { type OperationInProgressException struct { Message *string + Code *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.Code == nil { + return "OperationInProgressFailure" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -154,7 +190,10 @@ func (e *PlatformVersionStillReferencedException) ErrorMessage() string { return *e.Message } func (e *PlatformVersionStillReferencedException) ErrorCode() string { - return "PlatformVersionStillReferencedException" + if e.Code == nil { + return "PlatformVersionStillReferencedException" + } + return *e.Code } func (e *PlatformVersionStillReferencedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -164,6 +203,8 @@ func (e *PlatformVersionStillReferencedException) ErrorFault() smithy.ErrorFault type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -197,7 +245,10 @@ func (e *ResourceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ResourceTypeNotSupportedException) ErrorCode() string { - return "ResourceTypeNotSupportedException" + if e.Code == nil { + return "ResourceTypeNotSupportedException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -226,7 +279,10 @@ func (e *S3LocationNotInServiceRegionException) ErrorMessage() string { return *e.Message } func (e *S3LocationNotInServiceRegionException) ErrorCode() string { - return "S3LocationNotInServiceRegionException" + if e.Code == nil { + return "S3LocationNotInServiceRegionException" + } + return *e.Code } func (e *S3LocationNotInServiceRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -236,6 +292,8 @@ func (e *S3LocationNotInServiceRegionException) ErrorFault() smithy.ErrorFault { type S3SubscriptionRequiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -249,7 +307,10 @@ func (e *S3SubscriptionRequiredException) ErrorMessage() string { return *e.Message } func (e *S3SubscriptionRequiredException) ErrorCode() string { - return "S3SubscriptionRequiredException" + if e.Code == nil { + return "S3SubscriptionRequiredException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "SourceBundleDeletionFailure" + } + return *e.Code +} func (e *SourceBundleDeletionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account has reached its limit of applications. type TooManyApplicationsException struct { Message *string + Code *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.Code == nil { + return "TooManyApplicationsException" + } + return *e.Code +} func (e *TooManyApplicationsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account has reached its limit of application versions. type TooManyApplicationVersionsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -309,7 +386,10 @@ func (e *TooManyApplicationVersionsException) ErrorMessage() string { return *e.Message } func (e *TooManyApplicationVersionsException) ErrorCode() string { - return "TooManyApplicationVersionsException" + if e.Code == nil { + return "TooManyApplicationVersionsException" + } + return *e.Code } func (e *TooManyApplicationVersionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -319,6 +399,8 @@ func (e *TooManyApplicationVersionsException) ErrorFault() smithy.ErrorFault { type TooManyBucketsException struct { Message *string + Code *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.Code == nil { + return "TooManyBucketsException" + } + return *e.Code +} func (e *TooManyBucketsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified account has reached its limit of configuration templates. type TooManyConfigurationTemplatesException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -351,7 +440,10 @@ func (e *TooManyConfigurationTemplatesException) ErrorMessage() string { return *e.Message } func (e *TooManyConfigurationTemplatesException) ErrorCode() string { - return "TooManyConfigurationTemplatesException" + if e.Code == nil { + return "TooManyConfigurationTemplatesException" + } + return *e.Code } func (e *TooManyConfigurationTemplatesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -361,6 +453,8 @@ func (e *TooManyConfigurationTemplatesException) ErrorFault() smithy.ErrorFault type TooManyEnvironmentsException struct { Message *string + Code *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.Code == nil { + return "TooManyEnvironmentsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyPlatformsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..664cd5a1348 100644 --- a/service/elasticinference/types/errors.go +++ b/service/elasticinference/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Raised when an unexpected error occurred during request processing. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Raised when the requested resource cannot be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..946ac805a8e 100644 --- a/service/elasticloadbalancing/types/errors.go +++ b/service/elasticloadbalancing/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessPointNotFoundException struct { Message *string + Code *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.Code == nil { + return "LoadBalancerNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CertificateNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DependencyThrottle" + } + return *e.Code +} func (e *DependencyThrottleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified load balancer name already exists for this account. type DuplicateAccessPointNameException struct { Message *string + Code *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.Code == nil { + return "DuplicateLoadBalancerName" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateListener" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicatePolicyName" + } + return *e.Code +} func (e *DuplicatePolicyNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A tag key was specified more than once. type DuplicateTagKeysException struct { Message *string + Code *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.Code == nil { + return "DuplicateTagKeys" + } + return *e.Code +} func (e *DuplicateTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested configuration change is not valid. type InvalidConfigurationRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -162,7 +213,10 @@ func (e *InvalidConfigurationRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRequestException) ErrorCode() string { - return "InvalidConfigurationRequest" + if e.Code == nil { + return "InvalidConfigurationRequest" + } + return *e.Code } func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -172,6 +226,8 @@ func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { type InvalidEndPointException struct { Message *string + Code *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.Code == nil { + return "InvalidInstance" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidScheme" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSecurityGroup" + } + return *e.Code +} func (e *InvalidSecurityGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified VPC has no associated Internet gateway. type InvalidSubnetException struct { Message *string + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ListenerNotFound" + } + return *e.Code +} func (e *ListenerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified load balancer attribute does not exist. type LoadBalancerAttributeNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -281,7 +372,10 @@ func (e *LoadBalancerAttributeNotFoundException) ErrorMessage() string { return *e.Message } func (e *LoadBalancerAttributeNotFoundException) ErrorCode() string { - return "LoadBalancerAttributeNotFound" + if e.Code == nil { + return "LoadBalancerAttributeNotFound" + } + return *e.Code } func (e *LoadBalancerAttributeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -291,6 +385,8 @@ func (e *LoadBalancerAttributeNotFoundException) ErrorFault() smithy.ErrorFault type OperationNotPermittedException struct { Message *string + Code *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.Code == nil { + return "OperationNotPermitted" + } + return *e.Code +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified policies do not exist. type PolicyNotFoundException struct { Message *string + Code *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.Code == nil { + return "PolicyNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyTypeNotFound" + } + return *e.Code +} func (e *PolicyTypeNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified subnets do not exist. type SubnetNotFoundException struct { Message *string + Code *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.Code == nil { + return "SubnetNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyLoadBalancers" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyPolicies" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTags" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified protocol or signature version is not supported. type UnsupportedProtocolException struct { Message *string + Code *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.Code == nil { + return "UnsupportedProtocol" + } + return *e.Code +} 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..860c47f5fd6 100644 --- a/service/elasticloadbalancingv2/types/errors.go +++ b/service/elasticloadbalancingv2/types/errors.go @@ -11,6 +11,8 @@ import ( type AllocationIdNotFoundException struct { Message *string + Code *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.Code == nil { + return "AllocationIdNotFound" + } + return *e.Code +} func (e *AllocationIdNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified ALPN policy is not supported. type ALPNPolicyNotSupportedException struct { Message *string + Code *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.Code == nil { + return "ALPNPolicyNotFound" + } + return *e.Code +} func (e *ALPNPolicyNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Availability Zone is not supported. type AvailabilityZoneNotSupportedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *AvailabilityZoneNotSupportedException) ErrorMessage() string { return *e.Message } func (e *AvailabilityZoneNotSupportedException) ErrorCode() string { - return "AvailabilityZoneNotSupported" + if e.Code == nil { + return "AvailabilityZoneNotSupported" + } + return *e.Code } func (e *AvailabilityZoneNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -72,6 +91,8 @@ func (e *AvailabilityZoneNotSupportedException) ErrorFault() smithy.ErrorFault { type CertificateNotFoundException struct { Message *string + Code *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.Code == nil { + return "CertificateNotFound" + } + return *e.Code +} func (e *CertificateNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A listener with the specified port already exists. type DuplicateListenerException struct { Message *string + Code *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.Code == nil { + return "DuplicateListener" + } + return *e.Code +} func (e *DuplicateListenerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A load balancer with the specified name already exists. type DuplicateLoadBalancerNameException struct { Message *string + Code *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.Code == nil { + return "DuplicateLoadBalancerName" + } + return *e.Code +} func (e *DuplicateLoadBalancerNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -131,6 +171,8 @@ func (e *DuplicateLoadBalancerNameException) ErrorFault() smithy.ErrorFault { type DuplicateTagKeysException struct { Message *string + Code *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.Code == nil { + return "DuplicateTagKeys" + } + return *e.Code +} func (e *DuplicateTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A target group with the specified name already exists. type DuplicateTargetGroupNameException struct { Message *string + Code *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.Code == nil { + return "DuplicateTargetGroupName" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HealthUnavailable" + } + return *e.Code +} func (e *HealthUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified configuration is not valid with this protocol. type IncompatibleProtocolsException struct { Message *string + Code *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.Code == nil { + return "IncompatibleProtocols" + } + return *e.Code +} func (e *IncompatibleProtocolsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested configuration is not valid. type InvalidConfigurationRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -221,7 +291,10 @@ func (e *InvalidConfigurationRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRequestException) ErrorCode() string { - return "InvalidConfigurationRequest" + if e.Code == nil { + return "InvalidConfigurationRequest" + } + return *e.Code } func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -231,6 +304,8 @@ func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { type InvalidLoadBalancerActionException struct { Message *string + Code *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.Code == nil { + return "InvalidLoadBalancerAction" + } + return *e.Code +} func (e *InvalidLoadBalancerActionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -252,6 +332,8 @@ func (e *InvalidLoadBalancerActionException) ErrorFault() smithy.ErrorFault { type InvalidSchemeException struct { Message *string + Code *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.Code == nil { + return "InvalidScheme" + } + return *e.Code +} func (e *InvalidSchemeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified security group does not exist. type InvalidSecurityGroupException struct { Message *string + Code *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.Code == nil { + return "InvalidSecurityGroup" + } + return *e.Code +} func (e *InvalidSecurityGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet is out of available addresses. type InvalidSubnetException struct { Message *string + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTarget" + } + return *e.Code +} func (e *InvalidTargetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified listener does not exist. type ListenerNotFoundException struct { Message *string + Code *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.Code == nil { + return "ListenerNotFound" + } + return *e.Code +} func (e *ListenerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified load balancer does not exist. type LoadBalancerNotFoundException struct { Message *string + Code *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.Code == nil { + return "LoadBalancerNotFound" + } + return *e.Code +} func (e *LoadBalancerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not allowed. type OperationNotPermittedException struct { Message *string + Code *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.Code == nil { + return "OperationNotPermitted" + } + return *e.Code +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified priority is in use. type PriorityInUseException struct { Message *string + Code *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.Code == nil { + return "PriorityInUse" + } + return *e.Code +} func (e *PriorityInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUse" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified rule does not exist. type RuleNotFoundException struct { Message *string + Code *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.Code == nil { + return "RuleNotFound" + } + return *e.Code +} func (e *RuleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified SSL policy does not exist. type SSLPolicyNotFoundException struct { Message *string + Code *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.Code == nil { + return "SSLPolicyNotFound" + } + return *e.Code +} func (e *SSLPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subnet does not exist. type SubnetNotFoundException struct { Message *string + Code *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.Code == nil { + return "SubnetNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -494,7 +660,10 @@ func (e *TargetGroupAssociationLimitException) ErrorMessage() string { return *e.Message } func (e *TargetGroupAssociationLimitException) ErrorCode() string { - return "TargetGroupAssociationLimit" + if e.Code == nil { + return "TargetGroupAssociationLimit" + } + return *e.Code } func (e *TargetGroupAssociationLimitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -504,6 +673,8 @@ func (e *TargetGroupAssociationLimitException) ErrorFault() smithy.ErrorFault { type TargetGroupNotFoundException struct { Message *string + Code *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.Code == nil { + return "TargetGroupNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyActions" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyCertificates" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyListeners" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyLoadBalancers" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -614,7 +820,10 @@ func (e *TooManyRegistrationsForTargetIdException) ErrorMessage() string { return *e.Message } func (e *TooManyRegistrationsForTargetIdException) ErrorCode() string { - return "TooManyRegistrationsForTargetId" + if e.Code == nil { + return "TooManyRegistrationsForTargetId" + } + return *e.Code } func (e *TooManyRegistrationsForTargetIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -624,6 +833,8 @@ func (e *TooManyRegistrationsForTargetIdException) ErrorFault() smithy.ErrorFaul type TooManyRulesException struct { Message *string + Code *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.Code == nil { + return "TooManyRules" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTags" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTargetGroups" + } + return *e.Code +} func (e *TooManyTargetGroupsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of targets. type TooManyTargetsException struct { Message *string + Code *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.Code == nil { + return "TooManyTargets" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -716,7 +955,10 @@ func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorMessage() strin return *e.Message } func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorCode() string { - return "TooManyUniqueTargetGroupsPerLoadBalancer" + if e.Code == nil { + return "TooManyUniqueTargetGroupsPerLoadBalancer" + } + return *e.Code } func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -726,6 +968,8 @@ func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorFault() smithy. type UnsupportedProtocolException struct { Message *string + Code *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.Code == nil { + return "UnsupportedProtocol" + } + return *e.Code +} 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..d98f76ca2cc 100644 --- a/service/elasticsearchservice/types/errors.go +++ b/service/elasticsearchservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred while processing the request. type BaseException struct { Message *string + Code *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.Code == nil { + return "BaseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DisabledOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -125,7 +162,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.Code == nil { + return "InvalidPaginationTokenException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidTypeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..fcaf13c6eca 100644 --- a/service/elastictranscoder/types/errors.go +++ b/service/elastictranscoder/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type IncompatibleVersionException struct { Message *string + Code *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.Code == nil { + return "IncompatibleVersionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..4c0b26893f6 100644 --- a/service/emr/types/errors.go +++ b/service/emr/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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..6c497aba72d 100644 --- a/service/emrcontainers/types/errors.go +++ b/service/emrcontainers/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are invalid parameters in the client request. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/emrcontainers/types/types.go b/service/emrcontainers/types/types.go index b6ecfd01e26..f7306e586e7 100644 --- a/service/emrcontainers/types/types.go +++ b/service/emrcontainers/types/types.go @@ -71,8 +71,7 @@ type ConfigurationOverrides struct { // The information about the container used for a job run or a managed endpoint. // // The following types satisfy this interface: -// -// ContainerInfoMemberEksInfo +// ContainerInfoMemberEksInfo type ContainerInfo interface { isContainerInfo() } diff --git a/service/emrserverless/types/errors.go b/service/emrserverless/types/errors.go index d2f72abaefa..7999382e6c2 100644 --- a/service/emrserverless/types/errors.go +++ b/service/emrserverless/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of resources per account has been reached. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/emrserverless/types/types.go b/service/emrserverless/types/types.go index 725e3d49e1e..e0ca983eda6 100644 --- a/service/emrserverless/types/types.go +++ b/service/emrserverless/types/types.go @@ -219,9 +219,8 @@ type InitialCapacityConfig struct { // The driver that the job runs on. // // The following types satisfy this interface: -// -// JobDriverMemberHive -// JobDriverMemberSparkSubmit +// JobDriverMemberHive +// JobDriverMemberSparkSubmit type JobDriver interface { isJobDriver() } diff --git a/service/eventbridge/types/errors.go b/service/eventbridge/types/errors.go index 27b7248226c..d1507caf46f 100644 --- a/service/eventbridge/types/errors.go +++ b/service/eventbridge/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "IllegalStatusException" + } + return *e.Code +} func (e *IllegalStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs due to unexpected causes. type InternalException struct { Message *string + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The event pattern is not valid. type InvalidEventPatternException struct { Message *string + Code *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.Code == nil { + return "InvalidEventPatternException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ManagedRuleException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OperationDisabledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyLengthExceededException" + } + return *e.Code +} func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you are trying to create already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An entity that you specified does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..148740c4fca 100644 --- a/service/evidently/types/errors.go +++ b/service/evidently/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error while processing the request. Retry the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service was unavailable. Retry the request. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/evidently/types/types.go b/service/evidently/types/types.go index b3aa74fd91a..ddecacd5838 100644 --- a/service/evidently/types/types.go +++ b/service/evidently/types/types.go @@ -1205,11 +1205,10 @@ type ValidationExceptionField struct { // one field. It can be boolValue, doubleValue, longValue, or stringValue. // // The following types satisfy this interface: -// -// VariableValueMemberBoolValue -// VariableValueMemberDoubleValue -// VariableValueMemberLongValue -// VariableValueMemberStringValue +// VariableValueMemberBoolValue +// VariableValueMemberDoubleValue +// VariableValueMemberLongValue +// VariableValueMemberStringValue type VariableValue interface { isVariableValue() } diff --git a/service/finspace/types/errors.go b/service/finspace/types/errors.go index 558ffccce86..781a9b3275a 100644 --- a/service/finspace/types/errors.go +++ b/service/finspace/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service limit or quota is exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..bfea7b5c1fd 100644 --- a/service/finspacedata/types/errors.go +++ b/service/finspacedata/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request conflicts with an existing resource. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A limit has exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..83d5c31ea90 100644 --- a/service/firehose/types/errors.go +++ b/service/firehose/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Kinesis Data Firehose throws this exception when an attempt to put records or to @@ -69,13 +81,20 @@ func (e *InvalidKMSResourceException) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSResourceException) ErrorCode() string { return "InvalidKMSResourceException" } +func (e *InvalidKMSResourceException) ErrorCode() string { + if e.Code == nil { + return "InvalidKMSResourceException" + } + return *e.Code +} func (e *InvalidKMSResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have already reached the limit for a requested resource. type LimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -88,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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -107,13 +133,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -126,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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 +175,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceUnavailableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -149,5 +189,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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..24ef827cd95 100644 --- a/service/fis/types/errors.go +++ b/service/fis/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource cannot be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded your service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..dae84d8127d 100644 --- a/service/fms/types/errors.go +++ b/service/fms/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalErrorException struct { Message *string + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters of the request were invalid. type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value of the Type parameter is invalid. type InvalidTypeException struct { Message *string + Code *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.Code == nil { + return "InvalidTypeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..37c96ef40fc 100644 --- a/service/forecast/types/errors.go +++ b/service/forecast/types/errors.go @@ -12,6 +12,8 @@ import ( type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token is not valid. Tokens expire after 24 hours. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/forecast/types/types.go b/service/forecast/types/types.go index 16505267595..4391f272e6a 100644 --- a/service/forecast/types/types.go +++ b/service/forecast/types/types.go @@ -222,17 +222,14 @@ type AdditionalDataset struct { } // Provides information about the method used to transform attributes. The -// -// following is an example using the RETAIL domain: { -// "AttributeName": -// +// following is an example using the RETAIL domain: { +// "AttributeName": // "demand", // -// "Transformations": {"aggregation": "sum", "middlefill": "zero", -// +// "Transformations": {"aggregation": "sum", "middlefill": "zero", // "backfill": "zero"} // -// } +// } type AttributeConfig struct { // The name of the attribute as specified in the schema. Amazon Forecast supports @@ -773,19 +770,21 @@ type ExplainabilitySummary struct { // This object belongs to the CreatePredictor operation. If you created your // predictor with CreateAutoPredictor, see AttributeConfig. Provides featurization // (transformation) information for a dataset field. This object is part of the +// FeaturizationConfig object. For example: { +// "AttributeName": "demand", // -// FeaturizationConfig object. For example: { -// "AttributeName": "demand", // // FeaturizationPipeline [ { // -// "FeaturizationMethodName": "filling", +// "FeaturizationMethodName": "filling", +// // // "FeaturizationMethodParameters": {"aggregation": "avg", "backfill": "nan"} // +// // } ] // -// } +// } type Featurization struct { // The name of the schema attribute that specifies the data field to be featurized. @@ -849,14 +848,14 @@ type FeaturizationConfig struct { // Provides information about the method that featurizes (transforms) a dataset // field. The method is part of the FeaturizationPipeline of the Featurization // object. The following is an example of how you specify a FeaturizationMethod +// object. { +// "FeaturizationMethodName": "filling", // -// object. { -// "FeaturizationMethodName": "filling", // // "FeaturizationMethodParameters": {"aggregation": "sum", "middlefill": "zero", // "backfill": "zero"} // -// } +// } type FeaturizationMethod struct { // The name of the method. The "filling" method is the only supported method. diff --git a/service/forecastquery/types/errors.go b/service/forecastquery/types/errors.go index 6086a34c537..64dbbeaad43 100644 --- a/service/forecastquery/types/errors.go +++ b/service/forecastquery/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token is not valid. Tokens expire after 24 hours. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..6de6b654d37 100644 --- a/service/frauddetector/types/errors.go +++ b/service/frauddetector/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating an internal server error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An exception indicating the specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceUnavailableException" + } + return *e.Code +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating a throttling error. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An exception indicating a specified value is not allowed. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..7b1d1c9bb75 100644 --- a/service/fsx/types/errors.go +++ b/service/fsx/types/errors.go @@ -11,6 +11,8 @@ import ( type ActiveDirectoryError struct { Message *string + Code *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.Code == nil { + return "ActiveDirectoryError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BackupBeingCopied" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BackupInProgress" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BackupNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BackupRestoring" + } + return *e.Code +} func (e *BackupRestoring) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A generic error indicating a failure with a client request. type BadRequest struct { Message *string + Code *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.Code == nil { + return "BadRequest" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -146,7 +190,10 @@ func (e *DataRepositoryAssociationNotFound) ErrorMessage() string { return *e.Message } func (e *DataRepositoryAssociationNotFound) ErrorCode() string { - return "DataRepositoryAssociationNotFound" + if e.Code == nil { + return "DataRepositoryAssociationNotFound" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DataRepositoryTaskEnded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DataRepositoryTaskExecuting" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DataRepositoryTaskNotFound" + } + return *e.Code +} func (e *DataRepositoryTaskNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No caches were found based upon supplied parameters. type FileCacheNotFound struct { Message *string + Code *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.Code == nil { + return "FileCacheNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FileSystemNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncompatibleParameterError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncompatibleRegionForMultiAZ" + } + return *e.Code +} func (e *IncompatibleRegionForMultiAZ) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A generic error indicating a server-side failure. type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDataRepositoryType" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDestinationKmsKey" + } + return *e.Code +} func (e *InvalidDestinationKmsKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The path provided for data repository export isn't valid. type InvalidExportPath struct { Message *string + Code *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.Code == nil { + return "InvalidExportPath" + } + return *e.Code +} func (e *InvalidExportPath) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The path provided for data repository import isn't valid. type InvalidImportPath struct { Message *string + Code *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.Code == nil { + return "InvalidImportPath" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNetworkSettings" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -426,7 +566,10 @@ func (e *InvalidPerUnitStorageThroughput) ErrorMessage() string { return *e.Message } func (e *InvalidPerUnitStorageThroughput) ErrorCode() string { - return "InvalidPerUnitStorageThroughput" + if e.Code == nil { + return "InvalidPerUnitStorageThroughput" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidRegion" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSourceKmsKey" + } + return *e.Code +} func (e *InvalidSourceKmsKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cache configuration is required for this operation. type MissingFileCacheConfiguration struct { Message *string + Code *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.Code == nil { + return "MissingFileCacheConfiguration" + } + return *e.Code +} func (e *MissingFileCacheConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A file system configuration is required for this operation. type MissingFileSystemConfiguration struct { Message *string + Code *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.Code == nil { + return "MissingFileSystemConfiguration" + } + return *e.Code +} func (e *MissingFileSystemConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A volume configuration is required for this operation. type MissingVolumeConfiguration struct { Message *string + Code *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.Code == nil { + return "MissingVolumeConfiguration" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotServiceResourceError" + } + return *e.Code +} func (e *NotServiceResourceError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified does not support tagging. type ResourceDoesNotSupportTagging struct { Message *string + Code *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.Code == nil { + return "ResourceDoesNotSupportTagging" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapshotNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SourceBackupUnavailable" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StorageVirtualMachineNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedOperation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "VolumeNotFound" + } + return *e.Code +} 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..069560b3da0 100644 --- a/service/gamelift/types/errors.go +++ b/service/gamelift/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FleetCapacityExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "GameSessionFullException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -86,7 +109,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -97,6 +123,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServiceException struct { Message *string + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFleetStatusException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -152,7 +194,10 @@ func (e *InvalidGameSessionStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidGameSessionStatusException) ErrorCode() string { - return "InvalidGameSessionStatusException" + if e.Code == nil { + return "InvalidGameSessionStatusException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OutOfCapacityException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TaggingFailedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -279,7 +361,10 @@ func (e *TerminalRoutingStrategyException) ErrorMessage() string { return *e.Message } func (e *TerminalRoutingStrategyException) ErrorCode() string { - return "TerminalRoutingStrategyException" + if e.Code == nil { + return "TerminalRoutingStrategyException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not supported in the Region specified. type UnsupportedRegionException struct { Message *string + Code *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.Code == nil { + return "UnsupportedRegionException" + } + return *e.Code +} func (e *UnsupportedRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/gamesparks/doc.go b/service/gamesparks/doc.go index 2bef38d3690..2d10aad89fe 100644 --- a/service/gamesparks/doc.go +++ b/service/gamesparks/doc.go @@ -2,4 +2,6 @@ // Package gamesparks provides the API client, operations, and parameter types for // GameSparks. +// +// package gamesparks diff --git a/service/gamesparks/document/doc.go b/service/gamesparks/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/service/gamesparks/document/doc.go +++ b/service/gamesparks/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/service/gamesparks/types/errors.go b/service/gamesparks/types/errors.go index 0aec5f46718..983663869c5 100644 --- a/service/gamesparks/types/errors.go +++ b/service/gamesparks/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists, or another operation is in progress. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an internal error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource specified in the request does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in exceeding service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request throughput limit was exceeded. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the parameters in the request is invalid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..ba6a3af75e3 100644 --- a/service/glacier/types/errors.go +++ b/service/glacier/types/errors.go @@ -13,9 +13,10 @@ import ( type InsufficientCapacityException struct { Message *string - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -28,16 +29,22 @@ func (e *InsufficientCapacityException) ErrorMessage() string { } return *e.Message } -func (e *InsufficientCapacityException) ErrorCode() string { return "InsufficientCapacityException" } +func (e *InsufficientCapacityException) ErrorCode() string { + if e.Code == nil { + return "InsufficientCapacityException" + } + return *e.Code +} func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a parameter of the request is incorrectly specified. type InvalidParameterValueException struct { Message *string - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -50,16 +57,22 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} 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 - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -72,16 +85,22 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -94,7 +113,12 @@ func (e *MissingParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *MissingParameterValueException) ErrorCode() string { return "MissingParameterValueException" } +func (e *MissingParameterValueException) ErrorCode() string { + if e.Code == nil { + return "MissingParameterValueException" + } + return *e.Code +} func (e *MissingParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if a retrieval job would exceed the current data policy's retrieval @@ -102,9 +126,10 @@ func (e *MissingParameterValueException) ErrorFault() smithy.ErrorFault { return type PolicyEnforcedException struct { Message *string - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -117,7 +142,12 @@ func (e *PolicyEnforcedException) ErrorMessage() string { } return *e.Message } -func (e *PolicyEnforcedException) ErrorCode() string { return "PolicyEnforcedException" } +func (e *PolicyEnforcedException) ErrorCode() string { + if e.Code == nil { + return "PolicyEnforcedException" + } + return *e.Code +} func (e *PolicyEnforcedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if, when uploading an archive, Amazon S3 Glacier times out while @@ -125,9 +155,10 @@ func (e *PolicyEnforcedException) ErrorFault() smithy.ErrorFault { return smithy type RequestTimeoutException struct { Message *string - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -140,7 +171,12 @@ func (e *RequestTimeoutException) ErrorMessage() string { } return *e.Message } -func (e *RequestTimeoutException) ErrorCode() string { return "RequestTimeoutException" } +func (e *RequestTimeoutException) ErrorCode() string { + if e.Code == nil { + return "RequestTimeoutException" + } + return *e.Code +} func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the specified resource (such as a vault, upload ID, or job ID) @@ -148,9 +184,10 @@ func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy type ResourceNotFoundException struct { Message *string - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -163,16 +200,22 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned if the service cannot complete the request. type ServiceUnavailableException struct { Message *string - Type *string Code *string + Type *string + noSmithyDocumentSerde } @@ -185,5 +228,10 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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..79d6d7739ca 100644 --- a/service/globalaccelerator/types/errors.go +++ b/service/globalaccelerator/types/errors.go @@ -11,6 +11,8 @@ import ( type AcceleratorNotDisabledException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *AcceleratorNotDisabledException) ErrorMessage() string { return *e.Message } func (e *AcceleratorNotDisabledException) ErrorCode() string { - return "AcceleratorNotDisabledException" + if e.Code == nil { + return "AcceleratorNotDisabledException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AcceleratorNotFoundException" + } + return *e.Code +} func (e *AcceleratorNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have access permission. type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -84,7 +105,10 @@ func (e *AssociatedEndpointGroupFoundException) ErrorMessage() string { return *e.Message } func (e *AssociatedEndpointGroupFoundException) ErrorCode() string { - return "AssociatedEndpointGroupFoundException" + if e.Code == nil { + return "AssociatedEndpointGroupFoundException" + } + return *e.Code } func (e *AssociatedEndpointGroupFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -95,6 +119,8 @@ func (e *AssociatedEndpointGroupFoundException) ErrorFault() smithy.ErrorFault { type AssociatedListenerFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -108,7 +134,10 @@ func (e *AssociatedListenerFoundException) ErrorMessage() string { return *e.Message } func (e *AssociatedListenerFoundException) ErrorCode() string { - return "AssociatedListenerFoundException" + if e.Code == nil { + return "AssociatedListenerFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ByoipCidrNotFoundException" + } + return *e.Code +} func (e *ByoipCidrNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't use both of those options. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The endpoint that you specified doesn't exist. type EndpointAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "EndpointAlreadyExistsException" + } + return *e.Code +} func (e *EndpointAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The endpoint group that you specified already exists. type EndpointGroupAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -186,7 +238,10 @@ func (e *EndpointGroupAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EndpointGroupAlreadyExistsException) ErrorCode() string { - return "EndpointGroupAlreadyExistsException" + if e.Code == nil { + return "EndpointGroupAlreadyExistsException" + } + return *e.Code } func (e *EndpointGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -196,6 +251,8 @@ func (e *EndpointGroupAlreadyExistsException) ErrorFault() smithy.ErrorFault { type EndpointGroupNotFoundException struct { Message *string + Code *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.Code == nil { + return "EndpointGroupNotFoundException" + } + return *e.Code +} func (e *EndpointGroupNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The endpoint that you specified doesn't exist. type EndpointNotFoundException struct { Message *string + Code *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.Code == nil { + return "EndpointNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncorrectCidrStateException" + } + return *e.Code +} func (e *IncorrectCidrStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal error for Global Accelerator. type InternalServiceErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An argument that you specified is invalid. type InvalidArgumentException struct { Message *string + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There isn't another item to return. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPortRangeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The listener that you specified doesn't exist. type ListenerNotFoundException struct { Message *string + Code *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.Code == nil { + return "ListenerNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TransactionInProgressException" + } + return *e.Code +} 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..7e5c45aa0b1 100644 --- a/service/glue/types/errors.go +++ b/service/glue/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource to be created or added already exists. type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two processes are trying to modify a resource simultaneously. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -83,7 +104,10 @@ func (e *ConcurrentRunsExceededException) ErrorMessage() string { return *e.Message } func (e *ConcurrentRunsExceededException) ErrorCode() string { - return "ConcurrentRunsExceededException" + if e.Code == nil { + return "ConcurrentRunsExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConditionCheckFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified crawler is not running. type CrawlerNotRunningException struct { Message *string + Code *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.Code == nil { + return "CrawlerNotRunningException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CrawlerRunningException" + } + return *e.Code +} func (e *CrawlerRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified crawler is stopping. type CrawlerStoppingException struct { Message *string + Code *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.Code == nil { + return "CrawlerStoppingException" + } + return *e.Code +} func (e *CrawlerStoppingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified entity does not exist type EntityNotFoundException struct { Message *string + Code *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.Code == nil { + return "EntityNotFoundException" + } + return *e.Code +} func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An encryption operation failed. type GlueEncryptionException struct { Message *string + Code *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.Code == nil { + return "GlueEncryptionException" + } + return *e.Code +} func (e *GlueEncryptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The same unique identifier was associated with two different records. type IdempotentParameterMismatchException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -237,7 +312,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -247,6 +325,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type IllegalBlueprintStateException struct { Message *string + Code *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.Code == nil { + return "IllegalBlueprintStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IllegalSessionStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IllegalWorkflowStateException" + } + return *e.Code +} func (e *IllegalWorkflowStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred. type InternalServiceException struct { Message *string + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input provided was not valid. type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The machine learning transform is not ready to run. type MLTransformNotReadyException struct { Message *string + Code *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.Code == nil { + return "MLTransformNotReadyException" + } + return *e.Code +} func (e *MLTransformNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is no applicable schedule. type NoScheduleException struct { Message *string + Code *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.Code == nil { + return "NoScheduleException" + } + return *e.Code +} func (e *NoScheduleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation timed out. type OperationTimeoutException struct { Message *string + Code *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.Code == nil { + return "OperationTimeoutException" + } + return *e.Code +} func (e *OperationTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type PermissionTypeMismatchException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -430,7 +573,10 @@ func (e *PermissionTypeMismatchException) ErrorMessage() string { return *e.Message } func (e *PermissionTypeMismatchException) ErrorCode() string { - return "PermissionTypeMismatchException" + if e.Code == nil { + return "PermissionTypeMismatchException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotReadyException" + } + return *e.Code +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource numerical limit was exceeded. type ResourceNumberLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -470,7 +625,10 @@ func (e *ResourceNumberLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceNumberLimitExceededException) ErrorCode() string { - return "ResourceNumberLimitExceededException" + if e.Code == nil { + return "ResourceNumberLimitExceededException" + } + return *e.Code } func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -480,6 +638,8 @@ func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { type SchedulerNotRunningException struct { Message *string + Code *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.Code == nil { + return "SchedulerNotRunningException" + } + return *e.Code +} func (e *SchedulerNotRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified scheduler is already running. type SchedulerRunningException struct { Message *string + Code *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.Code == nil { + return "SchedulerRunningException" + } + return *e.Code +} func (e *SchedulerRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified scheduler is transitioning. type SchedulerTransitioningException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -531,7 +705,10 @@ func (e *SchedulerTransitioningException) ErrorMessage() string { return *e.Message } func (e *SchedulerTransitioningException) ErrorCode() string { - return "SchedulerTransitioningException" + if e.Code == nil { + return "SchedulerTransitioningException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a version conflict. type VersionMismatchException struct { Message *string + Code *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.Code == nil { + return "VersionMismatchException" + } + return *e.Code +} 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..5e001d031a9 100644 --- a/service/grafana/types/errors.go +++ b/service/grafana/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error while processing the request. Retry the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/grafana/types/types.go b/service/grafana/types/types.go index b7b8e14831f..e0c79deb6a5 100644 --- a/service/grafana/types/types.go +++ b/service/grafana/types/types.go @@ -97,9 +97,8 @@ type AwsSsoAuthentication struct { // error. // // The following types satisfy this interface: -// -// IdpMetadataMemberUrl -// IdpMetadataMemberXml +// IdpMetadataMemberUrl +// IdpMetadataMemberXml type IdpMetadata interface { isIdpMetadata() } diff --git a/service/greengrass/api_op_AssociateServiceRoleToAccount.go b/service/greengrass/api_op_AssociateServiceRoleToAccount.go index c51a9fcbcb7..0dcf578dcd8 100644 --- a/service/greengrass/api_op_AssociateServiceRoleToAccount.go +++ b/service/greengrass/api_op_AssociateServiceRoleToAccount.go @@ -13,7 +13,7 @@ import ( // Associates a role with your account. AWS IoT Greengrass will use the role to // access your Lambda functions and AWS IoT resources. This is necessary for // deployments to succeed. The role must have at least minimum permissions in the -// policy ”AWSGreengrassResourceAccessRolePolicy”. +// policy ''AWSGreengrassResourceAccessRolePolicy''. func (c *Client) AssociateServiceRoleToAccount(ctx context.Context, params *AssociateServiceRoleToAccountInput, optFns ...func(*Options)) (*AssociateServiceRoleToAccountOutput, error) { if params == nil { params = &AssociateServiceRoleToAccountInput{} diff --git a/service/greengrass/api_op_CreateConnectorDefinition.go b/service/greengrass/api_op_CreateConnectorDefinition.go index 9080e3088c2..aba0eedb3f0 100644 --- a/service/greengrass/api_op_CreateConnectorDefinition.go +++ b/service/greengrass/api_op_CreateConnectorDefinition.go @@ -12,7 +12,7 @@ import ( ) // Creates a connector definition. You may provide the initial version of the -// connector definition now or use ”CreateConnectorDefinitionVersion” at a later +// connector definition now or use ''CreateConnectorDefinitionVersion'' at a later // time. func (c *Client) CreateConnectorDefinition(ctx context.Context, params *CreateConnectorDefinitionInput, optFns ...func(*Options)) (*CreateConnectorDefinitionOutput, error) { if params == nil { diff --git a/service/greengrass/api_op_CreateCoreDefinition.go b/service/greengrass/api_op_CreateCoreDefinition.go index 8f0940cab9b..0a399a8b9e4 100644 --- a/service/greengrass/api_op_CreateCoreDefinition.go +++ b/service/greengrass/api_op_CreateCoreDefinition.go @@ -12,7 +12,7 @@ import ( ) // Creates a core definition. You may provide the initial version of the core -// definition now or use ”CreateCoreDefinitionVersion” at a later time. +// definition now or use ''CreateCoreDefinitionVersion'' at a later time. // Greengrass groups must each contain exactly one Greengrass core. func (c *Client) CreateCoreDefinition(ctx context.Context, params *CreateCoreDefinitionInput, optFns ...func(*Options)) (*CreateCoreDefinitionOutput, error) { if params == nil { diff --git a/service/greengrass/api_op_CreateDeployment.go b/service/greengrass/api_op_CreateDeployment.go index 89b9520decc..3a589788d3d 100644 --- a/service/greengrass/api_op_CreateDeployment.go +++ b/service/greengrass/api_op_CreateDeployment.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a deployment. ”CreateDeployment” requests are idempotent with respect -// to the ”X-Amzn-Client-Token” token and the request parameters. +// Creates a deployment. ''CreateDeployment'' requests are idempotent with respect +// to the ''X-Amzn-Client-Token'' token and the request parameters. func (c *Client) CreateDeployment(ctx context.Context, params *CreateDeploymentInput, optFns ...func(*Options)) (*CreateDeploymentOutput, error) { if params == nil { params = &CreateDeploymentInput{} diff --git a/service/greengrass/api_op_CreateDeviceDefinition.go b/service/greengrass/api_op_CreateDeviceDefinition.go index 5b844e54eb8..263e26cbcd1 100644 --- a/service/greengrass/api_op_CreateDeviceDefinition.go +++ b/service/greengrass/api_op_CreateDeviceDefinition.go @@ -12,7 +12,7 @@ import ( ) // Creates a device definition. You may provide the initial version of the device -// definition now or use ”CreateDeviceDefinitionVersion” at a later time. +// definition now or use ''CreateDeviceDefinitionVersion'' at a later time. func (c *Client) CreateDeviceDefinition(ctx context.Context, params *CreateDeviceDefinitionInput, optFns ...func(*Options)) (*CreateDeviceDefinitionOutput, error) { if params == nil { params = &CreateDeviceDefinitionInput{} diff --git a/service/greengrass/api_op_CreateFunctionDefinition.go b/service/greengrass/api_op_CreateFunctionDefinition.go index a7ee997ca7f..cfd645d7147 100644 --- a/service/greengrass/api_op_CreateFunctionDefinition.go +++ b/service/greengrass/api_op_CreateFunctionDefinition.go @@ -14,7 +14,7 @@ import ( // Creates a Lambda function definition which contains a list of Lambda functions // and their configurations to be used in a group. You can create an initial // version of the definition by providing a list of Lambda functions and their -// configurations now, or use ”CreateFunctionDefinitionVersion” later. +// configurations now, or use ''CreateFunctionDefinitionVersion'' later. func (c *Client) CreateFunctionDefinition(ctx context.Context, params *CreateFunctionDefinitionInput, optFns ...func(*Options)) (*CreateFunctionDefinitionOutput, error) { if params == nil { params = &CreateFunctionDefinitionInput{} diff --git a/service/greengrass/api_op_CreateGroup.go b/service/greengrass/api_op_CreateGroup.go index 8a35ddec831..1a0e56e1583 100644 --- a/service/greengrass/api_op_CreateGroup.go +++ b/service/greengrass/api_op_CreateGroup.go @@ -12,7 +12,7 @@ import ( ) // Creates a group. You may provide the initial version of the group or use -// ”CreateGroupVersion” at a later time. Tip: You can use the ”gg_group_setup” +// ''CreateGroupVersion'' at a later time. Tip: You can use the ''gg_group_setup'' // package (https://github.com/awslabs/aws-greengrass-group-setup) as a library or // command-line application to create and deploy Greengrass groups. func (c *Client) CreateGroup(ctx context.Context, params *CreateGroupInput, optFns ...func(*Options)) (*CreateGroupOutput, error) { diff --git a/service/greengrass/api_op_CreateLoggerDefinition.go b/service/greengrass/api_op_CreateLoggerDefinition.go index 5e25a67be20..633570744f8 100644 --- a/service/greengrass/api_op_CreateLoggerDefinition.go +++ b/service/greengrass/api_op_CreateLoggerDefinition.go @@ -12,7 +12,7 @@ import ( ) // Creates a logger definition. You may provide the initial version of the logger -// definition now or use ”CreateLoggerDefinitionVersion” at a later time. +// definition now or use ''CreateLoggerDefinitionVersion'' at a later time. func (c *Client) CreateLoggerDefinition(ctx context.Context, params *CreateLoggerDefinitionInput, optFns ...func(*Options)) (*CreateLoggerDefinitionOutput, error) { if params == nil { params = &CreateLoggerDefinitionInput{} diff --git a/service/greengrass/api_op_CreateResourceDefinition.go b/service/greengrass/api_op_CreateResourceDefinition.go index d7ff2ae856f..bc98940a214 100644 --- a/service/greengrass/api_op_CreateResourceDefinition.go +++ b/service/greengrass/api_op_CreateResourceDefinition.go @@ -13,7 +13,7 @@ import ( // Creates a resource definition which contains a list of resources to be used in a // group. You can create an initial version of the definition by providing a list -// of resources now, or use ”CreateResourceDefinitionVersion” later. +// of resources now, or use ''CreateResourceDefinitionVersion'' later. func (c *Client) CreateResourceDefinition(ctx context.Context, params *CreateResourceDefinitionInput, optFns ...func(*Options)) (*CreateResourceDefinitionOutput, error) { if params == nil { params = &CreateResourceDefinitionInput{} diff --git a/service/greengrass/api_op_CreateSubscriptionDefinition.go b/service/greengrass/api_op_CreateSubscriptionDefinition.go index 806afbd9c46..cc1ccfc80c8 100644 --- a/service/greengrass/api_op_CreateSubscriptionDefinition.go +++ b/service/greengrass/api_op_CreateSubscriptionDefinition.go @@ -12,7 +12,7 @@ import ( ) // Creates a subscription definition. You may provide the initial version of the -// subscription definition now or use ”CreateSubscriptionDefinitionVersion” at a +// subscription definition now or use ''CreateSubscriptionDefinitionVersion'' at a // later time. func (c *Client) CreateSubscriptionDefinition(ctx context.Context, params *CreateSubscriptionDefinitionInput, optFns ...func(*Options)) (*CreateSubscriptionDefinitionOutput, error) { if params == nil { diff --git a/service/greengrass/api_op_StartBulkDeployment.go b/service/greengrass/api_op_StartBulkDeployment.go index a6ed7a17472..a14b4986d96 100644 --- a/service/greengrass/api_op_StartBulkDeployment.go +++ b/service/greengrass/api_op_StartBulkDeployment.go @@ -13,7 +13,7 @@ import ( // Deploys multiple groups in one operation. This action starts the bulk deployment // of a specified set of group versions. Each group version deployment will be // triggered with an adaptive rate that has a fixed upper limit. We recommend that -// you include an ”X-Amzn-Client-Token” token in every ”StartBulkDeployment” +// you include an ''X-Amzn-Client-Token'' token in every ''StartBulkDeployment'' // request. These requests are idempotent with respect to the token and the request // parameters. func (c *Client) StartBulkDeployment(ctx context.Context, params *StartBulkDeploymentInput, optFns ...func(*Options)) (*StartBulkDeploymentOutput, error) { diff --git a/service/greengrass/api_op_StopBulkDeployment.go b/service/greengrass/api_op_StopBulkDeployment.go index 2992ef249ed..f655aadde2a 100644 --- a/service/greengrass/api_op_StopBulkDeployment.go +++ b/service/greengrass/api_op_StopBulkDeployment.go @@ -11,8 +11,8 @@ import ( ) // Stops the execution of a bulk deployment. This action returns a status of -// ”Stopping” until the deployment is stopped. You cannot start a new bulk -// deployment while a previous deployment is in the ”Stopping” state. This action +// ''Stopping'' until the deployment is stopped. You cannot start a new bulk +// deployment while a previous deployment is in the ''Stopping'' state. This action // doesn't rollback completed deployments or cancel pending deployments. func (c *Client) StopBulkDeployment(ctx context.Context, params *StopBulkDeploymentInput, optFns ...func(*Options)) (*StopBulkDeploymentOutput, error) { if params == nil { diff --git a/service/greengrass/types/errors.go b/service/greengrass/types/errors.go index 855fc45836d..b46b81014fb 100644 --- a/service/greengrass/types/errors.go +++ b/service/greengrass/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // General error information. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/greengrass/types/types.go b/service/greengrass/types/types.go index 14a87076951..f5c9b9a541e 100644 --- a/service/greengrass/types/types.go +++ b/service/greengrass/types/types.go @@ -408,8 +408,8 @@ type FunctionExecutionConfig struct { // function. You can specify one or both values to override the default values. We // recommend that you avoid running as root unless absolutely necessary to minimize // the risk of unintended changes or malicious attacks. To run as root, you must -// set ”IsolationMode” to ”NoContainer” and update config.json in -// ”greengrass-root/config” to set ”allowFunctionsToRunAsRoot” to ”yes”. +// set ''IsolationMode'' to ''NoContainer'' and update config.json in +// ''greengrass-root/config'' to set ''allowFunctionsToRunAsRoot'' to ''yes''. type FunctionRunAsConfig struct { // The group ID whose permissions are used to run a Lambda function. @@ -615,9 +615,9 @@ type ResourceAccessPolicy struct { } // A container for resource data. The container takes only one of the following -// supported resource data types: ”LocalDeviceResourceData”, -// ”LocalVolumeResourceData”, ”SageMakerMachineLearningModelResourceData”, -// ”S3MachineLearningModelResourceData”, ”SecretsManagerSecretResourceData”. +// supported resource data types: ''LocalDeviceResourceData'', +// ''LocalVolumeResourceData'', ''SageMakerMachineLearningModelResourceData'', +// ''S3MachineLearningModelResourceData'', ''SecretsManagerSecretResourceData''. type ResourceDataContainer struct { // Attributes that define the local device resource. diff --git a/service/greengrassv2/types/errors.go b/service/greengrassv2/types/errors.go index 2a27239cbbd..47704de1b62 100644 --- a/service/greengrassv2/types/errors.go +++ b/service/greengrassv2/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -89,7 +112,10 @@ func (e *RequestAlreadyInProgressException) ErrorMessage() string { return *e.Message } func (e *RequestAlreadyInProgressException) ErrorCode() string { - return "RequestAlreadyInProgressException" + if e.Code == nil { + return "RequestAlreadyInProgressException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/groundstation/api_op_CancelContact.go b/service/groundstation/api_op_CancelContact.go index 04f55a0a868..1f0d331dc16 100644 --- a/service/groundstation/api_op_CancelContact.go +++ b/service/groundstation/api_op_CancelContact.go @@ -26,6 +26,7 @@ func (c *Client) CancelContact(ctx context.Context, params *CancelContactInput, return out, nil } +// type CancelContactInput struct { // UUID of a contact. @@ -36,6 +37,7 @@ type CancelContactInput struct { noSmithyDocumentSerde } +// type CancelContactOutput struct { // UUID of a contact. diff --git a/service/groundstation/api_op_CreateConfig.go b/service/groundstation/api_op_CreateConfig.go index f50a3ed177b..3203b59819e 100644 --- a/service/groundstation/api_op_CreateConfig.go +++ b/service/groundstation/api_op_CreateConfig.go @@ -28,6 +28,7 @@ func (c *Client) CreateConfig(ctx context.Context, params *CreateConfigInput, op return out, nil } +// type CreateConfigInput struct { // Parameters of a Config. @@ -46,6 +47,7 @@ type CreateConfigInput struct { noSmithyDocumentSerde } +// type CreateConfigOutput struct { // ARN of a Config. diff --git a/service/groundstation/api_op_CreateDataflowEndpointGroup.go b/service/groundstation/api_op_CreateDataflowEndpointGroup.go index 892e97b4a1f..93e94b8a6a7 100644 --- a/service/groundstation/api_op_CreateDataflowEndpointGroup.go +++ b/service/groundstation/api_op_CreateDataflowEndpointGroup.go @@ -31,6 +31,7 @@ func (c *Client) CreateDataflowEndpointGroup(ctx context.Context, params *Create return out, nil } +// type CreateDataflowEndpointGroupInput struct { // Endpoint details of each endpoint in the dataflow endpoint group. @@ -44,6 +45,7 @@ type CreateDataflowEndpointGroupInput struct { noSmithyDocumentSerde } +// type CreateDataflowEndpointGroupOutput struct { // UUID of a dataflow endpoint group. diff --git a/service/groundstation/api_op_CreateMissionProfile.go b/service/groundstation/api_op_CreateMissionProfile.go index 2972579f6aa..6a574b34401 100644 --- a/service/groundstation/api_op_CreateMissionProfile.go +++ b/service/groundstation/api_op_CreateMissionProfile.go @@ -27,6 +27,7 @@ func (c *Client) CreateMissionProfile(ctx context.Context, params *CreateMission return out, nil } +// type CreateMissionProfileInput struct { // A list of lists of ARNs. Each list of ARNs is an edge, with a from Config and a @@ -66,6 +67,7 @@ type CreateMissionProfileInput struct { noSmithyDocumentSerde } +// type CreateMissionProfileOutput struct { // UUID of a mission profile. diff --git a/service/groundstation/api_op_DeleteConfig.go b/service/groundstation/api_op_DeleteConfig.go index a51c412fd8b..d4d4b6c4d68 100644 --- a/service/groundstation/api_op_DeleteConfig.go +++ b/service/groundstation/api_op_DeleteConfig.go @@ -27,6 +27,7 @@ func (c *Client) DeleteConfig(ctx context.Context, params *DeleteConfigInput, op return out, nil } +// type DeleteConfigInput struct { // UUID of a Config. @@ -42,6 +43,7 @@ type DeleteConfigInput struct { noSmithyDocumentSerde } +// type DeleteConfigOutput struct { // ARN of a Config. diff --git a/service/groundstation/api_op_DeleteDataflowEndpointGroup.go b/service/groundstation/api_op_DeleteDataflowEndpointGroup.go index 6dddf751ebe..8525d2ab3a8 100644 --- a/service/groundstation/api_op_DeleteDataflowEndpointGroup.go +++ b/service/groundstation/api_op_DeleteDataflowEndpointGroup.go @@ -26,6 +26,7 @@ func (c *Client) DeleteDataflowEndpointGroup(ctx context.Context, params *Delete return out, nil } +// type DeleteDataflowEndpointGroupInput struct { // UUID of a dataflow endpoint group. @@ -36,6 +37,7 @@ type DeleteDataflowEndpointGroupInput struct { noSmithyDocumentSerde } +// type DeleteDataflowEndpointGroupOutput struct { // UUID of a dataflow endpoint group. diff --git a/service/groundstation/api_op_DeleteMissionProfile.go b/service/groundstation/api_op_DeleteMissionProfile.go index 91ce385233c..cbdd64d4f06 100644 --- a/service/groundstation/api_op_DeleteMissionProfile.go +++ b/service/groundstation/api_op_DeleteMissionProfile.go @@ -26,6 +26,7 @@ func (c *Client) DeleteMissionProfile(ctx context.Context, params *DeleteMission return out, nil } +// type DeleteMissionProfileInput struct { // UUID of a mission profile. @@ -36,6 +37,7 @@ type DeleteMissionProfileInput struct { noSmithyDocumentSerde } +// type DeleteMissionProfileOutput struct { // UUID of a mission profile. diff --git a/service/groundstation/api_op_DescribeContact.go b/service/groundstation/api_op_DescribeContact.go index 8b89343efd6..9b27eb5b593 100644 --- a/service/groundstation/api_op_DescribeContact.go +++ b/service/groundstation/api_op_DescribeContact.go @@ -28,6 +28,7 @@ func (c *Client) DescribeContact(ctx context.Context, params *DescribeContactInp return out, nil } +// type DescribeContactInput struct { // UUID of a contact. @@ -38,6 +39,7 @@ type DescribeContactInput struct { noSmithyDocumentSerde } +// type DescribeContactOutput struct { // UUID of a contact. diff --git a/service/groundstation/api_op_GetConfig.go b/service/groundstation/api_op_GetConfig.go index ad9d9fe57a9..17dc0cf00be 100644 --- a/service/groundstation/api_op_GetConfig.go +++ b/service/groundstation/api_op_GetConfig.go @@ -27,6 +27,7 @@ func (c *Client) GetConfig(ctx context.Context, params *GetConfigInput, optFns . return out, nil } +// type GetConfigInput struct { // UUID of a Config. @@ -42,6 +43,7 @@ type GetConfigInput struct { noSmithyDocumentSerde } +// type GetConfigOutput struct { // ARN of a Config diff --git a/service/groundstation/api_op_GetDataflowEndpointGroup.go b/service/groundstation/api_op_GetDataflowEndpointGroup.go index b88f53ebcac..33e183bd318 100644 --- a/service/groundstation/api_op_GetDataflowEndpointGroup.go +++ b/service/groundstation/api_op_GetDataflowEndpointGroup.go @@ -27,6 +27,7 @@ func (c *Client) GetDataflowEndpointGroup(ctx context.Context, params *GetDatafl return out, nil } +// type GetDataflowEndpointGroupInput struct { // UUID of a dataflow endpoint group. @@ -37,6 +38,7 @@ type GetDataflowEndpointGroupInput struct { noSmithyDocumentSerde } +// type GetDataflowEndpointGroupOutput struct { // ARN of a dataflow endpoint group. diff --git a/service/groundstation/api_op_GetMinuteUsage.go b/service/groundstation/api_op_GetMinuteUsage.go index 721d05bc4c6..9283da5284a 100644 --- a/service/groundstation/api_op_GetMinuteUsage.go +++ b/service/groundstation/api_op_GetMinuteUsage.go @@ -26,6 +26,7 @@ func (c *Client) GetMinuteUsage(ctx context.Context, params *GetMinuteUsageInput return out, nil } +// type GetMinuteUsageInput struct { // The month being requested, with a value of 1-12. @@ -41,6 +42,7 @@ type GetMinuteUsageInput struct { noSmithyDocumentSerde } +// type GetMinuteUsageOutput struct { // Estimated number of minutes remaining for an account, specific to the month diff --git a/service/groundstation/api_op_GetMissionProfile.go b/service/groundstation/api_op_GetMissionProfile.go index c57dcd971ad..7fa04984ce6 100644 --- a/service/groundstation/api_op_GetMissionProfile.go +++ b/service/groundstation/api_op_GetMissionProfile.go @@ -26,6 +26,7 @@ func (c *Client) GetMissionProfile(ctx context.Context, params *GetMissionProfil return out, nil } +// type GetMissionProfileInput struct { // UUID of a mission profile. @@ -36,6 +37,7 @@ type GetMissionProfileInput struct { noSmithyDocumentSerde } +// type GetMissionProfileOutput struct { // Amount of time after a contact ends that you’d like to receive a CloudWatch diff --git a/service/groundstation/api_op_GetSatellite.go b/service/groundstation/api_op_GetSatellite.go index 6e93219442f..41b28191f8b 100644 --- a/service/groundstation/api_op_GetSatellite.go +++ b/service/groundstation/api_op_GetSatellite.go @@ -27,6 +27,7 @@ func (c *Client) GetSatellite(ctx context.Context, params *GetSatelliteInput, op return out, nil } +// type GetSatelliteInput struct { // UUID of a satellite. @@ -37,6 +38,7 @@ type GetSatelliteInput struct { noSmithyDocumentSerde } +// type GetSatelliteOutput struct { // The current ephemeris being used to compute the trajectory of the satellite. diff --git a/service/groundstation/api_op_ListConfigs.go b/service/groundstation/api_op_ListConfigs.go index 855b3b11f60..e46390e4d4e 100644 --- a/service/groundstation/api_op_ListConfigs.go +++ b/service/groundstation/api_op_ListConfigs.go @@ -28,6 +28,7 @@ func (c *Client) ListConfigs(ctx context.Context, params *ListConfigsInput, optF return out, nil } +// type ListConfigsInput struct { // Maximum number of Configs returned. @@ -40,6 +41,7 @@ type ListConfigsInput struct { noSmithyDocumentSerde } +// type ListConfigsOutput struct { // List of Config items. diff --git a/service/groundstation/api_op_ListContacts.go b/service/groundstation/api_op_ListContacts.go index fdf5ba87f4d..2e6fa198635 100644 --- a/service/groundstation/api_op_ListContacts.go +++ b/service/groundstation/api_op_ListContacts.go @@ -30,6 +30,7 @@ func (c *Client) ListContacts(ctx context.Context, params *ListContactsInput, op return out, nil } +// type ListContactsInput struct { // End time of a contact in UTC. @@ -66,6 +67,7 @@ type ListContactsInput struct { noSmithyDocumentSerde } +// type ListContactsOutput struct { // List of contacts. diff --git a/service/groundstation/api_op_ListDataflowEndpointGroups.go b/service/groundstation/api_op_ListDataflowEndpointGroups.go index d2f5f4c6023..ac391df5670 100644 --- a/service/groundstation/api_op_ListDataflowEndpointGroups.go +++ b/service/groundstation/api_op_ListDataflowEndpointGroups.go @@ -28,6 +28,7 @@ func (c *Client) ListDataflowEndpointGroups(ctx context.Context, params *ListDat return out, nil } +// type ListDataflowEndpointGroupsInput struct { // Maximum number of dataflow endpoint groups returned. @@ -40,6 +41,7 @@ type ListDataflowEndpointGroupsInput struct { noSmithyDocumentSerde } +// type ListDataflowEndpointGroupsOutput struct { // A list of dataflow endpoint groups. diff --git a/service/groundstation/api_op_ListGroundStations.go b/service/groundstation/api_op_ListGroundStations.go index cf6a2781b7c..29fd5546c01 100644 --- a/service/groundstation/api_op_ListGroundStations.go +++ b/service/groundstation/api_op_ListGroundStations.go @@ -28,6 +28,7 @@ func (c *Client) ListGroundStations(ctx context.Context, params *ListGroundStati return out, nil } +// type ListGroundStationsInput struct { // Maximum number of ground stations returned. @@ -43,6 +44,7 @@ type ListGroundStationsInput struct { noSmithyDocumentSerde } +// type ListGroundStationsOutput struct { // List of ground stations. diff --git a/service/groundstation/api_op_ListMissionProfiles.go b/service/groundstation/api_op_ListMissionProfiles.go index 014bd1f76a1..1d33d71f38f 100644 --- a/service/groundstation/api_op_ListMissionProfiles.go +++ b/service/groundstation/api_op_ListMissionProfiles.go @@ -28,6 +28,7 @@ func (c *Client) ListMissionProfiles(ctx context.Context, params *ListMissionPro return out, nil } +// type ListMissionProfilesInput struct { // Maximum number of mission profiles returned. @@ -40,6 +41,7 @@ type ListMissionProfilesInput struct { noSmithyDocumentSerde } +// type ListMissionProfilesOutput struct { // List of mission profiles. diff --git a/service/groundstation/api_op_ListSatellites.go b/service/groundstation/api_op_ListSatellites.go index 7c72e50b418..1aa5ef0d454 100644 --- a/service/groundstation/api_op_ListSatellites.go +++ b/service/groundstation/api_op_ListSatellites.go @@ -28,6 +28,7 @@ func (c *Client) ListSatellites(ctx context.Context, params *ListSatellitesInput return out, nil } +// type ListSatellitesInput struct { // Maximum number of satellites returned. @@ -40,6 +41,7 @@ type ListSatellitesInput struct { noSmithyDocumentSerde } +// type ListSatellitesOutput struct { // Next token that can be supplied in the next call to get the next page of diff --git a/service/groundstation/api_op_ListTagsForResource.go b/service/groundstation/api_op_ListTagsForResource.go index 5f1d79b20ac..c8fc2329120 100644 --- a/service/groundstation/api_op_ListTagsForResource.go +++ b/service/groundstation/api_op_ListTagsForResource.go @@ -26,6 +26,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes return out, nil } +// type ListTagsForResourceInput struct { // ARN of a resource. @@ -36,6 +37,7 @@ type ListTagsForResourceInput struct { noSmithyDocumentSerde } +// type ListTagsForResourceOutput struct { // Tags assigned to a resource. diff --git a/service/groundstation/api_op_ReserveContact.go b/service/groundstation/api_op_ReserveContact.go index 5dbee1172ae..b147b5cba86 100644 --- a/service/groundstation/api_op_ReserveContact.go +++ b/service/groundstation/api_op_ReserveContact.go @@ -27,6 +27,7 @@ func (c *Client) ReserveContact(ctx context.Context, params *ReserveContactInput return out, nil } +// type ReserveContactInput struct { // End time of a contact in UTC. @@ -60,6 +61,7 @@ type ReserveContactInput struct { noSmithyDocumentSerde } +// type ReserveContactOutput struct { // UUID of a contact. diff --git a/service/groundstation/api_op_TagResource.go b/service/groundstation/api_op_TagResource.go index 3ad9ac22800..1628d603d61 100644 --- a/service/groundstation/api_op_TagResource.go +++ b/service/groundstation/api_op_TagResource.go @@ -26,6 +26,7 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF return out, nil } +// type TagResourceInput struct { // ARN of a resource tag. @@ -41,6 +42,7 @@ type TagResourceInput struct { noSmithyDocumentSerde } +// type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/groundstation/api_op_UntagResource.go b/service/groundstation/api_op_UntagResource.go index 04cd8380806..8626e64c94f 100644 --- a/service/groundstation/api_op_UntagResource.go +++ b/service/groundstation/api_op_UntagResource.go @@ -26,6 +26,7 @@ func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, return out, nil } +// type UntagResourceInput struct { // ARN of a resource. @@ -41,6 +42,7 @@ type UntagResourceInput struct { noSmithyDocumentSerde } +// type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/groundstation/api_op_UpdateConfig.go b/service/groundstation/api_op_UpdateConfig.go index 6643e18972a..1c7970763f4 100644 --- a/service/groundstation/api_op_UpdateConfig.go +++ b/service/groundstation/api_op_UpdateConfig.go @@ -29,6 +29,7 @@ func (c *Client) UpdateConfig(ctx context.Context, params *UpdateConfigInput, op return out, nil } +// type UpdateConfigInput struct { // Parameters of a Config. @@ -54,6 +55,7 @@ type UpdateConfigInput struct { noSmithyDocumentSerde } +// type UpdateConfigOutput struct { // ARN of a Config. diff --git a/service/groundstation/api_op_UpdateMissionProfile.go b/service/groundstation/api_op_UpdateMissionProfile.go index 916a33309b1..8911a0cfa7f 100644 --- a/service/groundstation/api_op_UpdateMissionProfile.go +++ b/service/groundstation/api_op_UpdateMissionProfile.go @@ -27,6 +27,7 @@ func (c *Client) UpdateMissionProfile(ctx context.Context, params *UpdateMission return out, nil } +// type UpdateMissionProfileInput struct { // UUID of a mission profile. @@ -60,6 +61,7 @@ type UpdateMissionProfileInput struct { noSmithyDocumentSerde } +// type UpdateMissionProfileOutput struct { // UUID of a mission profile. diff --git a/service/groundstation/types/errors.go b/service/groundstation/types/errors.go index 924cc7515a9..c4bd2a6aac5 100644 --- a/service/groundstation/types/errors.go +++ b/service/groundstation/types/errors.go @@ -11,6 +11,8 @@ import ( type DependencyException struct { Message *string + Code *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.Code == nil { + return "DependencyException" + } + return *e.Code +} func (e *DependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One or more parameters are not valid. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Account limits for this resource have been exceeded. type ResourceLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/groundstation/types/types.go b/service/groundstation/types/types.go index b49fb50a118..b6b3e431e6c 100644 --- a/service/groundstation/types/types.go +++ b/service/groundstation/types/types.go @@ -72,10 +72,9 @@ type AntennaUplinkConfig struct { // Details for certain Config object types in a contact. // // The following types satisfy this interface: -// -// ConfigDetailsMemberAntennaDemodDecodeDetails -// ConfigDetailsMemberEndpointDetails -// ConfigDetailsMemberS3RecordingDetails +// ConfigDetailsMemberAntennaDemodDecodeDetails +// ConfigDetailsMemberEndpointDetails +// ConfigDetailsMemberS3RecordingDetails type ConfigDetails interface { isConfigDetails() } @@ -129,14 +128,13 @@ type ConfigListItem struct { // what each type of Config contains. // // The following types satisfy this interface: -// -// ConfigTypeDataMemberAntennaDownlinkConfig -// ConfigTypeDataMemberAntennaDownlinkDemodDecodeConfig -// ConfigTypeDataMemberAntennaUplinkConfig -// ConfigTypeDataMemberDataflowEndpointConfig -// ConfigTypeDataMemberS3RecordingConfig -// ConfigTypeDataMemberTrackingConfig -// ConfigTypeDataMemberUplinkEchoConfig +// ConfigTypeDataMemberAntennaDownlinkConfig +// ConfigTypeDataMemberAntennaDownlinkDemodDecodeConfig +// ConfigTypeDataMemberAntennaUplinkConfig +// ConfigTypeDataMemberDataflowEndpointConfig +// ConfigTypeDataMemberS3RecordingConfig +// ConfigTypeDataMemberTrackingConfig +// ConfigTypeDataMemberUplinkEchoConfig type ConfigTypeData interface { isConfigTypeData() } @@ -405,9 +403,8 @@ type EndpointDetails struct { // Ephemeris data. // // The following types satisfy this interface: -// -// EphemerisDataMemberOem -// EphemerisDataMemberTle +// EphemerisDataMemberOem +// EphemerisDataMemberTle type EphemerisData interface { isEphemerisData() } @@ -496,10 +493,11 @@ type EphemerisMetaData struct { noSmithyDocumentSerde } -// The following types satisfy this interface: // -// EphemerisTypeDescriptionMemberOem -// EphemerisTypeDescriptionMemberTle +// +// The following types satisfy this interface: +// EphemerisTypeDescriptionMemberOem +// EphemerisTypeDescriptionMemberTle type EphemerisTypeDescription interface { isEphemerisTypeDescription() } diff --git a/service/guardduty/types/errors.go b/service/guardduty/types/errors.go index 4aec6682a49..6b500d78b13 100644 --- a/service/guardduty/types/errors.go +++ b/service/guardduty/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal server error exception object. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} 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..556db755a7a 100644 --- a/service/health/types/errors.go +++ b/service/health/types/errors.go @@ -16,6 +16,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -29,7 +31,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidPaginationToken" + } + return *e.Code +} func (e *InvalidPaginationToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified locale is not supported. type UnsupportedLocale struct { Message *string + Code *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.Code == nil { + return "UnsupportedLocale" + } + return *e.Code +} 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..50a5f7fae7b 100644 --- a/service/healthlake/types/errors.go +++ b/service/healthlake/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unknown error occurs in the service. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested Data Store was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user input parameter was invalid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/healthlake/types/types.go b/service/healthlake/types/types.go index 961ab5b8cd8..d818f510770 100644 --- a/service/healthlake/types/types.go +++ b/service/healthlake/types/types.go @@ -173,8 +173,7 @@ type ImportJobProperties struct { // The input properties for an import job. // // The following types satisfy this interface: -// -// InputDataConfigMemberS3Uri +// InputDataConfigMemberS3Uri type InputDataConfig interface { isInputDataConfig() } @@ -208,8 +207,7 @@ type KmsEncryptionConfig struct { // The output data configuration that was supplied when the export job was created. // // The following types satisfy this interface: -// -// OutputDataConfigMemberS3Configuration +// OutputDataConfigMemberS3Configuration type OutputDataConfig interface { isOutputDataConfig() } diff --git a/service/honeycode/types/errors.go b/service/honeycode/types/errors.go index a6c82fdef23..c4294f13121 100644 --- a/service/honeycode/types/errors.go +++ b/service/honeycode/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The automation execution did not end successfully. type AutomationExecutionException struct { Message *string + Code *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.Code == nil { + return "AutomationExecutionException" + } + return *e.Code +} func (e *AutomationExecutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The automation execution timed out. type AutomationExecutionTimeoutException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -64,7 +80,10 @@ func (e *AutomationExecutionTimeoutException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionTimeoutException) ErrorCode() string { - return "AutomationExecutionTimeoutException" + if e.Code == nil { + return "AutomationExecutionTimeoutException" + } + return *e.Code } func (e *AutomationExecutionTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -74,6 +93,8 @@ func (e *AutomationExecutionTimeoutException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request timed out. type RequestTimeoutException struct { Message *string + Code *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.Code == nil { + return "RequestTimeoutException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request caused service quota to be breached. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Remote service is unreachable. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Tps(transactions per second) rate reached. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..2193d9b09a7 100644 --- a/service/iam/types/errors.go +++ b/service/iam/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *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.Code == nil { + return "ConcurrentModification" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReportExpired" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReportNotPresent" + } + return *e.Code +} func (e *CredentialReportNotPresentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -76,6 +97,8 @@ func (e *CredentialReportNotPresentException) ErrorFault() smithy.ErrorFault { type CredentialReportNotReadyException struct { Message *string + Code *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.Code == nil { + return "ReportInProgress" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DeleteConflict" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateCertificate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateSSHPublicKey" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EntityAlreadyExists" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -191,7 +249,10 @@ func (e *EntityTemporarilyUnmodifiableException) ErrorMessage() string { return *e.Message } func (e *EntityTemporarilyUnmodifiableException) ErrorCode() string { - return "EntityTemporarilyUnmodifiable" + if e.Code == nil { + return "EntityTemporarilyUnmodifiable" + } + return *e.Code } func (e *EntityTemporarilyUnmodifiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -202,6 +263,8 @@ func (e *EntityTemporarilyUnmodifiableException) ErrorFault() smithy.ErrorFault type InvalidAuthenticationCodeException struct { Message *string + Code *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.Code == nil { + return "InvalidAuthenticationCode" + } + return *e.Code +} func (e *InvalidAuthenticationCodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -223,6 +291,8 @@ func (e *InvalidAuthenticationCodeException) ErrorFault() smithy.ErrorFault { type InvalidCertificateException struct { Message *string + Code *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.Code == nil { + return "InvalidCertificate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInput" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPublicKey" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidUserType" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KeyPairMismatch" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MalformedCertificate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MalformedPolicyDocument" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchEntity" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PasswordPolicyViolation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyEvaluation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyNotAttachable" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -477,7 +631,10 @@ func (e *ReportGenerationLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ReportGenerationLimitExceededException) ErrorCode() string { - return "ReportGenerationLimitExceeded" + if e.Code == nil { + return "ReportGenerationLimitExceeded" + } + return *e.Code } func (e *ReportGenerationLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -488,6 +645,8 @@ func (e *ReportGenerationLimitExceededException) ErrorFault() smithy.ErrorFault type ServiceFailureException struct { Message *string + Code *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.Code == nil { + return "ServiceFailure" + } + return *e.Code +} func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified service does not support service-specific credentials. type ServiceNotSupportedException struct { Message *string + Code *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.Code == nil { + return "NotSupportedService" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnmodifiableEntity" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -562,7 +742,10 @@ func (e *UnrecognizedPublicKeyEncodingException) ErrorMessage() string { return *e.Message } func (e *UnrecognizedPublicKeyEncodingException) ErrorCode() string { - return "UnrecognizedPublicKeyEncoding" + if e.Code == nil { + return "UnrecognizedPublicKeyEncoding" + } + return *e.Code } func (e *UnrecognizedPublicKeyEncodingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/identitystore/document/doc.go b/service/identitystore/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/service/identitystore/document/doc.go +++ b/service/identitystore/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/service/identitystore/types/errors.go b/service/identitystore/types/errors.go index 1aa9de47b5f..ce3ea64ca48 100644 --- a/service/identitystore/types/errors.go +++ b/service/identitystore/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that a requested resource is not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it contains a syntax error. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/identitystore/types/types.go b/service/identitystore/types/types.go index 1661bb6a7f6..489154a0f6a 100644 --- a/service/identitystore/types/types.go +++ b/service/identitystore/types/types.go @@ -44,9 +44,8 @@ type Address struct { // unique GroupDisplayName. // // The following types satisfy this interface: -// -// AlternateIdentifierMemberExternalId -// AlternateIdentifierMemberUniqueAttribute +// AlternateIdentifierMemberExternalId +// AlternateIdentifierMemberUniqueAttribute type AlternateIdentifier interface { isAlternateIdentifier() } @@ -212,8 +211,7 @@ type GroupMembershipExistenceResult struct { // An object containing the identifier of a group member. // // The following types satisfy this interface: -// -// MemberIdMemberUserId +// MemberIdMemberUserId type MemberId interface { isMemberId() } diff --git a/service/imagebuilder/types/errors.go b/service/imagebuilder/types/errors.go index 36d205b6d33..52147e6b677 100644 --- a/service/imagebuilder/types/errors.go +++ b/service/imagebuilder/types/errors.go @@ -11,6 +11,8 @@ import ( type CallRateLimitExceededException struct { Message *string + Code *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.Code == nil { + return "CallRateLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClientException" + } + return *e.Code +} func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform the requested operation. type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -84,7 +107,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -94,6 +120,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InvalidPaginationTokenException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -107,7 +135,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.Code == nil { + return "InvalidPaginationTokenException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -129,7 +162,10 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.Code == nil { + return "InvalidParameterCombinationException" + } + return *e.Code } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -140,6 +176,8 @@ func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidVersionNumberException" + } + return *e.Code +} func (e *InvalidVersionNumberException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you are trying to create already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceDependencyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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..a25f3330411 100644 --- a/service/inspector/types/errors.go +++ b/service/inspector/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AgentsAlreadyRunningAssessmentException" + } + return *e.Code } func (e *AgentsAlreadyRunningAssessmentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -62,6 +74,8 @@ func (e *AgentsAlreadyRunningAssessmentException) ErrorFault() smithy.ErrorFault type AssessmentRunInProgressException struct { Message *string + Code *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.Code == nil { + return "AssessmentRunInProgressException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidCrossAccountRoleException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchEntityException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -216,7 +268,10 @@ func (e *PreviewGenerationInProgressException) ErrorMessage() string { return *e.Message } func (e *PreviewGenerationInProgressException) ErrorCode() string { - return "PreviewGenerationInProgressException" + if e.Code == nil { + return "PreviewGenerationInProgressException" + } + return *e.Code } func (e *PreviewGenerationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -226,6 +281,8 @@ func (e *PreviewGenerationInProgressException) ErrorFault() smithy.ErrorFault { type ServiceTemporarilyUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceTemporarilyUnavailableException" + } + return *e.Code } func (e *ServiceTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -255,6 +315,8 @@ func (e *ServiceTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault type UnsupportedFeatureException struct { Message *string + Code *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.Code == nil { + return "UnsupportedFeatureException" + } + return *e.Code +} 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..09835b34ba2 100644 --- a/service/inspector2/types/errors.go +++ b/service/inspector2/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict occurred. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/inspector2/types/types.go b/service/inspector2/types/types.go index 2d09e424c11..e0e219740b5 100644 --- a/service/inspector2/types/types.go +++ b/service/inspector2/types/types.go @@ -86,18 +86,17 @@ type AccountState struct { // Contains details about an aggregation request. // // The following types satisfy this interface: -// -// AggregationRequestMemberAccountAggregation -// AggregationRequestMemberAmiAggregation -// AggregationRequestMemberAwsEcrContainerAggregation -// AggregationRequestMemberEc2InstanceAggregation -// AggregationRequestMemberFindingTypeAggregation -// AggregationRequestMemberImageLayerAggregation -// AggregationRequestMemberLambdaFunctionAggregation -// AggregationRequestMemberLambdaLayerAggregation -// AggregationRequestMemberPackageAggregation -// AggregationRequestMemberRepositoryAggregation -// AggregationRequestMemberTitleAggregation +// AggregationRequestMemberAccountAggregation +// AggregationRequestMemberAmiAggregation +// AggregationRequestMemberAwsEcrContainerAggregation +// AggregationRequestMemberEc2InstanceAggregation +// AggregationRequestMemberFindingTypeAggregation +// AggregationRequestMemberImageLayerAggregation +// AggregationRequestMemberLambdaFunctionAggregation +// AggregationRequestMemberLambdaLayerAggregation +// AggregationRequestMemberPackageAggregation +// AggregationRequestMemberRepositoryAggregation +// AggregationRequestMemberTitleAggregation type AggregationRequest interface { isAggregationRequest() } @@ -213,18 +212,17 @@ func (*AggregationRequestMemberTitleAggregation) isAggregationRequest() {} // A structure that contains details about the results of an aggregation type. // // The following types satisfy this interface: -// -// AggregationResponseMemberAccountAggregation -// AggregationResponseMemberAmiAggregation -// AggregationResponseMemberAwsEcrContainerAggregation -// AggregationResponseMemberEc2InstanceAggregation -// AggregationResponseMemberFindingTypeAggregation -// AggregationResponseMemberImageLayerAggregation -// AggregationResponseMemberLambdaFunctionAggregation -// AggregationResponseMemberLambdaLayerAggregation -// AggregationResponseMemberPackageAggregation -// AggregationResponseMemberRepositoryAggregation -// AggregationResponseMemberTitleAggregation +// AggregationResponseMemberAccountAggregation +// AggregationResponseMemberAmiAggregation +// AggregationResponseMemberAwsEcrContainerAggregation +// AggregationResponseMemberEc2InstanceAggregation +// AggregationResponseMemberFindingTypeAggregation +// AggregationResponseMemberImageLayerAggregation +// AggregationResponseMemberLambdaFunctionAggregation +// AggregationResponseMemberLambdaLayerAggregation +// AggregationResponseMemberPackageAggregation +// AggregationResponseMemberRepositoryAggregation +// AggregationResponseMemberTitleAggregation type AggregationResponse interface { isAggregationResponse() } diff --git a/service/iot/types/errors.go b/service/iot/types/errors.go index fe6cdc3f95e..4ca10eacb42 100644 --- a/service/iot/types/errors.go +++ b/service/iot/types/errors.go @@ -13,6 +13,8 @@ import ( type CertificateConflictException struct { Message *string + Code *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.Code == nil { + return "CertificateConflictException" + } + return *e.Code +} func (e *CertificateConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate operation is not allowed. type CertificateStateException struct { Message *string + Code *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.Code == nil { + return "CertificateStateException" + } + return *e.Code +} func (e *CertificateStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The certificate is invalid. type CertificateValidationException struct { Message *string + Code *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.Code == nil { + return "CertificateValidationException" + } + return *e.Code +} func (e *CertificateValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the same name already exists. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -103,7 +133,10 @@ func (e *ConflictingResourceUpdateException) ErrorMessage() string { return *e.Message } func (e *ConflictingResourceUpdateException) ErrorCode() string { - return "ConflictingResourceUpdateException" + if e.Code == nil { + return "ConflictingResourceUpdateException" + } + return *e.Code } func (e *ConflictingResourceUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -113,6 +146,8 @@ func (e *ConflictingResourceUpdateException) ErrorFault() smithy.ErrorFault { type DeleteConflictException struct { Message *string + Code *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.Code == nil { + return "DeleteConflictException" + } + return *e.Code +} func (e *DeleteConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The index is not ready. type IndexNotReadyException struct { Message *string + Code *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.Code == nil { + return "IndexNotReadyException" + } + return *e.Code +} func (e *IndexNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalException struct { Message *string + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An unexpected error has occurred. type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The aggregation is invalid. type InvalidAggregationException struct { Message *string + Code *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.Code == nil { + return "InvalidAggregationException" + } + return *e.Code +} func (e *InvalidAggregationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query is invalid. type InvalidQueryException struct { Message *string + Code *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.Code == nil { + return "InvalidQueryException" + } + return *e.Code +} func (e *InvalidQueryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The response is invalid. type InvalidResponseException struct { Message *string + Code *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.Code == nil { + return "InvalidResponseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -299,7 +397,10 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - return "InvalidStateTransitionException" + if e.Code == nil { + return "InvalidStateTransitionException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The policy documentation is not valid. type MalformedPolicyException struct { Message *string + Code *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.Code == nil { + return "MalformedPolicyException" + } + return *e.Code +} func (e *MalformedPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is not configured. type NotConfiguredException struct { Message *string + Code *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.Code == nil { + return "NotConfiguredException" + } + return *e.Code +} func (e *NotConfiguredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The registration code is invalid. type RegistrationCodeValidationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -377,7 +501,10 @@ func (e *RegistrationCodeValidationException) ErrorMessage() string { return *e.Message } func (e *RegistrationCodeValidationException) ErrorCode() string { - return "RegistrationCodeValidationException" + if e.Code == nil { + return "RegistrationCodeValidationException" + } + return *e.Code } func (e *RegistrationCodeValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -387,6 +514,8 @@ func (e *RegistrationCodeValidationException) ErrorFault() smithy.ErrorFault { type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource registration failed. type ResourceRegistrationFailureException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -441,7 +584,10 @@ func (e *ResourceRegistrationFailureException) ErrorMessage() string { return *e.Message } func (e *ResourceRegistrationFailureException) ErrorCode() string { - return "ResourceRegistrationFailureException" + if e.Code == nil { + return "ResourceRegistrationFailureException" + } + return *e.Code } func (e *ResourceRegistrationFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -451,6 +597,8 @@ func (e *ResourceRegistrationFailureException) ErrorFault() smithy.ErrorFault { type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The Rule-SQL expression can't be parsed correctly. type SqlParseException struct { Message *string + Code *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.Code == nil { + return "SqlParseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TaskAlreadyExistsException" + } + return *e.Code +} func (e *TaskAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -542,7 +718,10 @@ func (e *TransferAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *TransferAlreadyCompletedException) ErrorCode() string { - return "TransferAlreadyCompletedException" + if e.Code == nil { + return "TransferAlreadyCompletedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "TransferConflictException" + } + return *e.Code +} func (e *TransferConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform this operation. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "VersionConflictException" + } + return *e.Code +} func (e *VersionConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of policy versions exceeds the limit. type VersionsLimitExceededException struct { Message *string + Code *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.Code == nil { + return "VersionsLimitExceededException" + } + return *e.Code +} func (e *VersionsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iot/types/types.go b/service/iot/types/types.go index 99fe690027b..6ad9a6e98b0 100644 --- a/service/iot/types/types.go +++ b/service/iot/types/types.go @@ -268,11 +268,10 @@ type AssetPropertyValue struct { // Contains an asset property value (of a single type). // // The following types satisfy this interface: -// -// AssetPropertyVariantMemberBooleanValue -// AssetPropertyVariantMemberDoubleValue -// AssetPropertyVariantMemberIntegerValue -// AssetPropertyVariantMemberStringValue +// AssetPropertyVariantMemberBooleanValue +// AssetPropertyVariantMemberDoubleValue +// AssetPropertyVariantMemberIntegerValue +// AssetPropertyVariantMemberStringValue type AssetPropertyVariant interface { isAssetPropertyVariant() } diff --git a/service/iot1clickdevicesservice/types/errors.go b/service/iot1clickdevicesservice/types/errors.go index 3c6e6624d72..060c77c6d96 100644 --- a/service/iot1clickdevicesservice/types/errors.go +++ b/service/iot1clickdevicesservice/types/errors.go @@ -24,7 +24,12 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalFailureException struct { @@ -44,7 +49,12 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type InvalidRequestException struct { @@ -64,7 +74,12 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type PreconditionFailedException struct { @@ -84,7 +99,12 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.Code == nil { + return "PreconditionFailedException" + } + return *e.Code +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type RangeNotSatisfiableException struct { @@ -104,7 +124,12 @@ func (e *RangeNotSatisfiableException) ErrorMessage() string { } return *e.Message } -func (e *RangeNotSatisfiableException) ErrorCode() string { return "RangeNotSatisfiableException" } +func (e *RangeNotSatisfiableException) ErrorCode() string { + if e.Code == nil { + return "RangeNotSatisfiableException" + } + return *e.Code +} func (e *RangeNotSatisfiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceConflictException struct { @@ -124,7 +149,12 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceNotFoundException struct { @@ -144,5 +174,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..637357a098f 100644 --- a/service/iot1clickprojects/types/errors.go +++ b/service/iot1clickprojects/types/errors.go @@ -7,6 +7,7 @@ import ( smithy "github.com/aws/smithy-go" ) +// type InternalFailureException struct { Message *string @@ -24,9 +25,15 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type InvalidRequestException struct { Message *string @@ -44,9 +51,15 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ResourceConflictException struct { Message *string @@ -64,9 +77,15 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ResourceNotFoundException struct { Message *string @@ -84,9 +103,15 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type TooManyRequestsException struct { Message *string @@ -104,5 +129,10 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..619c4dfba4b 100644 --- a/service/iotanalytics/types/errors.go +++ b/service/iotanalytics/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The command caused an internal limit to be exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the same name already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the specified name could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotanalytics/types/types.go b/service/iotanalytics/types/types.go index 5181722df4e..40334ad3495 100644 --- a/service/iotanalytics/types/types.go +++ b/service/iotanalytics/types/types.go @@ -648,10 +648,9 @@ type DatastoreStatistics struct { // data store is created. // // The following types satisfy this interface: -// -// DatastoreStorageMemberCustomerManagedS3 -// DatastoreStorageMemberIotSiteWiseMultiLayerStorage -// DatastoreStorageMemberServiceManagedS3 +// DatastoreStorageMemberCustomerManagedS3 +// DatastoreStorageMemberIotSiteWiseMultiLayerStorage +// DatastoreStorageMemberServiceManagedS3 type DatastoreStorage interface { isDatastoreStorage() } diff --git a/service/iotdataplane/types/errors.go b/service/iotdataplane/types/errors.go index 6fe1d9531e5..3c3872c47f6 100644 --- a/service/iotdataplane/types/errors.go +++ b/service/iotdataplane/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MethodNotAllowedException" + } + return *e.Code +} func (e *MethodNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The payload exceeds the maximum size allowed. type RequestEntityTooLargeException struct { Message *string + Code *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.Code == nil { + return "RequestEntityTooLargeException" + } + return *e.Code +} func (e *RequestEntityTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The rate exceeds the limit. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform this operation. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document encoding is not supported. type UnsupportedDocumentEncodingException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -195,7 +260,10 @@ func (e *UnsupportedDocumentEncodingException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDocumentEncodingException) ErrorCode() string { - return "UnsupportedDocumentEncodingException" + if e.Code == nil { + return "UnsupportedDocumentEncodingException" + } + return *e.Code } 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..1ee58dccff7 100644 --- a/service/iotdeviceadvisor/types/errors.go +++ b/service/iotdeviceadvisor/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Sends an Internal Failure exception. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Sends a Resource Not Found exception. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Sends a validation exception. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..f934cdb8a5b 100644 --- a/service/iotevents/types/errors.go +++ b/service/iotevents/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was invalid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit was exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request could not be completed due to throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation is not supported. type UnsupportedOperationException struct { Message *string + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} 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..97c67fb0ed7 100644 --- a/service/ioteventsdata/types/errors.go +++ b/service/ioteventsdata/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was invalid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request could not be completed due to throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..027cf9fe3da 100644 --- a/service/iotfleethub/types/errors.go +++ b/service/iotfleethub/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit has been exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..84cfa333d82 100644 --- a/service/iotfleetwise/types/errors.go +++ b/service/iotfleetwise/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DecoderManifestValidationException" + } + return *e.Code } func (e *DecoderManifestValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -80,6 +99,8 @@ func (e *DecoderManifestValidationException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNodeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSignalsException" + } + return *e.Code +} func (e *InvalidSignalsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service quota was exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource wasn't found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request couldn't be completed due to throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotfleetwise/types/types.go b/service/iotfleetwise/types/types.go index 4411b093ee7..070ad8b2dbc 100644 --- a/service/iotfleetwise/types/types.go +++ b/service/iotfleetwise/types/types.go @@ -251,9 +251,8 @@ type CloudWatchLogDeliveryOptions struct { // Specifies what data to collect and how often or when to collect it. // // The following types satisfy this interface: -// -// CollectionSchemeMemberConditionBasedCollectionScheme -// CollectionSchemeMemberTimeBasedCollectionScheme +// CollectionSchemeMemberConditionBasedCollectionScheme +// CollectionSchemeMemberTimeBasedCollectionScheme type CollectionScheme interface { isCollectionScheme() } @@ -447,8 +446,7 @@ type FleetSummary struct { // in a VSS format. // // The following types satisfy this interface: -// -// FormattedVssMemberVssJson +// FormattedVssMemberVssJson type FormattedVss interface { isFormattedVss() } @@ -574,8 +572,7 @@ type ModelManifestSummary struct { // Specifications for defining a vehicle network. // // The following types satisfy this interface: -// -// NetworkFileDefinitionMemberCanDbc +// NetworkFileDefinitionMemberCanDbc type NetworkFileDefinition interface { isNetworkFileDefinition() } @@ -624,11 +621,10 @@ type NetworkInterface struct { // attribute, branch, or sensor. // // The following types satisfy this interface: -// -// NodeMemberActuator -// NodeMemberAttribute -// NodeMemberBranch -// NodeMemberSensor +// NodeMemberActuator +// NodeMemberAttribute +// NodeMemberBranch +// NodeMemberSensor type Node interface { isNode() } diff --git a/service/iotjobsdataplane/types/errors.go b/service/iotjobsdataplane/types/errors.go index 0999b19ef52..9c934c0ecfa 100644 --- a/service/iotjobsdataplane/types/errors.go +++ b/service/iotjobsdataplane/types/errors.go @@ -11,6 +11,8 @@ import ( type CertificateValidationException struct { Message *string + Code *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.Code == nil { + return "CertificateValidationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -67,7 +83,10 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - return "InvalidStateTransitionException" + if e.Code == nil { + return "InvalidStateTransitionException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The job is in a terminal state. type TerminalStateException struct { Message *string + Code *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.Code == nil { + return "TerminalStateException" + } + return *e.Code +} func (e *TerminalStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..10757ed9583 100644 --- a/service/iotroborunner/types/errors.go +++ b/service/iotroborunner/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception thrown if something goes wrong within the service. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iotroborunner/types/types.go b/service/iotroborunner/types/types.go index 658c4b81748..befb5903f23 100644 --- a/service/iotroborunner/types/types.go +++ b/service/iotroborunner/types/types.go @@ -73,8 +73,7 @@ type Destination struct { // Worker orientation measured in units clockwise from north. // // The following types satisfy this interface: -// -// OrientationMemberDegrees +// OrientationMemberDegrees type Orientation interface { isOrientation() } @@ -91,8 +90,7 @@ func (*OrientationMemberDegrees) isOrientation() {} // Supported coordinates for worker position. // // The following types satisfy this interface: -// -// PositionCoordinatesMemberCartesianCoordinates +// PositionCoordinatesMemberCartesianCoordinates type PositionCoordinates interface { isPositionCoordinates() } diff --git a/service/iotsecuretunneling/types/errors.go b/service/iotsecuretunneling/types/errors.go index 50c02876670..aa3ede3246f 100644 --- a/service/iotsecuretunneling/types/errors.go +++ b/service/iotsecuretunneling/types/errors.go @@ -11,6 +11,8 @@ import ( type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..025fc0733a4 100644 --- a/service/iotsitewise/types/errors.go +++ b/service/iotsitewise/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictingOperationException struct { Message *string + Code *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.Code == nil { + return "ConflictingOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource can't be found. type ResourceNotFoundException struct { Message *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested service is unavailable. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..94725c3a5f1 100644 --- a/service/iotthingsgraph/types/errors.go +++ b/service/iotthingsgraph/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type InternalFailureException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,12 +25,20 @@ func (e *InternalFailureException) ErrorMessage() string { } return *e.Message } -func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } +func (e *InternalFailureException) ErrorCode() string { + if e.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type InvalidRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -40,12 +51,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type LimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -58,12 +77,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ResourceAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -76,12 +103,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ResourceInUseException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -94,12 +129,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -112,12 +155,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ThrottlingException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -130,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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iottwinmaker/document/doc.go b/service/iottwinmaker/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/service/iottwinmaker/document/doc.go +++ b/service/iottwinmaker/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/service/iottwinmaker/types/errors.go b/service/iottwinmaker/types/errors.go index 9e77c6a91b1..ca40a8b8fdb 100644 --- a/service/iottwinmaker/types/errors.go +++ b/service/iottwinmaker/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflict occurred. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The connector failed. type ConnectorFailureException struct { Message *string + Code *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.Code == nil { + return "ConnectorFailureException" + } + return *e.Code +} func (e *ConnectorFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The connector timed out. type ConnectorTimeoutException struct { Message *string + Code *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.Code == nil { + return "ConnectorTimeoutException" + } + return *e.Code +} func (e *ConnectorTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error has occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The query timeout exception. type QueryTimeoutException struct { Message *string + Code *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.Code == nil { + return "QueryTimeoutException" + } + return *e.Code +} func (e *QueryTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource wasn't found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota was exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The rate exceeds the limit. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of tags exceeds the limit. type TooManyTagsException struct { Message *string + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Failed type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iottwinmaker/types/types.go b/service/iottwinmaker/types/types.go index 0ac9b640047..2b3552cc7de 100644 --- a/service/iottwinmaker/types/types.go +++ b/service/iottwinmaker/types/types.go @@ -69,6 +69,7 @@ type ColumnDescription struct { noSmithyDocumentSerde } +// type ComponentPropertyGroupRequest struct { // The group type. @@ -420,10 +421,9 @@ type LambdaFunction struct { // accepted as a valid input. // // The following types satisfy this interface: -// -// ListComponentTypesFilterMemberExtendsFrom -// ListComponentTypesFilterMemberIsAbstract -// ListComponentTypesFilterMemberNamespace +// ListComponentTypesFilterMemberExtendsFrom +// ListComponentTypesFilterMemberIsAbstract +// ListComponentTypesFilterMemberNamespace type ListComponentTypesFilter interface { isListComponentTypesFilter() } @@ -459,10 +459,9 @@ func (*ListComponentTypesFilterMemberNamespace) isListComponentTypesFilter() {} // An object that filters items in a list of entities. // // The following types satisfy this interface: -// -// ListEntitiesFilterMemberComponentTypeId -// ListEntitiesFilterMemberExternalId -// ListEntitiesFilterMemberParentEntityId +// ListEntitiesFilterMemberComponentTypeId +// ListEntitiesFilterMemberExternalId +// ListEntitiesFilterMemberParentEntityId type ListEntitiesFilter interface { isListEntitiesFilter() } @@ -663,6 +662,7 @@ type PropertyFilter struct { noSmithyDocumentSerde } +// type PropertyGroupRequest struct { // The group type. @@ -935,11 +935,10 @@ type SyncJobSummary struct { // The sync resource filter. // // The following types satisfy this interface: -// -// SyncResourceFilterMemberExternalId -// SyncResourceFilterMemberResourceId -// SyncResourceFilterMemberResourceType -// SyncResourceFilterMemberState +// SyncResourceFilterMemberExternalId +// SyncResourceFilterMemberResourceId +// SyncResourceFilterMemberResourceType +// SyncResourceFilterMemberState type SyncResourceFilter interface { isSyncResourceFilter() } diff --git a/service/iotwireless/types/errors.go b/service/iotwireless/types/errors.go index 78c95db3259..1c88bcec3d1 100644 --- a/service/iotwireless/types/errors.go +++ b/service/iotwireless/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing a request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input did not meet the specified constraints. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ivs/doc.go b/service/ivs/doc.go index 34127e69579..9bd421da462 100644 --- a/service/ivs/doc.go +++ b/service/ivs/doc.go @@ -127,7 +127,7 @@ // * DeleteChannel — // Deletes the specified channel. // -// # StreamKey Endpoints +// StreamKey Endpoints // // * CreateStreamKey — Creates // a stream key, used to initiate a stream, for the specified channel ARN. @@ -145,7 +145,7 @@ // * DeleteStreamKey — Deletes the stream key for the specified ARN, so // it can no longer be used to stream. // -// # Stream Endpoints +// Stream Endpoints // // * GetStream — Gets // information about the active (live) stream on a specified channel. @@ -195,7 +195,7 @@ // invalidates future viewer tokens generated using the key pair’s // privateKey. // -// # RecordingConfiguration Endpoints +// RecordingConfiguration Endpoints // // * CreateRecordingConfiguration — // Creates a new recording configuration, used to enable recording to Amazon S3. diff --git a/service/ivs/types/errors.go b/service/ivs/types/errors.go index 8136acf0750..817856c30d3 100644 --- a/service/ivs/types/errors.go +++ b/service/ivs/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type AccessDeniedException struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -24,12 +27,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ChannelNotBroadcasting struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -44,12 +55,20 @@ func (e *ChannelNotBroadcasting) ErrorMessage() string { } return *e.Message } -func (e *ChannelNotBroadcasting) ErrorCode() string { return "ChannelNotBroadcasting" } +func (e *ChannelNotBroadcasting) ErrorCode() string { + if e.Code == nil { + return "ChannelNotBroadcasting" + } + return *e.Code +} func (e *ChannelNotBroadcasting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ConflictException struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -64,12 +83,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InternalServerException struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -84,12 +111,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type PendingVerification struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -104,12 +139,20 @@ func (e *PendingVerification) ErrorMessage() string { } return *e.Message } -func (e *PendingVerification) ErrorCode() string { return "PendingVerification" } +func (e *PendingVerification) ErrorCode() string { + if e.Code == nil { + return "PendingVerification" + } + return *e.Code +} func (e *PendingVerification) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ResourceNotFoundException struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -124,12 +167,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ServiceQuotaExceededException struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -144,12 +195,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type StreamUnavailable struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -164,12 +223,20 @@ func (e *StreamUnavailable) ErrorMessage() string { } return *e.Message } -func (e *StreamUnavailable) ErrorCode() string { return "StreamUnavailable" } +func (e *StreamUnavailable) ErrorCode() string { + if e.Code == nil { + return "StreamUnavailable" + } + return *e.Code +} func (e *StreamUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type ThrottlingException struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -184,12 +251,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ValidationException struct { Message *string + Code *string + ExceptionMessage *string noSmithyDocumentSerde @@ -204,5 +279,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ivschat/doc.go b/service/ivschat/doc.go index 64f118971bb..22c7a299905 100644 --- a/service/ivschat/doc.go +++ b/service/ivschat/doc.go @@ -105,7 +105,7 @@ // events to clients of a room; e.g., to notify clients to change the way the chat // UI is rendered. // -// # Chat Token Endpoint +// Chat Token Endpoint // // * CreateChatToken — Creates an encrypted // token that is used by a chat participant to establish an individual WebSocket @@ -114,7 +114,7 @@ // becomes invalid at the token-expiration timestamp included in the // response. // -// # Room Endpoints +// Room Endpoints // // * CreateRoom — Creates a room that allows clients to // connect and pass messages. @@ -130,7 +130,7 @@ // * // UpdateRoom — Updates a room’s configuration. // -// # Logging Configuration Endpoints +// Logging Configuration Endpoints // // * // CreateLoggingConfiguration — Creates a logging configuration that allows clients @@ -149,7 +149,7 @@ // * UpdateLoggingConfiguration — Updates a specified logging // configuration. // -// # Tags Endpoints +// Tags Endpoints // // * ListTagsForResource — Gets information about // AWS tags for the specified ARN. diff --git a/service/ivschat/types/errors.go b/service/ivschat/types/errors.go index 27ea388364f..32a61569ac8 100644 --- a/service/ivschat/types/errors.go +++ b/service/ivschat/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type AccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,12 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ConflictException struct { Message *string + Code *string + ResourceId *string ResourceType ResourceType @@ -43,12 +54,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InternalServerException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -61,12 +80,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type PendingVerification struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -79,12 +106,20 @@ func (e *PendingVerification) ErrorMessage() string { } return *e.Message } -func (e *PendingVerification) ErrorCode() string { return "PendingVerification" } +func (e *PendingVerification) ErrorCode() string { + if e.Code == nil { + return "PendingVerification" + } + return *e.Code +} func (e *PendingVerification) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ResourceNotFoundException struct { Message *string + Code *string + ResourceId *string ResourceType ResourceType @@ -100,12 +135,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ServiceQuotaExceededException struct { Message *string + Code *string + ResourceId *string ResourceType ResourceType Limit int32 @@ -122,12 +165,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ThrottlingException struct { Message *string + Code *string + ResourceId *string ResourceType ResourceType Limit int32 @@ -144,12 +195,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ValidationException struct { Message *string + Code *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -165,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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ivschat/types/types.go b/service/ivschat/types/types.go index 479c9a889e3..925bd5e7b89 100644 --- a/service/ivschat/types/types.go +++ b/service/ivschat/types/types.go @@ -25,10 +25,9 @@ type CloudWatchLogsDestinationConfiguration struct { // S3). // // The following types satisfy this interface: -// -// DestinationConfigurationMemberCloudWatchLogs -// DestinationConfigurationMemberFirehose -// DestinationConfigurationMemberS3 +// DestinationConfigurationMemberCloudWatchLogs +// DestinationConfigurationMemberFirehose +// DestinationConfigurationMemberS3 type DestinationConfiguration interface { isDestinationConfiguration() } diff --git a/service/kafka/types/errors.go b/service/kafka/types/errors.go index 0dcf9202b2f..5362aa0b8ed 100644 --- a/service/kafka/types/errors.go +++ b/service/kafka/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returns information about an error. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returns information about an error. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kafkaconnect/doc.go b/service/kafkaconnect/doc.go index 270b2be3421..1b3764661f8 100644 --- a/service/kafkaconnect/doc.go +++ b/service/kafkaconnect/doc.go @@ -2,4 +2,6 @@ // Package kafkaconnect provides the API client, operations, and parameter types // for Managed Streaming for Kafka Connect. +// +// package kafkaconnect diff --git a/service/kafkaconnect/types/errors.go b/service/kafkaconnect/types/errors.go index 8ff198370af..7ad020bd649 100644 --- a/service/kafkaconnect/types/errors.go +++ b/service/kafkaconnect/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // HTTP Status Code 429: Limit exceeded. Resource limit reached. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kendra/document/doc.go b/service/kendra/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/service/kendra/document/doc.go +++ b/service/kendra/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/service/kendra/types/errors.go b/service/kendra/types/errors.go index adb7e503982..f47175f8ba2 100644 --- a/service/kendra/types/errors.go +++ b/service/kendra/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceAlreadyExistException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..7ed89c6953f 100644 --- a/service/keyspaces/types/errors.go +++ b/service/keyspaces/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed due to an invalid or malformed request. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..4647954648a 100644 --- a/service/kinesis/types/errors.go +++ b/service/kinesis/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided iterator exceeds the maximum age allowed. type ExpiredIteratorException struct { Message *string + Code *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.Code == nil { + return "ExpiredIteratorException" + } + return *e.Code +} func (e *ExpiredIteratorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pagination token passed to the operation is expired. type ExpiredNextTokenException struct { Message *string + Code *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.Code == nil { + return "ExpiredNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSAccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSDisabledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSOptInRequired" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -273,7 +359,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.Code == nil { + return "ProvisionedThroughputExceededException" + } + return *e.Code } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -284,6 +373,8 @@ func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesis/types/types.go b/service/kinesis/types/types.go index d6de9fefcfc..b72efa7e1b2 100644 --- a/service/kinesis/types/types.go +++ b/service/kinesis/types/types.go @@ -638,8 +638,7 @@ type SubscribeToShardEvent struct { // consumer can receive over HTTP/2 after a call to SubscribeToShard. // // The following types satisfy this interface: -// -// SubscribeToShardEventStreamMemberSubscribeToShardEvent +// SubscribeToShardEventStreamMemberSubscribeToShardEvent type SubscribeToShardEventStream interface { isSubscribeToShardEventStream() } diff --git a/service/kinesisanalytics/api_op_AddApplicationInput.go b/service/kinesisanalytics/api_op_AddApplicationInput.go index 215345e3ad3..f94fccccf24 100644 --- a/service/kinesisanalytics/api_op_AddApplicationInput.go +++ b/service/kinesisanalytics/api_op_AddApplicationInput.go @@ -42,6 +42,7 @@ func (c *Client) AddApplicationInput(ctx context.Context, params *AddApplication return out, nil } +// type AddApplicationInputInput struct { // Name of your existing Amazon Kinesis Analytics application to which you want to @@ -67,6 +68,7 @@ type AddApplicationInputInput struct { noSmithyDocumentSerde } +// type AddApplicationInputOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_AddApplicationOutput.go b/service/kinesisanalytics/api_op_AddApplicationOutput.go index 6077d74a1f9..e0246c08b02 100644 --- a/service/kinesisanalytics/api_op_AddApplicationOutput.go +++ b/service/kinesisanalytics/api_op_AddApplicationOutput.go @@ -50,6 +50,7 @@ func (c *Client) AddApplicationOutput(ctx context.Context, params *AddApplicatio return out, nil } +// type AddApplicationOutputInput struct { // Name of the application to which you want to add the output configuration. @@ -78,6 +79,7 @@ type AddApplicationOutputInput struct { noSmithyDocumentSerde } +// type AddApplicationOutputOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_AddApplicationReferenceDataSource.go b/service/kinesisanalytics/api_op_AddApplicationReferenceDataSource.go index 67776698d6b..7706f6561e3 100644 --- a/service/kinesisanalytics/api_op_AddApplicationReferenceDataSource.go +++ b/service/kinesisanalytics/api_op_AddApplicationReferenceDataSource.go @@ -42,6 +42,7 @@ func (c *Client) AddApplicationReferenceDataSource(ctx context.Context, params * return out, nil } +// type AddApplicationReferenceDataSourceInput struct { // Name of an existing application. @@ -71,6 +72,7 @@ type AddApplicationReferenceDataSourceInput struct { noSmithyDocumentSerde } +// type AddApplicationReferenceDataSourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_DeleteApplication.go b/service/kinesisanalytics/api_op_DeleteApplication.go index 22c5fe492e0..86008ae0936 100644 --- a/service/kinesisanalytics/api_op_DeleteApplication.go +++ b/service/kinesisanalytics/api_op_DeleteApplication.go @@ -34,6 +34,7 @@ func (c *Client) DeleteApplication(ctx context.Context, params *DeleteApplicatio return out, nil } +// type DeleteApplicationInput struct { // Name of the Amazon Kinesis Analytics application to delete. @@ -49,6 +50,7 @@ type DeleteApplicationInput struct { noSmithyDocumentSerde } +// type DeleteApplicationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_DeleteApplicationOutput.go b/service/kinesisanalytics/api_op_DeleteApplicationOutput.go index aa70e943efb..8d7ee52e663 100644 --- a/service/kinesisanalytics/api_op_DeleteApplicationOutput.go +++ b/service/kinesisanalytics/api_op_DeleteApplicationOutput.go @@ -33,6 +33,7 @@ func (c *Client) DeleteApplicationOutput(ctx context.Context, params *DeleteAppl return out, nil } +// type DeleteApplicationOutputInput struct { // Amazon Kinesis Analytics application name. @@ -65,6 +66,7 @@ type DeleteApplicationOutputInput struct { noSmithyDocumentSerde } +// type DeleteApplicationOutputOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_DescribeApplication.go b/service/kinesisanalytics/api_op_DescribeApplication.go index a6166dc9f53..236b1bcb143 100644 --- a/service/kinesisanalytics/api_op_DescribeApplication.go +++ b/service/kinesisanalytics/api_op_DescribeApplication.go @@ -37,6 +37,7 @@ func (c *Client) DescribeApplication(ctx context.Context, params *DescribeApplic return out, nil } +// type DescribeApplicationInput struct { // Name of the application. @@ -47,6 +48,7 @@ type DescribeApplicationInput struct { noSmithyDocumentSerde } +// type DescribeApplicationOutput struct { // Provides a description of the application, such as the application Amazon diff --git a/service/kinesisanalytics/api_op_DiscoverInputSchema.go b/service/kinesisanalytics/api_op_DiscoverInputSchema.go index e707690b2bd..d7c763b1413 100644 --- a/service/kinesisanalytics/api_op_DiscoverInputSchema.go +++ b/service/kinesisanalytics/api_op_DiscoverInputSchema.go @@ -64,6 +64,7 @@ type DiscoverInputSchemaInput struct { noSmithyDocumentSerde } +// type DiscoverInputSchemaOutput struct { // Schema inferred from the streaming source. It identifies the format of the data diff --git a/service/kinesisanalytics/api_op_ListApplications.go b/service/kinesisanalytics/api_op_ListApplications.go index 433820fd87f..17668f6d4a6 100644 --- a/service/kinesisanalytics/api_op_ListApplications.go +++ b/service/kinesisanalytics/api_op_ListApplications.go @@ -41,6 +41,7 @@ func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsI return out, nil } +// type ListApplicationsInput struct { // Name of the application to start the list with. When using pagination to @@ -55,6 +56,7 @@ type ListApplicationsInput struct { noSmithyDocumentSerde } +// type ListApplicationsOutput struct { // List of ApplicationSummary objects. diff --git a/service/kinesisanalytics/api_op_StartApplication.go b/service/kinesisanalytics/api_op_StartApplication.go index e7197c37f63..69eb806f213 100644 --- a/service/kinesisanalytics/api_op_StartApplication.go +++ b/service/kinesisanalytics/api_op_StartApplication.go @@ -42,6 +42,7 @@ func (c *Client) StartApplication(ctx context.Context, params *StartApplicationI return out, nil } +// type StartApplicationInput struct { // Name of the application. @@ -60,6 +61,7 @@ type StartApplicationInput struct { noSmithyDocumentSerde } +// type StartApplicationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_StopApplication.go b/service/kinesisanalytics/api_op_StopApplication.go index 6614c8efff0..02b2ecf5574 100644 --- a/service/kinesisanalytics/api_op_StopApplication.go +++ b/service/kinesisanalytics/api_op_StopApplication.go @@ -37,6 +37,7 @@ func (c *Client) StopApplication(ctx context.Context, params *StopApplicationInp return out, nil } +// type StopApplicationInput struct { // Name of the running application to stop. @@ -47,6 +48,7 @@ type StopApplicationInput struct { noSmithyDocumentSerde } +// type StopApplicationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/types/errors.go b/service/kinesisanalytics/types/errors.go index b3f2eee04e0..02b45315fc8 100644 --- a/service/kinesisanalytics/types/errors.go +++ b/service/kinesisanalytics/types/errors.go @@ -12,6 +12,8 @@ import ( type CodeValidationException struct { Message *string + Code *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.Code == nil { + return "CodeValidationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -46,7 +55,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *InvalidApplicationConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationConfigurationException) ErrorCode() string { - return "InvalidApplicationConfigurationException" + if e.Code == nil { + return "InvalidApplicationConfigurationException" + } + return *e.Code } func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -77,6 +94,8 @@ func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFaul type InvalidArgumentException struct { Message *string + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exceeded the number of applications allowed. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Application is not available for this operation. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Specified application can't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -170,7 +217,10 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceProvisionedThroughputExceededException) ErrorCode() string { - return "ResourceProvisionedThroughputExceededException" + if e.Code == nil { + return "ResourceProvisionedThroughputExceededException" + } + return *e.Code } func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -180,6 +230,8 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.Err type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnableToDetectSchemaException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisanalytics/types/types.go b/service/kinesisanalytics/types/types.go index ce5b61f4798..d35d79cb22c 100644 --- a/service/kinesisanalytics/types/types.go +++ b/service/kinesisanalytics/types/types.go @@ -181,8 +181,7 @@ type CloudWatchLoggingOptionUpdate struct { // such as CSV. For example, the following sample records use CSV format, where the // records use the '\n' as the row delimiter and a comma (",") as the column // delimiter: "name1", "address1" -// -// "name2", "address2" +// "name2", "address2" type CSVMappingParameters struct { // Column delimiter. For example, in a CSV format, a comma (",") is the typical diff --git a/service/kinesisanalyticsv2/types/errors.go b/service/kinesisanalyticsv2/types/errors.go index 2f984d7176c..16e8dbad770 100644 --- a/service/kinesisanalyticsv2/types/errors.go +++ b/service/kinesisanalyticsv2/types/errors.go @@ -12,6 +12,8 @@ import ( type CodeValidationException struct { Message *string + Code *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.Code == nil { + return "CodeValidationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -46,7 +55,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *InvalidApplicationConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationConfigurationException) ErrorCode() string { - return "InvalidApplicationConfigurationException" + if e.Code == nil { + return "InvalidApplicationConfigurationException" + } + return *e.Code } func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -77,6 +94,8 @@ func (e *InvalidApplicationConfigurationException) ErrorFault() smithy.ErrorFaul type InvalidArgumentException struct { Message *string + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request JSON is not valid for the operation. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of allowed resources has been exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The application is not available for this operation. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Specified application can't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -189,7 +243,10 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceProvisionedThroughputExceededException) ErrorCode() string { - return "ResourceProvisionedThroughputExceededException" + if e.Code == nil { + return "ResourceProvisionedThroughputExceededException" + } + return *e.Code } func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -199,6 +256,8 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorFault() smithy.Err type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnableToDetectSchemaException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisanalyticsv2/types/types.go b/service/kinesisanalyticsv2/types/types.go index 855d7f3a9f9..f56edc1daf8 100644 --- a/service/kinesisanalyticsv2/types/types.go +++ b/service/kinesisanalyticsv2/types/types.go @@ -639,8 +639,7 @@ type CodeContentUpdate struct { // the following sample records use CSV format, where the records use the '\n' as // the row delimiter and a comma (",") as the column delimiter: "name1", // "address1" -// -// "name2", "address2" +// "name2", "address2" type CSVMappingParameters struct { // The column delimiter. For example, in a CSV format, a comma (",") is the typical diff --git a/service/kinesisvideo/doc.go b/service/kinesisvideo/doc.go index f7072ab7d9e..e0fbdc8547d 100644 --- a/service/kinesisvideo/doc.go +++ b/service/kinesisvideo/doc.go @@ -2,4 +2,6 @@ // Package kinesisvideo provides the API client, operations, and parameter types // for Amazon Kinesis Video Streams. +// +// package kinesisvideo diff --git a/service/kinesisvideo/types/errors.go b/service/kinesisvideo/types/errors.go index 69d17c139da..5aaf4aa0802 100644 --- a/service/kinesisvideo/types/errors.go +++ b/service/kinesisvideo/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *AccountChannelLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AccountChannelLimitExceededException) ErrorCode() string { - return "AccountChannelLimitExceededException" + if e.Code == nil { + return "AccountChannelLimitExceededException" + } + return *e.Code } func (e *AccountChannelLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *AccountChannelLimitExceededException) ErrorFault() smithy.ErrorFault { type AccountStreamLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *AccountStreamLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AccountStreamLimitExceededException) ErrorCode() string { - return "AccountStreamLimitExceededException" + if e.Code == nil { + return "AccountStreamLimitExceededException" + } + return *e.Code } func (e *AccountStreamLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -78,6 +95,8 @@ func (e *AccountStreamLimitExceededException) ErrorFault() smithy.ErrorFault { type ClientLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ClientLimitExceededException" + } + return *e.Code +} func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Not implemented. type DeviceStreamLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -110,7 +136,10 @@ func (e *DeviceStreamLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeviceStreamLimitExceededException) ErrorCode() string { - return "DeviceStreamLimitExceededException" + if e.Code == nil { + return "DeviceStreamLimitExceededException" + } + return *e.Code } func (e *DeviceStreamLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -120,6 +149,8 @@ func (e *DeviceStreamLimitExceededException) ErrorFault() smithy.ErrorFault { type InvalidArgumentException struct { Message *string + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Not implemented. type InvalidDeviceException struct { Message *string + Code *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.Code == nil { + return "InvalidDeviceException" + } + return *e.Code +} func (e *InvalidDeviceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The format of the StreamARN is invalid. type InvalidResourceFormatException struct { Message *string + Code *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.Code == nil { + return "InvalidResourceFormatException" + } + return *e.Code +} func (e *InvalidResourceFormatException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Stream data retention in hours is equal to zero. type NoDataRetentionException struct { Message *string + Code *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.Code == nil { + return "NoDataRetentionException" + } + return *e.Code +} func (e *NoDataRetentionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller is not authorized to perform this operation. type NotAuthorizedException struct { Message *string + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is currently not available for this operation. New resources cannot @@ -220,6 +284,8 @@ func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceInUseException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -232,13 +298,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -251,7 +324,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Exception rendered when the Amazon Kinesis Video Stream can't find a @@ -259,6 +337,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type StreamEdgeConfigurationNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -272,7 +352,10 @@ func (e *StreamEdgeConfigurationNotFoundException) ErrorMessage() string { return *e.Message } func (e *StreamEdgeConfigurationNotFoundException) ErrorCode() string { - return "StreamEdgeConfigurationNotFoundException" + if e.Code == nil { + return "StreamEdgeConfigurationNotFoundException" + } + return *e.Code } func (e *StreamEdgeConfigurationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -283,6 +366,8 @@ func (e *StreamEdgeConfigurationNotFoundException) ErrorFault() smithy.ErrorFaul type TagsPerResourceExceededLimitException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -296,7 +381,10 @@ func (e *TagsPerResourceExceededLimitException) ErrorMessage() string { return *e.Message } func (e *TagsPerResourceExceededLimitException) ErrorCode() string { - return "TagsPerResourceExceededLimitException" + if e.Code == nil { + return "TagsPerResourceExceededLimitException" + } + return *e.Code } func (e *TagsPerResourceExceededLimitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -309,6 +397,8 @@ func (e *TagsPerResourceExceededLimitException) ErrorFault() smithy.ErrorFault { type VersionMismatchException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -321,5 +411,10 @@ func (e *VersionMismatchException) ErrorMessage() string { } return *e.Message } -func (e *VersionMismatchException) ErrorCode() string { return "VersionMismatchException" } +func (e *VersionMismatchException) ErrorCode() string { + if e.Code == nil { + return "VersionMismatchException" + } + return *e.Code +} func (e *VersionMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesisvideoarchivedmedia/doc.go b/service/kinesisvideoarchivedmedia/doc.go index c24ccce946c..c89f1a44799 100644 --- a/service/kinesisvideoarchivedmedia/doc.go +++ b/service/kinesisvideoarchivedmedia/doc.go @@ -2,4 +2,6 @@ // Package kinesisvideoarchivedmedia provides the API client, operations, and // parameter types for Amazon Kinesis Video Streams Archived Media. +// +// package kinesisvideoarchivedmedia diff --git a/service/kinesisvideoarchivedmedia/types/errors.go b/service/kinesisvideoarchivedmedia/types/errors.go index 2a409570c92..7c2eb73923c 100644 --- a/service/kinesisvideoarchivedmedia/types/errors.go +++ b/service/kinesisvideoarchivedmedia/types/errors.go @@ -14,6 +14,8 @@ import ( type ClientLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ClientLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -67,7 +83,10 @@ func (e *InvalidCodecPrivateDataException) ErrorMessage() string { return *e.Message } func (e *InvalidCodecPrivateDataException) ErrorCode() string { - return "InvalidCodecPrivateDataException" + if e.Code == nil { + return "InvalidCodecPrivateDataException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidMediaFrameException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -108,7 +136,10 @@ func (e *MissingCodecPrivateDataException) ErrorMessage() string { return *e.Message } func (e *MissingCodecPrivateDataException) ErrorCode() string { - return "MissingCodecPrivateDataException" + if e.Code == nil { + return "MissingCodecPrivateDataException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "NoDataRetentionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -196,7 +250,10 @@ func (e *UnsupportedStreamMediaTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedStreamMediaTypeException) ErrorCode() string { - return "UnsupportedStreamMediaTypeException" + if e.Code == nil { + return "UnsupportedStreamMediaTypeException" + } + return *e.Code } func (e *UnsupportedStreamMediaTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/kinesisvideomedia/doc.go b/service/kinesisvideomedia/doc.go index 7babb372c4b..cd9a5fcd3ab 100644 --- a/service/kinesisvideomedia/doc.go +++ b/service/kinesisvideomedia/doc.go @@ -2,4 +2,6 @@ // Package kinesisvideomedia provides the API client, operations, and parameter // types for Amazon Kinesis Video Streams Media. +// +// package kinesisvideomedia diff --git a/service/kinesisvideomedia/types/errors.go b/service/kinesisvideomedia/types/errors.go index 1ad5afd5f0e..4f0236cd146 100644 --- a/service/kinesisvideomedia/types/errors.go +++ b/service/kinesisvideomedia/types/errors.go @@ -12,6 +12,8 @@ import ( type ClientLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ClientLimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *ConnectionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ConnectionLimitExceededException) ErrorCode() string { - return "ConnectionLimitExceededException" + if e.Code == nil { + return "ConnectionLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidEndpointException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..dd3379399fd 100644 --- a/service/kinesisvideosignaling/types/errors.go +++ b/service/kinesisvideosignaling/types/errors.go @@ -12,6 +12,8 @@ import ( type ClientLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ClientLimitExceededException" + } + return *e.Code +} func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The value for this input parameter is invalid. type InvalidArgumentException struct { Message *string + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified client is invalid. type InvalidClientException struct { Message *string + Code *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.Code == nil { + return "InvalidClientException" + } + return *e.Code +} func (e *InvalidClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The caller is not authorized to perform this operation. type NotAuthorizedException struct { Message *string + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SessionExpiredException" + } + return *e.Code +} func (e *SessionExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kms/api_op_UpdatePrimaryRegion.go b/service/kms/api_op_UpdatePrimaryRegion.go index e7b87d5dfec..d7b513840ec 100644 --- a/service/kms/api_op_UpdatePrimaryRegion.go +++ b/service/kms/api_op_UpdatePrimaryRegion.go @@ -71,7 +71,7 @@ import ( // (in the replica key's Region). Include this permission in the replica key's key // policy. // -// # Related operations +// Related operations // // * CreateKey // diff --git a/service/kms/types/errors.go b/service/kms/types/errors.go index 0bfaed5cb18..eeae4cdaba1 100644 --- a/service/kms/types/errors.go +++ b/service/kms/types/errors.go @@ -12,6 +12,8 @@ import ( type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CloudHsmClusterInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -106,7 +122,10 @@ func (e *CloudHsmClusterInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterInvalidConfigurationException) ErrorCode() string { - return "CloudHsmClusterInvalidConfigurationException" + if e.Code == nil { + return "CloudHsmClusterInvalidConfigurationException" + } + return *e.Code } func (e *CloudHsmClusterInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -120,6 +139,8 @@ func (e *CloudHsmClusterInvalidConfigurationException) ErrorFault() smithy.Error type CloudHsmClusterNotActiveException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -133,7 +154,10 @@ func (e *CloudHsmClusterNotActiveException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotActiveException) ErrorCode() string { - return "CloudHsmClusterNotActiveException" + if e.Code == nil { + return "CloudHsmClusterNotActiveException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -155,7 +181,10 @@ func (e *CloudHsmClusterNotFoundException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotFoundException) ErrorCode() string { - return "CloudHsmClusterNotFoundException" + if e.Code == nil { + return "CloudHsmClusterNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -185,7 +216,10 @@ func (e *CloudHsmClusterNotRelatedException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotRelatedException) ErrorCode() string { - return "CloudHsmClusterNotRelatedException" + if e.Code == nil { + return "CloudHsmClusterNotRelatedException" + } + return *e.Code } func (e *CloudHsmClusterNotRelatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -198,6 +232,8 @@ func (e *CloudHsmClusterNotRelatedException) ErrorFault() smithy.ErrorFault { type CustomKeyStoreHasCMKsException struct { Message *string + Code *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.Code == nil { + return "CustomKeyStoreHasCMKsException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -257,7 +300,10 @@ func (e *CustomKeyStoreInvalidStateException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreInvalidStateException) ErrorCode() string { - return "CustomKeyStoreInvalidStateException" + if e.Code == nil { + return "CustomKeyStoreInvalidStateException" + } + return *e.Code } func (e *CustomKeyStoreInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -269,6 +315,8 @@ func (e *CustomKeyStoreInvalidStateException) ErrorFault() smithy.ErrorFault { type CustomKeyStoreNameInUseException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -282,7 +330,10 @@ func (e *CustomKeyStoreNameInUseException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreNameInUseException) ErrorCode() string { - return "CustomKeyStoreNameInUseException" + if e.Code == nil { + return "CustomKeyStoreNameInUseException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -304,7 +357,10 @@ func (e *CustomKeyStoreNotFoundException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreNotFoundException) ErrorCode() string { - return "CustomKeyStoreNotFoundException" + if e.Code == nil { + return "CustomKeyStoreNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DependencyTimeoutException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DisabledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ExpiredImportTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncorrectKeyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncorrectKeyMaterialException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncorrectTrustAnchorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAliasNameException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidArnException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidCiphertextException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGrantIdException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGrantTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidImportTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidKeyUsageException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidMarkerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KeyUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInternalException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidMacException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidSignatureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -760,7 +958,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.Code == nil { + return "MalformedPolicyDocumentException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "XksKeyAlreadyInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -864,7 +1095,10 @@ func (e *XksKeyInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *XksKeyInvalidConfigurationException) ErrorCode() string { - return "XksKeyInvalidConfigurationException" + if e.Code == nil { + return "XksKeyInvalidConfigurationException" + } + return *e.Code } func (e *XksKeyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -880,6 +1114,8 @@ func (e *XksKeyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { type XksKeyNotFoundException struct { Message *string + Code *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.Code == nil { + return "XksKeyNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -916,7 +1159,10 @@ func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorMessage() stri return *e.Message } func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorCode() string { - return "XksProxyIncorrectAuthenticationCredentialException" + if e.Code == nil { + return "XksProxyIncorrectAuthenticationCredentialException" + } + return *e.Code } func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -928,6 +1174,8 @@ func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorFault() smithy type XksProxyInvalidConfigurationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -941,7 +1189,10 @@ func (e *XksProxyInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *XksProxyInvalidConfigurationException) ErrorCode() string { - return "XksProxyInvalidConfigurationException" + if e.Code == nil { + return "XksProxyInvalidConfigurationException" + } + return *e.Code } func (e *XksProxyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -954,6 +1205,8 @@ func (e *XksProxyInvalidConfigurationException) ErrorFault() smithy.ErrorFault { type XksProxyInvalidResponseException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -967,7 +1220,10 @@ func (e *XksProxyInvalidResponseException) ErrorMessage() string { return *e.Message } func (e *XksProxyInvalidResponseException) ErrorCode() string { - return "XksProxyInvalidResponseException" + if e.Code == nil { + return "XksProxyInvalidResponseException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -991,7 +1249,10 @@ func (e *XksProxyUriEndpointInUseException) ErrorMessage() string { return *e.Message } func (e *XksProxyUriEndpointInUseException) ErrorCode() string { - return "XksProxyUriEndpointInUseException" + if e.Code == nil { + return "XksProxyUriEndpointInUseException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "XksProxyUriInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1038,7 +1308,10 @@ func (e *XksProxyUriUnreachableException) ErrorMessage() string { return *e.Message } func (e *XksProxyUriUnreachableException) ErrorCode() string { - return "XksProxyUriUnreachableException" + if e.Code == nil { + return "XksProxyUriUnreachableException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1062,7 +1337,10 @@ func (e *XksProxyVpcEndpointServiceInUseException) ErrorMessage() string { return *e.Message } func (e *XksProxyVpcEndpointServiceInUseException) ErrorCode() string { - return "XksProxyVpcEndpointServiceInUseException" + if e.Code == nil { + return "XksProxyVpcEndpointServiceInUseException" + } + return *e.Code } func (e *XksProxyVpcEndpointServiceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1075,6 +1353,8 @@ func (e *XksProxyVpcEndpointServiceInUseException) ErrorFault() smithy.ErrorFaul type XksProxyVpcEndpointServiceInvalidConfigurationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1088,7 +1368,10 @@ func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorMessage() return *e.Message } func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorCode() string { - return "XksProxyVpcEndpointServiceInvalidConfigurationException" + if e.Code == nil { + return "XksProxyVpcEndpointServiceInvalidConfigurationException" + } + return *e.Code } func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1102,6 +1385,8 @@ func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorFault() s type XksProxyVpcEndpointServiceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1115,7 +1400,10 @@ func (e *XksProxyVpcEndpointServiceNotFoundException) ErrorMessage() string { return *e.Message } func (e *XksProxyVpcEndpointServiceNotFoundException) ErrorCode() string { - return "XksProxyVpcEndpointServiceNotFoundException" + if e.Code == nil { + return "XksProxyVpcEndpointServiceNotFoundException" + } + return *e.Code } 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..d3902b24ef1 100644 --- a/service/lakeformation/types/errors.go +++ b/service/lakeformation/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource to be created or added already exists. type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Two processes are trying to modify a resource simultaneously. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -62,7 +78,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "EntityNotFoundException" + } + return *e.Code +} func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Contains details about an error where the query request expired. type ExpiredException struct { Message *string + Code *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.Code == nil { + return "ExpiredException" + } + return *e.Code +} func (e *ExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An encryption operation failed. type GlueEncryptionException struct { Message *string + Code *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.Code == nil { + return "GlueEncryptionException" + } + return *e.Code +} func (e *GlueEncryptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal service error occurred. type InternalServiceException struct { Message *string + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The input provided was not valid. type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation timed out. type OperationTimeoutException struct { Message *string + Code *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.Code == nil { + return "OperationTimeoutException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -200,7 +263,10 @@ func (e *PermissionTypeMismatchException) ErrorMessage() string { return *e.Message } func (e *PermissionTypeMismatchException) ErrorCode() string { - return "PermissionTypeMismatchException" + if e.Code == nil { + return "PermissionTypeMismatchException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotReadyException" + } + return *e.Code +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource numerical limit was exceeded. type ResourceNumberLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -241,7 +316,10 @@ func (e *ResourceNumberLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceNumberLimitExceededException) ErrorCode() string { - return "ResourceNumberLimitExceededException" + if e.Code == nil { + return "ResourceNumberLimitExceededException" + } + return *e.Code } func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -251,6 +329,8 @@ func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { type StatisticsNotReadyYetException struct { Message *string + Code *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.Code == nil { + return "StatisticsNotReadyYetException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TransactionCanceledException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -322,7 +423,10 @@ func (e *TransactionCommitInProgressException) ErrorMessage() string { return *e.Message } func (e *TransactionCommitInProgressException) ErrorCode() string { - return "TransactionCommitInProgressException" + if e.Code == nil { + return "TransactionCommitInProgressException" + } + return *e.Code } func (e *TransactionCommitInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -333,6 +437,8 @@ func (e *TransactionCommitInProgressException) ErrorFault() smithy.ErrorFault { type TransactionCommittedException struct { Message *string + Code *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.Code == nil { + return "TransactionCommittedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "WorkUnitsNotReadyYetException" + } + return *e.Code +} 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..60000f68d08 100644 --- a/service/lambda/types/errors.go +++ b/service/lambda/types/errors.go @@ -11,6 +11,8 @@ import ( type CodeSigningConfigNotFoundException struct { Message *string + Code *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.Code == nil { + return "CodeSigningConfigNotFoundException" + } + return *e.Code } func (e *CodeSigningConfigNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -38,6 +43,8 @@ func (e *CodeSigningConfigNotFoundException) ErrorFault() smithy.ErrorFault { type CodeStorageExceededException struct { Message *string + Code *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.Code == nil { + return "CodeStorageExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CodeVerificationFailedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "EC2AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EC2ThrottledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EC2UnexpectedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EFSIOException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EFSMountConnectivityException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EFSMountFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EFSMountTimeoutException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ENILimitReachedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidCodeSignatureException" + } + return *e.Code +} func (e *InvalidCodeSignatureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the parameters in the request is not valid. type InvalidParameterValueException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request body could not be parsed as JSON. type InvalidRequestContentException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestContentException" + } + return *e.Code +} func (e *InvalidRequestContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The runtime or runtime version specified is not supported. type InvalidRuntimeException struct { Message *string + Code *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.Code == nil { + return "InvalidRuntimeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSecurityGroupIDException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidSubnetIDException" + } + return *e.Code +} func (e *InvalidSubnetIDException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lambda could not unzip the deployment package. type InvalidZipFileException struct { Message *string + Code *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.Code == nil { + return "InvalidZipFileException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSAccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSDisabledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyLengthExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PreconditionFailedException" + } + return *e.Code +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified configuration does not exist. type ProvisionedConcurrencyConfigNotFoundException struct { Message *string + Code *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.Code == nil { + return "ProvisionedConcurrencyConfigNotFoundException" + } + return *e.Code } func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -573,6 +740,8 @@ func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorFault() smithy.Erro type RequestTooLargeException struct { Message *string + Code *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.Code == nil { + return "RequestTooLargeException" + } + return *e.Code +} func (e *RequestTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists, or another operation is in progress. type ResourceConflictException struct { Message *string + Code *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.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotReadyException" + } + return *e.Code +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The Lambda service encountered an internal error. type ServiceException struct { Message *string + Code *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.Code == nil { + return "ServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapStartException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapStartNotReadyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapStartTimeoutException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetIPAddressLimitReachedException" + } + return *e.Code } func (e *SubnetIPAddressLimitReachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -798,6 +1033,8 @@ func (e *SubnetIPAddressLimitReachedException) ErrorFault() smithy.ErrorFault { type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedMediaTypeException" + } + return *e.Code +} 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..fb016da49e0 100644 --- a/service/lexmodelbuildingservice/types/errors.go +++ b/service/lexmodelbuildingservice/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal Amazon Lex error occurred. Try your request again. type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request exceeded a limit. Try your request again. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PreconditionFailedException" + } + return *e.Code +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you are attempting to delete is referred to by another @@ -153,10 +202,12 @@ func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return sm // // "resourceReference": { // -// "name": string, "version": string } } +// "name": string, "version": string } } type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lexmodelsv2/doc.go b/service/lexmodelsv2/doc.go index 28dd51c4b03..19696b3622f 100644 --- a/service/lexmodelsv2/doc.go +++ b/service/lexmodelsv2/doc.go @@ -2,4 +2,6 @@ // Package lexmodelsv2 provides the API client, operations, and parameter types for // Amazon Lex Model Building V2. +// +// package lexmodelsv2 diff --git a/service/lexmodelsv2/types/errors.go b/service/lexmodelsv2/types/errors.go index b89db30eebe..1be0b6f13ca 100644 --- a/service/lexmodelsv2/types/errors.go +++ b/service/lexmodelsv2/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected condition. Try your request again. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PreconditionFailedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached a quota for your bot. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..7b851654a0b 100644 --- a/service/lexruntimeservice/types/errors.go +++ b/service/lexruntimeservice/types/errors.go @@ -12,6 +12,8 @@ import ( type BadGatewayException struct { Message *string + Code *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.Code == nil { + return "BadGatewayException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DependencyFailedException" + } + return *e.Code +} func (e *DependencyFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal service error. Retry the call. type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Exceeded a limit. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is not used. type LoopDetectedException struct { Message *string + Code *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.Code == nil { + return "LoopDetectedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotAcceptableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input speech is too long. type RequestTimeoutException struct { Message *string + Code *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.Code == nil { + return "RequestTimeoutException" + } + return *e.Code +} func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Content-Type header (PostContent API) has an invalid value. type UnsupportedMediaTypeException struct { Message *string + Code *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.Code == nil { + return "UnsupportedMediaTypeException" + } + return *e.Code +} func (e *UnsupportedMediaTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lexruntimev2/doc.go b/service/lexruntimev2/doc.go index 7063eae6be3..4fad194274b 100644 --- a/service/lexruntimev2/doc.go +++ b/service/lexruntimev2/doc.go @@ -2,4 +2,6 @@ // Package lexruntimev2 provides the API client, operations, and parameter types // for Amazon Lex Runtime V2. +// +// package lexruntimev2 diff --git a/service/lexruntimev2/types/errors.go b/service/lexruntimev2/types/errors.go index 20f31e1c0da..7afbe73aebc 100644 --- a/service/lexruntimev2/types/errors.go +++ b/service/lexruntimev2/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type AccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,12 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type BadGatewayException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -40,12 +51,20 @@ func (e *BadGatewayException) ErrorMessage() string { } return *e.Message } -func (e *BadGatewayException) ErrorCode() string { return "BadGatewayException" } +func (e *BadGatewayException) ErrorCode() string { + if e.Code == nil { + return "BadGatewayException" + } + return *e.Code +} func (e *BadGatewayException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type ConflictException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -58,12 +77,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type DependencyFailedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -76,12 +103,20 @@ func (e *DependencyFailedException) ErrorMessage() string { } return *e.Message } -func (e *DependencyFailedException) ErrorCode() string { return "DependencyFailedException" } +func (e *DependencyFailedException) ErrorCode() string { + if e.Code == nil { + return "DependencyFailedException" + } + return *e.Code +} func (e *DependencyFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InternalServerException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -94,12 +129,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -112,12 +155,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ThrottlingException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -130,12 +181,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ValidationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -148,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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lexruntimev2/types/types.go b/service/lexruntimev2/types/types.go index 82cb3f5620f..1724bdd681c 100644 --- a/service/lexruntimev2/types/types.go +++ b/service/lexruntimev2/types/types.go @@ -620,13 +620,12 @@ type Slot struct { // Represents a stream of events between your application and Amazon Lex V2. // // The following types satisfy this interface: -// -// StartConversationRequestEventStreamMemberAudioInputEvent -// StartConversationRequestEventStreamMemberConfigurationEvent -// StartConversationRequestEventStreamMemberDisconnectionEvent -// StartConversationRequestEventStreamMemberDTMFInputEvent -// StartConversationRequestEventStreamMemberPlaybackCompletionEvent -// StartConversationRequestEventStreamMemberTextInputEvent +// StartConversationRequestEventStreamMemberAudioInputEvent +// StartConversationRequestEventStreamMemberConfigurationEvent +// StartConversationRequestEventStreamMemberDisconnectionEvent +// StartConversationRequestEventStreamMemberDTMFInputEvent +// StartConversationRequestEventStreamMemberPlaybackCompletionEvent +// StartConversationRequestEventStreamMemberTextInputEvent type StartConversationRequestEventStream interface { isStartConversationRequestEventStream() } @@ -711,13 +710,12 @@ func (*StartConversationRequestEventStreamMemberTextInputEvent) isStartConversat // Represents a stream of events between Amazon Lex V2 and your application. // // The following types satisfy this interface: -// -// StartConversationResponseEventStreamMemberAudioResponseEvent -// StartConversationResponseEventStreamMemberHeartbeatEvent -// StartConversationResponseEventStreamMemberIntentResultEvent -// StartConversationResponseEventStreamMemberPlaybackInterruptionEvent -// StartConversationResponseEventStreamMemberTextResponseEvent -// StartConversationResponseEventStreamMemberTranscriptEvent +// StartConversationResponseEventStreamMemberAudioResponseEvent +// StartConversationResponseEventStreamMemberHeartbeatEvent +// StartConversationResponseEventStreamMemberIntentResultEvent +// StartConversationResponseEventStreamMemberPlaybackInterruptionEvent +// StartConversationResponseEventStreamMemberTextResponseEvent +// StartConversationResponseEventStreamMemberTranscriptEvent type StartConversationResponseEventStream interface { isStartConversationResponseEventStream() } diff --git a/service/licensemanager/types/errors.go b/service/licensemanager/types/errors.go index 6d23d2e0ef8..ecec68b7224 100644 --- a/service/licensemanager/types/errors.go +++ b/service/licensemanager/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AuthorizationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The entitlement is not allowed. type EntitlementNotAllowedException struct { Message *string + Code *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.Code == nil { + return "EntitlementNotAllowedException" + } + return *e.Code +} func (e *EntitlementNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A dependency required to run the API is missing. type FailedDependencyException struct { Message *string + Code *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.Code == nil { + return "FailedDependencyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FilterLimitExceededException" + } + return *e.Code +} func (e *FilterLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameter values are not valid. type InvalidParameterValueException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidResourceStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LicenseUsageException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoEntitlementsAllowedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RateLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RedirectException" + } + return *e.Code +} func (e *RedirectException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your resource limits have been exceeded. type ResourceLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource cannot be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server experienced an internal error. Try again. type ServerInternalException struct { Message *string + Code *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.Code == nil { + return "ServerInternalException" + } + return *e.Code +} func (e *ServerInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The digital signature method is unsupported. Try your request again. type UnsupportedDigitalSignatureMethodException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -317,7 +424,10 @@ func (e *UnsupportedDigitalSignatureMethodException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDigitalSignatureMethodException) ErrorCode() string { - return "UnsupportedDigitalSignatureMethodException" + if e.Code == nil { + return "UnsupportedDigitalSignatureMethodException" + } + return *e.Code } func (e *UnsupportedDigitalSignatureMethodException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -327,6 +437,8 @@ func (e *UnsupportedDigitalSignatureMethodException) ErrorFault() smithy.ErrorFa type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..bbbc7e2d1d9 100644 --- a/service/licensemanagerusersubscriptions/types/errors.go +++ b/service/licensemanagerusersubscriptions/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An exception occurred with the service. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource couldn't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because a service quota is exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/licensemanagerusersubscriptions/types/types.go b/service/licensemanagerusersubscriptions/types/types.go index 1f8cb661d91..533b2dce1ee 100644 --- a/service/licensemanagerusersubscriptions/types/types.go +++ b/service/licensemanagerusersubscriptions/types/types.go @@ -35,8 +35,7 @@ type Filter struct { // Details about an identity provider. // // The following types satisfy this interface: -// -// IdentityProviderMemberActiveDirectoryIdentityProvider +// IdentityProviderMemberActiveDirectoryIdentityProvider type IdentityProvider interface { isIdentityProvider() } diff --git a/service/lightsail/types/errors.go b/service/lightsail/types/errors.go index 437f3f916f3..ba815c59713 100644 --- a/service/lightsail/types/errors.go +++ b/service/lightsail/types/errors.go @@ -13,6 +13,7 @@ type AccessDeniedException struct { Message *string Code *string + Docs *string Tip *string @@ -28,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lightsail throws this exception when an account is still in the setup in @@ -37,6 +43,7 @@ type AccountSetupInProgressException struct { Message *string Code *string + Docs *string Tip *string @@ -53,7 +60,10 @@ func (e *AccountSetupInProgressException) ErrorMessage() string { return *e.Message } func (e *AccountSetupInProgressException) ErrorCode() string { - return "AccountSetupInProgressException" + if e.Code == nil { + return "AccountSetupInProgressException" + } + return *e.Code } func (e *AccountSetupInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -66,6 +76,7 @@ type InvalidInputException struct { Message *string Code *string + Docs *string Tip *string @@ -81,7 +92,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lightsail throws this exception when it cannot find a resource. @@ -89,6 +105,7 @@ type NotFoundException struct { Message *string Code *string + Docs *string Tip *string @@ -104,7 +121,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Lightsail throws this exception when an operation fails to execute. @@ -112,6 +134,7 @@ type OperationFailureException struct { Message *string Code *string + Docs *string Tip *string @@ -127,7 +150,12 @@ func (e *OperationFailureException) ErrorMessage() string { } return *e.Message } -func (e *OperationFailureException) ErrorCode() string { return "OperationFailureException" } +func (e *OperationFailureException) ErrorCode() string { + if e.Code == nil { + return "OperationFailureException" + } + return *e.Code +} func (e *OperationFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A general service exception. @@ -135,6 +163,7 @@ type ServiceException struct { Message *string Code *string + Docs *string Tip *string @@ -150,7 +179,12 @@ func (e *ServiceException) ErrorMessage() string { } return *e.Message } -func (e *ServiceException) ErrorCode() string { return "ServiceException" } +func (e *ServiceException) ErrorCode() string { + if e.Code == nil { + return "ServiceException" + } + return *e.Code +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Lightsail throws this exception when the user has not been authenticated. @@ -158,6 +192,7 @@ type UnauthenticatedException struct { Message *string Code *string + Docs *string Tip *string @@ -173,5 +208,10 @@ func (e *UnauthenticatedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthenticatedException) ErrorCode() string { return "UnauthenticatedException" } +func (e *UnauthenticatedException) ErrorCode() string { + if e.Code == nil { + return "UnauthenticatedException" + } + return *e.Code +} 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..00a88154bb2 100644 --- a/service/location/types/errors.go +++ b/service/location/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was unsuccessful because of a conflict. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because of request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..cc8147985d2 100644 --- a/service/lookoutequipment/types/errors.go +++ b/service/lookoutequipment/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource limitations have been exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..8f02e4f03f8 100644 --- a/service/lookoutmetrics/types/errors.go +++ b/service/lookoutmetrics/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..56b0d4ddf29 100644 --- a/service/lookoutvision/types/errors.go +++ b/service/lookoutvision/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..cdbec0d975b 100644 --- a/service/m2/types/errors.go +++ b/service/m2/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters provided in the request conflict with existing resources. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred during the processing of the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of requests made exceeds the limit. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/m2/types/types.go b/service/m2/types/types.go index ea47773bb15..7e41bd4ae00 100644 --- a/service/m2/types/types.go +++ b/service/m2/types/types.go @@ -118,9 +118,8 @@ type ApplicationVersionSummary struct { // Defines the details of a batch job. // // The following types satisfy this interface: -// -// BatchJobDefinitionMemberFileBatchJobDefinition -// BatchJobDefinitionMemberScriptBatchJobDefinition +// BatchJobDefinitionMemberFileBatchJobDefinition +// BatchJobDefinitionMemberScriptBatchJobDefinition type BatchJobDefinition interface { isBatchJobDefinition() } @@ -184,9 +183,8 @@ type BatchJobExecutionSummary struct { // Identifies a specific batch job. // // The following types satisfy this interface: -// -// BatchJobIdentifierMemberFileBatchJobIdentifier -// BatchJobIdentifierMemberScriptBatchJobIdentifier +// BatchJobIdentifierMemberFileBatchJobIdentifier +// BatchJobIdentifierMemberScriptBatchJobIdentifier type BatchJobIdentifier interface { isBatchJobIdentifier() } @@ -244,9 +242,8 @@ type DataSet struct { // storageType and backend (Blu Age or Micro Focus). // // The following types satisfy this interface: -// -// DatasetDetailOrgAttributesMemberGdg -// DatasetDetailOrgAttributesMemberVsam +// DatasetDetailOrgAttributesMemberGdg +// DatasetDetailOrgAttributesMemberVsam type DatasetDetailOrgAttributes interface { isDatasetDetailOrgAttributes() } @@ -273,9 +270,8 @@ func (*DatasetDetailOrgAttributesMemberVsam) isDatasetDetailOrgAttributes() {} // CreateDataSetImportTask operation. // // The following types satisfy this interface: -// -// DataSetImportConfigMemberDataSets -// DataSetImportConfigMemberS3Location +// DataSetImportConfigMemberDataSets +// DataSetImportConfigMemberS3Location type DataSetImportConfig interface { isDataSetImportConfig() } @@ -371,9 +367,8 @@ type DataSetImportTask struct { // storageType and backend (Blu Age or Micro Focus). // // The following types satisfy this interface: -// -// DatasetOrgAttributesMemberGdg -// DatasetOrgAttributesMemberVsam +// DatasetOrgAttributesMemberGdg +// DatasetOrgAttributesMemberVsam type DatasetOrgAttributes interface { isDatasetOrgAttributes() } @@ -425,9 +420,8 @@ type DataSetSummary struct { // The application definition for a particular application. // // The following types satisfy this interface: -// -// DefinitionMemberContent -// DefinitionMemberS3Location +// DefinitionMemberContent +// DefinitionMemberS3Location type Definition interface { isDefinition() } @@ -591,8 +585,7 @@ type EnvironmentSummary struct { // Defines an external storage location. // // The following types satisfy this interface: -// -// ExternalLocationMemberS3Location +// ExternalLocationMemberS3Location type ExternalLocation interface { isExternalLocation() } @@ -801,9 +794,8 @@ type ScriptBatchJobIdentifier struct { // Defines the storage configuration for a runtime environment. // // The following types satisfy this interface: -// -// StorageConfigurationMemberEfs -// StorageConfigurationMemberFsx +// StorageConfigurationMemberEfs +// StorageConfigurationMemberFsx type StorageConfiguration interface { isStorageConfiguration() } diff --git a/service/machinelearning/types/errors.go b/service/machinelearning/types/errors.go index 31c4971fb2f..0c789d31e9b 100644 --- a/service/machinelearning/types/errors.go +++ b/service/machinelearning/types/errors.go @@ -13,7 +13,7 @@ import ( type IdempotentParameterMismatchException struct { Message *string - Code int32 + Code *string noSmithyDocumentSerde } @@ -28,7 +28,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -38,7 +41,7 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string - Code int32 + Code *string noSmithyDocumentSerde } @@ -52,14 +55,19 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 - Code int32 + Code *string noSmithyDocumentSerde } @@ -73,12 +81,19 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InvalidTagException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -91,7 +106,12 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.Code == nil { + return "InvalidTagException" + } + return *e.Code +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subscriber exceeded the maximum number of operations. This exception can @@ -99,7 +119,7 @@ func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.Fau type LimitExceededException struct { Message *string - Code int32 + Code *string noSmithyDocumentSerde } @@ -113,13 +133,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -132,14 +159,19 @@ func (e *PredictorNotMountedException) ErrorMessage() string { } return *e.Message } -func (e *PredictorNotMountedException) ErrorCode() string { return "PredictorNotMountedException" } +func (e *PredictorNotMountedException) ErrorCode() string { + if e.Code == nil { + return "PredictorNotMountedException" + } + return *e.Code +} func (e *PredictorNotMountedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource cannot be located. type ResourceNotFoundException struct { Message *string - Code int32 + Code *string noSmithyDocumentSerde } @@ -153,12 +185,19 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TagLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -171,5 +210,10 @@ func (e *TagLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *TagLimitExceededException) ErrorCode() string { return "TagLimitExceededException" } +func (e *TagLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "TagLimitExceededException" + } + return *e.Code +} 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..261c57fd54d 100644 --- a/service/macie/types/errors.go +++ b/service/macie/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // (Discontinued) Internal server error. type InternalException struct { Message *string + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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..1d514180600 100644 --- a/service/macie2/types/errors.go +++ b/service/macie2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnprocessableEntityException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..90675bee059 100644 --- a/service/managedblockchain/types/errors.go +++ b/service/managedblockchain/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -23,12 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type IllegalActionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -41,7 +51,12 @@ func (e *IllegalActionException) ErrorMessage() string { } return *e.Message } -func (e *IllegalActionException) ErrorCode() string { return "IllegalActionException" } +func (e *IllegalActionException) ErrorCode() string { + if e.Code == nil { + return "IllegalActionException" + } + return *e.Code +} func (e *IllegalActionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -49,6 +64,8 @@ func (e *IllegalActionException) ErrorFault() smithy.ErrorFault { return smithy. type InternalServiceErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -61,7 +78,12 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The action or operation requested is invalid. Verify that the action is typed @@ -69,6 +91,8 @@ func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return type InvalidRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -81,13 +105,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -100,7 +131,12 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of resources of that type already exist. Ensure the resources @@ -109,6 +145,8 @@ func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type ResourceLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -121,7 +159,12 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } +func (e *ResourceLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A requested resource doesn't exist. It may have been deleted or referenced @@ -129,6 +172,8 @@ func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return type ResourceNotFoundException struct { Message *string + Code *string + ResourceName *string noSmithyDocumentSerde @@ -143,7 +188,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 +201,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceNotReadyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -163,7 +215,12 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotReadyException" + } + return *e.Code +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request or operation couldn't be performed because a service is throttling @@ -173,6 +230,8 @@ func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smit type ThrottlingException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -185,12 +244,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type TooManyTagsException struct { Message *string + Code *string + ResourceName *string noSmithyDocumentSerde @@ -205,5 +272,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..e0b6a44da35 100644 --- a/service/marketplacecatalog/types/errors.go +++ b/service/marketplacecatalog/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an internal service exception. type InternalServiceException struct { Message *string + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource is currently in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource wasn't found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Currently, the specified resource is not supported. type ResourceNotSupportedException struct { Message *string + Code *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.Code == nil { + return "ResourceNotSupportedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred during validation. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..e335d71536d 100644 --- a/service/marketplacecommerceanalytics/types/errors.go +++ b/service/marketplacecommerceanalytics/types/errors.go @@ -11,6 +11,8 @@ import ( type MarketplaceCommerceAnalyticsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *MarketplaceCommerceAnalyticsException) ErrorMessage() string { return *e.Message } func (e *MarketplaceCommerceAnalyticsException) ErrorCode() string { - return "MarketplaceCommerceAnalyticsException" + if e.Code == nil { + return "MarketplaceCommerceAnalyticsException" + } + return *e.Code } 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..257cfb51473 100644 --- a/service/marketplaceentitlementservice/types/errors.go +++ b/service/marketplaceentitlementservice/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServiceErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One or more parameters in your request was invalid. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The calls to the GetEntitlements API are throttled. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/marketplacemetering/doc.go b/service/marketplacemetering/doc.go index ebf4893d589..807fdc1db0a 100644 --- a/service/marketplacemetering/doc.go +++ b/service/marketplacemetering/doc.go @@ -19,7 +19,7 @@ // Submits the metering record for a set of customers. BatchMeterUsage is called // from a software-as-a-service (SaaS) application. // -// # Accepting New Customers +// Accepting New Customers // // * // ResolveCustomer - Called by a SaaS application during the registration process. diff --git a/service/marketplacemetering/types/errors.go b/service/marketplacemetering/types/errors.go index 43fbda5486f..dd34db6f892 100644 --- a/service/marketplacemetering/types/errors.go +++ b/service/marketplacemetering/types/errors.go @@ -12,6 +12,8 @@ import ( type CustomerNotEntitledException struct { Message *string + Code *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.Code == nil { + return "CustomerNotEntitledException" + } + return *e.Code +} func (e *CustomerNotEntitledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The API is disabled in the Region. type DisabledApiException struct { Message *string + Code *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.Code == nil { + return "DisabledApiException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ExpiredTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -127,7 +164,10 @@ func (e *InvalidCustomerIdentifierException) ErrorMessage() string { return *e.Message } func (e *InvalidCustomerIdentifierException) ErrorCode() string { - return "InvalidCustomerIdentifierException" + if e.Code == nil { + return "InvalidCustomerIdentifierException" + } + return *e.Code } func (e *InvalidCustomerIdentifierException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -139,6 +179,8 @@ func (e *InvalidCustomerIdentifierException) ErrorFault() smithy.ErrorFault { type InvalidEndpointRegionException struct { Message *string + Code *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.Code == nil { + return "InvalidEndpointRegionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidProductCodeException" + } + return *e.Code +} func (e *InvalidProductCodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Public Key version is invalid. type InvalidPublicKeyVersionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -191,7 +247,10 @@ func (e *InvalidPublicKeyVersionException) ErrorMessage() string { return *e.Message } func (e *InvalidPublicKeyVersionException) ErrorCode() string { - return "InvalidPublicKeyVersionException" + if e.Code == nil { + return "InvalidPublicKeyVersionException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidRegionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTagException" + } + return *e.Code +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Registration token is invalid. type InvalidTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidTokenException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -272,7 +354,10 @@ func (e *InvalidUsageAllocationsException) ErrorMessage() string { return *e.Message } func (e *InvalidUsageAllocationsException) ErrorCode() string { - return "InvalidUsageAllocationsException" + if e.Code == nil { + return "InvalidUsageAllocationsException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidUsageDimensionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PlatformNotSupportedException" + } + return *e.Code +} func (e *PlatformNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The calls to the API are throttled. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TimestampOutOfBoundsException" + } + return *e.Code +} 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..fa9d0a7266b 100644 --- a/service/mediaconnect/types/errors.go +++ b/service/mediaconnect/types/errors.go @@ -13,6 +13,8 @@ import ( type AddFlowOutputs420Exception struct { Message *string + Code *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.Code == nil { + return "AddFlowOutputs420Exception" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CreateFlow420Exception" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -110,7 +140,10 @@ func (e *GrantFlowEntitlements420Exception) ErrorMessage() string { return *e.Message } func (e *GrantFlowEntitlements420Exception) ErrorCode() string { - return "GrantFlowEntitlements420Exception" + if e.Code == nil { + return "GrantFlowEntitlements420Exception" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..46ff5f7fc52 100644 --- a/service/mediaconvert/types/errors.go +++ b/service/mediaconvert/types/errors.go @@ -12,6 +12,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource you requested doesn't exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..cc415eae5e6 100644 --- a/service/medialive/types/errors.go +++ b/service/medialive/types/errors.go @@ -11,6 +11,8 @@ import ( type BadGatewayException struct { Message *string + Code *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.Code == nil { + return "BadGatewayException" + } + return *e.Code +} func (e *BadGatewayException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Placeholder documentation for BadRequestException type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for ConflictException type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for ForbiddenException type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for GatewayTimeoutException type GatewayTimeoutException struct { Message *string + Code *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.Code == nil { + return "GatewayTimeoutException" + } + return *e.Code +} func (e *GatewayTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Placeholder documentation for InternalServerErrorException type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Placeholder documentation for NotFoundException type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for TooManyRequestsException type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Placeholder documentation for UnprocessableEntityException type UnprocessableEntityException struct { Message *string + Code *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.Code == nil { + return "UnprocessableEntityException" + } + return *e.Code +} 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..6fef571d84b 100644 --- a/service/mediapackage/types/errors.go +++ b/service/mediapackage/types/errors.go @@ -11,6 +11,8 @@ import ( type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client has exceeded their resource or throttling limits. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters sent in the request are not valid. type UnprocessableEntityException struct { Message *string + Code *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.Code == nil { + return "UnprocessableEntityException" + } + return *e.Code +} 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..6fef571d84b 100644 --- a/service/mediapackagevod/types/errors.go +++ b/service/mediapackagevod/types/errors.go @@ -11,6 +11,8 @@ import ( type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The client has exceeded their resource or throttling limits. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameters sent in the request are not valid. type UnprocessableEntityException struct { Message *string + Code *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.Code == nil { + return "UnprocessableEntityException" + } + return *e.Code +} 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..23a0964f924 100644 --- a/service/mediastore/types/errors.go +++ b/service/mediastore/types/errors.go @@ -12,6 +12,8 @@ import ( type ContainerInUseException struct { Message *string + Code *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.Code == nil { + return "ContainerInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ContainerNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "CorsPolicyNotFoundException" + } + return *e.Code +} func (e *CorsPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A service limit has been exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyNotFoundException" + } + return *e.Code +} 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..e1444be5496 100644 --- a/service/mediastoredata/types/errors.go +++ b/service/mediastoredata/types/errors.go @@ -11,6 +11,8 @@ import ( type ContainerNotFoundException struct { Message *string + Code *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.Code == nil { + return "ContainerNotFoundException" + } + return *e.Code +} func (e *ContainerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is temporarily unavailable. type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ObjectNotFoundException" + } + return *e.Code +} func (e *ObjectNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested content range is not valid. type RequestedRangeNotSatisfiableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -81,7 +104,10 @@ func (e *RequestedRangeNotSatisfiableException) ErrorMessage() string { return *e.Message } func (e *RequestedRangeNotSatisfiableException) ErrorCode() string { - return "RequestedRangeNotSatisfiableException" + if e.Code == nil { + return "RequestedRangeNotSatisfiableException" + } + return *e.Code } 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..ebb3395052d 100644 --- a/service/mediatailor/types/errors.go +++ b/service/mediatailor/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/memorydb/types/errors.go b/service/memorydb/types/errors.go index d2a1fe61abe..336a0328a82 100644 --- a/service/memorydb/types/errors.go +++ b/service/memorydb/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type ACLAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,12 +25,20 @@ func (e *ACLAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ACLAlreadyExistsFault) ErrorCode() string { return "ACLAlreadyExistsFault" } +func (e *ACLAlreadyExistsFault) ErrorCode() string { + if e.Code == nil { + return "ACLAlreadyExistsFault" + } + return *e.Code +} func (e *ACLAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ACLNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -40,12 +51,20 @@ func (e *ACLNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ACLNotFoundFault) ErrorCode() string { return "ACLNotFoundFault" } +func (e *ACLNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ACLNotFoundFault" + } + return *e.Code +} func (e *ACLNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ACLQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -58,12 +77,20 @@ func (e *ACLQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *ACLQuotaExceededFault) ErrorCode() string { return "ACLQuotaExceededFault" } +func (e *ACLQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "ACLQuotaExceededFault" + } + return *e.Code +} func (e *ACLQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type APICallRateForCustomerExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -77,15 +104,21 @@ func (e *APICallRateForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *APICallRateForCustomerExceededFault) ErrorCode() string { - return "APICallRateForCustomerExceededFault" + if e.Code == nil { + return "APICallRateForCustomerExceededFault" + } + return *e.Code } func (e *APICallRateForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ClusterAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -98,12 +131,20 @@ func (e *ClusterAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterAlreadyExistsFault) ErrorCode() string { return "ClusterAlreadyExistsFault" } +func (e *ClusterAlreadyExistsFault) ErrorCode() string { + if e.Code == nil { + return "ClusterAlreadyExistsFault" + } + return *e.Code +} func (e *ClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ClusterNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -116,12 +157,20 @@ func (e *ClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ClusterNotFoundFault) ErrorCode() string { return "ClusterNotFoundFault" } +func (e *ClusterNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ClusterNotFoundFault" + } + return *e.Code +} func (e *ClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ClusterQuotaForCustomerExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -135,15 +184,21 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - return "ClusterQuotaForCustomerExceededFault" + if e.Code == nil { + return "ClusterQuotaForCustomerExceededFault" + } + return *e.Code } func (e *ClusterQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type DefaultUserRequired struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -156,12 +211,20 @@ func (e *DefaultUserRequired) ErrorMessage() string { } return *e.Message } -func (e *DefaultUserRequired) ErrorCode() string { return "DefaultUserRequired" } +func (e *DefaultUserRequired) ErrorCode() string { + if e.Code == nil { + return "DefaultUserRequired" + } + return *e.Code +} func (e *DefaultUserRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type DuplicateUserNameFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -174,12 +237,20 @@ func (e *DuplicateUserNameFault) ErrorMessage() string { } return *e.Message } -func (e *DuplicateUserNameFault) ErrorCode() string { return "DuplicateUserNameFault" } +func (e *DuplicateUserNameFault) ErrorCode() string { + if e.Code == nil { + return "DuplicateUserNameFault" + } + return *e.Code +} func (e *DuplicateUserNameFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InsufficientClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -193,13 +264,19 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientClusterCapacityFault) ErrorCode() string { - return "InsufficientClusterCapacityFault" + if e.Code == nil { + return "InsufficientClusterCapacityFault" + } + return *e.Code } func (e *InsufficientClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidACLStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -212,12 +289,20 @@ func (e *InvalidACLStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidACLStateFault) ErrorCode() string { return "InvalidACLStateFault" } +func (e *InvalidACLStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidACLStateFault" + } + return *e.Code +} func (e *InvalidACLStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidARNFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -230,12 +315,20 @@ func (e *InvalidARNFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidARNFault) ErrorCode() string { return "InvalidARNFault" } +func (e *InvalidARNFault) ErrorCode() string { + if e.Code == nil { + return "InvalidARNFault" + } + return *e.Code +} func (e *InvalidARNFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidClusterStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -248,12 +341,20 @@ func (e *InvalidClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidClusterStateFault) ErrorCode() string { return "InvalidClusterStateFault" } +func (e *InvalidClusterStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidClusterStateFault" + } + return *e.Code +} func (e *InvalidClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidCredentialsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -266,12 +367,20 @@ func (e *InvalidCredentialsException) ErrorMessage() string { } return *e.Message } -func (e *InvalidCredentialsException) ErrorCode() string { return "InvalidCredentialsException" } +func (e *InvalidCredentialsException) ErrorCode() string { + if e.Code == nil { + return "InvalidCredentialsException" + } + return *e.Code +} func (e *InvalidCredentialsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidKMSKeyFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -284,12 +393,20 @@ func (e *InvalidKMSKeyFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSKeyFault) ErrorCode() string { return "InvalidKMSKeyFault" } +func (e *InvalidKMSKeyFault) ErrorCode() string { + if e.Code == nil { + return "InvalidKMSKeyFault" + } + return *e.Code +} func (e *InvalidKMSKeyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidNodeStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -302,12 +419,20 @@ func (e *InvalidNodeStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidNodeStateFault) ErrorCode() string { return "InvalidNodeStateFault" } +func (e *InvalidNodeStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidNodeStateFault" + } + return *e.Code +} func (e *InvalidNodeStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidParameterCombinationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -321,15 +446,21 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - return "InvalidParameterCombinationException" + if e.Code == nil { + return "InvalidParameterCombinationException" + } + return *e.Code } func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidParameterGroupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -343,13 +474,19 @@ func (e *InvalidParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidParameterGroupStateFault) ErrorCode() string { - return "InvalidParameterGroupStateFault" + if e.Code == nil { + return "InvalidParameterGroupStateFault" + } + return *e.Code } func (e *InvalidParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidParameterValueException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -362,12 +499,20 @@ func (e *InvalidParameterValueException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } +func (e *InvalidParameterValueException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidSnapshotStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -380,12 +525,20 @@ func (e *InvalidSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidSnapshotStateFault) ErrorCode() string { return "InvalidSnapshotStateFault" } +func (e *InvalidSnapshotStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidSnapshotStateFault" + } + return *e.Code +} func (e *InvalidSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidSubnet struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -398,12 +551,20 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidUserStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -416,12 +577,20 @@ func (e *InvalidUserStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidUserStateFault) ErrorCode() string { return "InvalidUserStateFault" } +func (e *InvalidUserStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidUserStateFault" + } + return *e.Code +} func (e *InvalidUserStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidVPCNetworkStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -434,12 +603,20 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.Code +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type NodeQuotaForClusterExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -453,13 +630,19 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { - return "NodeQuotaForClusterExceededFault" + if e.Code == nil { + return "NodeQuotaForClusterExceededFault" + } + return *e.Code } func (e *NodeQuotaForClusterExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type NodeQuotaForCustomerExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -473,13 +656,19 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { - return "NodeQuotaForCustomerExceededFault" + if e.Code == nil { + return "NodeQuotaForCustomerExceededFault" + } + return *e.Code } func (e *NodeQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type NoOperationFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -492,12 +681,20 @@ func (e *NoOperationFault) ErrorMessage() string { } return *e.Message } -func (e *NoOperationFault) ErrorCode() string { return "NoOperationFault" } +func (e *NoOperationFault) ErrorCode() string { + if e.Code == nil { + return "NoOperationFault" + } + return *e.Code +} func (e *NoOperationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ParameterGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -511,13 +708,19 @@ func (e *ParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupAlreadyExistsFault) ErrorCode() string { - return "ParameterGroupAlreadyExistsFault" + if e.Code == nil { + return "ParameterGroupAlreadyExistsFault" + } + return *e.Code } func (e *ParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ParameterGroupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -530,12 +733,20 @@ func (e *ParameterGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ParameterGroupNotFoundFault) ErrorCode() string { return "ParameterGroupNotFoundFault" } +func (e *ParameterGroupNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ParameterGroupNotFoundFault" + } + return *e.Code +} func (e *ParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ParameterGroupQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -549,13 +760,19 @@ func (e *ParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupQuotaExceededFault) ErrorCode() string { - return "ParameterGroupQuotaExceededFault" + if e.Code == nil { + return "ParameterGroupQuotaExceededFault" + } + return *e.Code } func (e *ParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ServiceLinkedRoleNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -568,12 +785,20 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { return "ServiceLinkedRoleNotFoundFault" } +func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ServiceLinkedRoleNotFoundFault" + } + return *e.Code +} func (e *ServiceLinkedRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ServiceUpdateNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -586,12 +811,20 @@ func (e *ServiceUpdateNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ServiceUpdateNotFoundFault) ErrorCode() string { return "ServiceUpdateNotFoundFault" } +func (e *ServiceUpdateNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ServiceUpdateNotFoundFault" + } + return *e.Code +} func (e *ServiceUpdateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ShardNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -604,12 +837,20 @@ func (e *ShardNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ShardNotFoundFault) ErrorCode() string { return "ShardNotFoundFault" } +func (e *ShardNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ShardNotFoundFault" + } + return *e.Code +} func (e *ShardNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ShardsPerClusterQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -623,15 +864,21 @@ func (e *ShardsPerClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ShardsPerClusterQuotaExceededFault) ErrorCode() string { - return "ShardsPerClusterQuotaExceededFault" + if e.Code == nil { + return "ShardsPerClusterQuotaExceededFault" + } + return *e.Code } func (e *ShardsPerClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SnapshotAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -644,12 +891,20 @@ func (e *SnapshotAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotAlreadyExistsFault) ErrorCode() string { return "SnapshotAlreadyExistsFault" } +func (e *SnapshotAlreadyExistsFault) ErrorCode() string { + if e.Code == nil { + return "SnapshotAlreadyExistsFault" + } + return *e.Code +} func (e *SnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SnapshotNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -662,12 +917,20 @@ func (e *SnapshotNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotNotFoundFault) ErrorCode() string { return "SnapshotNotFoundFault" } +func (e *SnapshotNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "SnapshotNotFoundFault" + } + return *e.Code +} func (e *SnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SnapshotQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -680,12 +943,20 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotQuotaExceededFault) ErrorCode() string { return "SnapshotQuotaExceededFault" } +func (e *SnapshotQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "SnapshotQuotaExceededFault" + } + return *e.Code +} func (e *SnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SubnetGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -698,12 +969,20 @@ func (e *SubnetGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { return "SubnetGroupAlreadyExistsFault" } +func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { + if e.Code == nil { + return "SubnetGroupAlreadyExistsFault" + } + return *e.Code +} func (e *SubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SubnetGroupInUseFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -716,12 +995,20 @@ func (e *SubnetGroupInUseFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupInUseFault) ErrorCode() string { return "SubnetGroupInUseFault" } +func (e *SubnetGroupInUseFault) ErrorCode() string { + if e.Code == nil { + return "SubnetGroupInUseFault" + } + return *e.Code +} func (e *SubnetGroupInUseFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SubnetGroupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -734,12 +1021,20 @@ func (e *SubnetGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupNotFoundFault) ErrorCode() string { return "SubnetGroupNotFoundFault" } +func (e *SubnetGroupNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "SubnetGroupNotFoundFault" + } + return *e.Code +} func (e *SubnetGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SubnetGroupQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -752,12 +1047,20 @@ func (e *SubnetGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { return "SubnetGroupQuotaExceededFault" } +func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "SubnetGroupQuotaExceededFault" + } + return *e.Code +} func (e *SubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SubnetInUse struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -770,12 +1073,20 @@ func (e *SubnetInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetInUse) ErrorCode() string { return "SubnetInUse" } +func (e *SubnetInUse) ErrorCode() string { + if e.Code == nil { + return "SubnetInUse" + } + return *e.Code +} func (e *SubnetInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SubnetNotAllowedFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -788,12 +1099,20 @@ func (e *SubnetNotAllowedFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetNotAllowedFault) ErrorCode() string { return "SubnetNotAllowedFault" } +func (e *SubnetNotAllowedFault) ErrorCode() string { + if e.Code == nil { + return "SubnetNotAllowedFault" + } + return *e.Code +} func (e *SubnetNotAllowedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type SubnetQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -806,12 +1125,20 @@ func (e *SubnetQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SubnetQuotaExceededFault) ErrorCode() string { return "SubnetQuotaExceededFault" } +func (e *SubnetQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "SubnetQuotaExceededFault" + } + return *e.Code +} func (e *SubnetQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type TagNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -824,12 +1151,20 @@ func (e *TagNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *TagNotFoundFault) ErrorCode() string { return "TagNotFoundFault" } +func (e *TagNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "TagNotFoundFault" + } + return *e.Code +} func (e *TagNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type TagQuotaPerResourceExceeded struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -842,12 +1177,20 @@ func (e *TagQuotaPerResourceExceeded) ErrorMessage() string { } return *e.Message } -func (e *TagQuotaPerResourceExceeded) ErrorCode() string { return "TagQuotaPerResourceExceeded" } +func (e *TagQuotaPerResourceExceeded) ErrorCode() string { + if e.Code == nil { + return "TagQuotaPerResourceExceeded" + } + return *e.Code +} func (e *TagQuotaPerResourceExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type TestFailoverNotAvailableFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -860,12 +1203,20 @@ func (e *TestFailoverNotAvailableFault) ErrorMessage() string { } return *e.Message } -func (e *TestFailoverNotAvailableFault) ErrorCode() string { return "TestFailoverNotAvailableFault" } +func (e *TestFailoverNotAvailableFault) ErrorCode() string { + if e.Code == nil { + return "TestFailoverNotAvailableFault" + } + return *e.Code +} func (e *TestFailoverNotAvailableFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type UserAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -878,12 +1229,20 @@ func (e *UserAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *UserAlreadyExistsFault) ErrorCode() string { return "UserAlreadyExistsFault" } +func (e *UserAlreadyExistsFault) ErrorCode() string { + if e.Code == nil { + return "UserAlreadyExistsFault" + } + return *e.Code +} func (e *UserAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type UserNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -896,12 +1255,20 @@ func (e *UserNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *UserNotFoundFault) ErrorCode() string { return "UserNotFoundFault" } +func (e *UserNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "UserNotFoundFault" + } + return *e.Code +} func (e *UserNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type UserQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -914,5 +1281,10 @@ func (e *UserQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *UserQuotaExceededFault) ErrorCode() string { return "UserQuotaExceededFault" } +func (e *UserQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "UserQuotaExceededFault" + } + return *e.Code +} 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..14efb43031f 100644 --- a/service/mgn/types/errors.go +++ b/service/mgn/types/errors.go @@ -25,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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,7 +38,8 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type ConflictException struct { Message *string - Code *string + Code *string + ResourceId *string ResourceType *string Errors []ErrorDetails @@ -50,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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The server encountered an unexpected condition that prevented it from fulfilling @@ -58,6 +69,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + Code *string + RetryAfterSeconds int64 noSmithyDocumentSerde @@ -72,14 +85,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Resource not found exception. type ResourceNotFoundException struct { Message *string - Code *string + Code *string + ResourceId *string ResourceType *string @@ -95,14 +114,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 - Code *string + Code *string + ResourceId *string ResourceType *string ServiceCode *string @@ -121,13 +146,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Reached throttling quota exception. type ThrottlingException struct { Message *string + Code *string + ServiceCode *string QuotaCode *string RetryAfterSeconds *string @@ -144,7 +176,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Uninitialized account exception. @@ -165,14 +202,20 @@ func (e *UninitializedAccountException) ErrorMessage() string { } return *e.Message } -func (e *UninitializedAccountException) ErrorCode() string { return "UninitializedAccountException" } +func (e *UninitializedAccountException) ErrorCode() string { + if e.Code == nil { + return "UninitializedAccountException" + } + return *e.Code +} func (e *UninitializedAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Validate exception. type ValidationException struct { Message *string - Code *string + Code *string + Reason ValidationExceptionReason FieldList []ValidationExceptionField @@ -188,5 +231,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..07401c044dd 100644 --- a/service/migrationhub/types/errors.go +++ b/service/migrationhub/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DryRunOperation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HomeRegionNotSetException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedOperation" + } + return *e.Code +} 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..6869913db6c 100644 --- a/service/migrationhubconfig/types/errors.go +++ b/service/migrationhubconfig/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DryRunOperation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..23ffc02e7cf 100644 --- a/service/migrationhuborchestrator/types/errors.go +++ b/service/migrationhuborchestrator/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource is not available. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/migrationhuborchestrator/types/types.go b/service/migrationhuborchestrator/types/types.go index 60c7ab34889..e83c135b705 100644 --- a/service/migrationhuborchestrator/types/types.go +++ b/service/migrationhuborchestrator/types/types.go @@ -116,11 +116,10 @@ type StepAutomationConfiguration struct { // The key value pairs will differ based on your selection of the template. // // The following types satisfy this interface: -// -// StepInputMemberIntegerValue -// StepInputMemberListOfStringsValue -// StepInputMemberMapOfStringValue -// StepInputMemberStringValue +// StepInputMemberIntegerValue +// StepInputMemberListOfStringsValue +// StepInputMemberMapOfStringValue +// StepInputMemberStringValue type StepInput interface { isStepInput() } @@ -339,10 +338,9 @@ type WorkflowStepOutput struct { // A structure to hold multiple values of an output. // // The following types satisfy this interface: -// -// WorkflowStepOutputUnionMemberIntegerValue -// WorkflowStepOutputUnionMemberListOfStringValue -// WorkflowStepOutputUnionMemberStringValue +// WorkflowStepOutputUnionMemberIntegerValue +// WorkflowStepOutputUnionMemberListOfStringValue +// WorkflowStepOutputUnionMemberStringValue type WorkflowStepOutputUnion interface { isWorkflowStepOutputUnion() } diff --git a/service/migrationhubrefactorspaces/types/errors.go b/service/migrationhubrefactorspaces/types/errors.go index 398a22ebd52..421b7eb3022 100644 --- a/service/migrationhubrefactorspaces/types/errors.go +++ b/service/migrationhubrefactorspaces/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource policy is not valid. type InvalidResourcePolicyException struct { Message *string + Code *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.Code == nil { + return "InvalidResourcePolicyException" + } + return *e.Code +} func (e *InvalidResourcePolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request references a resource that does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied because the request was throttled. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..53630ef387f 100644 --- a/service/migrationhubstrategy/types/errors.go +++ b/service/migrationhubstrategy/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Dependency encountered an error. type DependencyException struct { Message *string + Code *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.Code == nil { + return "DependencyException" + } + return *e.Code +} func (e *DependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The server experienced an internal error. Try again. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified ID in the request is not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -121,7 +158,10 @@ func (e *ServiceLinkedRoleLockClientException) ErrorMessage() string { return *e.Message } func (e *ServiceLinkedRoleLockClientException) ErrorCode() string { - return "ServiceLinkedRoleLockClientException" + if e.Code == nil { + return "ServiceLinkedRoleLockClientException" + } + return *e.Code } func (e *ServiceLinkedRoleLockClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -132,6 +172,8 @@ func (e *ServiceLinkedRoleLockClientException) ErrorFault() smithy.ErrorFault { type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request body isn't valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/migrationhubstrategy/types/types.go b/service/migrationhubstrategy/types/types.go index 85320a129d7..16f8c0e4c0c 100644 --- a/service/migrationhubstrategy/types/types.go +++ b/service/migrationhubstrategy/types/types.go @@ -323,10 +323,9 @@ type DatabaseConfigDetail struct { // Preferences for migrating a database to AWS. // // The following types satisfy this interface: -// -// DatabaseMigrationPreferenceMemberHeterogeneous -// DatabaseMigrationPreferenceMemberHomogeneous -// DatabaseMigrationPreferenceMemberNoPreference +// DatabaseMigrationPreferenceMemberHeterogeneous +// DatabaseMigrationPreferenceMemberHomogeneous +// DatabaseMigrationPreferenceMemberNoPreference type DatabaseMigrationPreference interface { isDatabaseMigrationPreference() } @@ -494,10 +493,9 @@ type IPAddressBasedRemoteInfo struct { // Preferences for migrating an application to AWS. // // The following types satisfy this interface: -// -// ManagementPreferenceMemberAwsManagedResources -// ManagementPreferenceMemberNoPreference -// ManagementPreferenceMemberSelfManageResources +// ManagementPreferenceMemberAwsManagedResources +// ManagementPreferenceMemberNoPreference +// ManagementPreferenceMemberSelfManageResources type ManagementPreference interface { isManagementPreference() } diff --git a/service/mobile/types/errors.go b/service/mobile/types/errors.go index ec242b776f1..d8127a2dc86 100644 --- a/service/mobile/types/errors.go +++ b/service/mobile/types/errors.go @@ -11,6 +11,8 @@ import ( type AccountActionRequiredException struct { Message *string + Code *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.Code == nil { + return "AccountActionRequiredException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No entity can be found with the specified identifier. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Credentials of the caller are insufficient to authorize the request. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..624f8cfe760 100644 --- a/service/mq/types/errors.go +++ b/service/mq/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returns information about an error. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returns information about an error. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..68d909ec46c 100644 --- a/service/mturk/types/errors.go +++ b/service/mturk/types/errors.go @@ -11,6 +11,8 @@ import ( type RequestError struct { Message *string + Code *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.Code == nil { + return "RequestError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceFault" + } + return *e.Code +} 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..97e2b2a12cf 100644 --- a/service/mwaa/types/errors.go +++ b/service/mwaa/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // InternalServerException: An internal error has occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // ResourceNotFoundException: The resource is not available. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // ValidationException: The provided input is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..e69e84c079d 100644 --- a/service/neptune/types/errors.go +++ b/service/neptune/types/errors.go @@ -13,6 +13,8 @@ import ( type AuthorizationNotFoundFault struct { Message *string + Code *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.Code == nil { + return "AuthorizationNotFound" + } + return *e.Code +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // CertificateIdentifier does not refer to an existing certificate. type CertificateNotFoundFault struct { Message *string + Code *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.Code == nil { + return "CertificateNotFound" + } + return *e.Code +} func (e *CertificateNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // User already has a DB cluster with the given identifier. type DBClusterAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBClusterAlreadyExistsFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -83,7 +106,10 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointAlreadyExistsFault) ErrorCode() string { - return "DBClusterEndpointAlreadyExistsFault" + if e.Code == nil { + return "DBClusterEndpointAlreadyExistsFault" + } + return *e.Code } func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -93,6 +119,8 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterEndpointNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterEndpointNotFoundFault" + } + return *e.Code +} func (e *DBClusterEndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster already has the maximum number of custom endpoints. type DBClusterEndpointQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -125,7 +160,10 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointQuotaExceededFault) ErrorCode() string { - return "DBClusterEndpointQuotaExceededFault" + if e.Code == nil { + return "DBClusterEndpointQuotaExceededFault" + } + return *e.Code } func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -135,6 +173,8 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBClusterNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -168,7 +215,10 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - return "DBClusterParameterGroupNotFound" + if e.Code == nil { + return "DBClusterParameterGroupNotFound" + } + return *e.Code } func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -179,6 +229,8 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type DBClusterQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "DBClusterQuotaExceededFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBClusterRoleAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBClusterRoleNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBClusterRoleQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -271,7 +351,10 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - return "DBClusterSnapshotAlreadyExistsFault" + if e.Code == nil { + return "DBClusterSnapshotAlreadyExistsFault" + } + return *e.Code } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -281,6 +364,8 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterSnapshotNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterSnapshotNotFoundFault" + } + return *e.Code +} func (e *DBClusterSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // User already has a DB instance with the given identifier. type DBInstanceAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBInstanceAlreadyExists" + } + return *e.Code +} func (e *DBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBInstanceIdentifier does not refer to an existing DB instance. type DBInstanceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBInstanceNotFound" + } + return *e.Code +} func (e *DBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A DB parameter group with the same name exists. type DBParameterGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -351,7 +457,10 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - return "DBParameterGroupAlreadyExists" + if e.Code == nil { + return "DBParameterGroupAlreadyExists" + } + return *e.Code } func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -361,6 +470,8 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBParameterGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBParameterGroupNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -394,7 +512,10 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - return "DBParameterGroupQuotaExceeded" + if e.Code == nil { + return "DBParameterGroupQuotaExceeded" + } + return *e.Code } func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -404,6 +525,8 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBSecurityGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSecurityGroupNotFound" + } + return *e.Code +} func (e *DBSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier is already used by an existing snapshot. type DBSnapshotAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBSnapshotAlreadyExists" + } + return *e.Code +} func (e *DBSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier does not refer to an existing DB snapshot. type DBSnapshotNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSnapshotNotFound" + } + return *e.Code +} func (e *DBSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName is already used by an existing DB subnet group. type DBSubnetGroupAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBSubnetGroupAlreadyExists" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -494,7 +645,10 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "DBSubnetGroupDoesNotCoverEnoughAZs" + if e.Code == nil { + return "DBSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.Code } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -504,6 +658,8 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { type DBSubnetGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSubnetGroupNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBSubnetGroupQuotaExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBSubnetQuotaExceededFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBUpgradeDependencyFailure" + } + return *e.Code +} func (e *DBUpgradeDependencyFailureFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Domain does not refer to an existing Active Directory Domain. type DomainNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DomainNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -614,7 +805,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.Code == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.Code } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -625,6 +819,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type GlobalClusterAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -638,7 +834,10 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - return "GlobalClusterAlreadyExistsFault" + if e.Code == nil { + return "GlobalClusterAlreadyExistsFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "GlobalClusterNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -680,7 +888,10 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - return "GlobalClusterQuotaExceededFault" + if e.Code == nil { + return "GlobalClusterQuotaExceededFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InstanceQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -720,7 +940,10 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - return "InsufficientDBClusterCapacityFault" + if e.Code == nil { + return "InsufficientDBClusterCapacityFault" + } + return *e.Code } func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -730,6 +953,8 @@ func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientDBInstanceCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -743,7 +968,10 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - return "InsufficientDBInstanceCapacity" + if e.Code == nil { + return "InsufficientDBInstanceCapacity" + } + return *e.Code } func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -755,6 +983,8 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientStorageClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -768,7 +998,10 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - return "InsufficientStorageClusterCapacity" + if e.Code == nil { + return "InsufficientStorageClusterCapacity" + } + return *e.Code } func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -779,6 +1012,8 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault type InvalidDBClusterEndpointStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -792,7 +1027,10 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterEndpointStateFault) ErrorCode() string { - return "InvalidDBClusterEndpointStateFault" + if e.Code == nil { + return "InvalidDBClusterEndpointStateFault" + } + return *e.Code } func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -802,6 +1040,8 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterSnapshotStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -815,7 +1055,10 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - return "InvalidDBClusterSnapshotStateFault" + if e.Code == nil { + return "InvalidDBClusterSnapshotStateFault" + } + return *e.Code } func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -825,6 +1068,8 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBClusterStateFault" + } + return *e.Code +} func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified DB instance is not in the available state. type InvalidDBInstanceStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBInstanceState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDBParameterGroupState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDBSecurityGroupState" + } + return *e.Code +} func (e *InvalidDBSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the DB snapshot does not allow deletion. type InvalidDBSnapshotStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBSnapshotState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDBSubnetGroupStateFault" + } + return *e.Code +} func (e *InvalidDBSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet is not in the available state. type InvalidDBSubnetStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidDBSubnetStateFault" + } + return *e.Code +} func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The event subscription is in an invalid state. type InvalidEventSubscriptionStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -973,7 +1267,10 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - return "InvalidEventSubscriptionState" + if e.Code == nil { + return "InvalidEventSubscriptionState" + } + return *e.Code } func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -984,6 +1281,8 @@ func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { type InvalidGlobalClusterStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidGlobalClusterStateFault" + } + return *e.Code +} func (e *InvalidGlobalClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot restore from vpc backup to non-vpc DB instance. type InvalidRestoreFault struct { Message *string + Code *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.Code == nil { + return "InvalidRestoreFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.Code +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Error accessing KMS key. type KMSKeyNotAccessibleFault struct { Message *string + Code *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.Code == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.Code +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated option group could not be found. type OptionGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "OptionGroupNotFoundFault" + } + return *e.Code +} func (e *OptionGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provisioned IOPS not available in the specified Availability Zone. type ProvisionedIopsNotAvailableInAZFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1113,7 +1454,10 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorMessage() string { return *e.Message } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorCode() string { - return "ProvisionedIopsNotAvailableInAZFault" + if e.Code == nil { + return "ProvisionedIopsNotAvailableInAZFault" + } + return *e.Code } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1123,6 +1467,8 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { type ResourceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SharedSnapshotQuotaExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SnapshotQuotaExceeded" + } + return *e.Code +} func (e *SnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic is invalid. type SNSInvalidTopicFault struct { Message *string + Code *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.Code == nil { + return "SNSInvalidTopic" + } + return *e.Code +} func (e *SNSInvalidTopicFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is no SNS authorization. type SNSNoAuthorizationFault struct { Message *string + Code *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.Code == nil { + return "SNSNoAuthorization" + } + return *e.Code +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ARN of the SNS topic could not be found. type SNSTopicArnNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SNSTopicArnNotFound" + } + return *e.Code +} func (e *SNSTopicArnNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The source could not be found. type SourceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SourceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StorageQuotaExceeded" + } + return *e.Code +} func (e *StorageQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // StorageType specified cannot be associated with the DB Instance. type StorageTypeNotSupportedFault struct { Message *string + Code *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.Code == nil { + return "StorageTypeNotSupported" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubnetAlreadyInUse" + } + return *e.Code +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This subscription already exists. type SubscriptionAlreadyExistFault struct { Message *string + Code *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.Code == nil { + return "SubscriptionAlreadyExist" + } + return *e.Code +} func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated subscription category could not be found. type SubscriptionCategoryNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SubscriptionCategoryNotFound" + } + return *e.Code +} func (e *SubscriptionCategoryNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The designated subscription could not be found. type SubscriptionNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SubscriptionNotFound" + } + return *e.Code +} func (e *SubscriptionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/networkfirewall/api_op_UpdateSubnetChangeProtection.go b/service/networkfirewall/api_op_UpdateSubnetChangeProtection.go index 213753db79e..f347aaa0693 100644 --- a/service/networkfirewall/api_op_UpdateSubnetChangeProtection.go +++ b/service/networkfirewall/api_op_UpdateSubnetChangeProtection.go @@ -10,6 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// func (c *Client) UpdateSubnetChangeProtection(ctx context.Context, params *UpdateSubnetChangeProtectionInput, optFns ...func(*Options)) (*UpdateSubnetChangeProtectionOutput, error) { if params == nil { params = &UpdateSubnetChangeProtectionInput{} diff --git a/service/networkfirewall/types/errors.go b/service/networkfirewall/types/errors.go index e60f73b6ad0..ec21fbae9d9 100644 --- a/service/networkfirewall/types/errors.go +++ b/service/networkfirewall/types/errors.go @@ -12,6 +12,8 @@ import ( type InsufficientCapacityException struct { Message *string + Code *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.Code == nil { + return "InsufficientCapacityException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The policy statement failed validation. type InvalidResourcePolicyException struct { Message *string + Code *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.Code == nil { + return "InvalidResourcePolicyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to send logs to a configured logging destination. type LogDestinationPermissionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -170,7 +221,10 @@ func (e *LogDestinationPermissionException) ErrorMessage() string { return *e.Message } func (e *LogDestinationPermissionException) ErrorCode() string { - return "LogDestinationPermissionException" + if e.Code == nil { + return "LogDestinationPermissionException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceOwnerCheckException" + } + return *e.Code +} func (e *ResourceOwnerCheckException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to process the request due to throttling limitations. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation you requested isn't supported by Network Firewall. type UnsupportedOperationException struct { Message *string + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} 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..6c3ddb4d991 100644 --- a/service/networkmanager/types/errors.go +++ b/service/networkmanager/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Describes a core network policy exception. type CoreNetworkPolicyException struct { Message *string + Code *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.Code == nil { + return "CoreNetworkPolicyException" + } + return *e.Code +} func (e *CoreNetworkPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has failed due to an internal error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service limit was exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/nimble/types/errors.go b/service/nimble/types/errors.go index 6e408bb95b1..b70256bc085 100644 --- a/service/nimble/types/errors.go +++ b/service/nimble/types/errors.go @@ -12,7 +12,8 @@ import ( type AccessDeniedException struct { Message *string - Code *string + Code *string + Context map[string]string noSmithyDocumentSerde @@ -27,14 +28,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Another operation is in progress. type ConflictException struct { Message *string - Code *string + Code *string + Context map[string]string noSmithyDocumentSerde @@ -49,14 +56,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. Please retry your request. type InternalServerErrorException struct { Message *string - Code *string + Code *string + Context map[string]string noSmithyDocumentSerde @@ -71,14 +84,20 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string - Code *string + Code *string + Context map[string]string noSmithyDocumentSerde @@ -93,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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your current quota does not allow you to perform the request action. You can @@ -102,7 +126,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string - Code *string + Code *string + Context map[string]string noSmithyDocumentSerde @@ -117,14 +142,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request throughput limit was exceeded. type ThrottlingException struct { Message *string - Code *string + Code *string + Context map[string]string noSmithyDocumentSerde @@ -139,14 +170,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the parameters in the request is invalid. type ValidationException struct { Message *string - Code *string + Code *string + Context map[string]string noSmithyDocumentSerde @@ -161,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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..872df5d5ed9 100644 --- a/service/oam/types/errors.go +++ b/service/oam/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error while processing the request. Retry the request. type InternalServiceFault struct { Message *string + Code *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.Code == nil { + return "InternalServiceFault" + } + return *e.Code +} func (e *InternalServiceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A parameter is specified incorrectly. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A required parameter is missing from the request. type MissingRequiredParameterException struct { Message *string + Code *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.Code == nil { + return "MissingRequiredParameterException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource can have no more than 50 tags. type TooManyTagsException struct { Message *string + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/omics/document/doc.go b/service/omics/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/service/omics/document/doc.go +++ b/service/omics/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/service/omics/types/errors.go b/service/omics/types/errors.go index 4f517be5afa..06110f49d08 100644 --- a/service/omics/types/errors.go +++ b/service/omics/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. Try the request again. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The ranges specified in the request are not valid. type RangeNotSatisfiableException struct { Message *string + Code *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.Code == nil { + return "RangeNotSatisfiableException" + } + return *e.Code +} func (e *RangeNotSatisfiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request timed out. type RequestTimeoutException struct { Message *string + Code *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.Code == nil { + return "RequestTimeoutException" + } + return *e.Code +} func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target resource was not found in the current Region. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/omics/types/types.go b/service/omics/types/types.go index fec2f9fadc9..bde666313a4 100644 --- a/service/omics/types/types.go +++ b/service/omics/types/types.go @@ -302,9 +302,8 @@ type FileInformation struct { // Formatting options for a file. // // The following types satisfy this interface: -// -// FormatOptionsMemberTsvOptions -// FormatOptionsMemberVcfOptions +// FormatOptionsMemberTsvOptions +// FormatOptionsMemberVcfOptions type FormatOptions interface { isFormatOptions() } @@ -719,8 +718,7 @@ type ReferenceFilter struct { // A genome reference. // // The following types satisfy this interface: -// -// ReferenceItemMemberReferenceArn +// ReferenceItemMemberReferenceArn type ReferenceItem interface { isReferenceItem() } @@ -1057,8 +1055,7 @@ type StartReferenceImportJobSourceItem struct { // Settings for a store. // // The following types satisfy this interface: -// -// StoreOptionsMemberTsvStoreOptions +// StoreOptionsMemberTsvStoreOptions type StoreOptions interface { isStoreOptions() } diff --git a/service/opensearch/types/errors.go b/service/opensearch/types/errors.go index 518cd6bbe66..d98f76ca2cc 100644 --- a/service/opensearch/types/errors.go +++ b/service/opensearch/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred while processing the request. type BaseException struct { Message *string + Code *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.Code == nil { + return "BaseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DisabledOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -125,7 +162,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.Code == nil { + return "InvalidPaginationTokenException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidTypeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/opensearchserverless/document/doc.go b/service/opensearchserverless/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/service/opensearchserverless/document/doc.go +++ b/service/opensearchserverless/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/service/opensearchserverless/types/errors.go b/service/opensearchserverless/types/errors.go index fff82cbb7e0..47ec0bbcd5d 100644 --- a/service/opensearchserverless/types/errors.go +++ b/service/opensearchserverless/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..1aef46a4ed6 100644 --- a/service/opsworks/types/errors.go +++ b/service/opsworks/types/errors.go @@ -11,6 +11,8 @@ import ( type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request was not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..a4625c7d098 100644 --- a/service/opsworkscm/types/errors.go +++ b/service/opsworkscm/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The limit of servers or backups has been reached. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource cannot be created because it already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource does not exist, or access was denied. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..4c52db9c71a 100644 --- a/service/organizations/types/errors.go +++ b/service/organizations/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AccessDeniedForDependencyException" + } + return *e.Code } func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -62,6 +74,8 @@ func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { type AccountAlreadyClosedException struct { Message *string + Code *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.Code == nil { + return "AccountAlreadyClosedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -95,7 +116,10 @@ func (e *AccountAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *AccountAlreadyRegisteredException) ErrorCode() string { - return "AccountAlreadyRegisteredException" + if e.Code == nil { + return "AccountAlreadyRegisteredException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AccountNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AccountNotRegisteredException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -161,7 +201,10 @@ func (e *AccountOwnerNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *AccountOwnerNotVerifiedException) ErrorCode() string { - return "AccountOwnerNotVerifiedException" + if e.Code == nil { + return "AccountOwnerNotVerifiedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AlreadyInOrganizationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -203,7 +255,10 @@ func (e *AWSOrganizationsNotInUseException) ErrorMessage() string { return *e.Message } func (e *AWSOrganizationsNotInUseException) ErrorCode() string { - return "AWSOrganizationsNotInUseException" + if e.Code == nil { + return "AWSOrganizationsNotInUseException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ChildNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -245,7 +309,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConstraintViolationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -481,7 +564,10 @@ func (e *CreateAccountStatusNotFoundException) ErrorMessage() string { return *e.Message } func (e *CreateAccountStatusNotFoundException) ErrorCode() string { - return "CreateAccountStatusNotFoundException" + if e.Code == nil { + return "CreateAccountStatusNotFoundException" + } + return *e.Code } func (e *CreateAccountStatusNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -492,6 +578,8 @@ func (e *CreateAccountStatusNotFoundException) ErrorFault() smithy.ErrorFault { type DestinationParentNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -505,7 +593,10 @@ func (e *DestinationParentNotFoundException) ErrorMessage() string { return *e.Message } func (e *DestinationParentNotFoundException) ErrorCode() string { - return "DestinationParentNotFoundException" + if e.Code == nil { + return "DestinationParentNotFoundException" + } + return *e.Code } func (e *DestinationParentNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -515,6 +606,8 @@ func (e *DestinationParentNotFoundException) ErrorFault() smithy.ErrorFault { type DuplicateAccountException struct { Message *string + Code *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.Code == nil { + return "DuplicateAccountException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateHandshakeException" + } + return *e.Code +} func (e *DuplicateHandshakeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An OU with the same name already exists. type DuplicateOrganizationalUnitException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -570,7 +677,10 @@ func (e *DuplicateOrganizationalUnitException) ErrorMessage() string { return *e.Message } func (e *DuplicateOrganizationalUnitException) ErrorCode() string { - return "DuplicateOrganizationalUnitException" + if e.Code == nil { + return "DuplicateOrganizationalUnitException" + } + return *e.Code } func (e *DuplicateOrganizationalUnitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -580,6 +690,8 @@ func (e *DuplicateOrganizationalUnitException) ErrorFault() smithy.ErrorFault { type DuplicatePolicyAttachmentException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -593,7 +705,10 @@ func (e *DuplicatePolicyAttachmentException) ErrorMessage() string { return *e.Message } func (e *DuplicatePolicyAttachmentException) ErrorCode() string { - return "DuplicatePolicyAttachmentException" + if e.Code == nil { + return "DuplicatePolicyAttachmentException" + } + return *e.Code } func (e *DuplicatePolicyAttachmentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -603,6 +718,8 @@ func (e *DuplicatePolicyAttachmentException) ErrorFault() smithy.ErrorFault { type DuplicatePolicyException struct { Message *string + Code *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.Code == nil { + return "DuplicatePolicyException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -638,7 +762,10 @@ func (e *EffectivePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *EffectivePolicyNotFoundException) ErrorCode() string { - return "EffectivePolicyNotFoundException" + if e.Code == nil { + return "EffectivePolicyNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -662,7 +791,10 @@ func (e *FinalizingOrganizationException) ErrorMessage() string { return *e.Message } func (e *FinalizingOrganizationException) ErrorCode() string { - return "FinalizingOrganizationException" + if e.Code == nil { + return "FinalizingOrganizationException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -684,7 +818,10 @@ func (e *HandshakeAlreadyInStateException) ErrorMessage() string { return *e.Message } func (e *HandshakeAlreadyInStateException) ErrorCode() string { - return "HandshakeAlreadyInStateException" + if e.Code == nil { + return "HandshakeAlreadyInStateException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "HandshakeConstraintViolationException" + } + return *e.Code } func (e *HandshakeConstraintViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -762,6 +904,8 @@ func (e *HandshakeConstraintViolationException) ErrorFault() smithy.ErrorFault { type HandshakeNotFoundException struct { Message *string + Code *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.Code == nil { + return "HandshakeNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -796,7 +947,10 @@ func (e *InvalidHandshakeTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidHandshakeTransitionException) ErrorCode() string { - return "InvalidHandshakeTransitionException" + if e.Code == nil { + return "InvalidHandshakeTransitionException" + } + return *e.Code } func (e *InvalidHandshakeTransitionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -889,6 +1043,8 @@ func (e *InvalidHandshakeTransitionException) ErrorFault() smithy.ErrorFault { type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -927,7 +1090,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.Code == nil { + return "MalformedPolicyDocumentException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -950,7 +1118,10 @@ func (e *MasterCannotLeaveOrganizationException) ErrorMessage() string { return *e.Message } func (e *MasterCannotLeaveOrganizationException) ErrorCode() string { - return "MasterCannotLeaveOrganizationException" + if e.Code == nil { + return "MasterCannotLeaveOrganizationException" + } + return *e.Code } func (e *MasterCannotLeaveOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -961,6 +1132,8 @@ func (e *MasterCannotLeaveOrganizationException) ErrorFault() smithy.ErrorFault type OrganizationalUnitNotEmptyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -974,7 +1147,10 @@ func (e *OrganizationalUnitNotEmptyException) ErrorMessage() string { return *e.Message } func (e *OrganizationalUnitNotEmptyException) ErrorCode() string { - return "OrganizationalUnitNotEmptyException" + if e.Code == nil { + return "OrganizationalUnitNotEmptyException" + } + return *e.Code } func (e *OrganizationalUnitNotEmptyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -984,6 +1160,8 @@ func (e *OrganizationalUnitNotEmptyException) ErrorFault() smithy.ErrorFault { type OrganizationalUnitNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -997,7 +1175,10 @@ func (e *OrganizationalUnitNotFoundException) ErrorMessage() string { return *e.Message } func (e *OrganizationalUnitNotFoundException) ErrorCode() string { - return "OrganizationalUnitNotFoundException" + if e.Code == nil { + return "OrganizationalUnitNotFoundException" + } + return *e.Code } func (e *OrganizationalUnitNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1009,6 +1190,8 @@ func (e *OrganizationalUnitNotFoundException) ErrorFault() smithy.ErrorFault { type OrganizationNotEmptyException struct { Message *string + Code *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.Code == nil { + return "OrganizationNotEmptyException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ParentNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1061,7 +1258,10 @@ func (e *PolicyChangesInProgressException) ErrorMessage() string { return *e.Message } func (e *PolicyChangesInProgressException) ErrorCode() string { - return "PolicyChangesInProgressException" + if e.Code == nil { + return "PolicyChangesInProgressException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "PolicyInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyNotAttachedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PolicyNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1140,7 +1363,10 @@ func (e *PolicyTypeAlreadyEnabledException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeAlreadyEnabledException) ErrorCode() string { - return "PolicyTypeAlreadyEnabledException" + if e.Code == nil { + return "PolicyTypeAlreadyEnabledException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1166,7 +1394,10 @@ func (e *PolicyTypeNotAvailableForOrganizationException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeNotAvailableForOrganizationException) ErrorCode() string { - return "PolicyTypeNotAvailableForOrganizationException" + if e.Code == nil { + return "PolicyTypeNotAvailableForOrganizationException" + } + return *e.Code } func (e *PolicyTypeNotAvailableForOrganizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1181,6 +1412,8 @@ func (e *PolicyTypeNotAvailableForOrganizationException) ErrorFault() smithy.Err type PolicyTypeNotEnabledException struct { Message *string + Code *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.Code == nil { + return "PolicyTypeNotEnabledException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1213,7 +1453,10 @@ func (e *ResourcePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyNotFoundException) ErrorCode() string { - return "ResourcePolicyNotFoundException" + if e.Code == nil { + return "ResourcePolicyNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "RootNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SourceParentNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TargetNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1337,6 +1617,9 @@ func (e *UnsupportedAPIEndpointException) ErrorMessage() string { return *e.Message } func (e *UnsupportedAPIEndpointException) ErrorCode() string { - return "UnsupportedAPIEndpointException" + if e.Code == nil { + return "UnsupportedAPIEndpointException" + } + return *e.Code } 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..8768c3f122c 100644 --- a/service/outposts/types/errors.go +++ b/service/outposts/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting this resource can cause an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error has occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified request is not valid. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded a service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..8a17442e1c1 100644 --- a/service/panorama/types/errors.go +++ b/service/panorama/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The target resource is in use. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The target resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a limit to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains an invalid parameter value. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/panorama/types/types.go b/service/panorama/types/types.go index 2dfb06b62ce..c4f02de1054 100644 --- a/service/panorama/types/types.go +++ b/service/panorama/types/types.go @@ -228,8 +228,7 @@ type LatestDeviceJob struct { // representation of the overrides document. // // The following types satisfy this interface: -// -// ManifestOverridesPayloadMemberPayloadData +// ManifestOverridesPayloadMemberPayloadData type ManifestOverridesPayload interface { isManifestOverridesPayload() } @@ -249,8 +248,7 @@ func (*ManifestOverridesPayloadMemberPayloadData) isManifestOverridesPayload() { // your application source. // // The following types satisfy this interface: -// -// ManifestPayloadMemberPayloadData +// ManifestPayloadMemberPayloadData type ManifestPayload interface { isManifestPayload() } diff --git a/service/personalize/types/errors.go b/service/personalize/types/errors.go index 35f61efce3d..622a1b882e1 100644 --- a/service/personalize/types/errors.go +++ b/service/personalize/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The token is not valid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Could not find the specified resource. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagKeysException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..4b98c9b6cd6 100644 --- a/service/personalizeevents/types/errors.go +++ b/service/personalizeevents/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is in use. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Could not find the specified resource. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/personalizeruntime/doc.go b/service/personalizeruntime/doc.go index 2bdc6a8cb01..0f3baf999aa 100644 --- a/service/personalizeruntime/doc.go +++ b/service/personalizeruntime/doc.go @@ -2,4 +2,6 @@ // Package personalizeruntime provides the API client, operations, and parameter // types for Amazon Personalize Runtime. +// +// package personalizeruntime diff --git a/service/personalizeruntime/types/errors.go b/service/personalizeruntime/types/errors.go index 6e94fbbc4aa..5662a4daf9c 100644 --- a/service/personalizeruntime/types/errors.go +++ b/service/personalizeruntime/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..33b09b7786f 100644 --- a/service/pi/types/errors.go +++ b/service/pi/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServiceError struct { Message *string + Code *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.Code == nil { + return "InternalServiceError" + } + return *e.Code +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // One of the arguments provided is invalid for this request. type InvalidArgumentException struct { Message *string + Code *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.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user is not authorized to perform this request. type NotAuthorizedException struct { Message *string + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} 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..6f74aba122d 100644 --- a/service/pinpoint/types/errors.go +++ b/service/pinpoint/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Provides information about an API request or response. type MethodNotAllowedException struct { Message *string + Code *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.Code == nil { + return "MethodNotAllowedException" + } + return *e.Code +} func (e *MethodNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type PayloadTooLargeException struct { Message *string + Code *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.Code == nil { + return "PayloadTooLargeException" + } + return *e.Code +} func (e *PayloadTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provides information about an API request or response. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go b/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go index b6e3c87556c..818514fbaf6 100644 --- a/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go +++ b/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go @@ -10,6 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// func (c *Client) PutDedicatedIpWarmupAttributes(ctx context.Context, params *PutDedicatedIpWarmupAttributesInput, optFns ...func(*Options)) (*PutDedicatedIpWarmupAttributesOutput, error) { if params == nil { params = &PutDedicatedIpWarmupAttributesInput{} diff --git a/service/pinpointemail/types/errors.go b/service/pinpointemail/types/errors.go index 1e99b4b298b..c3939cee0b0 100644 --- a/service/pinpointemail/types/errors.go +++ b/service/pinpointemail/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountSuspendedException struct { Message *string + Code *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.Code == nil { + return "AccountSuspendedException" + } + return *e.Code +} func (e *AccountSuspendedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in your request already exists. type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is being modified by another operation or thread. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -82,7 +105,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -122,7 +157,10 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - return "MailFromDomainNotVerifiedException" + if e.Code == nil { + return "MailFromDomainNotVerifiedException" + } + return *e.Code } func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -132,6 +170,8 @@ func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { type MessageRejected struct { Message *string + Code *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.Code == nil { + return "MessageRejected" + } + return *e.Code +} func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you attempted to access doesn't exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SendingPausedException" + } + return *e.Code +} func (e *SendingPausedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests have been made to the operation. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..359ee45b8b3 100644 --- a/service/pinpointsmsvoice/types/errors.go +++ b/service/pinpointsmsvoice/types/errors.go @@ -11,6 +11,8 @@ import ( type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // There are too many instances of the specified resource type. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you attempted to access doesn't exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..92080cebb62 100644 --- a/service/pinpointsmsvoicev2/types/errors.go +++ b/service/pinpointsmsvoicev2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A requested resource couldn't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A validation exception for a field. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..a613352852f 100644 --- a/service/pipes/types/errors.go +++ b/service/pipes/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception occurs due to unexpected causes. type InternalException struct { Message *string + Code *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.Code == nil { + return "InternalException" + } + return *e.Code +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An entity that you specified does not exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An action was throttled. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/pipes/types/types.go b/service/pipes/types/types.go index 01ff7a7180e..16eef5b4fc7 100644 --- a/service/pipes/types/types.go +++ b/service/pipes/types/types.go @@ -456,8 +456,7 @@ type FilterCriteria struct { // The Secrets Manager secret that stores your broker credentials. // // The following types satisfy this interface: -// -// MQBrokerAccessCredentialsMemberBasicAuth +// MQBrokerAccessCredentialsMemberBasicAuth type MQBrokerAccessCredentials interface { isMQBrokerAccessCredentials() } @@ -474,9 +473,8 @@ func (*MQBrokerAccessCredentialsMemberBasicAuth) isMQBrokerAccessCredentials() { // The Secrets Manager secret that stores your stream credentials. // // The following types satisfy this interface: -// -// MSKAccessCredentialsMemberClientCertificateTlsAuth -// MSKAccessCredentialsMemberSaslScram512Auth +// MSKAccessCredentialsMemberClientCertificateTlsAuth +// MSKAccessCredentialsMemberSaslScram512Auth type MSKAccessCredentials interface { isMSKAccessCredentials() } @@ -1242,11 +1240,10 @@ type SageMakerPipelineParameter struct { // The Secrets Manager secret that stores your stream credentials. // // The following types satisfy this interface: -// -// SelfManagedKafkaAccessConfigurationCredentialsMemberBasicAuth -// SelfManagedKafkaAccessConfigurationCredentialsMemberClientCertificateTlsAuth -// SelfManagedKafkaAccessConfigurationCredentialsMemberSaslScram256Auth -// SelfManagedKafkaAccessConfigurationCredentialsMemberSaslScram512Auth +// SelfManagedKafkaAccessConfigurationCredentialsMemberBasicAuth +// SelfManagedKafkaAccessConfigurationCredentialsMemberClientCertificateTlsAuth +// SelfManagedKafkaAccessConfigurationCredentialsMemberSaslScram256Auth +// SelfManagedKafkaAccessConfigurationCredentialsMemberSaslScram512Auth type SelfManagedKafkaAccessConfigurationCredentials interface { isSelfManagedKafkaAccessConfigurationCredentials() } diff --git a/service/polly/types/errors.go b/service/polly/types/errors.go index 74692ff06f2..5d082b0c2c4 100644 --- a/service/polly/types/errors.go +++ b/service/polly/types/errors.go @@ -13,6 +13,8 @@ import ( type EngineNotSupportedException struct { Message *string + Code *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.Code == nil { + return "EngineNotSupportedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidLexiconException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidS3BucketException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidS3KeyException" + } + return *e.Code +} func (e *InvalidS3KeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified sample rate is not valid. type InvalidSampleRateException struct { Message *string + Code *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.Code == nil { + return "InvalidSampleRateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSnsTopicArnException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSsmlException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTaskIdException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LanguageNotSupportedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LexiconNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LexiconSizeExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -266,7 +352,10 @@ func (e *MarksNotSupportedForFormatException) ErrorMessage() string { return *e.Message } func (e *MarksNotSupportedForFormatException) ErrorCode() string { - return "MarksNotSupportedForFormatException" + if e.Code == nil { + return "MarksNotSupportedForFormatException" + } + return *e.Code } func (e *MarksNotSupportedForFormatException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -276,6 +365,8 @@ func (e *MarksNotSupportedForFormatException) ErrorFault() smithy.ErrorFault { type MaxLexemeLengthExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -289,7 +380,10 @@ func (e *MaxLexemeLengthExceededException) ErrorMessage() string { return *e.Message } func (e *MaxLexemeLengthExceededException) ErrorCode() string { - return "MaxLexemeLengthExceededException" + if e.Code == nil { + return "MaxLexemeLengthExceededException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -310,7 +406,10 @@ func (e *MaxLexiconsNumberExceededException) ErrorMessage() string { return *e.Message } func (e *MaxLexiconsNumberExceededException) ErrorCode() string { - return "MaxLexiconsNumberExceededException" + if e.Code == nil { + return "MaxLexiconsNumberExceededException" + } + return *e.Code } func (e *MaxLexiconsNumberExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -320,6 +419,8 @@ func (e *MaxLexiconsNumberExceededException) ErrorFault() smithy.ErrorFault { type ServiceFailureException struct { Message *string + Code *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.Code == nil { + return "ServiceFailureException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -352,7 +460,10 @@ func (e *SsmlMarksNotSupportedForTextTypeException) ErrorMessage() string { return *e.Message } func (e *SsmlMarksNotSupportedForTextTypeException) ErrorCode() string { - return "SsmlMarksNotSupportedForTextTypeException" + if e.Code == nil { + return "SsmlMarksNotSupportedForTextTypeException" + } + return *e.Code } func (e *SsmlMarksNotSupportedForTextTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -362,6 +473,8 @@ func (e *SsmlMarksNotSupportedForTextTypeException) ErrorFault() smithy.ErrorFau type SynthesisTaskNotFoundException struct { Message *string + Code *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.Code == nil { + return "SynthesisTaskNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TextLengthExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -419,7 +546,10 @@ func (e *UnsupportedPlsAlphabetException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPlsAlphabetException) ErrorCode() string { - return "UnsupportedPlsAlphabetException" + if e.Code == nil { + return "UnsupportedPlsAlphabetException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -442,6 +574,9 @@ func (e *UnsupportedPlsLanguageException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPlsLanguageException) ErrorCode() string { - return "UnsupportedPlsLanguageException" + if e.Code == nil { + return "UnsupportedPlsLanguageException" + } + return *e.Code } 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..2cc993c25c7 100644 --- a/service/pricing/types/errors.go +++ b/service/pricing/types/errors.go @@ -11,6 +11,8 @@ import ( type ExpiredNextTokenException struct { Message *string + Code *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.Code == nil { + return "ExpiredNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters had an invalid value. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource can't be found. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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..446206c3aee 100644 --- a/service/privatenetworks/types/errors.go +++ b/service/privatenetworks/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Information about an internal error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The limit was exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed validation. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..1e52caf412a 100644 --- a/service/proton/types/errors.go +++ b/service/proton/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed to register with the service. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource wasn't found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/proton/types/types.go b/service/proton/types/types.go index 6caf4612229..3ba57f46995 100644 --- a/service/proton/types/types.go +++ b/service/proton/types/types.go @@ -1581,8 +1581,7 @@ type TemplateSyncConfig struct { // Template version source data. // // The following types satisfy this interface: -// -// TemplateVersionSourceInputMemberS3 +// TemplateVersionSourceInputMemberS3 type TemplateVersionSourceInput interface { isTemplateVersionSourceInput() } diff --git a/service/qldb/types/errors.go b/service/qldb/types/errors.go index d1e221cbb0e..ffcb599a4cc 100644 --- a/service/qldb/types/errors.go +++ b/service/qldb/types/errors.go @@ -11,6 +11,8 @@ import ( type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource can't be modified at this time. type ResourceInUseException struct { Message *string + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourcePreconditionNotMetException" + } + return *e.Code } 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..c476b47242a 100644 --- a/service/qldbsession/types/errors.go +++ b/service/qldbsession/types/errors.go @@ -26,13 +26,20 @@ func (e *BadRequestException) ErrorMessage() string { } return *e.Message } -func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } +func (e *BadRequestException) ErrorCode() string { + if e.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -45,7 +52,12 @@ func (e *CapacityExceededException) ErrorMessage() string { } return *e.Message } -func (e *CapacityExceededException) ErrorCode() string { return "CapacityExceededException" } +func (e *CapacityExceededException) ErrorCode() string { + if e.Code == nil { + return "CapacityExceededException" + } + return *e.Code +} func (e *CapacityExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Returned if the session doesn't exist anymore because it timed out or expired. @@ -66,13 +78,20 @@ func (e *InvalidSessionException) ErrorMessage() string { } return *e.Message } -func (e *InvalidSessionException) ErrorCode() string { return "InvalidSessionException" } +func (e *InvalidSessionException) ErrorCode() string { + if e.Code == nil { + return "InvalidSessionException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -85,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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 +117,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type OccConflictException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -105,13 +131,20 @@ func (e *OccConflictException) ErrorMessage() string { } return *e.Message } -func (e *OccConflictException) ErrorCode() string { return "OccConflictException" } +func (e *OccConflictException) ErrorCode() string { + if e.Code == nil { + return "OccConflictException" + } + return *e.Code +} func (e *OccConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the rate of requests exceeds the allowed throughput. type RateExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -124,5 +157,10 @@ func (e *RateExceededException) ErrorMessage() string { } return *e.Message } -func (e *RateExceededException) ErrorCode() string { return "RateExceededException" } +func (e *RateExceededException) ErrorCode() string { + if e.Code == nil { + return "RateExceededException" + } + return *e.Code +} func (e *RateExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/quicksight/api_op_DeleteUserByPrincipalId.go b/service/quicksight/api_op_DeleteUserByPrincipalId.go index 3e025687a5b..c681084e544 100644 --- a/service/quicksight/api_op_DeleteUserByPrincipalId.go +++ b/service/quicksight/api_op_DeleteUserByPrincipalId.go @@ -26,6 +26,7 @@ func (c *Client) DeleteUserByPrincipalId(ctx context.Context, params *DeleteUser return out, nil } +// type DeleteUserByPrincipalIdInput struct { // The ID for the Amazon Web Services account that the user is in. Currently, you diff --git a/service/quicksight/types/errors.go b/service/quicksight/types/errors.go index 98c41b0113f..ce6e8e63dab 100644 --- a/service/quicksight/types/errors.go +++ b/service/quicksight/types/errors.go @@ -15,6 +15,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConcurrentUpdatingException" + } + return *e.Code +} func (e *ConcurrentUpdatingException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DomainNotWhitelistedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IdentityTypeNotSupportedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The NextToken value isn't valid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A limit is exceeded. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more preconditions aren't met. type PreconditionNotMetException struct { Message *string + Code *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.Code == nil { + return "PreconditionNotMetException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "QuickSightUserNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceExistsException" + } + return *e.Code +} func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more resources can't be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This resource is currently unavailable. type ResourceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ResourceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SessionLifetimeInMinutesInvalidException" + } + return *e.Code } func (e *SessionLifetimeInMinutesInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -370,6 +476,8 @@ func (e *SessionLifetimeInMinutesInvalidException) ErrorFault() smithy.ErrorFaul type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedPricingPlanException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "UnsupportedUserEditionException" + } + return *e.Code } func (e *UnsupportedUserEditionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/quicksight/types/types.go b/service/quicksight/types/types.go index 6427f7d5d1a..c3ddcb6b11f 100644 --- a/service/quicksight/types/types.go +++ b/service/quicksight/types/types.go @@ -2537,6 +2537,7 @@ type DashboardVisualId struct { noSmithyDocumentSerde } +// type DashboardVisualPublishOptions struct { // @@ -3064,30 +3065,29 @@ type DataSourceErrorInfo struct { // one of the attributes can be non-null. // // The following types satisfy this interface: -// -// DataSourceParametersMemberAmazonElasticsearchParameters -// DataSourceParametersMemberAmazonOpenSearchParameters -// DataSourceParametersMemberAthenaParameters -// DataSourceParametersMemberAuroraParameters -// DataSourceParametersMemberAuroraPostgreSqlParameters -// DataSourceParametersMemberAwsIotAnalyticsParameters -// DataSourceParametersMemberDatabricksParameters -// DataSourceParametersMemberExasolParameters -// DataSourceParametersMemberJiraParameters -// DataSourceParametersMemberMariaDbParameters -// DataSourceParametersMemberMySqlParameters -// DataSourceParametersMemberOracleParameters -// DataSourceParametersMemberPostgreSqlParameters -// DataSourceParametersMemberPrestoParameters -// DataSourceParametersMemberRdsParameters -// DataSourceParametersMemberRedshiftParameters -// DataSourceParametersMemberS3Parameters -// DataSourceParametersMemberServiceNowParameters -// DataSourceParametersMemberSnowflakeParameters -// DataSourceParametersMemberSparkParameters -// DataSourceParametersMemberSqlServerParameters -// DataSourceParametersMemberTeradataParameters -// DataSourceParametersMemberTwitterParameters +// DataSourceParametersMemberAmazonElasticsearchParameters +// DataSourceParametersMemberAmazonOpenSearchParameters +// DataSourceParametersMemberAthenaParameters +// DataSourceParametersMemberAuroraParameters +// DataSourceParametersMemberAuroraPostgreSqlParameters +// DataSourceParametersMemberAwsIotAnalyticsParameters +// DataSourceParametersMemberDatabricksParameters +// DataSourceParametersMemberExasolParameters +// DataSourceParametersMemberJiraParameters +// DataSourceParametersMemberMariaDbParameters +// DataSourceParametersMemberMySqlParameters +// DataSourceParametersMemberOracleParameters +// DataSourceParametersMemberPostgreSqlParameters +// DataSourceParametersMemberPrestoParameters +// DataSourceParametersMemberRdsParameters +// DataSourceParametersMemberRedshiftParameters +// DataSourceParametersMemberS3Parameters +// DataSourceParametersMemberServiceNowParameters +// DataSourceParametersMemberSnowflakeParameters +// DataSourceParametersMemberSparkParameters +// DataSourceParametersMemberSqlServerParameters +// DataSourceParametersMemberTeradataParameters +// DataSourceParametersMemberTwitterParameters type DataSourceParameters interface { isDataSourceParameters() } @@ -3951,6 +3951,7 @@ type ExplicitHierarchy struct { noSmithyDocumentSerde } +// type ExportHiddenFieldsOption struct { // @@ -7752,10 +7753,9 @@ type PeriodToDateComputation struct { // be valid, only one of the attributes can be non-null. // // The following types satisfy this interface: -// -// PhysicalTableMemberCustomSql -// PhysicalTableMemberRelationalTable -// PhysicalTableMemberS3Source +// PhysicalTableMemberCustomSql +// PhysicalTableMemberRelationalTable +// PhysicalTableMemberS3Source type PhysicalTable interface { isPhysicalTable() } @@ -11058,14 +11058,13 @@ type TotalOptions struct { // this structure to be valid, only one of the attributes can be non-null. // // The following types satisfy this interface: -// -// TransformOperationMemberCastColumnTypeOperation -// TransformOperationMemberCreateColumnsOperation -// TransformOperationMemberFilterOperation -// TransformOperationMemberProjectOperation -// TransformOperationMemberRenameColumnOperation -// TransformOperationMemberTagColumnOperation -// TransformOperationMemberUntagColumnOperation +// TransformOperationMemberCastColumnTypeOperation +// TransformOperationMemberCreateColumnsOperation +// TransformOperationMemberFilterOperation +// TransformOperationMemberProjectOperation +// TransformOperationMemberRenameColumnOperation +// TransformOperationMemberTagColumnOperation +// TransformOperationMemberUntagColumnOperation type TransformOperation interface { isTransformOperation() } diff --git a/service/ram/types/errors.go b/service/ram/types/errors.go index 6ef1e42fbd6..dcfd9d22a19 100644 --- a/service/ram/types/errors.go +++ b/service/ram/types/errors.go @@ -13,6 +13,8 @@ import ( type IdempotentParameterMismatchException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -26,7 +28,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -36,6 +41,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InvalidClientTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidClientTokenException" + } + return *e.Code +} func (e *InvalidClientTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified value for MaxResults is not valid. type InvalidMaxResultsException struct { Message *string + Code *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.Code == nil { + return "InvalidMaxResultsException" + } + return *e.Code +} func (e *InvalidMaxResultsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified value for NextToken is not valid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter is not valid. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource type is not valid. type InvalidResourceTypeException struct { Message *string + Code *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.Code == nil { + return "InvalidResourceTypeException" + } + return *e.Code +} func (e *InvalidResourceTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested state transition is not valid. type InvalidStateTransitionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -144,7 +186,10 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - return "InvalidStateTransitionException" + if e.Code == nil { + return "InvalidStateTransitionException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "MalformedArnException" + } + return *e.Code +} func (e *MalformedArnException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A required input parameter is missing. type MissingRequiredParameterException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -184,7 +238,10 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - return "MissingRequiredParameterException" + if e.Code == nil { + return "MissingRequiredParameterException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OperationNotPermittedException" + } + return *e.Code +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Resource Name (ARN) was not found. type ResourceArnNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceArnNotFoundException" + } + return *e.Code +} func (e *ResourceArnNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified invitation was already accepted. type ResourceShareInvitationAlreadyAcceptedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -243,7 +316,10 @@ func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorMessage() string return *e.Message } func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorCode() string { - return "ResourceShareInvitationAlreadyAcceptedException" + if e.Code == nil { + return "ResourceShareInvitationAlreadyAcceptedException" + } + return *e.Code } func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -253,6 +329,8 @@ func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorFault() smithy.Er type ResourceShareInvitationAlreadyRejectedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -266,7 +344,10 @@ func (e *ResourceShareInvitationAlreadyRejectedException) ErrorMessage() string return *e.Message } func (e *ResourceShareInvitationAlreadyRejectedException) ErrorCode() string { - return "ResourceShareInvitationAlreadyRejectedException" + if e.Code == nil { + return "ResourceShareInvitationAlreadyRejectedException" + } + return *e.Code } func (e *ResourceShareInvitationAlreadyRejectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -276,6 +357,8 @@ func (e *ResourceShareInvitationAlreadyRejectedException) ErrorFault() smithy.Er type ResourceShareInvitationArnNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -289,7 +372,10 @@ func (e *ResourceShareInvitationArnNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceShareInvitationArnNotFoundException) ErrorCode() string { - return "ResourceShareInvitationArnNotFoundException" + if e.Code == nil { + return "ResourceShareInvitationArnNotFoundException" + } + return *e.Code } func (e *ResourceShareInvitationArnNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -299,6 +385,8 @@ func (e *ResourceShareInvitationArnNotFoundException) ErrorFault() smithy.ErrorF type ResourceShareInvitationExpiredException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -312,7 +400,10 @@ func (e *ResourceShareInvitationExpiredException) ErrorMessage() string { return *e.Message } func (e *ResourceShareInvitationExpiredException) ErrorCode() string { - return "ResourceShareInvitationExpiredException" + if e.Code == nil { + return "ResourceShareInvitationExpiredException" + } + return *e.Code } func (e *ResourceShareInvitationExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -322,6 +413,8 @@ func (e *ResourceShareInvitationExpiredException) ErrorFault() smithy.ErrorFault type ResourceShareLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -335,7 +428,10 @@ func (e *ResourceShareLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceShareLimitExceededException) ErrorCode() string { - return "ResourceShareLimitExceededException" + if e.Code == nil { + return "ResourceShareLimitExceededException" + } + return *e.Code } func (e *ResourceShareLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -345,6 +441,8 @@ func (e *ResourceShareLimitExceededException) ErrorFault() smithy.ErrorFault { type ServerInternalException struct { Message *string + Code *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.Code == nil { + return "ServerInternalException" + } + return *e.Code +} func (e *ServerInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The service is not available. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagPolicyViolationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource was not found. type UnknownResourceException struct { Message *string + Code *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.Code == nil { + return "UnknownResourceException" + } + return *e.Code +} 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..10c2fee8d87 100644 --- a/service/rbin/types/errors.go +++ b/service/rbin/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rds/api_op_AddSourceIdentifierToSubscription.go b/service/rds/api_op_AddSourceIdentifierToSubscription.go index 2bb90197b00..47289989a1e 100644 --- a/service/rds/api_op_AddSourceIdentifierToSubscription.go +++ b/service/rds/api_op_AddSourceIdentifierToSubscription.go @@ -27,6 +27,7 @@ func (c *Client) AddSourceIdentifierToSubscription(ctx context.Context, params * return out, nil } +// type AddSourceIdentifierToSubscriptionInput struct { // The identifier of the event source to be added. Constraints: diff --git a/service/rds/api_op_AddTagsToResource.go b/service/rds/api_op_AddTagsToResource.go index 2582f617e0c..059470bf0a7 100644 --- a/service/rds/api_op_AddTagsToResource.go +++ b/service/rds/api_op_AddTagsToResource.go @@ -31,6 +31,7 @@ func (c *Client) AddTagsToResource(ctx context.Context, params *AddTagsToResourc return out, nil } +// type AddTagsToResourceInput struct { // The Amazon RDS resource that the tags are added to. This value is an Amazon diff --git a/service/rds/api_op_ApplyPendingMaintenanceAction.go b/service/rds/api_op_ApplyPendingMaintenanceAction.go index 41242cf774b..46ce4b92c5a 100644 --- a/service/rds/api_op_ApplyPendingMaintenanceAction.go +++ b/service/rds/api_op_ApplyPendingMaintenanceAction.go @@ -28,6 +28,7 @@ func (c *Client) ApplyPendingMaintenanceAction(ctx context.Context, params *Appl return out, nil } +// type ApplyPendingMaintenanceActionInput struct { // The pending maintenance action to apply to this resource. Valid values: diff --git a/service/rds/api_op_AuthorizeDBSecurityGroupIngress.go b/service/rds/api_op_AuthorizeDBSecurityGroupIngress.go index 4cd3cbebbbf..3b9381b418e 100644 --- a/service/rds/api_op_AuthorizeDBSecurityGroupIngress.go +++ b/service/rds/api_op_AuthorizeDBSecurityGroupIngress.go @@ -48,6 +48,7 @@ func (c *Client) AuthorizeDBSecurityGroupIngress(ctx context.Context, params *Au return out, nil } +// type AuthorizeDBSecurityGroupIngressInput struct { // The name of the DB security group to add authorization to. diff --git a/service/rds/api_op_BacktrackDBCluster.go b/service/rds/api_op_BacktrackDBCluster.go index 83752fcbd71..b08319c2715 100644 --- a/service/rds/api_op_BacktrackDBCluster.go +++ b/service/rds/api_op_BacktrackDBCluster.go @@ -31,6 +31,7 @@ func (c *Client) BacktrackDBCluster(ctx context.Context, params *BacktrackDBClus return out, nil } +// type BacktrackDBClusterInput struct { // The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 diff --git a/service/rds/api_op_CopyDBClusterSnapshot.go b/service/rds/api_op_CopyDBClusterSnapshot.go index 5752b8a46c1..6039ec55dab 100644 --- a/service/rds/api_op_CopyDBClusterSnapshot.go +++ b/service/rds/api_op_CopyDBClusterSnapshot.go @@ -65,6 +65,7 @@ func (c *Client) CopyDBClusterSnapshot(ctx context.Context, params *CopyDBCluste return out, nil } +// type CopyDBClusterSnapshotInput struct { // The identifier of the DB cluster snapshot to copy. This parameter isn't diff --git a/service/rds/api_op_CopyDBParameterGroup.go b/service/rds/api_op_CopyDBParameterGroup.go index 66b313857d8..4004055cb71 100644 --- a/service/rds/api_op_CopyDBParameterGroup.go +++ b/service/rds/api_op_CopyDBParameterGroup.go @@ -27,6 +27,7 @@ func (c *Client) CopyDBParameterGroup(ctx context.Context, params *CopyDBParamet return out, nil } +// type CopyDBParameterGroupInput struct { // The identifier or ARN for the source DB parameter group. For information about diff --git a/service/rds/api_op_CopyDBSnapshot.go b/service/rds/api_op_CopyDBSnapshot.go index 67097e9d44d..942ad06f3bf 100644 --- a/service/rds/api_op_CopyDBSnapshot.go +++ b/service/rds/api_op_CopyDBSnapshot.go @@ -36,6 +36,7 @@ func (c *Client) CopyDBSnapshot(ctx context.Context, params *CopyDBSnapshotInput return out, nil } +// type CopyDBSnapshotInput struct { // The identifier for the source DB snapshot. If the source snapshot is in the same diff --git a/service/rds/api_op_CopyOptionGroup.go b/service/rds/api_op_CopyOptionGroup.go index 2f526c5a1ef..f7a3386f197 100644 --- a/service/rds/api_op_CopyOptionGroup.go +++ b/service/rds/api_op_CopyOptionGroup.go @@ -27,6 +27,7 @@ func (c *Client) CopyOptionGroup(ctx context.Context, params *CopyOptionGroupInp return out, nil } +// type CopyOptionGroupInput struct { // The identifier for the source option group. Constraints: diff --git a/service/rds/api_op_CreateDBCluster.go b/service/rds/api_op_CreateDBCluster.go index e6ec6b317ab..5eac15bdf9b 100644 --- a/service/rds/api_op_CreateDBCluster.go +++ b/service/rds/api_op_CreateDBCluster.go @@ -37,6 +37,7 @@ func (c *Client) CreateDBCluster(ctx context.Context, params *CreateDBClusterInp return out, nil } +// type CreateDBClusterInput struct { // The DB cluster identifier. This parameter is stored as a lowercase string. diff --git a/service/rds/api_op_CreateDBClusterParameterGroup.go b/service/rds/api_op_CreateDBClusterParameterGroup.go index 10ec90c0142..9eaa0c47381 100644 --- a/service/rds/api_op_CreateDBClusterParameterGroup.go +++ b/service/rds/api_op_CreateDBClusterParameterGroup.go @@ -55,6 +55,7 @@ func (c *Client) CreateDBClusterParameterGroup(ctx context.Context, params *Crea return out, nil } +// type CreateDBClusterParameterGroupInput struct { // The name of the DB cluster parameter group. Constraints: diff --git a/service/rds/api_op_CreateDBClusterSnapshot.go b/service/rds/api_op_CreateDBClusterSnapshot.go index 5382d98adc1..b1d6a99cb5c 100644 --- a/service/rds/api_op_CreateDBClusterSnapshot.go +++ b/service/rds/api_op_CreateDBClusterSnapshot.go @@ -33,6 +33,7 @@ func (c *Client) CreateDBClusterSnapshot(ctx context.Context, params *CreateDBCl return out, nil } +// type CreateDBClusterSnapshotInput struct { // The identifier of the DB cluster to create a snapshot for. This parameter isn't diff --git a/service/rds/api_op_CreateDBInstance.go b/service/rds/api_op_CreateDBInstance.go index 91fe3056b49..f780a04bec8 100644 --- a/service/rds/api_op_CreateDBInstance.go +++ b/service/rds/api_op_CreateDBInstance.go @@ -36,6 +36,7 @@ func (c *Client) CreateDBInstance(ctx context.Context, params *CreateDBInstanceI return out, nil } +// type CreateDBInstanceInput struct { // The compute and memory capacity of the DB instance, for example db.m5.large. Not diff --git a/service/rds/api_op_CreateDBParameterGroup.go b/service/rds/api_op_CreateDBParameterGroup.go index 274453d7d2c..276098065ff 100644 --- a/service/rds/api_op_CreateDBParameterGroup.go +++ b/service/rds/api_op_CreateDBParameterGroup.go @@ -44,6 +44,7 @@ func (c *Client) CreateDBParameterGroup(ctx context.Context, params *CreateDBPar return out, nil } +// type CreateDBParameterGroupInput struct { // The DB parameter group family name. A DB parameter group can be associated with diff --git a/service/rds/api_op_CreateDBSecurityGroup.go b/service/rds/api_op_CreateDBSecurityGroup.go index b8e05e955b7..1e2c827d132 100644 --- a/service/rds/api_op_CreateDBSecurityGroup.go +++ b/service/rds/api_op_CreateDBSecurityGroup.go @@ -38,6 +38,7 @@ func (c *Client) CreateDBSecurityGroup(ctx context.Context, params *CreateDBSecu return out, nil } +// type CreateDBSecurityGroupInput struct { // The description for the DB security group. diff --git a/service/rds/api_op_CreateDBSnapshot.go b/service/rds/api_op_CreateDBSnapshot.go index be30c2c3ebb..5034cf30c58 100644 --- a/service/rds/api_op_CreateDBSnapshot.go +++ b/service/rds/api_op_CreateDBSnapshot.go @@ -28,6 +28,7 @@ func (c *Client) CreateDBSnapshot(ctx context.Context, params *CreateDBSnapshotI return out, nil } +// type CreateDBSnapshotInput struct { // The identifier of the DB instance that you want to create the snapshot of. diff --git a/service/rds/api_op_CreateDBSubnetGroup.go b/service/rds/api_op_CreateDBSubnetGroup.go index 61507fda4fc..4d73288e626 100644 --- a/service/rds/api_op_CreateDBSubnetGroup.go +++ b/service/rds/api_op_CreateDBSubnetGroup.go @@ -28,6 +28,7 @@ func (c *Client) CreateDBSubnetGroup(ctx context.Context, params *CreateDBSubnet return out, nil } +// type CreateDBSubnetGroupInput struct { // The description for the DB subnet group. diff --git a/service/rds/api_op_CreateEventSubscription.go b/service/rds/api_op_CreateEventSubscription.go index ded748c0185..d4c8bd6fb61 100644 --- a/service/rds/api_op_CreateEventSubscription.go +++ b/service/rds/api_op_CreateEventSubscription.go @@ -48,6 +48,7 @@ func (c *Client) CreateEventSubscription(ctx context.Context, params *CreateEven return out, nil } +// type CreateEventSubscriptionInput struct { // The Amazon Resource Name (ARN) of the SNS topic created for event notification. diff --git a/service/rds/api_op_CreateOptionGroup.go b/service/rds/api_op_CreateOptionGroup.go index 76a55febb4c..8be45722537 100644 --- a/service/rds/api_op_CreateOptionGroup.go +++ b/service/rds/api_op_CreateOptionGroup.go @@ -28,6 +28,7 @@ func (c *Client) CreateOptionGroup(ctx context.Context, params *CreateOptionGrou return out, nil } +// type CreateOptionGroupInput struct { // Specifies the name of the engine that this option group should be associated diff --git a/service/rds/api_op_DeleteDBCluster.go b/service/rds/api_op_DeleteDBCluster.go index 1003309e889..37237af2376 100644 --- a/service/rds/api_op_DeleteDBCluster.go +++ b/service/rds/api_op_DeleteDBCluster.go @@ -35,6 +35,7 @@ func (c *Client) DeleteDBCluster(ctx context.Context, params *DeleteDBClusterInp return out, nil } +// type DeleteDBClusterInput struct { // The DB cluster identifier for the DB cluster to be deleted. This parameter isn't diff --git a/service/rds/api_op_DeleteDBClusterParameterGroup.go b/service/rds/api_op_DeleteDBClusterParameterGroup.go index 536fdda7535..2799e136e82 100644 --- a/service/rds/api_op_DeleteDBClusterParameterGroup.go +++ b/service/rds/api_op_DeleteDBClusterParameterGroup.go @@ -33,6 +33,7 @@ func (c *Client) DeleteDBClusterParameterGroup(ctx context.Context, params *Dele return out, nil } +// type DeleteDBClusterParameterGroupInput struct { // The name of the DB cluster parameter group. Constraints: diff --git a/service/rds/api_op_DeleteDBClusterSnapshot.go b/service/rds/api_op_DeleteDBClusterSnapshot.go index af2cc9ca2ba..6ec73ebd01d 100644 --- a/service/rds/api_op_DeleteDBClusterSnapshot.go +++ b/service/rds/api_op_DeleteDBClusterSnapshot.go @@ -35,6 +35,7 @@ func (c *Client) DeleteDBClusterSnapshot(ctx context.Context, params *DeleteDBCl return out, nil } +// type DeleteDBClusterSnapshotInput struct { // The identifier of the DB cluster snapshot to delete. Constraints: Must be the diff --git a/service/rds/api_op_DeleteDBInstance.go b/service/rds/api_op_DeleteDBInstance.go index eb7502558ef..10daaf4588e 100644 --- a/service/rds/api_op_DeleteDBInstance.go +++ b/service/rds/api_op_DeleteDBInstance.go @@ -49,6 +49,7 @@ func (c *Client) DeleteDBInstance(ctx context.Context, params *DeleteDBInstanceI return out, nil } +// type DeleteDBInstanceInput struct { // The DB instance identifier for the DB instance to be deleted. This parameter diff --git a/service/rds/api_op_DeleteDBParameterGroup.go b/service/rds/api_op_DeleteDBParameterGroup.go index f10dcfa9ef6..5cf874c7988 100644 --- a/service/rds/api_op_DeleteDBParameterGroup.go +++ b/service/rds/api_op_DeleteDBParameterGroup.go @@ -27,6 +27,7 @@ func (c *Client) DeleteDBParameterGroup(ctx context.Context, params *DeleteDBPar return out, nil } +// type DeleteDBParameterGroupInput struct { // The name of the DB parameter group. Constraints: diff --git a/service/rds/api_op_DeleteDBSecurityGroup.go b/service/rds/api_op_DeleteDBSecurityGroup.go index fbc79be52fe..daca03c0910 100644 --- a/service/rds/api_op_DeleteDBSecurityGroup.go +++ b/service/rds/api_op_DeleteDBSecurityGroup.go @@ -36,6 +36,7 @@ func (c *Client) DeleteDBSecurityGroup(ctx context.Context, params *DeleteDBSecu return out, nil } +// type DeleteDBSecurityGroupInput struct { // The name of the DB security group to delete. You can't delete the default DB diff --git a/service/rds/api_op_DeleteDBSnapshot.go b/service/rds/api_op_DeleteDBSnapshot.go index 146d3a123d5..e404373c418 100644 --- a/service/rds/api_op_DeleteDBSnapshot.go +++ b/service/rds/api_op_DeleteDBSnapshot.go @@ -28,6 +28,7 @@ func (c *Client) DeleteDBSnapshot(ctx context.Context, params *DeleteDBSnapshotI return out, nil } +// type DeleteDBSnapshotInput struct { // The DB snapshot identifier. Constraints: Must be the name of an existing DB diff --git a/service/rds/api_op_DeleteDBSubnetGroup.go b/service/rds/api_op_DeleteDBSubnetGroup.go index 86087feaf48..10d95051094 100644 --- a/service/rds/api_op_DeleteDBSubnetGroup.go +++ b/service/rds/api_op_DeleteDBSubnetGroup.go @@ -27,6 +27,7 @@ func (c *Client) DeleteDBSubnetGroup(ctx context.Context, params *DeleteDBSubnet return out, nil } +// type DeleteDBSubnetGroupInput struct { // The name of the database subnet group to delete. You can't delete the default diff --git a/service/rds/api_op_DeleteEventSubscription.go b/service/rds/api_op_DeleteEventSubscription.go index 52b538d98c1..d6579a50938 100644 --- a/service/rds/api_op_DeleteEventSubscription.go +++ b/service/rds/api_op_DeleteEventSubscription.go @@ -27,6 +27,7 @@ func (c *Client) DeleteEventSubscription(ctx context.Context, params *DeleteEven return out, nil } +// type DeleteEventSubscriptionInput struct { // The name of the RDS event notification subscription you want to delete. diff --git a/service/rds/api_op_DeleteOptionGroup.go b/service/rds/api_op_DeleteOptionGroup.go index 0086bba5d71..a8efbad9cff 100644 --- a/service/rds/api_op_DeleteOptionGroup.go +++ b/service/rds/api_op_DeleteOptionGroup.go @@ -26,6 +26,7 @@ func (c *Client) DeleteOptionGroup(ctx context.Context, params *DeleteOptionGrou return out, nil } +// type DeleteOptionGroupInput struct { // The name of the option group to be deleted. You can't delete default option diff --git a/service/rds/api_op_DescribeAccountAttributes.go b/service/rds/api_op_DescribeAccountAttributes.go index d950fb295d3..334b902f4f7 100644 --- a/service/rds/api_op_DescribeAccountAttributes.go +++ b/service/rds/api_op_DescribeAccountAttributes.go @@ -30,6 +30,7 @@ func (c *Client) DescribeAccountAttributes(ctx context.Context, params *Describe return out, nil } +// type DescribeAccountAttributesInput struct { noSmithyDocumentSerde } diff --git a/service/rds/api_op_DescribeCertificates.go b/service/rds/api_op_DescribeCertificates.go index 476c9da6530..501391b1c06 100644 --- a/service/rds/api_op_DescribeCertificates.go +++ b/service/rds/api_op_DescribeCertificates.go @@ -29,6 +29,7 @@ func (c *Client) DescribeCertificates(ctx context.Context, params *DescribeCerti return out, nil } +// type DescribeCertificatesInput struct { // The user-supplied certificate identifier. If this parameter is specified, diff --git a/service/rds/api_op_DescribeDBClusterBacktracks.go b/service/rds/api_op_DescribeDBClusterBacktracks.go index e928b45f74c..82f9d07b328 100644 --- a/service/rds/api_op_DescribeDBClusterBacktracks.go +++ b/service/rds/api_op_DescribeDBClusterBacktracks.go @@ -32,6 +32,7 @@ func (c *Client) DescribeDBClusterBacktracks(ctx context.Context, params *Descri return out, nil } +// type DescribeDBClusterBacktracksInput struct { // The DB cluster identifier of the DB cluster to be described. This parameter is diff --git a/service/rds/api_op_DescribeDBClusterParameterGroups.go b/service/rds/api_op_DescribeDBClusterParameterGroups.go index 4ba485a8823..bc7048a57d0 100644 --- a/service/rds/api_op_DescribeDBClusterParameterGroups.go +++ b/service/rds/api_op_DescribeDBClusterParameterGroups.go @@ -36,6 +36,7 @@ func (c *Client) DescribeDBClusterParameterGroups(ctx context.Context, params *D return out, nil } +// type DescribeDBClusterParameterGroupsInput struct { // The name of a specific DB cluster parameter group to return details for. @@ -63,6 +64,7 @@ type DescribeDBClusterParameterGroupsInput struct { noSmithyDocumentSerde } +// type DescribeDBClusterParameterGroupsOutput struct { // A list of DB cluster parameter groups. diff --git a/service/rds/api_op_DescribeDBClusterParameters.go b/service/rds/api_op_DescribeDBClusterParameters.go index d2b85e883c0..24df6230fb3 100644 --- a/service/rds/api_op_DescribeDBClusterParameters.go +++ b/service/rds/api_op_DescribeDBClusterParameters.go @@ -34,6 +34,7 @@ func (c *Client) DescribeDBClusterParameters(ctx context.Context, params *Descri return out, nil } +// type DescribeDBClusterParametersInput struct { // The name of a specific DB cluster parameter group to return parameter details diff --git a/service/rds/api_op_DescribeDBClusterSnapshotAttributes.go b/service/rds/api_op_DescribeDBClusterSnapshotAttributes.go index f12d66331b1..4baa489bca9 100644 --- a/service/rds/api_op_DescribeDBClusterSnapshotAttributes.go +++ b/service/rds/api_op_DescribeDBClusterSnapshotAttributes.go @@ -36,6 +36,7 @@ func (c *Client) DescribeDBClusterSnapshotAttributes(ctx context.Context, params return out, nil } +// type DescribeDBClusterSnapshotAttributesInput struct { // The identifier for the DB cluster snapshot to describe the attributes for. diff --git a/service/rds/api_op_DescribeDBClusterSnapshots.go b/service/rds/api_op_DescribeDBClusterSnapshots.go index 53cc2b06bef..15f26887831 100644 --- a/service/rds/api_op_DescribeDBClusterSnapshots.go +++ b/service/rds/api_op_DescribeDBClusterSnapshots.go @@ -41,6 +41,7 @@ func (c *Client) DescribeDBClusterSnapshots(ctx context.Context, params *Describ return out, nil } +// type DescribeDBClusterSnapshotsInput struct { // The ID of the DB cluster to retrieve the list of DB cluster snapshots for. This diff --git a/service/rds/api_op_DescribeDBClusters.go b/service/rds/api_op_DescribeDBClusters.go index 0162932dc33..c904090ae5d 100644 --- a/service/rds/api_op_DescribeDBClusters.go +++ b/service/rds/api_op_DescribeDBClusters.go @@ -42,6 +42,7 @@ func (c *Client) DescribeDBClusters(ctx context.Context, params *DescribeDBClust return out, nil } +// type DescribeDBClustersInput struct { // The user-supplied DB cluster identifier or the Amazon Resource Name (ARN) of the diff --git a/service/rds/api_op_DescribeDBInstances.go b/service/rds/api_op_DescribeDBInstances.go index 5de86fc644e..7f66eab165a 100644 --- a/service/rds/api_op_DescribeDBInstances.go +++ b/service/rds/api_op_DescribeDBInstances.go @@ -37,6 +37,7 @@ func (c *Client) DescribeDBInstances(ctx context.Context, params *DescribeDBInst return out, nil } +// type DescribeDBInstancesInput struct { // The user-supplied instance identifier or the Amazon Resource Name (ARN) of the diff --git a/service/rds/api_op_DescribeDBLogFiles.go b/service/rds/api_op_DescribeDBLogFiles.go index 7c5234815e0..ad2f25b99e9 100644 --- a/service/rds/api_op_DescribeDBLogFiles.go +++ b/service/rds/api_op_DescribeDBLogFiles.go @@ -29,6 +29,7 @@ func (c *Client) DescribeDBLogFiles(ctx context.Context, params *DescribeDBLogFi return out, nil } +// type DescribeDBLogFilesInput struct { // The customer-assigned name of the DB instance that contains the log files you diff --git a/service/rds/api_op_DescribeDBParameterGroups.go b/service/rds/api_op_DescribeDBParameterGroups.go index ab9882630c3..d855acd28f6 100644 --- a/service/rds/api_op_DescribeDBParameterGroups.go +++ b/service/rds/api_op_DescribeDBParameterGroups.go @@ -30,6 +30,7 @@ func (c *Client) DescribeDBParameterGroups(ctx context.Context, params *Describe return out, nil } +// type DescribeDBParameterGroupsInput struct { // The name of a specific DB parameter group to return details for. Constraints: diff --git a/service/rds/api_op_DescribeDBSecurityGroups.go b/service/rds/api_op_DescribeDBSecurityGroups.go index cb444a2c811..35db49bb69c 100644 --- a/service/rds/api_op_DescribeDBSecurityGroups.go +++ b/service/rds/api_op_DescribeDBSecurityGroups.go @@ -39,6 +39,7 @@ func (c *Client) DescribeDBSecurityGroups(ctx context.Context, params *DescribeD return out, nil } +// type DescribeDBSecurityGroupsInput struct { // The name of the DB security group to return details for. diff --git a/service/rds/api_op_DescribeDBSnapshotAttributes.go b/service/rds/api_op_DescribeDBSnapshotAttributes.go index 215606666d0..09958d3912b 100644 --- a/service/rds/api_op_DescribeDBSnapshotAttributes.go +++ b/service/rds/api_op_DescribeDBSnapshotAttributes.go @@ -35,6 +35,7 @@ func (c *Client) DescribeDBSnapshotAttributes(ctx context.Context, params *Descr return out, nil } +// type DescribeDBSnapshotAttributesInput struct { // The identifier for the DB snapshot to describe the attributes for. diff --git a/service/rds/api_op_DescribeDBSnapshots.go b/service/rds/api_op_DescribeDBSnapshots.go index 1de68abb50f..a1f8ce09901 100644 --- a/service/rds/api_op_DescribeDBSnapshots.go +++ b/service/rds/api_op_DescribeDBSnapshots.go @@ -35,6 +35,7 @@ func (c *Client) DescribeDBSnapshots(ctx context.Context, params *DescribeDBSnap return out, nil } +// type DescribeDBSnapshotsInput struct { // The ID of the DB instance to retrieve the list of DB snapshots for. This diff --git a/service/rds/api_op_DescribeDBSubnetGroups.go b/service/rds/api_op_DescribeDBSubnetGroups.go index 8009844f086..daafd8fdb7d 100644 --- a/service/rds/api_op_DescribeDBSubnetGroups.go +++ b/service/rds/api_op_DescribeDBSubnetGroups.go @@ -31,6 +31,7 @@ func (c *Client) DescribeDBSubnetGroups(ctx context.Context, params *DescribeDBS return out, nil } +// type DescribeDBSubnetGroupsInput struct { // The name of the DB subnet group to return details for. diff --git a/service/rds/api_op_DescribeEngineDefaultClusterParameters.go b/service/rds/api_op_DescribeEngineDefaultClusterParameters.go index 4e8218b3313..b8e6601840b 100644 --- a/service/rds/api_op_DescribeEngineDefaultClusterParameters.go +++ b/service/rds/api_op_DescribeEngineDefaultClusterParameters.go @@ -31,6 +31,7 @@ func (c *Client) DescribeEngineDefaultClusterParameters(ctx context.Context, par return out, nil } +// type DescribeEngineDefaultClusterParametersInput struct { // The name of the DB cluster parameter group family to return engine parameter diff --git a/service/rds/api_op_DescribeEngineDefaultParameters.go b/service/rds/api_op_DescribeEngineDefaultParameters.go index 08353bebd29..0ce3817e298 100644 --- a/service/rds/api_op_DescribeEngineDefaultParameters.go +++ b/service/rds/api_op_DescribeEngineDefaultParameters.go @@ -29,6 +29,7 @@ func (c *Client) DescribeEngineDefaultParameters(ctx context.Context, params *De return out, nil } +// type DescribeEngineDefaultParametersInput struct { // The name of the DB parameter group family. Valid Values: diff --git a/service/rds/api_op_DescribeEventCategories.go b/service/rds/api_op_DescribeEventCategories.go index e9a277f8283..a2c6d96ae05 100644 --- a/service/rds/api_op_DescribeEventCategories.go +++ b/service/rds/api_op_DescribeEventCategories.go @@ -32,6 +32,7 @@ func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEv return out, nil } +// type DescribeEventCategoriesInput struct { // This parameter isn't currently supported. diff --git a/service/rds/api_op_DescribeEventSubscriptions.go b/service/rds/api_op_DescribeEventSubscriptions.go index 4e03de96e40..de81347b05c 100644 --- a/service/rds/api_op_DescribeEventSubscriptions.go +++ b/service/rds/api_op_DescribeEventSubscriptions.go @@ -31,6 +31,7 @@ func (c *Client) DescribeEventSubscriptions(ctx context.Context, params *Describ return out, nil } +// type DescribeEventSubscriptionsInput struct { // This parameter isn't currently supported. diff --git a/service/rds/api_op_DescribeEvents.go b/service/rds/api_op_DescribeEvents.go index 314ad8d31ba..ccdae4e5eb2 100644 --- a/service/rds/api_op_DescribeEvents.go +++ b/service/rds/api_op_DescribeEvents.go @@ -39,6 +39,7 @@ func (c *Client) DescribeEvents(ctx context.Context, params *DescribeEventsInput return out, nil } +// type DescribeEventsInput struct { // The number of minutes to retrieve events for. Default: 60 diff --git a/service/rds/api_op_DescribeOptionGroupOptions.go b/service/rds/api_op_DescribeOptionGroupOptions.go index 50bb0bfa7af..fb8164267fe 100644 --- a/service/rds/api_op_DescribeOptionGroupOptions.go +++ b/service/rds/api_op_DescribeOptionGroupOptions.go @@ -28,6 +28,7 @@ func (c *Client) DescribeOptionGroupOptions(ctx context.Context, params *Describ return out, nil } +// type DescribeOptionGroupOptionsInput struct { // A required parameter. Options available for the given engine name are described. @@ -81,6 +82,7 @@ type DescribeOptionGroupOptionsInput struct { noSmithyDocumentSerde } +// type DescribeOptionGroupOptionsOutput struct { // An optional pagination token provided by a previous request. If this parameter diff --git a/service/rds/api_op_DescribeOptionGroups.go b/service/rds/api_op_DescribeOptionGroups.go index e0f49927b2e..55a86678568 100644 --- a/service/rds/api_op_DescribeOptionGroups.go +++ b/service/rds/api_op_DescribeOptionGroups.go @@ -28,6 +28,7 @@ func (c *Client) DescribeOptionGroups(ctx context.Context, params *DescribeOptio return out, nil } +// type DescribeOptionGroupsInput struct { // Filters the list of option groups to only include groups associated with a diff --git a/service/rds/api_op_DescribeOrderableDBInstanceOptions.go b/service/rds/api_op_DescribeOrderableDBInstanceOptions.go index e40e3a8aad4..497936a5f38 100644 --- a/service/rds/api_op_DescribeOrderableDBInstanceOptions.go +++ b/service/rds/api_op_DescribeOrderableDBInstanceOptions.go @@ -29,6 +29,7 @@ func (c *Client) DescribeOrderableDBInstanceOptions(ctx context.Context, params return out, nil } +// type DescribeOrderableDBInstanceOptionsInput struct { // The name of the engine to retrieve DB instance options for. Valid Values: diff --git a/service/rds/api_op_DescribePendingMaintenanceActions.go b/service/rds/api_op_DescribePendingMaintenanceActions.go index e48bf3996d6..01c0a994526 100644 --- a/service/rds/api_op_DescribePendingMaintenanceActions.go +++ b/service/rds/api_op_DescribePendingMaintenanceActions.go @@ -29,6 +29,7 @@ func (c *Client) DescribePendingMaintenanceActions(ctx context.Context, params * return out, nil } +// type DescribePendingMaintenanceActionsInput struct { // A filter that specifies one or more resources to return pending maintenance diff --git a/service/rds/api_op_DescribeReservedDBInstances.go b/service/rds/api_op_DescribeReservedDBInstances.go index 655ea1fafca..161c4ca60a7 100644 --- a/service/rds/api_op_DescribeReservedDBInstances.go +++ b/service/rds/api_op_DescribeReservedDBInstances.go @@ -29,6 +29,7 @@ func (c *Client) DescribeReservedDBInstances(ctx context.Context, params *Descri return out, nil } +// type DescribeReservedDBInstancesInput struct { // The DB instance class filter value. Specify this parameter to show only those diff --git a/service/rds/api_op_DescribeReservedDBInstancesOfferings.go b/service/rds/api_op_DescribeReservedDBInstancesOfferings.go index 311bea8e35b..0c9e1f23ff8 100644 --- a/service/rds/api_op_DescribeReservedDBInstancesOfferings.go +++ b/service/rds/api_op_DescribeReservedDBInstancesOfferings.go @@ -28,6 +28,7 @@ func (c *Client) DescribeReservedDBInstancesOfferings(ctx context.Context, param return out, nil } +// type DescribeReservedDBInstancesOfferingsInput struct { // The DB instance class filter value. Specify this parameter to show only the diff --git a/service/rds/api_op_DescribeSourceRegions.go b/service/rds/api_op_DescribeSourceRegions.go index be3c7700a3f..eed023f27d6 100644 --- a/service/rds/api_op_DescribeSourceRegions.go +++ b/service/rds/api_op_DescribeSourceRegions.go @@ -36,6 +36,7 @@ func (c *Client) DescribeSourceRegions(ctx context.Context, params *DescribeSour return out, nil } +// type DescribeSourceRegionsInput struct { // This parameter isn't currently supported. diff --git a/service/rds/api_op_DescribeValidDBInstanceModifications.go b/service/rds/api_op_DescribeValidDBInstanceModifications.go index 16cd3354614..ad76eb771c1 100644 --- a/service/rds/api_op_DescribeValidDBInstanceModifications.go +++ b/service/rds/api_op_DescribeValidDBInstanceModifications.go @@ -29,6 +29,7 @@ func (c *Client) DescribeValidDBInstanceModifications(ctx context.Context, param return out, nil } +// type DescribeValidDBInstanceModificationsInput struct { // The customer identifier or the ARN of your DB instance. diff --git a/service/rds/api_op_DownloadDBLogFilePortion.go b/service/rds/api_op_DownloadDBLogFilePortion.go index 44feb8e8767..89c97d235ba 100644 --- a/service/rds/api_op_DownloadDBLogFilePortion.go +++ b/service/rds/api_op_DownloadDBLogFilePortion.go @@ -28,6 +28,7 @@ func (c *Client) DownloadDBLogFilePortion(ctx context.Context, params *DownloadD return out, nil } +// type DownloadDBLogFilePortionInput struct { // The customer-assigned name of the DB instance that contains the log files you diff --git a/service/rds/api_op_FailoverDBCluster.go b/service/rds/api_op_FailoverDBCluster.go index 04f408ac806..e894b2fc5ea 100644 --- a/service/rds/api_op_FailoverDBCluster.go +++ b/service/rds/api_op_FailoverDBCluster.go @@ -44,6 +44,7 @@ func (c *Client) FailoverDBCluster(ctx context.Context, params *FailoverDBCluste return out, nil } +// type FailoverDBClusterInput struct { // A DB cluster identifier to force a failover for. This parameter isn't diff --git a/service/rds/api_op_ListTagsForResource.go b/service/rds/api_op_ListTagsForResource.go index d1c100b6558..5b9c2c73d80 100644 --- a/service/rds/api_op_ListTagsForResource.go +++ b/service/rds/api_op_ListTagsForResource.go @@ -30,6 +30,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes return out, nil } +// type ListTagsForResourceInput struct { // The Amazon RDS resource with tags to be listed. This value is an Amazon Resource @@ -47,6 +48,7 @@ type ListTagsForResourceInput struct { noSmithyDocumentSerde } +// type ListTagsForResourceOutput struct { // List of tags returned by the ListTagsForResource operation. diff --git a/service/rds/api_op_ModifyDBCluster.go b/service/rds/api_op_ModifyDBCluster.go index c664fdfd1a7..60a6721a467 100644 --- a/service/rds/api_op_ModifyDBCluster.go +++ b/service/rds/api_op_ModifyDBCluster.go @@ -35,6 +35,7 @@ func (c *Client) ModifyDBCluster(ctx context.Context, params *ModifyDBClusterInp return out, nil } +// type ModifyDBClusterInput struct { // The DB cluster identifier for the cluster being modified. This parameter isn't diff --git a/service/rds/api_op_ModifyDBClusterParameterGroup.go b/service/rds/api_op_ModifyDBClusterParameterGroup.go index 7696620d13f..6b81d6db2d0 100644 --- a/service/rds/api_op_ModifyDBClusterParameterGroup.go +++ b/service/rds/api_op_ModifyDBClusterParameterGroup.go @@ -50,6 +50,7 @@ func (c *Client) ModifyDBClusterParameterGroup(ctx context.Context, params *Modi return out, nil } +// type ModifyDBClusterParameterGroupInput struct { // The name of the DB cluster parameter group to modify. @@ -72,6 +73,7 @@ type ModifyDBClusterParameterGroupInput struct { noSmithyDocumentSerde } +// type ModifyDBClusterParameterGroupOutput struct { // The name of the DB cluster parameter group. Constraints: diff --git a/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go b/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go index 9e0e0b7df9c..a84a672b8c1 100644 --- a/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go +++ b/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go @@ -42,6 +42,7 @@ func (c *Client) ModifyDBClusterSnapshotAttribute(ctx context.Context, params *M return out, nil } +// type ModifyDBClusterSnapshotAttributeInput struct { // The name of the DB cluster snapshot attribute to modify. To manage authorization diff --git a/service/rds/api_op_ModifyDBInstance.go b/service/rds/api_op_ModifyDBInstance.go index 6a49ae6c4c8..0c03cb0640b 100644 --- a/service/rds/api_op_ModifyDBInstance.go +++ b/service/rds/api_op_ModifyDBInstance.go @@ -30,6 +30,7 @@ func (c *Client) ModifyDBInstance(ctx context.Context, params *ModifyDBInstanceI return out, nil } +// type ModifyDBInstanceInput struct { // The DB instance identifier. This value is stored as a lowercase string. diff --git a/service/rds/api_op_ModifyDBParameterGroup.go b/service/rds/api_op_ModifyDBParameterGroup.go index dd8fe8f6a1d..985f69ff0c3 100644 --- a/service/rds/api_op_ModifyDBParameterGroup.go +++ b/service/rds/api_op_ModifyDBParameterGroup.go @@ -39,6 +39,7 @@ func (c *Client) ModifyDBParameterGroup(ctx context.Context, params *ModifyDBPar return out, nil } +// type ModifyDBParameterGroupInput struct { // The name of the DB parameter group. Constraints: diff --git a/service/rds/api_op_ModifyDBSnapshotAttribute.go b/service/rds/api_op_ModifyDBSnapshotAttribute.go index b746008caaa..1c9b4e5e5c5 100644 --- a/service/rds/api_op_ModifyDBSnapshotAttribute.go +++ b/service/rds/api_op_ModifyDBSnapshotAttribute.go @@ -41,6 +41,7 @@ func (c *Client) ModifyDBSnapshotAttribute(ctx context.Context, params *ModifyDB return out, nil } +// type ModifyDBSnapshotAttributeInput struct { // The name of the DB snapshot attribute to modify. To manage authorization for diff --git a/service/rds/api_op_ModifyDBSubnetGroup.go b/service/rds/api_op_ModifyDBSubnetGroup.go index ae1163f958c..eff6a1711b2 100644 --- a/service/rds/api_op_ModifyDBSubnetGroup.go +++ b/service/rds/api_op_ModifyDBSubnetGroup.go @@ -28,6 +28,7 @@ func (c *Client) ModifyDBSubnetGroup(ctx context.Context, params *ModifyDBSubnet return out, nil } +// type ModifyDBSubnetGroupInput struct { // The name for the DB subnet group. This value is stored as a lowercase string. diff --git a/service/rds/api_op_ModifyEventSubscription.go b/service/rds/api_op_ModifyEventSubscription.go index 697833d6817..c745d1e8f4b 100644 --- a/service/rds/api_op_ModifyEventSubscription.go +++ b/service/rds/api_op_ModifyEventSubscription.go @@ -33,6 +33,7 @@ func (c *Client) ModifyEventSubscription(ctx context.Context, params *ModifyEven return out, nil } +// type ModifyEventSubscriptionInput struct { // The name of the RDS event notification subscription. diff --git a/service/rds/api_op_ModifyOptionGroup.go b/service/rds/api_op_ModifyOptionGroup.go index a04b21a7b86..2a795bad996 100644 --- a/service/rds/api_op_ModifyOptionGroup.go +++ b/service/rds/api_op_ModifyOptionGroup.go @@ -27,6 +27,7 @@ func (c *Client) ModifyOptionGroup(ctx context.Context, params *ModifyOptionGrou return out, nil } +// type ModifyOptionGroupInput struct { // The name of the option group to be modified. Permanent options, such as the TDE diff --git a/service/rds/api_op_PromoteReadReplica.go b/service/rds/api_op_PromoteReadReplica.go index 9c427283fb8..8d34913b0e7 100644 --- a/service/rds/api_op_PromoteReadReplica.go +++ b/service/rds/api_op_PromoteReadReplica.go @@ -39,6 +39,7 @@ func (c *Client) PromoteReadReplica(ctx context.Context, params *PromoteReadRepl return out, nil } +// type PromoteReadReplicaInput struct { // The DB instance identifier. This value is stored as a lowercase string. diff --git a/service/rds/api_op_PromoteReadReplicaDBCluster.go b/service/rds/api_op_PromoteReadReplicaDBCluster.go index 18686fcceee..54faf7b3817 100644 --- a/service/rds/api_op_PromoteReadReplicaDBCluster.go +++ b/service/rds/api_op_PromoteReadReplicaDBCluster.go @@ -27,6 +27,7 @@ func (c *Client) PromoteReadReplicaDBCluster(ctx context.Context, params *Promot return out, nil } +// type PromoteReadReplicaDBClusterInput struct { // The identifier of the DB cluster read replica to promote. This parameter isn't diff --git a/service/rds/api_op_PurchaseReservedDBInstancesOffering.go b/service/rds/api_op_PurchaseReservedDBInstancesOffering.go index 7dabeff7bc6..d14e13cc8a5 100644 --- a/service/rds/api_op_PurchaseReservedDBInstancesOffering.go +++ b/service/rds/api_op_PurchaseReservedDBInstancesOffering.go @@ -27,6 +27,7 @@ func (c *Client) PurchaseReservedDBInstancesOffering(ctx context.Context, params return out, nil } +// type PurchaseReservedDBInstancesOfferingInput struct { // The ID of the Reserved DB instance offering to purchase. Example: diff --git a/service/rds/api_op_RebootDBInstance.go b/service/rds/api_op_RebootDBInstance.go index bf5f1749310..1ab2141b8df 100644 --- a/service/rds/api_op_RebootDBInstance.go +++ b/service/rds/api_op_RebootDBInstance.go @@ -37,6 +37,7 @@ func (c *Client) RebootDBInstance(ctx context.Context, params *RebootDBInstanceI return out, nil } +// type RebootDBInstanceInput struct { // The DB instance identifier. This parameter is stored as a lowercase string. diff --git a/service/rds/api_op_RemoveSourceIdentifierFromSubscription.go b/service/rds/api_op_RemoveSourceIdentifierFromSubscription.go index 022fadb39b1..96546ff4741 100644 --- a/service/rds/api_op_RemoveSourceIdentifierFromSubscription.go +++ b/service/rds/api_op_RemoveSourceIdentifierFromSubscription.go @@ -28,6 +28,7 @@ func (c *Client) RemoveSourceIdentifierFromSubscription(ctx context.Context, par return out, nil } +// type RemoveSourceIdentifierFromSubscriptionInput struct { // The source identifier to be removed from the subscription, such as the DB diff --git a/service/rds/api_op_RemoveTagsFromResource.go b/service/rds/api_op_RemoveTagsFromResource.go index a27e28cdff3..0b622f1a7b1 100644 --- a/service/rds/api_op_RemoveTagsFromResource.go +++ b/service/rds/api_op_RemoveTagsFromResource.go @@ -29,6 +29,7 @@ func (c *Client) RemoveTagsFromResource(ctx context.Context, params *RemoveTagsF return out, nil } +// type RemoveTagsFromResourceInput struct { // The Amazon RDS resource that the tags are removed from. This value is an Amazon diff --git a/service/rds/api_op_ResetDBClusterParameterGroup.go b/service/rds/api_op_ResetDBClusterParameterGroup.go index 44cfa258338..bb12489ff35 100644 --- a/service/rds/api_op_ResetDBClusterParameterGroup.go +++ b/service/rds/api_op_ResetDBClusterParameterGroup.go @@ -41,6 +41,7 @@ func (c *Client) ResetDBClusterParameterGroup(ctx context.Context, params *Reset return out, nil } +// type ResetDBClusterParameterGroupInput struct { // The name of the DB cluster parameter group to reset. @@ -61,6 +62,7 @@ type ResetDBClusterParameterGroupInput struct { noSmithyDocumentSerde } +// type ResetDBClusterParameterGroupOutput struct { // The name of the DB cluster parameter group. Constraints: diff --git a/service/rds/api_op_ResetDBParameterGroup.go b/service/rds/api_op_ResetDBParameterGroup.go index f485eeb0085..b8f46c85f08 100644 --- a/service/rds/api_op_ResetDBParameterGroup.go +++ b/service/rds/api_op_ResetDBParameterGroup.go @@ -33,6 +33,7 @@ func (c *Client) ResetDBParameterGroup(ctx context.Context, params *ResetDBParam return out, nil } +// type ResetDBParameterGroupInput struct { // The name of the DB parameter group. Constraints: diff --git a/service/rds/api_op_RestoreDBClusterFromSnapshot.go b/service/rds/api_op_RestoreDBClusterFromSnapshot.go index 1a91fa9d288..597de0aafcd 100644 --- a/service/rds/api_op_RestoreDBClusterFromSnapshot.go +++ b/service/rds/api_op_RestoreDBClusterFromSnapshot.go @@ -41,6 +41,7 @@ func (c *Client) RestoreDBClusterFromSnapshot(ctx context.Context, params *Resto return out, nil } +// type RestoreDBClusterFromSnapshotInput struct { // The name of the DB cluster to create from the DB snapshot or DB cluster diff --git a/service/rds/api_op_RestoreDBClusterToPointInTime.go b/service/rds/api_op_RestoreDBClusterToPointInTime.go index 09049899154..0933083ae00 100644 --- a/service/rds/api_op_RestoreDBClusterToPointInTime.go +++ b/service/rds/api_op_RestoreDBClusterToPointInTime.go @@ -44,6 +44,7 @@ func (c *Client) RestoreDBClusterToPointInTime(ctx context.Context, params *Rest return out, nil } +// type RestoreDBClusterToPointInTimeInput struct { // The name of the new DB cluster to be created. Constraints: diff --git a/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go b/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go index 3aeffb30e4c..ce6e43a029d 100644 --- a/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go +++ b/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go @@ -43,6 +43,7 @@ func (c *Client) RestoreDBInstanceFromDBSnapshot(ctx context.Context, params *Re return out, nil } +// type RestoreDBInstanceFromDBSnapshotInput struct { // Name of the DB instance to create from the DB snapshot. This parameter isn't diff --git a/service/rds/api_op_RestoreDBInstanceToPointInTime.go b/service/rds/api_op_RestoreDBInstanceToPointInTime.go index b3c5237bdff..cca3a28d4f5 100644 --- a/service/rds/api_op_RestoreDBInstanceToPointInTime.go +++ b/service/rds/api_op_RestoreDBInstanceToPointInTime.go @@ -38,6 +38,7 @@ func (c *Client) RestoreDBInstanceToPointInTime(ctx context.Context, params *Res return out, nil } +// type RestoreDBInstanceToPointInTimeInput struct { // The name of the new DB instance to be created. Constraints: diff --git a/service/rds/api_op_RevokeDBSecurityGroupIngress.go b/service/rds/api_op_RevokeDBSecurityGroupIngress.go index 52e1959692b..147daf317ff 100644 --- a/service/rds/api_op_RevokeDBSecurityGroupIngress.go +++ b/service/rds/api_op_RevokeDBSecurityGroupIngress.go @@ -40,6 +40,7 @@ func (c *Client) RevokeDBSecurityGroupIngress(ctx context.Context, params *Revok return out, nil } +// type RevokeDBSecurityGroupIngressInput struct { // The name of the DB security group to revoke ingress from. diff --git a/service/rds/types/errors.go b/service/rds/types/errors.go index 905729b8aa3..3b4a9dd2902 100644 --- a/service/rds/types/errors.go +++ b/service/rds/types/errors.go @@ -12,6 +12,8 @@ import ( type AuthorizationAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "AuthorizationAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AuthorizationNotFound" + } + return *e.Code +} func (e *AuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB security group authorization quota has been reached. type AuthorizationQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "AuthorizationQuotaExceeded" + } + return *e.Code +} func (e *AuthorizationQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type BackupPolicyNotFoundFault struct { Message *string + Code *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.Code == nil { + return "BackupPolicyNotFoundFault" + } + return *e.Code +} func (e *BackupPolicyNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A blue/green deployment with the specified name already exists. type BlueGreenDeploymentAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorCode() string { - return "BlueGreenDeploymentAlreadyExistsFault" + if e.Code == nil { + return "BlueGreenDeploymentAlreadyExistsFault" + } + return *e.Code } func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -113,6 +146,8 @@ func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type BlueGreenDeploymentNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -126,7 +161,10 @@ func (e *BlueGreenDeploymentNotFoundFault) ErrorMessage() string { return *e.Message } func (e *BlueGreenDeploymentNotFoundFault) ErrorCode() string { - return "BlueGreenDeploymentNotFoundFault" + if e.Code == nil { + return "BlueGreenDeploymentNotFoundFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "CertificateNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -167,7 +214,10 @@ func (e *CustomAvailabilityZoneNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CustomAvailabilityZoneNotFoundFault) ErrorCode() string { - return "CustomAvailabilityZoneNotFound" + if e.Code == nil { + return "CustomAvailabilityZoneNotFound" + } + return *e.Code } func (e *CustomAvailabilityZoneNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -177,6 +227,8 @@ func (e *CustomAvailabilityZoneNotFoundFault) ErrorFault() smithy.ErrorFault { type CustomDBEngineVersionAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -190,7 +242,10 @@ func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorCode() string { - return "CustomDBEngineVersionAlreadyExistsFault" + if e.Code == nil { + return "CustomDBEngineVersionAlreadyExistsFault" + } + return *e.Code } func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -200,6 +255,8 @@ func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorFault() smithy.ErrorFault type CustomDBEngineVersionNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -213,7 +270,10 @@ func (e *CustomDBEngineVersionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionNotFoundFault) ErrorCode() string { - return "CustomDBEngineVersionNotFoundFault" + if e.Code == nil { + return "CustomDBEngineVersionNotFoundFault" + } + return *e.Code } func (e *CustomDBEngineVersionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -223,6 +283,8 @@ func (e *CustomDBEngineVersionNotFoundFault) ErrorFault() smithy.ErrorFault { type CustomDBEngineVersionQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -236,7 +298,10 @@ func (e *CustomDBEngineVersionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionQuotaExceededFault) ErrorCode() string { - return "CustomDBEngineVersionQuotaExceededFault" + if e.Code == nil { + return "CustomDBEngineVersionQuotaExceededFault" + } + return *e.Code } func (e *CustomDBEngineVersionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -246,6 +311,8 @@ func (e *CustomDBEngineVersionQuotaExceededFault) ErrorFault() smithy.ErrorFault type DBClusterAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBClusterAlreadyExistsFault" + } + return *e.Code +} func (e *DBClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // BacktrackIdentifier doesn't refer to an existing backtrack. type DBClusterBacktrackNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -278,7 +352,10 @@ func (e *DBClusterBacktrackNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterBacktrackNotFoundFault) ErrorCode() string { - return "DBClusterBacktrackNotFoundFault" + if e.Code == nil { + return "DBClusterBacktrackNotFoundFault" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -299,7 +378,10 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointAlreadyExistsFault) ErrorCode() string { - return "DBClusterEndpointAlreadyExistsFault" + if e.Code == nil { + return "DBClusterEndpointAlreadyExistsFault" + } + return *e.Code } func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -309,6 +391,8 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterEndpointNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterEndpointNotFoundFault" + } + return *e.Code +} func (e *DBClusterEndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster already has the maximum number of custom endpoints. type DBClusterEndpointQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -341,7 +432,10 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointQuotaExceededFault) ErrorCode() string { - return "DBClusterEndpointQuotaExceededFault" + if e.Code == nil { + return "DBClusterEndpointQuotaExceededFault" + } + return *e.Code } func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -351,6 +445,8 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBClusterNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -384,7 +487,10 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - return "DBClusterParameterGroupNotFound" + if e.Code == nil { + return "DBClusterParameterGroupNotFound" + } + return *e.Code } func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -395,6 +501,8 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type DBClusterQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "DBClusterQuotaExceededFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBClusterRoleAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBClusterRoleNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBClusterRoleQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -487,7 +623,10 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - return "DBClusterSnapshotAlreadyExistsFault" + if e.Code == nil { + return "DBClusterSnapshotAlreadyExistsFault" + } + return *e.Code } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -497,6 +636,8 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBClusterSnapshotNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBClusterSnapshotNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBInstanceAlreadyExists" + } + return *e.Code +} func (e *DBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No automated backup for this DB instance was found. type DBInstanceAutomatedBackupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -548,7 +703,10 @@ func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorCode() string { - return "DBInstanceAutomatedBackupNotFound" + if e.Code == nil { + return "DBInstanceAutomatedBackupNotFound" + } + return *e.Code } func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -560,6 +718,8 @@ func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorFault() smithy.ErrorFault type DBInstanceAutomatedBackupQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -573,7 +733,10 @@ func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorCode() string { - return "DBInstanceAutomatedBackupQuotaExceeded" + if e.Code == nil { + return "DBInstanceAutomatedBackupQuotaExceeded" + } + return *e.Code } func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -583,6 +746,8 @@ func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorFault() smithy.ErrorF type DBInstanceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBInstanceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBInstanceRoleAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBInstanceRoleNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBInstanceRoleQuotaExceeded" + } + return *e.Code +} func (e *DBInstanceRoleQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // LogFileName doesn't refer to an existing DB log file. type DBLogFileNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBLogFileNotFoundFault" + } + return *e.Code +} func (e *DBLogFileNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A DB parameter group with the same name exists. type DBParameterGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -694,7 +894,10 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - return "DBParameterGroupAlreadyExists" + if e.Code == nil { + return "DBParameterGroupAlreadyExists" + } + return *e.Code } func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -704,6 +907,8 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type DBParameterGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBParameterGroupNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -737,7 +949,10 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - return "DBParameterGroupQuotaExceeded" + if e.Code == nil { + return "DBParameterGroupQuotaExceeded" + } + return *e.Code } func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -748,6 +963,8 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type DBProxyAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBProxyAlreadyExistsFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -782,7 +1006,10 @@ func (e *DBProxyEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBProxyEndpointAlreadyExistsFault) ErrorCode() string { - return "DBProxyEndpointAlreadyExistsFault" + if e.Code == nil { + return "DBProxyEndpointAlreadyExistsFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DBProxyEndpointNotFoundFault" + } + return *e.Code +} func (e *DBProxyEndpointNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB proxy already has the maximum number of endpoints. type DBProxyEndpointQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -822,7 +1058,10 @@ func (e *DBProxyEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBProxyEndpointQuotaExceededFault) ErrorCode() string { - return "DBProxyEndpointQuotaExceededFault" + if e.Code == nil { + return "DBProxyEndpointQuotaExceededFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DBProxyNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBProxyQuotaExceededFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -884,7 +1139,10 @@ func (e *DBProxyTargetAlreadyRegisteredFault) ErrorMessage() string { return *e.Message } func (e *DBProxyTargetAlreadyRegisteredFault) ErrorCode() string { - return "DBProxyTargetAlreadyRegisteredFault" + if e.Code == nil { + return "DBProxyTargetAlreadyRegisteredFault" + } + return *e.Code } func (e *DBProxyTargetAlreadyRegisteredFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -895,6 +1153,8 @@ func (e *DBProxyTargetAlreadyRegisteredFault) ErrorFault() smithy.ErrorFault { type DBProxyTargetGroupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -908,7 +1168,10 @@ func (e *DBProxyTargetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBProxyTargetGroupNotFoundFault) ErrorCode() string { - return "DBProxyTargetGroupNotFoundFault" + if e.Code == nil { + return "DBProxyTargetGroupNotFoundFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DBProxyTargetNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBSecurityGroupAlreadyExists" + } + return *e.Code +} func (e *DBSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSecurityGroupName doesn't refer to an existing DB security group. type DBSecurityGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSecurityGroupNotFound" + } + return *e.Code +} func (e *DBSecurityGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A DB security group isn't allowed for this action. type DBSecurityGroupNotSupportedFault struct { Message *string + Code *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.Code == nil { + return "DBSecurityGroupNotSupported" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1009,7 +1302,10 @@ func (e *DBSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupQuotaExceededFault) ErrorCode() string { - return "QuotaExceeded.DBSecurityGroup" + if e.Code == nil { + return "QuotaExceeded.DBSecurityGroup" + } + return *e.Code } 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 + Code *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.Code == nil { + return "DBSnapshotAlreadyExists" + } + return *e.Code +} func (e *DBSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSnapshotIdentifier doesn't refer to an existing DB snapshot. type DBSnapshotNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSnapshotNotFound" + } + return *e.Code +} func (e *DBSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName is already used by an existing DB subnet group. type DBSubnetGroupAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "DBSubnetGroupAlreadyExists" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1088,7 +1407,10 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - return "DBSubnetGroupDoesNotCoverEnoughAZs" + if e.Code == nil { + return "DBSubnetGroupDoesNotCoverEnoughAZs" + } + return *e.Code } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1099,6 +1421,8 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorFault() smithy.ErrorFault { type DBSubnetGroupNotAllowedFault struct { Message *string + Code *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.Code == nil { + return "DBSubnetGroupNotAllowedFault" + } + return *e.Code +} func (e *DBSubnetGroupNotAllowedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // DBSubnetGroupName doesn't refer to an existing DB subnet group. type DBSubnetGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DBSubnetGroupNotFoundFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBSubnetGroupQuotaExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBSubnetQuotaExceededFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DBUpgradeDependencyFailure" + } + return *e.Code +} func (e *DBUpgradeDependencyFailureFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Domain doesn't refer to an existing Active Directory domain. type DomainNotFoundFault struct { Message *string + Code *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.Code == nil { + return "DomainNotFoundFault" + } + return *e.Code +} func (e *DomainNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of event subscriptions. type EventSubscriptionQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1228,7 +1594,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.Code == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.Code } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1238,6 +1607,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ExportTaskAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1250,13 +1621,20 @@ func (e *ExportTaskAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *ExportTaskAlreadyExistsFault) ErrorCode() string { return "ExportTaskAlreadyExists" } +func (e *ExportTaskAlreadyExistsFault) ErrorCode() string { + if e.Code == nil { + return "ExportTaskAlreadyExists" + } + return *e.Code +} func (e *ExportTaskAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The export task doesn't exist. type ExportTaskNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1269,7 +1647,12 @@ func (e *ExportTaskNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ExportTaskNotFoundFault) ErrorCode() string { return "ExportTaskNotFound" } +func (e *ExportTaskNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ExportTaskNotFound" + } + return *e.Code +} func (e *ExportTaskNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The GlobalClusterIdentifier already exists. Choose a new global database @@ -1277,6 +1660,8 @@ func (e *ExportTaskNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy type GlobalClusterAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1290,7 +1675,10 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - return "GlobalClusterAlreadyExistsFault" + if e.Code == nil { + return "GlobalClusterAlreadyExistsFault" + } + return *e.Code } func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1299,6 +1687,8 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { retur type GlobalClusterNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1311,7 +1701,12 @@ func (e *GlobalClusterNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *GlobalClusterNotFoundFault) ErrorCode() string { return "GlobalClusterNotFoundFault" } +func (e *GlobalClusterNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "GlobalClusterNotFoundFault" + } + return *e.Code +} func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of global database clusters for this account is already at the @@ -1319,6 +1714,8 @@ func (e *GlobalClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smi type GlobalClusterQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1332,7 +1729,10 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - return "GlobalClusterQuotaExceededFault" + if e.Code == nil { + return "GlobalClusterQuotaExceededFault" + } + return *e.Code } func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1340,6 +1740,8 @@ func (e *GlobalClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { retur type IamRoleMissingPermissionsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1352,13 +1754,20 @@ func (e *IamRoleMissingPermissionsFault) ErrorMessage() string { } return *e.Message } -func (e *IamRoleMissingPermissionsFault) ErrorCode() string { return "IamRoleMissingPermissions" } +func (e *IamRoleMissingPermissionsFault) ErrorCode() string { + if e.Code == nil { + return "IamRoleMissingPermissions" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1371,7 +1780,12 @@ func (e *IamRoleNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *IamRoleNotFoundFault) ErrorCode() string { return "IamRoleNotFound" } +func (e *IamRoleNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "IamRoleNotFound" + } + return *e.Code +} func (e *IamRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of DB @@ -1379,6 +1793,8 @@ func (e *IamRoleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type InstanceQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1391,7 +1807,12 @@ func (e *InstanceQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *InstanceQuotaExceededFault) ErrorCode() string { return "InstanceQuotaExceeded" } +func (e *InstanceQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "InstanceQuotaExceeded" + } + return *e.Code +} func (e *InstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation can't be performed because there aren't enough available @@ -1400,6 +1821,8 @@ func (e *InstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smi type InsufficientAvailableIPsInSubnetFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1413,7 +1836,10 @@ func (e *InsufficientAvailableIPsInSubnetFault) ErrorMessage() string { return *e.Message } func (e *InsufficientAvailableIPsInSubnetFault) ErrorCode() string { - return "InsufficientAvailableIPsInSubnetFault" + if e.Code == nil { + return "InsufficientAvailableIPsInSubnetFault" + } + return *e.Code } func (e *InsufficientAvailableIPsInSubnetFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1423,6 +1849,8 @@ func (e *InsufficientAvailableIPsInSubnetFault) ErrorFault() smithy.ErrorFault { type InsufficientDBClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1436,7 +1864,10 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - return "InsufficientDBClusterCapacityFault" + if e.Code == nil { + return "InsufficientDBClusterCapacityFault" + } + return *e.Code } func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1447,6 +1878,8 @@ func (e *InsufficientDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientDBInstanceCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1460,7 +1893,10 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - return "InsufficientDBInstanceCapacity" + if e.Code == nil { + return "InsufficientDBInstanceCapacity" + } + return *e.Code } func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1472,6 +1908,8 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorFault() smithy.ErrorFault { type InsufficientStorageClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1485,7 +1923,10 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - return "InsufficientStorageClusterCapacity" + if e.Code == nil { + return "InsufficientStorageClusterCapacity" + } + return *e.Code } func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1496,6 +1937,8 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorFault() smithy.ErrorFault type InvalidBlueGreenDeploymentStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1509,7 +1952,10 @@ func (e *InvalidBlueGreenDeploymentStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidBlueGreenDeploymentStateFault) ErrorCode() string { - return "InvalidBlueGreenDeploymentStateFault" + if e.Code == nil { + return "InvalidBlueGreenDeploymentStateFault" + } + return *e.Code } func (e *InvalidBlueGreenDeploymentStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1519,6 +1965,8 @@ func (e *InvalidBlueGreenDeploymentStateFault) ErrorFault() smithy.ErrorFault { type InvalidCustomDBEngineVersionStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1532,7 +1980,10 @@ func (e *InvalidCustomDBEngineVersionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCustomDBEngineVersionStateFault) ErrorCode() string { - return "InvalidCustomDBEngineVersionStateFault" + if e.Code == nil { + return "InvalidCustomDBEngineVersionStateFault" + } + return *e.Code } func (e *InvalidCustomDBEngineVersionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1543,6 +1994,8 @@ func (e *InvalidCustomDBEngineVersionStateFault) ErrorFault() smithy.ErrorFault type InvalidDBClusterCapacityFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1555,7 +2008,12 @@ func (e *InvalidDBClusterCapacityFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBClusterCapacityFault) ErrorCode() string { return "InvalidDBClusterCapacityFault" } +func (e *InvalidDBClusterCapacityFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBClusterCapacityFault" + } + return *e.Code +} func (e *InvalidDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation can't be performed on the endpoint while the endpoint is @@ -1563,6 +2021,8 @@ func (e *InvalidDBClusterCapacityFault) ErrorFault() smithy.ErrorFault { return type InvalidDBClusterEndpointStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1576,7 +2036,10 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterEndpointStateFault) ErrorCode() string { - return "InvalidDBClusterEndpointStateFault" + if e.Code == nil { + return "InvalidDBClusterEndpointStateFault" + } + return *e.Code } func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1586,6 +2049,8 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterSnapshotStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1599,7 +2064,10 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - return "InvalidDBClusterSnapshotStateFault" + if e.Code == nil { + return "InvalidDBClusterSnapshotStateFault" + } + return *e.Code } func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1609,6 +2077,8 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { type InvalidDBClusterStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1621,7 +2091,12 @@ func (e *InvalidDBClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBClusterStateFault) ErrorCode() string { return "InvalidDBClusterStateFault" } +func (e *InvalidDBClusterStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBClusterStateFault" + } + return *e.Code +} func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The automated backup is in an invalid state. For example, this automated backup @@ -1629,6 +2104,8 @@ func (e *InvalidDBClusterStateFault) ErrorFault() smithy.ErrorFault { return smi type InvalidDBInstanceAutomatedBackupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1642,7 +2119,10 @@ func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorCode() string { - return "InvalidDBInstanceAutomatedBackupState" + if e.Code == nil { + return "InvalidDBInstanceAutomatedBackupState" + } + return *e.Code } func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1652,6 +2132,8 @@ func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorFault() smithy.ErrorFa type InvalidDBInstanceStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1664,7 +2146,12 @@ func (e *InvalidDBInstanceStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBInstanceStateFault) ErrorCode() string { return "InvalidDBInstanceState" } +func (e *InvalidDBInstanceStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBInstanceState" + } + return *e.Code +} 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 @@ -1673,6 +2160,8 @@ func (e *InvalidDBInstanceStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidDBParameterGroupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1685,7 +2174,12 @@ func (e *InvalidDBParameterGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { return "InvalidDBParameterGroupState" } +func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBParameterGroupState" + } + return *e.Code +} func (e *InvalidDBParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't perform this operation while the DB proxy endpoint is in a particular @@ -1693,6 +2187,8 @@ func (e *InvalidDBParameterGroupStateFault) ErrorFault() smithy.ErrorFault { ret type InvalidDBProxyEndpointStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1706,7 +2202,10 @@ func (e *InvalidDBProxyEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBProxyEndpointStateFault) ErrorCode() string { - return "InvalidDBProxyEndpointStateFault" + if e.Code == nil { + return "InvalidDBProxyEndpointStateFault" + } + return *e.Code } func (e *InvalidDBProxyEndpointStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -1714,6 +2213,8 @@ func (e *InvalidDBProxyEndpointStateFault) ErrorFault() smithy.ErrorFault { retu type InvalidDBProxyStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1726,13 +2227,20 @@ func (e *InvalidDBProxyStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBProxyStateFault) ErrorCode() string { return "InvalidDBProxyStateFault" } +func (e *InvalidDBProxyStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBProxyStateFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1745,13 +2253,20 @@ func (e *InvalidDBSecurityGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { return "InvalidDBSecurityGroupState" } +func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBSecurityGroupState" + } + return *e.Code +} func (e *InvalidDBSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the DB snapshot doesn't allow deletion. type InvalidDBSnapshotStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1764,7 +2279,12 @@ func (e *InvalidDBSnapshotStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSnapshotStateFault) ErrorCode() string { return "InvalidDBSnapshotState" } +func (e *InvalidDBSnapshotStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBSnapshotState" + } + return *e.Code +} func (e *InvalidDBSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DBSubnetGroup doesn't belong to the same VPC as that of an existing @@ -1772,6 +2292,8 @@ func (e *InvalidDBSnapshotStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidDBSubnetGroupFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1784,13 +2306,20 @@ func (e *InvalidDBSubnetGroupFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetGroupFault) ErrorCode() string { return "InvalidDBSubnetGroupFault" } +func (e *InvalidDBSubnetGroupFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBSubnetGroupFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1803,13 +2332,20 @@ func (e *InvalidDBSubnetGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { return "InvalidDBSubnetGroupStateFault" } +func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBSubnetGroupStateFault" + } + return *e.Code +} func (e *InvalidDBSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet isn't in the available state. type InvalidDBSubnetStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1822,7 +2358,12 @@ func (e *InvalidDBSubnetStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidDBSubnetStateFault) ErrorCode() string { return "InvalidDBSubnetStateFault" } +func (e *InvalidDBSubnetStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidDBSubnetStateFault" + } + return *e.Code +} func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error can occur if someone else is modifying a subscription. You should @@ -1830,6 +2371,8 @@ func (e *InvalidDBSubnetStateFault) ErrorFault() smithy.ErrorFault { return smit type InvalidEventSubscriptionStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1843,7 +2386,10 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - return "InvalidEventSubscriptionState" + if e.Code == nil { + return "InvalidEventSubscriptionState" + } + return *e.Code } func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1853,6 +2399,8 @@ func (e *InvalidEventSubscriptionStateFault) ErrorFault() smithy.ErrorFault { type InvalidExportOnlyFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1865,7 +2413,12 @@ func (e *InvalidExportOnlyFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportOnlyFault) ErrorCode() string { return "InvalidExportOnly" } +func (e *InvalidExportOnlyFault) ErrorCode() string { + if e.Code == nil { + return "InvalidExportOnly" + } + return *e.Code +} func (e *InvalidExportOnlyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The state of the export snapshot is invalid for exporting to an Amazon S3 @@ -1873,6 +2426,8 @@ func (e *InvalidExportOnlyFault) ErrorFault() smithy.ErrorFault { return smithy. type InvalidExportSourceStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1885,13 +2440,20 @@ func (e *InvalidExportSourceStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportSourceStateFault) ErrorCode() string { return "InvalidExportSourceState" } +func (e *InvalidExportSourceStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidExportSourceState" + } + return *e.Code +} func (e *InvalidExportSourceStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can't cancel an export task that has completed. type InvalidExportTaskStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1904,7 +2466,12 @@ func (e *InvalidExportTaskStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidExportTaskStateFault) ErrorCode() string { return "InvalidExportTaskStateFault" } +func (e *InvalidExportTaskStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidExportTaskStateFault" + } + return *e.Code +} func (e *InvalidExportTaskStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The global cluster is in an invalid state and can't perform the requested @@ -1912,6 +2479,8 @@ func (e *InvalidExportTaskStateFault) ErrorFault() smithy.ErrorFault { return sm type InvalidGlobalClusterStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1924,13 +2493,20 @@ func (e *InvalidGlobalClusterStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidGlobalClusterStateFault) ErrorCode() string { return "InvalidGlobalClusterStateFault" } +func (e *InvalidGlobalClusterStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidGlobalClusterStateFault" + } + return *e.Code +} func (e *InvalidGlobalClusterStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The option group isn't in the available state. type InvalidOptionGroupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1943,13 +2519,20 @@ func (e *InvalidOptionGroupStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidOptionGroupStateFault) ErrorCode() string { return "InvalidOptionGroupStateFault" } +func (e *InvalidOptionGroupStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidOptionGroupStateFault" + } + return *e.Code +} func (e *InvalidOptionGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cannot restore from VPC backup to non-VPC DB instance. type InvalidRestoreFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1962,7 +2545,12 @@ func (e *InvalidRestoreFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidRestoreFault) ErrorCode() string { return "InvalidRestoreFault" } +func (e *InvalidRestoreFault) ErrorCode() string { + if e.Code == nil { + return "InvalidRestoreFault" + } + return *e.Code +} func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon S3 bucket name can't be found or Amazon RDS isn't @@ -1971,6 +2559,8 @@ func (e *InvalidRestoreFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type InvalidS3BucketFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1983,7 +2573,12 @@ func (e *InvalidS3BucketFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3BucketFault) ErrorCode() string { return "InvalidS3BucketFault" } +func (e *InvalidS3BucketFault) ErrorCode() string { + if e.Code == nil { + return "InvalidS3BucketFault" + } + return *e.Code +} func (e *InvalidS3BucketFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested subnet is invalid, or multiple subnets were requested that are not @@ -1991,6 +2586,8 @@ func (e *InvalidS3BucketFault) ErrorFault() smithy.ErrorFault { return smithy.Fa type InvalidSubnet struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2003,7 +2600,12 @@ func (e *InvalidSubnet) ErrorMessage() string { } return *e.Message } -func (e *InvalidSubnet) ErrorCode() string { return "InvalidSubnet" } +func (e *InvalidSubnet) ErrorCode() string { + if e.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The DB subnet group doesn't cover all Availability Zones after it's created @@ -2011,6 +2613,8 @@ func (e *InvalidSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClie type InvalidVPCNetworkStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2023,13 +2627,20 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { } return *e.Message } -func (e *InvalidVPCNetworkStateFault) ErrorCode() string { return "InvalidVPCNetworkStateFault" } +func (e *InvalidVPCNetworkStateFault) ErrorCode() string { + if e.Code == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.Code +} func (e *InvalidVPCNetworkStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred accessing an Amazon Web Services KMS key. type KMSKeyNotAccessibleFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2042,7 +2653,12 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { } return *e.Message } -func (e *KMSKeyNotAccessibleFault) ErrorCode() string { return "KMSKeyNotAccessibleFault" } +func (e *KMSKeyNotAccessibleFault) ErrorCode() string { + if e.Code == nil { + return "KMSKeyNotAccessibleFault" + } + return *e.Code +} func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The network type is invalid for the DB instance. Valid nework type values are @@ -2050,6 +2666,8 @@ func (e *KMSKeyNotAccessibleFault) ErrorFault() smithy.ErrorFault { return smith type NetworkTypeNotSupported struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2062,13 +2680,20 @@ func (e *NetworkTypeNotSupported) ErrorMessage() string { } return *e.Message } -func (e *NetworkTypeNotSupported) ErrorCode() string { return "NetworkTypeNotSupported" } +func (e *NetworkTypeNotSupported) ErrorCode() string { + if e.Code == nil { + return "NetworkTypeNotSupported" + } + return *e.Code +} func (e *NetworkTypeNotSupported) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The option group you are trying to create already exists. type OptionGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2081,13 +2706,20 @@ func (e *OptionGroupAlreadyExistsFault) ErrorMessage() string { } return *e.Message } -func (e *OptionGroupAlreadyExistsFault) ErrorCode() string { return "OptionGroupAlreadyExistsFault" } +func (e *OptionGroupAlreadyExistsFault) ErrorCode() string { + if e.Code == nil { + return "OptionGroupAlreadyExistsFault" + } + return *e.Code +} func (e *OptionGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified option group could not be found. type OptionGroupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2100,13 +2732,20 @@ func (e *OptionGroupNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *OptionGroupNotFoundFault) ErrorCode() string { return "OptionGroupNotFoundFault" } +func (e *OptionGroupNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "OptionGroupNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2119,7 +2758,12 @@ func (e *OptionGroupQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *OptionGroupQuotaExceededFault) ErrorCode() string { return "OptionGroupQuotaExceededFault" } +func (e *OptionGroupQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "OptionGroupQuotaExceededFault" + } + return *e.Code +} func (e *OptionGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod @@ -2127,6 +2771,8 @@ func (e *OptionGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return type PointInTimeRestoreNotEnabledFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2139,13 +2785,20 @@ func (e *PointInTimeRestoreNotEnabledFault) ErrorMessage() string { } return *e.Message } -func (e *PointInTimeRestoreNotEnabledFault) ErrorCode() string { return "PointInTimeRestoreNotEnabled" } +func (e *PointInTimeRestoreNotEnabledFault) ErrorCode() string { + if e.Code == nil { + return "PointInTimeRestoreNotEnabled" + } + return *e.Code +} func (e *PointInTimeRestoreNotEnabledFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Provisioned IOPS not available in the specified Availability Zone. type ProvisionedIopsNotAvailableInAZFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2159,7 +2812,10 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorMessage() string { return *e.Message } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorCode() string { - return "ProvisionedIopsNotAvailableInAZFault" + if e.Code == nil { + return "ProvisionedIopsNotAvailableInAZFault" + } + return *e.Code } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2169,6 +2825,8 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorFault() smithy.ErrorFault { type ReservedDBInstanceAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2182,7 +2840,10 @@ func (e *ReservedDBInstanceAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstanceAlreadyExistsFault) ErrorCode() string { - return "ReservedDBInstanceAlreadyExists" + if e.Code == nil { + return "ReservedDBInstanceAlreadyExists" + } + return *e.Code } func (e *ReservedDBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2192,6 +2853,8 @@ func (e *ReservedDBInstanceAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ReservedDBInstanceNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2204,13 +2867,20 @@ func (e *ReservedDBInstanceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ReservedDBInstanceNotFoundFault) ErrorCode() string { return "ReservedDBInstanceNotFound" } +func (e *ReservedDBInstanceNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ReservedDBInstanceNotFound" + } + return *e.Code +} func (e *ReservedDBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would exceed the user's DB Instance quota. type ReservedDBInstanceQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2224,7 +2894,10 @@ func (e *ReservedDBInstanceQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstanceQuotaExceededFault) ErrorCode() string { - return "ReservedDBInstanceQuotaExceeded" + if e.Code == nil { + return "ReservedDBInstanceQuotaExceeded" + } + return *e.Code } func (e *ReservedDBInstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2234,6 +2907,8 @@ func (e *ReservedDBInstanceQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ReservedDBInstancesOfferingNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2247,7 +2922,10 @@ func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorCode() string { - return "ReservedDBInstancesOfferingNotFound" + if e.Code == nil { + return "ReservedDBInstancesOfferingNotFound" + } + return *e.Code } func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2257,6 +2935,8 @@ func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorFault() smithy.ErrorFaul type ResourceNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2269,7 +2949,12 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundFault) ErrorCode() string { return "ResourceNotFoundFault" } +func (e *ResourceNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundFault" + } + return *e.Code +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the maximum number of accounts that you can share a manual DB @@ -2277,6 +2962,8 @@ func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.F type SharedSnapshotQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2289,7 +2976,12 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { return "SharedSnapshotQuotaExceeded" } +func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "SharedSnapshotQuotaExceeded" + } + return *e.Code +} func (e *SharedSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed number of DB @@ -2297,6 +2989,8 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { retu type SnapshotQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2309,13 +3003,20 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *SnapshotQuotaExceededFault) ErrorCode() string { return "SnapshotQuotaExceeded" } +func (e *SnapshotQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "SnapshotQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2328,13 +3029,20 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { } return *e.Message } -func (e *SNSInvalidTopicFault) ErrorCode() string { return "SNSInvalidTopic" } +func (e *SNSInvalidTopicFault) ErrorCode() string { + if e.Code == nil { + return "SNSInvalidTopic" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2347,13 +3055,20 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { } return *e.Message } -func (e *SNSNoAuthorizationFault) ErrorCode() string { return "SNSNoAuthorization" } +func (e *SNSNoAuthorizationFault) ErrorCode() string { + if e.Code == nil { + return "SNSNoAuthorization" + } + return *e.Code +} func (e *SNSNoAuthorizationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The SNS topic ARN does not exist. type SNSTopicArnNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2366,13 +3081,20 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SNSTopicArnNotFoundFault) ErrorCode() string { return "SNSTopicArnNotFound" } +func (e *SNSTopicArnNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "SNSTopicArnNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2385,13 +3107,20 @@ func (e *SourceClusterNotSupportedFault) ErrorMessage() string { } return *e.Message } -func (e *SourceClusterNotSupportedFault) ErrorCode() string { return "SourceClusterNotSupportedFault" } +func (e *SourceClusterNotSupportedFault) ErrorCode() string { + if e.Code == nil { + return "SourceClusterNotSupportedFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2405,7 +3134,10 @@ func (e *SourceDatabaseNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *SourceDatabaseNotSupportedFault) ErrorCode() string { - return "SourceDatabaseNotSupportedFault" + if e.Code == nil { + return "SourceDatabaseNotSupportedFault" + } + return *e.Code } func (e *SourceDatabaseNotSupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -2413,6 +3145,8 @@ func (e *SourceDatabaseNotSupportedFault) ErrorFault() smithy.ErrorFault { retur type SourceNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2425,7 +3159,12 @@ func (e *SourceNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SourceNotFoundFault) ErrorCode() string { return "SourceNotFound" } +func (e *SourceNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "SourceNotFound" + } + return *e.Code +} func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would result in the user exceeding the allowed amount of storage @@ -2433,6 +3172,8 @@ func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.Fau type StorageQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2445,13 +3186,20 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { } return *e.Message } -func (e *StorageQuotaExceededFault) ErrorCode() string { return "StorageQuotaExceeded" } +func (e *StorageQuotaExceededFault) ErrorCode() string { + if e.Code == nil { + return "StorageQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2464,13 +3212,20 @@ func (e *StorageTypeNotSupportedFault) ErrorMessage() string { } return *e.Message } -func (e *StorageTypeNotSupportedFault) ErrorCode() string { return "StorageTypeNotSupported" } +func (e *StorageTypeNotSupportedFault) ErrorCode() string { + if e.Code == nil { + return "StorageTypeNotSupported" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2483,13 +3238,20 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { } return *e.Message } -func (e *SubnetAlreadyInUse) ErrorCode() string { return "SubnetAlreadyInUse" } +func (e *SubnetAlreadyInUse) ErrorCode() string { + if e.Code == nil { + return "SubnetAlreadyInUse" + } + return *e.Code +} func (e *SubnetAlreadyInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied subscription name already exists. type SubscriptionAlreadyExistFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2502,13 +3264,20 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionAlreadyExistFault) ErrorCode() string { return "SubscriptionAlreadyExist" } +func (e *SubscriptionAlreadyExistFault) ErrorCode() string { + if e.Code == nil { + return "SubscriptionAlreadyExist" + } + return *e.Code +} func (e *SubscriptionAlreadyExistFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied category does not exist. type SubscriptionCategoryNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2521,13 +3290,20 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { return "SubscriptionCategoryNotFound" } +func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "SubscriptionCategoryNotFound" + } + return *e.Code +} func (e *SubscriptionCategoryNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The subscription name does not exist. type SubscriptionNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2540,5 +3316,10 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { } return *e.Message } -func (e *SubscriptionNotFoundFault) ErrorCode() string { return "SubscriptionNotFound" } +func (e *SubscriptionNotFoundFault) ErrorCode() string { + if e.Code == nil { + return "SubscriptionNotFound" + } + return *e.Code +} func (e *SubscriptionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rds/types/types.go b/service/rds/types/types.go index b995cba607d..5637370ec2a 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -2829,6 +2829,7 @@ type OptionConfiguration struct { noSmithyDocumentSerde } +// type OptionGroup struct { // Indicates whether this option group can be applied to both VPC and non-VPC diff --git a/service/rdsdata/types/errors.go b/service/rdsdata/types/errors.go index ec2d725babd..6dae80145f1 100644 --- a/service/rdsdata/types/errors.go +++ b/service/rdsdata/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are insufficient privileges to make the call. type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resourceArn, secretArn, or transactionId value can't be found. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service specified by the resourceArn parameter is not available. type ServiceUnavailableError struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableError" + } + return *e.Code +} func (e *ServiceUnavailableError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The execution of the SQL statement timed out. type StatementTimeoutException struct { Message *string + Code *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.Code == nil { + return "StatementTimeoutException" + } + return *e.Code +} func (e *StatementTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rdsdata/types/types.go b/service/rdsdata/types/types.go index 73ae963eb20..52ea4aa24c0 100644 --- a/service/rdsdata/types/types.go +++ b/service/rdsdata/types/types.go @@ -9,12 +9,11 @@ import ( // Contains an array. // // The following types satisfy this interface: -// -// ArrayValueMemberArrayValues -// ArrayValueMemberBooleanValues -// ArrayValueMemberDoubleValues -// ArrayValueMemberLongValues -// ArrayValueMemberStringValues +// ArrayValueMemberArrayValues +// ArrayValueMemberBooleanValues +// ArrayValueMemberDoubleValues +// ArrayValueMemberLongValues +// ArrayValueMemberStringValues type ArrayValue interface { isArrayValue() } @@ -115,14 +114,13 @@ type ColumnMetadata struct { // Contains a value. // // The following types satisfy this interface: -// -// FieldMemberArrayValue -// FieldMemberBlobValue -// FieldMemberBooleanValue -// FieldMemberDoubleValue -// FieldMemberIsNull -// FieldMemberLongValue -// FieldMemberStringValue +// FieldMemberArrayValue +// FieldMemberBlobValue +// FieldMemberBooleanValue +// FieldMemberDoubleValue +// FieldMemberIsNull +// FieldMemberLongValue +// FieldMemberStringValue type Field interface { isField() } @@ -323,17 +321,16 @@ type UpdateResult struct { // ExecuteStatement operation instead. // // The following types satisfy this interface: -// -// ValueMemberArrayValues -// ValueMemberBigIntValue -// ValueMemberBitValue -// ValueMemberBlobValue -// ValueMemberDoubleValue -// ValueMemberIntValue -// ValueMemberIsNull -// ValueMemberRealValue -// ValueMemberStringValue -// ValueMemberStructValue +// ValueMemberArrayValues +// ValueMemberBigIntValue +// ValueMemberBitValue +// ValueMemberBlobValue +// ValueMemberDoubleValue +// ValueMemberIntValue +// ValueMemberIsNull +// ValueMemberRealValue +// ValueMemberStringValue +// ValueMemberStructValue type Value interface { isValue() } diff --git a/service/redshift/api_op_AuthorizeClusterSecurityGroupIngress.go b/service/redshift/api_op_AuthorizeClusterSecurityGroupIngress.go index 095e40e1541..4d83f0ed4f2 100644 --- a/service/redshift/api_op_AuthorizeClusterSecurityGroupIngress.go +++ b/service/redshift/api_op_AuthorizeClusterSecurityGroupIngress.go @@ -42,6 +42,7 @@ func (c *Client) AuthorizeClusterSecurityGroupIngress(ctx context.Context, param return out, nil } +// type AuthorizeClusterSecurityGroupIngressInput struct { // The name of the security group to which the ingress rule is added. diff --git a/service/redshift/api_op_AuthorizeSnapshotAccess.go b/service/redshift/api_op_AuthorizeSnapshotAccess.go index a79d0e6860d..184dd00c0cc 100644 --- a/service/redshift/api_op_AuthorizeSnapshotAccess.go +++ b/service/redshift/api_op_AuthorizeSnapshotAccess.go @@ -31,6 +31,7 @@ func (c *Client) AuthorizeSnapshotAccess(ctx context.Context, params *AuthorizeS return out, nil } +// type AuthorizeSnapshotAccessInput struct { // The identifier of the Amazon Web Services account authorized to restore the diff --git a/service/redshift/api_op_CopyClusterSnapshot.go b/service/redshift/api_op_CopyClusterSnapshot.go index 9df7c4b1f01..9952d8dbc6c 100644 --- a/service/redshift/api_op_CopyClusterSnapshot.go +++ b/service/redshift/api_op_CopyClusterSnapshot.go @@ -36,6 +36,7 @@ func (c *Client) CopyClusterSnapshot(ctx context.Context, params *CopyClusterSna return out, nil } +// type CopyClusterSnapshotInput struct { // The identifier for the source snapshot. Constraints: diff --git a/service/redshift/api_op_CreateCluster.go b/service/redshift/api_op_CreateCluster.go index 4e879f9a670..e6167717357 100644 --- a/service/redshift/api_op_CreateCluster.go +++ b/service/redshift/api_op_CreateCluster.go @@ -33,6 +33,7 @@ func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, return out, nil } +// type CreateClusterInput struct { // A unique identifier for the cluster. You use this identifier to refer to the diff --git a/service/redshift/api_op_CreateClusterParameterGroup.go b/service/redshift/api_op_CreateClusterParameterGroup.go index 8b4b4465728..69270c307f9 100644 --- a/service/redshift/api_op_CreateClusterParameterGroup.go +++ b/service/redshift/api_op_CreateClusterParameterGroup.go @@ -35,6 +35,7 @@ func (c *Client) CreateClusterParameterGroup(ctx context.Context, params *Create return out, nil } +// type CreateClusterParameterGroupInput struct { // A description of the parameter group. diff --git a/service/redshift/api_op_CreateClusterSecurityGroup.go b/service/redshift/api_op_CreateClusterSecurityGroup.go index 0c7171f9e42..85dd765e1d9 100644 --- a/service/redshift/api_op_CreateClusterSecurityGroup.go +++ b/service/redshift/api_op_CreateClusterSecurityGroup.go @@ -31,6 +31,7 @@ func (c *Client) CreateClusterSecurityGroup(ctx context.Context, params *CreateC return out, nil } +// type CreateClusterSecurityGroupInput struct { // The name for the security group. Amazon Redshift stores the value as a lowercase diff --git a/service/redshift/api_op_CreateClusterSnapshot.go b/service/redshift/api_op_CreateClusterSnapshot.go index a025d2aa6aa..7cbd31939e1 100644 --- a/service/redshift/api_op_CreateClusterSnapshot.go +++ b/service/redshift/api_op_CreateClusterSnapshot.go @@ -31,6 +31,7 @@ func (c *Client) CreateClusterSnapshot(ctx context.Context, params *CreateCluste return out, nil } +// type CreateClusterSnapshotInput struct { // The cluster identifier for which you want a snapshot. diff --git a/service/redshift/api_op_CreateClusterSubnetGroup.go b/service/redshift/api_op_CreateClusterSubnetGroup.go index 534571ebc08..f3b1366ef7a 100644 --- a/service/redshift/api_op_CreateClusterSubnetGroup.go +++ b/service/redshift/api_op_CreateClusterSubnetGroup.go @@ -32,6 +32,7 @@ func (c *Client) CreateClusterSubnetGroup(ctx context.Context, params *CreateClu return out, nil } +// type CreateClusterSubnetGroupInput struct { // The name for the subnet group. Amazon Redshift stores the value as a lowercase diff --git a/service/redshift/api_op_CreateEventSubscription.go b/service/redshift/api_op_CreateEventSubscription.go index 01242c05263..8e3b6a50b4f 100644 --- a/service/redshift/api_op_CreateEventSubscription.go +++ b/service/redshift/api_op_CreateEventSubscription.go @@ -45,6 +45,7 @@ func (c *Client) CreateEventSubscription(ctx context.Context, params *CreateEven return out, nil } +// type CreateEventSubscriptionInput struct { // The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the diff --git a/service/redshift/api_op_CreateHsmClientCertificate.go b/service/redshift/api_op_CreateHsmClientCertificate.go index d66912229f4..d850243430e 100644 --- a/service/redshift/api_op_CreateHsmClientCertificate.go +++ b/service/redshift/api_op_CreateHsmClientCertificate.go @@ -35,6 +35,7 @@ func (c *Client) CreateHsmClientCertificate(ctx context.Context, params *CreateH return out, nil } +// type CreateHsmClientCertificateInput struct { // The identifier to be assigned to the new HSM client certificate that the cluster diff --git a/service/redshift/api_op_CreateHsmConfiguration.go b/service/redshift/api_op_CreateHsmConfiguration.go index d35570f196f..746ddd8d11e 100644 --- a/service/redshift/api_op_CreateHsmConfiguration.go +++ b/service/redshift/api_op_CreateHsmConfiguration.go @@ -35,6 +35,7 @@ func (c *Client) CreateHsmConfiguration(ctx context.Context, params *CreateHsmCo return out, nil } +// type CreateHsmConfigurationInput struct { // A text description of the HSM configuration to be created. diff --git a/service/redshift/api_op_DeleteCluster.go b/service/redshift/api_op_DeleteCluster.go index a3b7886f440..a72ea8e4553 100644 --- a/service/redshift/api_op_DeleteCluster.go +++ b/service/redshift/api_op_DeleteCluster.go @@ -41,6 +41,7 @@ func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, return out, nil } +// type DeleteClusterInput struct { // The identifier of the cluster to be deleted. Constraints: diff --git a/service/redshift/api_op_DeleteClusterParameterGroup.go b/service/redshift/api_op_DeleteClusterParameterGroup.go index aae874743c1..9e0277140ca 100644 --- a/service/redshift/api_op_DeleteClusterParameterGroup.go +++ b/service/redshift/api_op_DeleteClusterParameterGroup.go @@ -27,6 +27,7 @@ func (c *Client) DeleteClusterParameterGroup(ctx context.Context, params *Delete return out, nil } +// type DeleteClusterParameterGroupInput struct { // The name of the parameter group to be deleted. Constraints: diff --git a/service/redshift/api_op_DeleteClusterSecurityGroup.go b/service/redshift/api_op_DeleteClusterSecurityGroup.go index e3c14e93532..efa80fc5865 100644 --- a/service/redshift/api_op_DeleteClusterSecurityGroup.go +++ b/service/redshift/api_op_DeleteClusterSecurityGroup.go @@ -31,6 +31,7 @@ func (c *Client) DeleteClusterSecurityGroup(ctx context.Context, params *DeleteC return out, nil } +// type DeleteClusterSecurityGroupInput struct { // The name of the cluster security group to be deleted. diff --git a/service/redshift/api_op_DeleteClusterSnapshot.go b/service/redshift/api_op_DeleteClusterSnapshot.go index 0d76234b0dd..7ef25f803b9 100644 --- a/service/redshift/api_op_DeleteClusterSnapshot.go +++ b/service/redshift/api_op_DeleteClusterSnapshot.go @@ -33,6 +33,7 @@ func (c *Client) DeleteClusterSnapshot(ctx context.Context, params *DeleteCluste return out, nil } +// type DeleteClusterSnapshotInput struct { // The unique identifier of the manual snapshot to be deleted. Constraints: Must be diff --git a/service/redshift/api_op_DeleteClusterSubnetGroup.go b/service/redshift/api_op_DeleteClusterSubnetGroup.go index d618a2caed3..36ce8e21ba8 100644 --- a/service/redshift/api_op_DeleteClusterSubnetGroup.go +++ b/service/redshift/api_op_DeleteClusterSubnetGroup.go @@ -26,6 +26,7 @@ func (c *Client) DeleteClusterSubnetGroup(ctx context.Context, params *DeleteClu return out, nil } +// type DeleteClusterSubnetGroupInput struct { // The name of the cluster subnet group name to be deleted. diff --git a/service/redshift/api_op_DeleteEventSubscription.go b/service/redshift/api_op_DeleteEventSubscription.go index c94540f5ed9..1df2bfc6901 100644 --- a/service/redshift/api_op_DeleteEventSubscription.go +++ b/service/redshift/api_op_DeleteEventSubscription.go @@ -26,6 +26,7 @@ func (c *Client) DeleteEventSubscription(ctx context.Context, params *DeleteEven return out, nil } +// type DeleteEventSubscriptionInput struct { // The name of the Amazon Redshift event notification subscription to be deleted. diff --git a/service/redshift/api_op_DeleteHsmClientCertificate.go b/service/redshift/api_op_DeleteHsmClientCertificate.go index f25c4751e64..67c2d4f4468 100644 --- a/service/redshift/api_op_DeleteHsmClientCertificate.go +++ b/service/redshift/api_op_DeleteHsmClientCertificate.go @@ -26,6 +26,7 @@ func (c *Client) DeleteHsmClientCertificate(ctx context.Context, params *DeleteH return out, nil } +// type DeleteHsmClientCertificateInput struct { // The identifier of the HSM client certificate to be deleted. diff --git a/service/redshift/api_op_DeleteHsmConfiguration.go b/service/redshift/api_op_DeleteHsmConfiguration.go index 4da22da6f9c..95679a7824c 100644 --- a/service/redshift/api_op_DeleteHsmConfiguration.go +++ b/service/redshift/api_op_DeleteHsmConfiguration.go @@ -26,6 +26,7 @@ func (c *Client) DeleteHsmConfiguration(ctx context.Context, params *DeleteHsmCo return out, nil } +// type DeleteHsmConfigurationInput struct { // The identifier of the Amazon Redshift HSM configuration to be deleted. diff --git a/service/redshift/api_op_DescribeClusterParameterGroups.go b/service/redshift/api_op_DescribeClusterParameterGroups.go index c957fa574e0..5275ee84b6e 100644 --- a/service/redshift/api_op_DescribeClusterParameterGroups.go +++ b/service/redshift/api_op_DescribeClusterParameterGroups.go @@ -41,6 +41,7 @@ func (c *Client) DescribeClusterParameterGroups(ctx context.Context, params *Des return out, nil } +// type DescribeClusterParameterGroupsInput struct { // An optional parameter that specifies the starting point to return a set of diff --git a/service/redshift/api_op_DescribeClusterParameters.go b/service/redshift/api_op_DescribeClusterParameters.go index f55481bc494..027a3dd188b 100644 --- a/service/redshift/api_op_DescribeClusterParameters.go +++ b/service/redshift/api_op_DescribeClusterParameters.go @@ -37,6 +37,7 @@ func (c *Client) DescribeClusterParameters(ctx context.Context, params *Describe return out, nil } +// type DescribeClusterParametersInput struct { // The name of a cluster parameter group for which to return details. diff --git a/service/redshift/api_op_DescribeClusterSecurityGroups.go b/service/redshift/api_op_DescribeClusterSecurityGroups.go index 34004696e7f..f9cdfded89d 100644 --- a/service/redshift/api_op_DescribeClusterSecurityGroups.go +++ b/service/redshift/api_op_DescribeClusterSecurityGroups.go @@ -39,6 +39,7 @@ func (c *Client) DescribeClusterSecurityGroups(ctx context.Context, params *Desc return out, nil } +// type DescribeClusterSecurityGroupsInput struct { // The name of a cluster security group for which you are requesting details. You @@ -81,6 +82,7 @@ type DescribeClusterSecurityGroupsInput struct { noSmithyDocumentSerde } +// type DescribeClusterSecurityGroupsOutput struct { // A list of ClusterSecurityGroup instances. diff --git a/service/redshift/api_op_DescribeClusterSnapshots.go b/service/redshift/api_op_DescribeClusterSnapshots.go index 207a3bf69f5..0c5a7813ffe 100644 --- a/service/redshift/api_op_DescribeClusterSnapshots.go +++ b/service/redshift/api_op_DescribeClusterSnapshots.go @@ -43,6 +43,7 @@ func (c *Client) DescribeClusterSnapshots(ctx context.Context, params *DescribeC return out, nil } +// type DescribeClusterSnapshotsInput struct { // A value that indicates whether to return snapshots only for an existing cluster. diff --git a/service/redshift/api_op_DescribeClusterSubnetGroups.go b/service/redshift/api_op_DescribeClusterSubnetGroups.go index 3f48ecc1206..fb039dca7c4 100644 --- a/service/redshift/api_op_DescribeClusterSubnetGroups.go +++ b/service/redshift/api_op_DescribeClusterSubnetGroups.go @@ -37,6 +37,7 @@ func (c *Client) DescribeClusterSubnetGroups(ctx context.Context, params *Descri return out, nil } +// type DescribeClusterSubnetGroupsInput struct { // The name of the cluster subnet group for which information is requested. diff --git a/service/redshift/api_op_DescribeClusterVersions.go b/service/redshift/api_op_DescribeClusterVersions.go index f8bc849de43..f2b766839da 100644 --- a/service/redshift/api_op_DescribeClusterVersions.go +++ b/service/redshift/api_op_DescribeClusterVersions.go @@ -33,6 +33,7 @@ func (c *Client) DescribeClusterVersions(ctx context.Context, params *DescribeCl return out, nil } +// type DescribeClusterVersionsInput struct { // The name of a specific cluster parameter group family to return details for. diff --git a/service/redshift/api_op_DescribeClusters.go b/service/redshift/api_op_DescribeClusters.go index aaa79b34a06..0191588b727 100644 --- a/service/redshift/api_op_DescribeClusters.go +++ b/service/redshift/api_op_DescribeClusters.go @@ -45,6 +45,7 @@ func (c *Client) DescribeClusters(ctx context.Context, params *DescribeClustersI return out, nil } +// type DescribeClustersInput struct { // The unique identifier of a cluster whose properties you are requesting. This diff --git a/service/redshift/api_op_DescribeDefaultClusterParameters.go b/service/redshift/api_op_DescribeDefaultClusterParameters.go index 0591fd03bcc..6b2750a51fa 100644 --- a/service/redshift/api_op_DescribeDefaultClusterParameters.go +++ b/service/redshift/api_op_DescribeDefaultClusterParameters.go @@ -32,6 +32,7 @@ func (c *Client) DescribeDefaultClusterParameters(ctx context.Context, params *D return out, nil } +// type DescribeDefaultClusterParametersInput struct { // The name of the cluster parameter group family. diff --git a/service/redshift/api_op_DescribeEventCategories.go b/service/redshift/api_op_DescribeEventCategories.go index ac00d7fddd5..43269f0e82d 100644 --- a/service/redshift/api_op_DescribeEventCategories.go +++ b/service/redshift/api_op_DescribeEventCategories.go @@ -30,6 +30,7 @@ func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEv return out, nil } +// type DescribeEventCategoriesInput struct { // The source type, such as cluster or parameter group, to which the described @@ -40,6 +41,7 @@ type DescribeEventCategoriesInput struct { noSmithyDocumentSerde } +// type DescribeEventCategoriesOutput struct { // A list of event categories descriptions. diff --git a/service/redshift/api_op_DescribeEventSubscriptions.go b/service/redshift/api_op_DescribeEventSubscriptions.go index 7e873185b6d..d2d6a0df157 100644 --- a/service/redshift/api_op_DescribeEventSubscriptions.go +++ b/service/redshift/api_op_DescribeEventSubscriptions.go @@ -37,6 +37,7 @@ func (c *Client) DescribeEventSubscriptions(ctx context.Context, params *Describ return out, nil } +// type DescribeEventSubscriptionsInput struct { // An optional parameter that specifies the starting point to return a set of @@ -76,6 +77,7 @@ type DescribeEventSubscriptionsInput struct { noSmithyDocumentSerde } +// type DescribeEventSubscriptionsOutput struct { // A list of event subscriptions. diff --git a/service/redshift/api_op_DescribeEvents.go b/service/redshift/api_op_DescribeEvents.go index 0d1334c3489..886e47d794e 100644 --- a/service/redshift/api_op_DescribeEvents.go +++ b/service/redshift/api_op_DescribeEvents.go @@ -32,6 +32,7 @@ func (c *Client) DescribeEvents(ctx context.Context, params *DescribeEventsInput return out, nil } +// type DescribeEventsInput struct { // The number of minutes prior to the time of the request for which to retrieve @@ -102,6 +103,7 @@ type DescribeEventsInput struct { noSmithyDocumentSerde } +// type DescribeEventsOutput struct { // A list of Event instances. diff --git a/service/redshift/api_op_DescribeHsmClientCertificates.go b/service/redshift/api_op_DescribeHsmClientCertificates.go index 627b66034fa..bd6571cef33 100644 --- a/service/redshift/api_op_DescribeHsmClientCertificates.go +++ b/service/redshift/api_op_DescribeHsmClientCertificates.go @@ -37,6 +37,7 @@ func (c *Client) DescribeHsmClientCertificates(ctx context.Context, params *Desc return out, nil } +// type DescribeHsmClientCertificatesInput struct { // The identifier of a specific HSM client certificate for which you want @@ -78,6 +79,7 @@ type DescribeHsmClientCertificatesInput struct { noSmithyDocumentSerde } +// type DescribeHsmClientCertificatesOutput struct { // A list of the identifiers for one or more HSM client certificates used by Amazon diff --git a/service/redshift/api_op_DescribeHsmConfigurations.go b/service/redshift/api_op_DescribeHsmConfigurations.go index 70f3b3890ad..a3d6202ae25 100644 --- a/service/redshift/api_op_DescribeHsmConfigurations.go +++ b/service/redshift/api_op_DescribeHsmConfigurations.go @@ -37,6 +37,7 @@ func (c *Client) DescribeHsmConfigurations(ctx context.Context, params *Describe return out, nil } +// type DescribeHsmConfigurationsInput struct { // The identifier of a specific Amazon Redshift HSM configuration to be described. @@ -78,6 +79,7 @@ type DescribeHsmConfigurationsInput struct { noSmithyDocumentSerde } +// type DescribeHsmConfigurationsOutput struct { // A list of HsmConfiguration objects. diff --git a/service/redshift/api_op_DescribeLoggingStatus.go b/service/redshift/api_op_DescribeLoggingStatus.go index a48db30cbcd..8701c4246ec 100644 --- a/service/redshift/api_op_DescribeLoggingStatus.go +++ b/service/redshift/api_op_DescribeLoggingStatus.go @@ -29,6 +29,7 @@ func (c *Client) DescribeLoggingStatus(ctx context.Context, params *DescribeLogg return out, nil } +// type DescribeLoggingStatusInput struct { // The identifier of the cluster from which to get the logging status. Example: diff --git a/service/redshift/api_op_DescribeOrderableClusterOptions.go b/service/redshift/api_op_DescribeOrderableClusterOptions.go index 503b0928c04..004d415e83c 100644 --- a/service/redshift/api_op_DescribeOrderableClusterOptions.go +++ b/service/redshift/api_op_DescribeOrderableClusterOptions.go @@ -37,6 +37,7 @@ func (c *Client) DescribeOrderableClusterOptions(ctx context.Context, params *De return out, nil } +// type DescribeOrderableClusterOptionsInput struct { // The version filter value. Specify this parameter to show only the available diff --git a/service/redshift/api_op_DescribeReservedNodeOfferings.go b/service/redshift/api_op_DescribeReservedNodeOfferings.go index 7cf4232e68e..d3c702b3ec0 100644 --- a/service/redshift/api_op_DescribeReservedNodeOfferings.go +++ b/service/redshift/api_op_DescribeReservedNodeOfferings.go @@ -37,6 +37,7 @@ func (c *Client) DescribeReservedNodeOfferings(ctx context.Context, params *Desc return out, nil } +// type DescribeReservedNodeOfferingsInput struct { // An optional parameter that specifies the starting point to return a set of @@ -60,6 +61,7 @@ type DescribeReservedNodeOfferingsInput struct { noSmithyDocumentSerde } +// type DescribeReservedNodeOfferingsOutput struct { // A value that indicates the starting point for the next set of response records diff --git a/service/redshift/api_op_DescribeReservedNodes.go b/service/redshift/api_op_DescribeReservedNodes.go index 2f5e3619a71..3375b2b922d 100644 --- a/service/redshift/api_op_DescribeReservedNodes.go +++ b/service/redshift/api_op_DescribeReservedNodes.go @@ -28,6 +28,7 @@ func (c *Client) DescribeReservedNodes(ctx context.Context, params *DescribeRese return out, nil } +// type DescribeReservedNodesInput struct { // An optional parameter that specifies the starting point to return a set of @@ -51,6 +52,7 @@ type DescribeReservedNodesInput struct { noSmithyDocumentSerde } +// type DescribeReservedNodesOutput struct { // A value that indicates the starting point for the next set of response records diff --git a/service/redshift/api_op_DescribeResize.go b/service/redshift/api_op_DescribeResize.go index 70890eb19fd..3b4d5b965dd 100644 --- a/service/redshift/api_op_DescribeResize.go +++ b/service/redshift/api_op_DescribeResize.go @@ -31,6 +31,7 @@ func (c *Client) DescribeResize(ctx context.Context, params *DescribeResizeInput return out, nil } +// type DescribeResizeInput struct { // The unique identifier of a cluster whose resize progress you are requesting. diff --git a/service/redshift/api_op_DescribeSnapshotCopyGrants.go b/service/redshift/api_op_DescribeSnapshotCopyGrants.go index b660f2cee4c..4f145d4eb72 100644 --- a/service/redshift/api_op_DescribeSnapshotCopyGrants.go +++ b/service/redshift/api_op_DescribeSnapshotCopyGrants.go @@ -71,6 +71,7 @@ type DescribeSnapshotCopyGrantsInput struct { noSmithyDocumentSerde } +// type DescribeSnapshotCopyGrantsOutput struct { // An optional parameter that specifies the starting point to return a set of diff --git a/service/redshift/api_op_DescribeTableRestoreStatus.go b/service/redshift/api_op_DescribeTableRestoreStatus.go index a1109a88d32..b31b03565bd 100644 --- a/service/redshift/api_op_DescribeTableRestoreStatus.go +++ b/service/redshift/api_op_DescribeTableRestoreStatus.go @@ -33,6 +33,7 @@ func (c *Client) DescribeTableRestoreStatus(ctx context.Context, params *Describ return out, nil } +// type DescribeTableRestoreStatusInput struct { // The Amazon Redshift cluster that the table is being restored to. @@ -56,6 +57,7 @@ type DescribeTableRestoreStatusInput struct { noSmithyDocumentSerde } +// type DescribeTableRestoreStatusOutput struct { // A pagination token that can be used in a subsequent DescribeTableRestoreStatus diff --git a/service/redshift/api_op_DescribeTags.go b/service/redshift/api_op_DescribeTags.go index 4ada4ff6937..1fa1575bca1 100644 --- a/service/redshift/api_op_DescribeTags.go +++ b/service/redshift/api_op_DescribeTags.go @@ -48,6 +48,7 @@ func (c *Client) DescribeTags(ctx context.Context, params *DescribeTagsInput, op return out, nil } +// type DescribeTagsInput struct { // A value that indicates the starting point for the next set of response records @@ -116,6 +117,7 @@ type DescribeTagsInput struct { noSmithyDocumentSerde } +// type DescribeTagsOutput struct { // A value that indicates the starting point for the next set of response records diff --git a/service/redshift/api_op_DisableLogging.go b/service/redshift/api_op_DisableLogging.go index 9acc7eb9965..4cb9c6883c5 100644 --- a/service/redshift/api_op_DisableLogging.go +++ b/service/redshift/api_op_DisableLogging.go @@ -29,6 +29,7 @@ func (c *Client) DisableLogging(ctx context.Context, params *DisableLoggingInput return out, nil } +// type DisableLoggingInput struct { // The identifier of the cluster on which logging is to be stopped. Example: diff --git a/service/redshift/api_op_DisableSnapshotCopy.go b/service/redshift/api_op_DisableSnapshotCopy.go index 8646abb772f..b35216d2009 100644 --- a/service/redshift/api_op_DisableSnapshotCopy.go +++ b/service/redshift/api_op_DisableSnapshotCopy.go @@ -31,6 +31,7 @@ func (c *Client) DisableSnapshotCopy(ctx context.Context, params *DisableSnapsho return out, nil } +// type DisableSnapshotCopyInput struct { // The unique identifier of the source cluster that you want to disable copying of diff --git a/service/redshift/api_op_EnableLogging.go b/service/redshift/api_op_EnableLogging.go index 3aa81eaa0ba..885cd8c1fab 100644 --- a/service/redshift/api_op_EnableLogging.go +++ b/service/redshift/api_op_EnableLogging.go @@ -29,6 +29,7 @@ func (c *Client) EnableLogging(ctx context.Context, params *EnableLoggingInput, return out, nil } +// type EnableLoggingInput struct { // The identifier of the cluster on which logging is to be started. Example: diff --git a/service/redshift/api_op_EnableSnapshotCopy.go b/service/redshift/api_op_EnableSnapshotCopy.go index ba12ee33850..200e6d2cd03 100644 --- a/service/redshift/api_op_EnableSnapshotCopy.go +++ b/service/redshift/api_op_EnableSnapshotCopy.go @@ -28,6 +28,7 @@ func (c *Client) EnableSnapshotCopy(ctx context.Context, params *EnableSnapshotC return out, nil } +// type EnableSnapshotCopyInput struct { // The unique identifier of the source cluster to copy snapshots from. Constraints: diff --git a/service/redshift/api_op_GetReservedNodeExchangeOfferings.go b/service/redshift/api_op_GetReservedNodeExchangeOfferings.go index 3cd8f46b818..1887e1e6089 100644 --- a/service/redshift/api_op_GetReservedNodeExchangeOfferings.go +++ b/service/redshift/api_op_GetReservedNodeExchangeOfferings.go @@ -29,6 +29,7 @@ func (c *Client) GetReservedNodeExchangeOfferings(ctx context.Context, params *G return out, nil } +// type GetReservedNodeExchangeOfferingsInput struct { // A string representing the node identifier for the DC1 Reserved Node to be diff --git a/service/redshift/api_op_ModifyCluster.go b/service/redshift/api_op_ModifyCluster.go index 623dd117024..9536da8b161 100644 --- a/service/redshift/api_op_ModifyCluster.go +++ b/service/redshift/api_op_ModifyCluster.go @@ -36,6 +36,7 @@ func (c *Client) ModifyCluster(ctx context.Context, params *ModifyClusterInput, return out, nil } +// type ModifyClusterInput struct { // The unique identifier of the cluster to be modified. Example: examplecluster diff --git a/service/redshift/api_op_ModifyClusterIamRoles.go b/service/redshift/api_op_ModifyClusterIamRoles.go index df930afcef7..b93f2d21385 100644 --- a/service/redshift/api_op_ModifyClusterIamRoles.go +++ b/service/redshift/api_op_ModifyClusterIamRoles.go @@ -32,6 +32,7 @@ func (c *Client) ModifyClusterIamRoles(ctx context.Context, params *ModifyCluste return out, nil } +// type ModifyClusterIamRolesInput struct { // The unique identifier of the cluster for which you want to associate or diff --git a/service/redshift/api_op_ModifyClusterParameterGroup.go b/service/redshift/api_op_ModifyClusterParameterGroup.go index 8abb170affe..907070d3e04 100644 --- a/service/redshift/api_op_ModifyClusterParameterGroup.go +++ b/service/redshift/api_op_ModifyClusterParameterGroup.go @@ -51,6 +51,7 @@ type ModifyClusterParameterGroupInput struct { noSmithyDocumentSerde } +// type ModifyClusterParameterGroupOutput struct { // The name of the cluster parameter group. diff --git a/service/redshift/api_op_ModifyClusterSubnetGroup.go b/service/redshift/api_op_ModifyClusterSubnetGroup.go index 4ec391306f7..be001076904 100644 --- a/service/redshift/api_op_ModifyClusterSubnetGroup.go +++ b/service/redshift/api_op_ModifyClusterSubnetGroup.go @@ -29,6 +29,7 @@ func (c *Client) ModifyClusterSubnetGroup(ctx context.Context, params *ModifyClu return out, nil } +// type ModifyClusterSubnetGroupInput struct { // The name of the subnet group to be modified. diff --git a/service/redshift/api_op_ModifyEventSubscription.go b/service/redshift/api_op_ModifyEventSubscription.go index 4b49130212f..c1a8ae302af 100644 --- a/service/redshift/api_op_ModifyEventSubscription.go +++ b/service/redshift/api_op_ModifyEventSubscription.go @@ -27,6 +27,7 @@ func (c *Client) ModifyEventSubscription(ctx context.Context, params *ModifyEven return out, nil } +// type ModifyEventSubscriptionInput struct { // The name of the modified Amazon Redshift event notification subscription. diff --git a/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go b/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go index d517825d42d..37590f1ed10 100644 --- a/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go +++ b/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go @@ -34,6 +34,7 @@ func (c *Client) ModifySnapshotCopyRetentionPeriod(ctx context.Context, params * return out, nil } +// type ModifySnapshotCopyRetentionPeriodInput struct { // The unique identifier of the cluster for which you want to change the retention diff --git a/service/redshift/api_op_PurchaseReservedNodeOffering.go b/service/redshift/api_op_PurchaseReservedNodeOffering.go index 02d355ed92e..9e0990b9f6a 100644 --- a/service/redshift/api_op_PurchaseReservedNodeOffering.go +++ b/service/redshift/api_op_PurchaseReservedNodeOffering.go @@ -34,6 +34,7 @@ func (c *Client) PurchaseReservedNodeOffering(ctx context.Context, params *Purch return out, nil } +// type PurchaseReservedNodeOfferingInput struct { // The unique identifier of the reserved node offering you want to purchase. diff --git a/service/redshift/api_op_RebootCluster.go b/service/redshift/api_op_RebootCluster.go index 2e363f65d05..e774f1a8451 100644 --- a/service/redshift/api_op_RebootCluster.go +++ b/service/redshift/api_op_RebootCluster.go @@ -33,6 +33,7 @@ func (c *Client) RebootCluster(ctx context.Context, params *RebootClusterInput, return out, nil } +// type RebootClusterInput struct { // The cluster identifier. diff --git a/service/redshift/api_op_ResetClusterParameterGroup.go b/service/redshift/api_op_ResetClusterParameterGroup.go index ec8e0766d6d..fb1871964de 100644 --- a/service/redshift/api_op_ResetClusterParameterGroup.go +++ b/service/redshift/api_op_ResetClusterParameterGroup.go @@ -30,6 +30,7 @@ func (c *Client) ResetClusterParameterGroup(ctx context.Context, params *ResetCl return out, nil } +// type ResetClusterParameterGroupInput struct { // The name of the cluster parameter group to be reset. @@ -49,6 +50,7 @@ type ResetClusterParameterGroupInput struct { noSmithyDocumentSerde } +// type ResetClusterParameterGroupOutput struct { // The name of the cluster parameter group. diff --git a/service/redshift/api_op_RestoreFromClusterSnapshot.go b/service/redshift/api_op_RestoreFromClusterSnapshot.go index 5670977418a..f6f8135eea6 100644 --- a/service/redshift/api_op_RestoreFromClusterSnapshot.go +++ b/service/redshift/api_op_RestoreFromClusterSnapshot.go @@ -38,6 +38,7 @@ func (c *Client) RestoreFromClusterSnapshot(ctx context.Context, params *Restore return out, nil } +// type RestoreFromClusterSnapshotInput struct { // The identifier of the cluster that will be created from restoring the snapshot. diff --git a/service/redshift/api_op_RestoreTableFromClusterSnapshot.go b/service/redshift/api_op_RestoreTableFromClusterSnapshot.go index 39506edc17d..0a5ea241d49 100644 --- a/service/redshift/api_op_RestoreTableFromClusterSnapshot.go +++ b/service/redshift/api_op_RestoreTableFromClusterSnapshot.go @@ -37,6 +37,7 @@ func (c *Client) RestoreTableFromClusterSnapshot(ctx context.Context, params *Re return out, nil } +// type RestoreTableFromClusterSnapshotInput struct { // The identifier of the Amazon Redshift cluster to restore the table to. diff --git a/service/redshift/api_op_RevokeClusterSecurityGroupIngress.go b/service/redshift/api_op_RevokeClusterSecurityGroupIngress.go index 575b247fd38..1eec1bf68ca 100644 --- a/service/redshift/api_op_RevokeClusterSecurityGroupIngress.go +++ b/service/redshift/api_op_RevokeClusterSecurityGroupIngress.go @@ -32,6 +32,7 @@ func (c *Client) RevokeClusterSecurityGroupIngress(ctx context.Context, params * return out, nil } +// type RevokeClusterSecurityGroupIngressInput struct { // The name of the security Group from which to revoke the ingress rule. diff --git a/service/redshift/api_op_RevokeSnapshotAccess.go b/service/redshift/api_op_RevokeSnapshotAccess.go index 29685331cdc..331d131a005 100644 --- a/service/redshift/api_op_RevokeSnapshotAccess.go +++ b/service/redshift/api_op_RevokeSnapshotAccess.go @@ -32,6 +32,7 @@ func (c *Client) RevokeSnapshotAccess(ctx context.Context, params *RevokeSnapsho return out, nil } +// type RevokeSnapshotAccessInput struct { // The identifier of the Amazon Web Services account that can no longer restore the diff --git a/service/redshift/api_op_RotateEncryptionKey.go b/service/redshift/api_op_RotateEncryptionKey.go index 7243ce7d240..75adbfc3042 100644 --- a/service/redshift/api_op_RotateEncryptionKey.go +++ b/service/redshift/api_op_RotateEncryptionKey.go @@ -27,6 +27,7 @@ func (c *Client) RotateEncryptionKey(ctx context.Context, params *RotateEncrypti return out, nil } +// type RotateEncryptionKeyInput struct { // The unique identifier of the cluster that you want to rotate the encryption keys diff --git a/service/redshift/types/errors.go b/service/redshift/types/errors.go index 65a24a0bee4..9329fdb2238 100644 --- a/service/redshift/types/errors.go +++ b/service/redshift/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessToClusterDeniedFault struct { Message *string + Code *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.Code == nil { + return "AccessToClusterDenied" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AccessToSnapshotDenied" + } + return *e.Code +} func (e *AccessToSnapshotDeniedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The authentication profile already exists. type AuthenticationProfileAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -63,7 +79,10 @@ func (e *AuthenticationProfileAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileAlreadyExistsFault) ErrorCode() string { - return "AuthenticationProfileAlreadyExistsFault" + if e.Code == nil { + return "AuthenticationProfileAlreadyExistsFault" + } + return *e.Code } func (e *AuthenticationProfileAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -73,6 +92,8 @@ func (e *AuthenticationProfileAlreadyExistsFault) ErrorFault() smithy.ErrorFault type AuthenticationProfileNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -86,7 +107,10 @@ func (e *AuthenticationProfileNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileNotFoundFault) ErrorCode() string { - return "AuthenticationProfileNotFoundFault" + if e.Code == nil { + return "AuthenticationProfileNotFoundFault" + } + return *e.Code } func (e *AuthenticationProfileNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -98,6 +122,8 @@ func (e *AuthenticationProfileNotFoundFault) ErrorFault() smithy.ErrorFault { type AuthenticationProfileQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -111,7 +137,10 @@ func (e *AuthenticationProfileQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileQuotaExceededFault) ErrorCode() string { - return "AuthenticationProfileQuotaExceededFault" + if e.Code == nil { + return "AuthenticationProfileQuotaExceededFault" + } + return *e.Code } func (e *AuthenticationProfileQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -122,6 +151,8 @@ func (e *AuthenticationProfileQuotaExceededFault) ErrorFault() smithy.ErrorFault type AuthorizationAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "AuthorizationAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AuthorizationNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AuthorizationQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -194,7 +246,10 @@ func (e *BatchDeleteRequestSizeExceededFault) ErrorMessage() string { return *e.Message } func (e *BatchDeleteRequestSizeExceededFault) ErrorCode() string { - return "BatchDeleteRequestSizeExceeded" + if e.Code == nil { + return "BatchDeleteRequestSizeExceeded" + } + return *e.Code } func (e *BatchDeleteRequestSizeExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -204,6 +259,8 @@ func (e *BatchDeleteRequestSizeExceededFault) ErrorFault() smithy.ErrorFault { type BatchModifyClusterSnapshotsLimitExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -217,7 +274,10 @@ func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorCode() string { - return "BatchModifyClusterSnapshotsLimitExceededFault" + if e.Code == nil { + return "BatchModifyClusterSnapshotsLimitExceededFault" + } + return *e.Code } func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -227,6 +287,8 @@ func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorFault() smithy.Erro type BucketNotFoundFault struct { Message *string + Code *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.Code == nil { + return "BucketNotFoundFault" + } + return *e.Code +} func (e *BucketNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The account already has a cluster with the given identifier. type ClusterAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "ClusterAlreadyExists" + } + return *e.Code +} func (e *ClusterAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The ClusterIdentifier parameter does not refer to an existing cluster. type ClusterNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ClusterNotFound" + } + return *e.Code +} func (e *ClusterNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Cluster is already on the latest database revision. type ClusterOnLatestRevisionFault struct { Message *string + Code *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.Code == nil { + return "ClusterOnLatestRevision" + } + return *e.Code +} func (e *ClusterOnLatestRevisionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cluster parameter group with the same name already exists. type ClusterParameterGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -316,7 +406,10 @@ func (e *ClusterParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupAlreadyExistsFault) ErrorCode() string { - return "ClusterParameterGroupAlreadyExists" + if e.Code == nil { + return "ClusterParameterGroupAlreadyExists" + } + return *e.Code } func (e *ClusterParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -326,6 +419,8 @@ func (e *ClusterParameterGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault type ClusterParameterGroupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -339,7 +434,10 @@ func (e *ClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupNotFoundFault) ErrorCode() string { - return "ClusterParameterGroupNotFound" + if e.Code == nil { + return "ClusterParameterGroupNotFound" + } + return *e.Code } func (e *ClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -353,6 +451,8 @@ func (e *ClusterParameterGroupNotFoundFault) ErrorFault() smithy.ErrorFault { type ClusterParameterGroupQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -366,7 +466,10 @@ func (e *ClusterParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupQuotaExceededFault) ErrorCode() string { - return "ClusterParameterGroupQuotaExceeded" + if e.Code == nil { + return "ClusterParameterGroupQuotaExceeded" + } + return *e.Code } func (e *ClusterParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -380,6 +483,8 @@ func (e *ClusterParameterGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault type ClusterQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "ClusterQuotaExceeded" + } + return *e.Code +} func (e *ClusterQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A cluster security group with the same name already exists. type ClusterSecurityGroupAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -412,7 +524,10 @@ func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorCode() string { - return "ClusterSecurityGroupAlreadyExists" + if e.Code == nil { + return "ClusterSecurityGroupAlreadyExists" + } + return *e.Code } func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -423,6 +538,8 @@ func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault type ClusterSecurityGroupNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ClusterSecurityGroupNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -459,7 +583,10 @@ func (e *ClusterSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSecurityGroupQuotaExceededFault) ErrorCode() string { - return "QuotaExceeded.ClusterSecurityGroup" + if e.Code == nil { + return "QuotaExceeded.ClusterSecurityGroup" + } + return *e.Code } func (e *ClusterSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -470,6 +597,8 @@ func (e *ClusterSecurityGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault type ClusterSnapshotAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "ClusterSnapshotAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClusterSnapshotNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ClusterSnapshotQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -541,7 +691,10 @@ func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorCode() string { - return "ClusterSubnetGroupAlreadyExists" + if e.Code == nil { + return "ClusterSubnetGroupAlreadyExists" + } + return *e.Code } func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -552,6 +705,8 @@ func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type ClusterSubnetGroupNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -565,7 +720,10 @@ func (e *ClusterSubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupNotFoundFault) ErrorCode() string { - return "ClusterSubnetGroupNotFoundFault" + if e.Code == nil { + return "ClusterSubnetGroupNotFoundFault" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -590,7 +750,10 @@ func (e *ClusterSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupQuotaExceededFault) ErrorCode() string { - return "ClusterSubnetGroupQuotaExceeded" + if e.Code == nil { + return "ClusterSubnetGroupQuotaExceeded" + } + return *e.Code } func (e *ClusterSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -604,6 +767,8 @@ func (e *ClusterSubnetGroupQuotaExceededFault) ErrorFault() smithy.ErrorFault { type ClusterSubnetQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -617,7 +782,10 @@ func (e *ClusterSubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetQuotaExceededFault) ErrorCode() string { - return "ClusterSubnetQuotaExceededFault" + if e.Code == nil { + return "ClusterSubnetQuotaExceededFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "CopyToRegionDisabledFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -658,7 +835,10 @@ func (e *DependentServiceRequestThrottlingFault) ErrorMessage() string { return *e.Message } func (e *DependentServiceRequestThrottlingFault) ErrorCode() string { - return "DependentServiceRequestThrottlingFault" + if e.Code == nil { + return "DependentServiceRequestThrottlingFault" + } + return *e.Code } func (e *DependentServiceRequestThrottlingFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -669,6 +849,8 @@ func (e *DependentServiceRequestThrottlingFault) ErrorFault() smithy.ErrorFault type DependentServiceUnavailableFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -682,7 +864,10 @@ func (e *DependentServiceUnavailableFault) ErrorMessage() string { return *e.Message } func (e *DependentServiceUnavailableFault) ErrorCode() string { - return "DependentServiceUnavailableFault" + if e.Code == nil { + return "DependentServiceUnavailableFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "EndpointAlreadyExists" + } + return *e.Code +} func (e *EndpointAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The authorization already exists for this endpoint. type EndpointAuthorizationAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -723,7 +917,10 @@ func (e *EndpointAuthorizationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *EndpointAuthorizationAlreadyExistsFault) ErrorCode() string { - return "EndpointAuthorizationAlreadyExists" + if e.Code == nil { + return "EndpointAuthorizationAlreadyExists" + } + return *e.Code } func (e *EndpointAuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -733,6 +930,8 @@ func (e *EndpointAuthorizationAlreadyExistsFault) ErrorFault() smithy.ErrorFault type EndpointAuthorizationNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -746,7 +945,10 @@ func (e *EndpointAuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *EndpointAuthorizationNotFoundFault) ErrorCode() string { - return "EndpointAuthorizationNotFound" + if e.Code == nil { + return "EndpointAuthorizationNotFound" + } + return *e.Code } func (e *EndpointAuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -756,6 +958,8 @@ func (e *EndpointAuthorizationNotFoundFault) ErrorFault() smithy.ErrorFault { type EndpointAuthorizationsPerClusterLimitExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -769,7 +973,10 @@ func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorMessage() stri return *e.Message } func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorCode() string { - return "EndpointAuthorizationsPerClusterLimitExceeded" + if e.Code == nil { + return "EndpointAuthorizationsPerClusterLimitExceeded" + } + return *e.Code } func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -779,6 +986,8 @@ func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorFault() smithy type EndpointNotFoundFault struct { Message *string + Code *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.Code == nil { + return "EndpointNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -812,7 +1028,10 @@ func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorCode() string { - return "EndpointsPerAuthorizationLimitExceeded" + if e.Code == nil { + return "EndpointsPerAuthorizationLimitExceeded" + } + return *e.Code } func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -822,6 +1041,8 @@ func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorFault() smithy.ErrorF type EndpointsPerClusterLimitExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -835,7 +1056,10 @@ func (e *EndpointsPerClusterLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *EndpointsPerClusterLimitExceededFault) ErrorCode() string { - return "EndpointsPerClusterLimitExceeded" + if e.Code == nil { + return "EndpointsPerClusterLimitExceeded" + } + return *e.Code } func (e *EndpointsPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -849,6 +1073,8 @@ func (e *EndpointsPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { type EventSubscriptionQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -862,7 +1088,10 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - return "EventSubscriptionQuotaExceeded" + if e.Code == nil { + return "EventSubscriptionQuotaExceeded" + } + return *e.Code } func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -873,6 +1102,8 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorFault() smithy.ErrorFault { type HsmClientCertificateAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -886,7 +1117,10 @@ func (e *HsmClientCertificateAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateAlreadyExistsFault) ErrorCode() string { - return "HsmClientCertificateAlreadyExistsFault" + if e.Code == nil { + return "HsmClientCertificateAlreadyExistsFault" + } + return *e.Code } func (e *HsmClientCertificateAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -897,6 +1131,8 @@ func (e *HsmClientCertificateAlreadyExistsFault) ErrorFault() smithy.ErrorFault type HsmClientCertificateNotFoundFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -910,7 +1146,10 @@ func (e *HsmClientCertificateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateNotFoundFault) ErrorCode() string { - return "HsmClientCertificateNotFoundFault" + if e.Code == nil { + return "HsmClientCertificateNotFoundFault" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -934,7 +1175,10 @@ func (e *HsmClientCertificateQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateQuotaExceededFault) ErrorCode() string { - return "HsmClientCertificateQuotaExceededFault" + if e.Code == nil { + return "HsmClientCertificateQuotaExceededFault" + } + return *e.Code } func (e *HsmClientCertificateQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -945,6 +1189,8 @@ func (e *HsmClientCertificateQuotaExceededFault) ErrorFault() smithy.ErrorFault type HsmConfigurationAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -958,7 +1204,10 @@ func (e *HsmConfigurationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *HsmConfigurationAlreadyExistsFault) ErrorCode() string { - return "HsmConfigurationAlreadyExistsFault" + if e.Code == nil { + return "HsmConfigurationAlreadyExistsFault" + } + return *e.Code } func (e *HsmConfigurationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -968,6 +1217,8 @@ func (e *HsmConfigurationAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type HsmConfigurationNotFoundFault struct { Message *string + Code *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.Code == nil { + return "HsmConfigurationNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1003,7 +1261,10 @@ func (e *HsmConfigurationQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *HsmConfigurationQuotaExceededFault) ErrorCode() string { - return "HsmConfigurationQuotaExceededFault" + if e.Code == nil { + return "HsmConfigurationQuotaExceededFault" + } + return *e.Code } func (e *HsmConfigurationQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1013,6 +1274,8 @@ func (e *HsmConfigurationQuotaExceededFault) ErrorFault() smithy.ErrorFault { type IncompatibleOrderableOptions struct { Message *string + Code *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.Code == nil { + return "IncompatibleOrderableOptions" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1046,7 +1316,10 @@ func (e *InProgressTableRestoreQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *InProgressTableRestoreQuotaExceededFault) ErrorCode() string { - return "InProgressTableRestoreQuotaExceededFault" + if e.Code == nil { + return "InProgressTableRestoreQuotaExceededFault" + } + return *e.Code } func (e *InProgressTableRestoreQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1056,6 +1329,8 @@ func (e *InProgressTableRestoreQuotaExceededFault) ErrorFault() smithy.ErrorFaul type InsufficientClusterCapacityFault struct { Message *string + Code *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.Code == nil { + return "InsufficientClusterCapacity" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1089,7 +1371,10 @@ func (e *InsufficientS3BucketPolicyFault) ErrorMessage() string { return *e.Message } func (e *InsufficientS3BucketPolicyFault) ErrorCode() string { - return "InsufficientS3BucketPolicyFault" + if e.Code == nil { + return "InsufficientS3BucketPolicyFault" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1112,7 +1399,10 @@ func (e *InvalidAuthenticationProfileRequestFault) ErrorMessage() string { return *e.Message } func (e *InvalidAuthenticationProfileRequestFault) ErrorCode() string { - return "InvalidAuthenticationProfileRequestFault" + if e.Code == nil { + return "InvalidAuthenticationProfileRequestFault" + } + return *e.Code } func (e *InvalidAuthenticationProfileRequestFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1122,6 +1412,8 @@ func (e *InvalidAuthenticationProfileRequestFault) ErrorFault() smithy.ErrorFaul type InvalidAuthorizationStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidAuthorizationState" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1156,7 +1455,10 @@ func (e *InvalidClusterParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterParameterGroupStateFault) ErrorCode() string { - return "InvalidClusterParameterGroupState" + if e.Code == nil { + return "InvalidClusterParameterGroupState" + } + return *e.Code } func (e *InvalidClusterParameterGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1166,6 +1468,8 @@ func (e *InvalidClusterParameterGroupStateFault) ErrorFault() smithy.ErrorFault type InvalidClusterSecurityGroupStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1179,7 +1483,10 @@ func (e *InvalidClusterSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSecurityGroupStateFault) ErrorCode() string { - return "InvalidClusterSecurityGroupState" + if e.Code == nil { + return "InvalidClusterSecurityGroupState" + } + return *e.Code } func (e *InvalidClusterSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1189,6 +1496,8 @@ func (e *InvalidClusterSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidClusterSnapshotScheduleStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1202,7 +1511,10 @@ func (e *InvalidClusterSnapshotScheduleStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSnapshotScheduleStateFault) ErrorCode() string { - return "InvalidClusterSnapshotScheduleState" + if e.Code == nil { + return "InvalidClusterSnapshotScheduleState" + } + return *e.Code } func (e *InvalidClusterSnapshotScheduleStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1213,6 +1525,8 @@ func (e *InvalidClusterSnapshotScheduleStateFault) ErrorFault() smithy.ErrorFaul type InvalidClusterSnapshotStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidClusterSnapshotState" + } + return *e.Code +} func (e *InvalidClusterSnapshotStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified cluster is not in the available state. type InvalidClusterStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidClusterState" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1264,7 +1592,10 @@ func (e *InvalidClusterSubnetGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSubnetGroupStateFault) ErrorCode() string { - return "InvalidClusterSubnetGroupStateFault" + if e.Code == nil { + return "InvalidClusterSubnetGroupStateFault" + } + return *e.Code } func (e *InvalidClusterSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1274,6 +1605,8 @@ func (e *InvalidClusterSubnetGroupStateFault) ErrorFault() smithy.ErrorFault { type InvalidClusterSubnetStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidClusterSubnetStateFault" + } + return *e.Code +} func (e *InvalidClusterSubnetStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided cluster track name is not valid. type InvalidClusterTrackFault struct { Message *string + Code *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.Code == nil { + return "InvalidClusterTrack" + } + return *e.Code +} func (e *InvalidClusterTrackFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is an error with the datashare. type InvalidDataShareFault struct { Message *string + Code *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.Code == nil { + return "InvalidDataShareFault" + } + return *e.Code +} func (e *InvalidDataShareFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The Elastic IP (EIP) is invalid or cannot be found. type InvalidElasticIpFault struct { Message *string + Code *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.Code == nil { + return "InvalidElasticIpFault" + } + return *e.Code +} func (e *InvalidElasticIpFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The status of the endpoint is not valid. type InvalidEndpointStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidEndpointState" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1383,7 +1751,10 @@ func (e *InvalidHsmClientCertificateStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidHsmClientCertificateStateFault) ErrorCode() string { - return "InvalidHsmClientCertificateStateFault" + if e.Code == nil { + return "InvalidHsmClientCertificateStateFault" + } + return *e.Code } func (e *InvalidHsmClientCertificateStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1394,6 +1765,8 @@ func (e *InvalidHsmClientCertificateStateFault) ErrorFault() smithy.ErrorFault { type InvalidHsmConfigurationStateFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1407,7 +1780,10 @@ func (e *InvalidHsmConfigurationStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidHsmConfigurationStateFault) ErrorCode() string { - return "InvalidHsmConfigurationStateFault" + if e.Code == nil { + return "InvalidHsmConfigurationStateFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidNamespaceFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidReservedNodeState" + } + return *e.Code +} func (e *InvalidReservedNodeStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The restore is invalid. type InvalidRestoreFault struct { Message *string + Code *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.Code == nil { + return "InvalidRestore" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRetentionPeriodFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidS3BucketNameFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidS3KeyPrefixFault" + } + return *e.Code +} func (e *InvalidS3KeyPrefixFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The scheduled action is not valid. type InvalidScheduledActionFault struct { Message *string + Code *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.Code == nil { + return "InvalidScheduledAction" + } + return *e.Code +} func (e *InvalidScheduledActionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The schedule you submitted isn't valid. type InvalidScheduleFault struct { Message *string + Code *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.Code == nil { + return "InvalidSchedule" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1587,7 +2021,10 @@ func (e *InvalidSnapshotCopyGrantStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidSnapshotCopyGrantStateFault) ErrorCode() string { - return "InvalidSnapshotCopyGrantStateFault" + if e.Code == nil { + return "InvalidSnapshotCopyGrantStateFault" + } + return *e.Code } func (e *InvalidSnapshotCopyGrantStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1598,6 +2035,8 @@ func (e *InvalidSnapshotCopyGrantStateFault) ErrorFault() smithy.ErrorFault { type InvalidSubnet struct { Message *string + Code *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.Code == nil { + return "InvalidSubnet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSubscriptionStateFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTableRestoreArgument" + } + return *e.Code +} func (e *InvalidTableRestoreArgumentFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The tag is invalid. type InvalidTagFault struct { Message *string + Code *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.Code == nil { + return "InvalidTagFault" + } + return *e.Code +} func (e *InvalidTagFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The usage limit is not valid. type InvalidUsageLimitFault struct { Message *string + Code *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.Code == nil { + return "InvalidUsageLimit" + } + return *e.Code +} func (e *InvalidUsageLimitFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster subnet group does not cover all Availability Zones. type InvalidVPCNetworkStateFault struct { Message *string + Code *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.Code == nil { + return "InvalidVPCNetworkStateFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1747,7 +2235,10 @@ func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorCode() string { - return "NumberOfNodesPerClusterLimitExceeded" + if e.Code == nil { + return "NumberOfNodesPerClusterLimitExceeded" + } + return *e.Code } func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1760,6 +2251,8 @@ func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorFault() smithy.ErrorFau type NumberOfNodesQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "NumberOfNodesQuotaExceeded" + } + return *e.Code +} func (e *NumberOfNodesQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name of the partner was not found. type PartnerNotFoundFault struct { Message *string + Code *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.Code == nil { + return "PartnerNotFound" + } + return *e.Code +} func (e *PartnerNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // User already has a reservation with the given identifier. type ReservedNodeAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "ReservedNodeAlreadyExists" + } + return *e.Code +} func (e *ReservedNodeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the reserved node has already been exchanged. type ReservedNodeAlreadyMigratedFault struct { Message *string + Code *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.Code == nil { + return "ReservedNodeAlreadyMigrated" + } + return *e.Code +} func (e *ReservedNodeAlreadyMigratedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The reserved-node exchange status wasn't found. type ReservedNodeExchangeNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ReservedNodeExchangeNotFond" + } + return *e.Code +} func (e *ReservedNodeExchangeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified reserved compute node not found. type ReservedNodeNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ReservedNodeNotFound" + } + return *e.Code +} func (e *ReservedNodeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Specified offering does not exist. type ReservedNodeOfferingNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ReservedNodeOfferingNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReservedNodeQuotaExceeded" + } + return *e.Code +} func (e *ReservedNodeQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resize operation for the specified cluster is not found. type ResizeNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ResizeNotFound" + } + return *e.Code +} func (e *ResizeNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundFault" + } + return *e.Code +} func (e *ResourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The scheduled action already exists. type ScheduledActionAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "ScheduledActionAlreadyExists" + } + return *e.Code +} func (e *ScheduledActionAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The scheduled action cannot be found. type ScheduledActionNotFoundFault struct { Message *string + Code *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.Code == nil { + return "ScheduledActionNotFound" + } + return *e.Code +} func (e *ScheduledActionNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The quota for scheduled actions exceeded. type ScheduledActionQuotaExceededFault struct { Message *string + Code *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.Code == nil { + return "ScheduledActionQuotaExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2023,7 +2607,10 @@ func (e *ScheduledActionTypeUnsupportedFault) ErrorMessage() string { return *e.Message } func (e *ScheduledActionTypeUnsupportedFault) ErrorCode() string { - return "ScheduledActionTypeUnsupported" + if e.Code == nil { + return "ScheduledActionTypeUnsupported" + } + return *e.Code } func (e *ScheduledActionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2033,6 +2620,8 @@ func (e *ScheduledActionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault { type ScheduleDefinitionTypeUnsupportedFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2046,7 +2635,10 @@ func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorMessage() string { return *e.Message } func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorCode() string { - return "ScheduleDefinitionTypeUnsupported" + if e.Code == nil { + return "ScheduleDefinitionTypeUnsupported" + } + return *e.Code } func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2056,6 +2648,8 @@ func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorFault() smithy.ErrorFault type SnapshotCopyAlreadyDisabledFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2069,7 +2663,10 @@ func (e *SnapshotCopyAlreadyDisabledFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyAlreadyDisabledFault) ErrorCode() string { - return "SnapshotCopyAlreadyDisabledFault" + if e.Code == nil { + return "SnapshotCopyAlreadyDisabledFault" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -2090,7 +2689,10 @@ func (e *SnapshotCopyAlreadyEnabledFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyAlreadyEnabledFault) ErrorCode() string { - return "SnapshotCopyAlreadyEnabledFault" + if e.Code == nil { + return "SnapshotCopyAlreadyEnabledFault" + } + return *e.Code } 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 + Code *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.Code == nil { + return "SnapshotCopyDisabledFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2131,7 +2742,10 @@ func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorCode() string { - return "SnapshotCopyGrantAlreadyExistsFault" + if e.Code == nil { + return "SnapshotCopyGrantAlreadyExistsFault" + } + return *e.Code } func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2142,6 +2756,8 @@ func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type SnapshotCopyGrantNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SnapshotCopyGrantNotFoundFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2175,7 +2798,10 @@ func (e *SnapshotCopyGrantQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyGrantQuotaExceededFault) ErrorCode() string { - return "SnapshotCopyGrantQuotaExceededFault" + if e.Code == nil { + return "SnapshotCopyGrantQuotaExceededFault" + } + return *e.Code } func (e *SnapshotCopyGrantQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2185,6 +2811,8 @@ func (e *SnapshotCopyGrantQuotaExceededFault) ErrorFault() smithy.ErrorFault { type SnapshotScheduleAlreadyExistsFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2198,7 +2826,10 @@ func (e *SnapshotScheduleAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleAlreadyExistsFault) ErrorCode() string { - return "SnapshotScheduleAlreadyExists" + if e.Code == nil { + return "SnapshotScheduleAlreadyExists" + } + return *e.Code } func (e *SnapshotScheduleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2208,6 +2839,8 @@ func (e *SnapshotScheduleAlreadyExistsFault) ErrorFault() smithy.ErrorFault { type SnapshotScheduleNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SnapshotScheduleNotFound" + } + return *e.Code +} func (e *SnapshotScheduleNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the quota of snapshot schedules. type SnapshotScheduleQuotaExceededFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2240,7 +2880,10 @@ func (e *SnapshotScheduleQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleQuotaExceededFault) ErrorCode() string { - return "SnapshotScheduleQuotaExceeded" + if e.Code == nil { + return "SnapshotScheduleQuotaExceeded" + } + return *e.Code } func (e *SnapshotScheduleQuotaExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2250,6 +2893,8 @@ func (e *SnapshotScheduleQuotaExceededFault) ErrorFault() smithy.ErrorFault { type SnapshotScheduleUpdateInProgressFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2263,7 +2908,10 @@ func (e *SnapshotScheduleUpdateInProgressFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleUpdateInProgressFault) ErrorCode() string { - return "SnapshotScheduleUpdateInProgress" + if e.Code == nil { + return "SnapshotScheduleUpdateInProgress" + } + return *e.Code } func (e *SnapshotScheduleUpdateInProgressFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2274,6 +2922,8 @@ func (e *SnapshotScheduleUpdateInProgressFault) ErrorFault() smithy.ErrorFault { type SNSInvalidTopicFault struct { Message *string + Code *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.Code == nil { + return "SNSInvalidTopic" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SNSNoAuthorization" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SNSTopicArnNotFound" + } + return *e.Code +} func (e *SNSTopicArnNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Amazon Redshift event source could not be found. type SourceNotFoundFault struct { Message *string + Code *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.Code == nil { + return "SourceNotFound" + } + return *e.Code +} func (e *SourceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified subnet is already in use by another cluster. type SubnetAlreadyInUse struct { Message *string + Code *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.Code == nil { + return "SubnetAlreadyInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubscriptionAlreadyExist" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubscriptionCategoryNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubscriptionEventIdNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubscriptionNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubscriptionSeverityNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TableLimitExceeded" + } + return *e.Code +} func (e *TableLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified TableRestoreRequestId value was not found. type TableRestoreNotFoundFault struct { Message *string + Code *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.Code == nil { + return "TableRestoreNotFoundFault" + } + return *e.Code +} func (e *TableRestoreNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the number of tags allowed. type TagLimitExceededFault struct { Message *string + Code *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.Code == nil { + return "TagLimitExceededFault" + } + return *e.Code +} func (e *TagLimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your account is not authorized to perform the requested operation. type UnauthorizedOperation struct { Message *string + Code *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.Code == nil { + return "UnauthorizedOperation" + } + return *e.Code +} func (e *UnauthorizedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The partner integration is not authorized. type UnauthorizedPartnerIntegrationFault struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2561,7 +3309,10 @@ func (e *UnauthorizedPartnerIntegrationFault) ErrorMessage() string { return *e.Message } func (e *UnauthorizedPartnerIntegrationFault) ErrorCode() string { - return "UnauthorizedPartnerIntegration" + if e.Code == nil { + return "UnauthorizedPartnerIntegration" + } + return *e.Code } func (e *UnauthorizedPartnerIntegrationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2571,6 +3322,8 @@ func (e *UnauthorizedPartnerIntegrationFault) ErrorFault() smithy.ErrorFault { type UnknownSnapshotCopyRegionFault struct { Message *string + Code *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.Code == nil { + return "UnknownSnapshotCopyRegionFault" + } + return *e.Code +} func (e *UnknownSnapshotCopyRegionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested operation isn't supported. type UnsupportedOperationFault struct { Message *string + Code *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.Code == nil { + return "UnsupportedOperation" + } + return *e.Code +} func (e *UnsupportedOperationFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A request option was specified that is not supported. type UnsupportedOptionFault struct { Message *string + Code *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.Code == nil { + return "UnsupportedOptionFault" + } + return *e.Code +} func (e *UnsupportedOptionFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The usage limit already exists. type UsageLimitAlreadyExistsFault struct { Message *string + Code *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.Code == nil { + return "UsageLimitAlreadyExists" + } + return *e.Code +} func (e *UsageLimitAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The usage limit identifier can't be found. type UsageLimitNotFoundFault struct { Message *string + Code *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.Code == nil { + return "UsageLimitNotFound" + } + return *e.Code +} func (e *UsageLimitNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/redshift/types/types.go b/service/redshift/types/types.go index 316d9f81ab0..3bd62b3b7a1 100644 --- a/service/redshift/types/types.go +++ b/service/redshift/types/types.go @@ -353,6 +353,7 @@ type Cluster struct { noSmithyDocumentSerde } +// type ClusterAssociatedToSchedule struct { // @@ -708,6 +709,7 @@ type DeferredMaintenanceWindow struct { noSmithyDocumentSerde } +// type DeleteClusterSnapshotMessage struct { // The unique identifier of the manual snapshot to be deleted. Constraints: Must be diff --git a/service/redshiftdata/types/errors.go b/service/redshiftdata/types/errors.go index fa60348c4fe..8e7d7ed83f1 100644 --- a/service/redshiftdata/types/errors.go +++ b/service/redshiftdata/types/errors.go @@ -11,6 +11,8 @@ import ( type ActiveStatementsExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ActiveStatementsExceededException) ErrorMessage() string { return *e.Message } func (e *ActiveStatementsExceededException) ErrorCode() string { - return "ActiveStatementsExceededException" + if e.Code == nil { + return "ActiveStatementsExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "BatchExecuteStatementException" + } + return *e.Code +} func (e *BatchExecuteStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Connection to a database failed. type DatabaseConnectionException struct { Message *string + Code *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.Code == nil { + return "DatabaseConnectionException" + } + return *e.Code +} func (e *DatabaseConnectionException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The SQL statement encountered an environmental error while running. type ExecuteStatementException struct { Message *string + Code *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.Code == nil { + return "ExecuteStatementException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/redshiftdata/types/types.go b/service/redshiftdata/types/types.go index 14dbcc0d2c3..c355b2c8c9d 100644 --- a/service/redshiftdata/types/types.go +++ b/service/redshiftdata/types/types.go @@ -55,13 +55,12 @@ type ColumnMetadata struct { // A data value in a column. // // The following types satisfy this interface: -// -// FieldMemberBlobValue -// FieldMemberBooleanValue -// FieldMemberDoubleValue -// FieldMemberIsNull -// FieldMemberLongValue -// FieldMemberStringValue +// FieldMemberBlobValue +// FieldMemberBooleanValue +// FieldMemberDoubleValue +// FieldMemberIsNull +// FieldMemberLongValue +// FieldMemberStringValue type Field interface { isField() } diff --git a/service/redshiftserverless/types/errors.go b/service/redshiftserverless/types/errors.go index 0fda932e7e0..3687056c202 100644 --- a/service/redshiftserverless/types/errors.go +++ b/service/redshiftserverless/types/errors.go @@ -25,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The submitted action has conflicts. type ConflictException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -44,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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is an insufficient capacity to perform the action. type InsufficientCapacityException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -63,7 +77,12 @@ func (e *InsufficientCapacityException) ErrorMessage() string { } return *e.Message } -func (e *InsufficientCapacityException) ErrorCode() string { return "InsufficientCapacityException" } +func (e *InsufficientCapacityException) ErrorCode() string { + if e.Code == nil { + return "InsufficientCapacityException" + } + return *e.Code +} func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception or @@ -71,6 +90,8 @@ func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return type InternalServerException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -83,13 +104,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The provided pagination token is invalid. type InvalidPaginationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -102,13 +130,20 @@ func (e *InvalidPaginationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPaginationException) ErrorCode() string { return "InvalidPaginationException" } +func (e *InvalidPaginationException) ErrorCode() string { + if e.Code == nil { + return "InvalidPaginationException" + } + return *e.Code +} func (e *InvalidPaginationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + Code *string + ResourceName *string noSmithyDocumentSerde @@ -123,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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service limit was exceeded. type ServiceQuotaExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -142,7 +184,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. @@ -163,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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *string + ResourceName *string noSmithyDocumentSerde @@ -184,13 +238,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -203,5 +264,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rekognition/api_op_DetectLabels.go b/service/rekognition/api_op_DetectLabels.go index a9d6a5915e1..347b6a5e579 100644 --- a/service/rekognition/api_op_DetectLabels.go +++ b/service/rekognition/api_op_DetectLabels.go @@ -85,18 +85,14 @@ import ( // the following example, suppose the input image has a lighthouse, the sea, and a // rock. The response includes all three labels, one for each object, as well as // the confidence in the label: {Name: lighthouse, Confidence: 98.4629} -// -// {Name: -// +// {Name: // rock,Confidence: 79.2097} // // {Name: sea,Confidence: 75.061} The list of labels can // include multiple labels for the same object. For example, if the input image // shows a flower (for example, a tulip), the operation might return the following // three labels. {Name: flower,Confidence: 99.0562} -// -// {Name: plant,Confidence: -// +// {Name: plant,Confidence: // 99.0562} // // {Name: tulip,Confidence: 99.0562} In this example, the detection diff --git a/service/rekognition/types/errors.go b/service/rekognition/types/errors.go index a53dea1f157..e276d44d512 100644 --- a/service/rekognition/types/errors.go +++ b/service/rekognition/types/errors.go @@ -11,7 +11,8 @@ import ( type AccessDeniedException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -26,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of in-progress human reviews you have has exceeded the number @@ -34,10 +40,11 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type HumanLoopQuotaExceededException struct { Message *string + Code *string + ResourceType *string QuotaCode *string ServiceCode *string - Code *string Logref *string noSmithyDocumentSerde @@ -53,7 +60,10 @@ func (e *HumanLoopQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *HumanLoopQuotaExceededException) ErrorCode() string { - return "HumanLoopQuotaExceededException" + if e.Code == nil { + return "HumanLoopQuotaExceededException" + } + return *e.Code } func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -63,7 +73,8 @@ func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault { retur type IdempotentParameterMismatchException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -79,7 +90,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -92,7 +106,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type ImageTooLargeException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -107,14 +122,20 @@ func (e *ImageTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *ImageTooLargeException) ErrorCode() string { return "ImageTooLargeException" } +func (e *ImageTooLargeException) ErrorCode() string { + if e.Code == nil { + return "ImageTooLargeException" + } + return *e.Code +} func (e *ImageTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Rekognition experienced a service issue. Try your call again. type InternalServerError struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -129,14 +150,20 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.Code == nil { + return "InternalServerError" + } + return *e.Code +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The provided image format is not supported. type InvalidImageFormatException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -151,14 +178,20 @@ func (e *InvalidImageFormatException) ErrorMessage() string { } return *e.Message } -func (e *InvalidImageFormatException) ErrorCode() string { return "InvalidImageFormatException" } +func (e *InvalidImageFormatException) ErrorCode() string { + if e.Code == nil { + return "InvalidImageFormatException" + } + return *e.Code +} func (e *InvalidImageFormatException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Pagination token in the request is not valid. type InvalidPaginationTokenException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -174,7 +207,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.Code == nil { + return "InvalidPaginationTokenException" + } + return *e.Code } func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -183,7 +219,8 @@ func (e *InvalidPaginationTokenException) ErrorFault() smithy.ErrorFault { retur type InvalidParameterException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -198,14 +235,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The supplied revision id for the project policy is invalid. type InvalidPolicyRevisionIdException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -221,7 +264,10 @@ func (e *InvalidPolicyRevisionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyRevisionIdException) ErrorCode() string { - return "InvalidPolicyRevisionIdException" + if e.Code == nil { + return "InvalidPolicyRevisionIdException" + } + return *e.Code } func (e *InvalidPolicyRevisionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -229,7 +275,8 @@ func (e *InvalidPolicyRevisionIdException) ErrorFault() smithy.ErrorFault { retu type InvalidS3ObjectException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -244,7 +291,12 @@ func (e *InvalidS3ObjectException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3ObjectException) ErrorCode() string { return "InvalidS3ObjectException" } +func (e *InvalidS3ObjectException) ErrorCode() string { + if e.Code == nil { + return "InvalidS3ObjectException" + } + return *e.Code +} func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Amazon Rekognition service limit was exceeded. For example, if you start too @@ -255,7 +307,8 @@ func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -270,7 +323,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The format of the project policy document that you supplied to PutProjectPolicy @@ -278,7 +336,8 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type MalformedPolicyDocumentException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -294,7 +353,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.Code == nil { + return "MalformedPolicyDocumentException" + } + return *e.Code } func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -303,7 +365,8 @@ func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { retu type ProvisionedThroughputExceededException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -319,7 +382,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.Code == nil { + return "ProvisionedThroughputExceededException" + } + return *e.Code } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -329,7 +395,8 @@ func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault type ResourceAlreadyExistsException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -344,14 +411,20 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } +func (e *ResourceAlreadyExistsException) ErrorCode() string { + if e.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is already being used. type ResourceInUseException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -366,14 +439,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request cannot be found. type ResourceNotFoundException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -388,7 +467,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource isn't ready. For example, this exception occurs when you @@ -396,7 +480,8 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ResourceNotReadyException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -411,7 +496,12 @@ func (e *ResourceNotReadyException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotReadyException" + } + return *e.Code +} func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The size of the collection exceeds the allowed limit. For more information, see @@ -420,7 +510,8 @@ func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smit type ServiceQuotaExceededException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -435,7 +526,12 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Rekognition is temporarily unable to process the request. Try your call @@ -443,7 +539,8 @@ func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return type ThrottlingException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -458,7 +555,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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,7 +568,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type VideoTooLargeException struct { Message *string - Code *string + Code *string + Logref *string noSmithyDocumentSerde @@ -481,5 +584,10 @@ func (e *VideoTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *VideoTooLargeException) ErrorCode() string { return "VideoTooLargeException" } +func (e *VideoTooLargeException) ErrorCode() string { + if e.Code == nil { + return "VideoTooLargeException" + } + return *e.Code +} 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..0c4d81c67f9 100644 --- a/service/resiliencehub/types/errors.go +++ b/service/resiliencehub/types/errors.go @@ -13,6 +13,8 @@ import ( type AccessDeniedException struct { Message *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + 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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a request was not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/resourceexplorer2/document/doc.go b/service/resourceexplorer2/document/doc.go index 2b06b14f3cd..49b6226bd0c 100644 --- a/service/resourceexplorer2/document/doc.go +++ b/service/resourceexplorer2/document/doc.go @@ -11,21 +11,21 @@ // // The following examples show how you can create document types using basic Go types. // -// NewLazyDocument(map[string]interface{}{ -// "favoriteNumber": 42, -// "fruits": []string{"apple", "orange"}, -// "capitals": map[string]interface{}{ -// "Washington": "Olympia", -// "Oregon": "Salem", -// }, -// "skyIsBlue": true, -// }) +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) // -// NewLazyDocument(3.14159) +// NewLazyDocument(3.14159) // -// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) // -// NewLazyDocument(true) +// NewLazyDocument(true) // // Services can send document types as part of their API responses. To retrieve the content of a response document // you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass @@ -33,34 +33,35 @@ // // For example, if you expect to receive key/value map from the service response: // -// var kv map[string]interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { -// // handle error -// } +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } // // If a service can return one or more data-types in the response, you can use an empty interface and type switch to // dynamically handle the response type. // -// var v interface{} -// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { -// // handle error -// } +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } // -// switch vv := v.(type) { -// case map[string]interface{}: -// // handle key/value map -// case []interface{}: -// // handle array of values -// case bool: -// // handle boolean -// case document.Number: -// // handle an arbitrary precision number -// case string: -// // handle string -// default: -// // handle unknown case -// } +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } // // The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document // including more in depth examples that cover user-defined structure types. +// package document diff --git a/service/resourceexplorer2/types/errors.go b/service/resourceexplorer2/types/errors.go index ae72254c7a9..cbfed061383 100644 --- a/service/resourceexplorer2/types/errors.go +++ b/service/resourceexplorer2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..be26bb528b3 100644 --- a/service/resourcegroups/types/errors.go +++ b/service/resourcegroups/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MethodNotAllowedException" + } + return *e.Code +} func (e *MethodNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more of the specified resources don't exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..a43ed55abcb 100644 --- a/service/resourcegroupstaggingapi/types/errors.go +++ b/service/resourcegroupstaggingapi/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConstraintViolationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -138,7 +166,10 @@ func (e *PaginationTokenExpiredException) ErrorMessage() string { return *e.Message } func (e *PaginationTokenExpiredException) ErrorCode() string { - return "PaginationTokenExpiredException" + if e.Code == nil { + return "PaginationTokenExpiredException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ThrottledException" + } + return *e.Code +} 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..f2fd4828c1d 100644 --- a/service/robomaker/types/errors.go +++ b/service/robomaker/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentDeploymentException struct { Message *string + Code *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.Code == nil { + return "ConcurrentDeploymentException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -45,7 +54,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -55,6 +67,8 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..0813dbff028 100644 --- a/service/rolesanywhere/types/errors.go +++ b/service/rolesanywhere/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many tags. type TooManyTagsException struct { Message *string + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Validation exception error. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/rolesanywhere/types/types.go b/service/rolesanywhere/types/types.go index 859323bb43c..36558940795 100644 --- a/service/rolesanywhere/types/types.go +++ b/service/rolesanywhere/types/types.go @@ -153,9 +153,8 @@ type Source struct { // The data field of the trust anchor depending on its type. // // The following types satisfy this interface: -// -// SourceDataMemberAcmPcaArn -// SourceDataMemberX509CertificateData +// SourceDataMemberAcmPcaArn +// SourceDataMemberX509CertificateData type SourceData interface { isSourceData() } diff --git a/service/route53/types/errors.go b/service/route53/types/errors.go index b2d23838d47..48f95ee94c8 100644 --- a/service/route53/types/errors.go +++ b/service/route53/types/errors.go @@ -11,6 +11,8 @@ import ( type CidrBlockInUseException struct { Message *string + Code *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.Code == nil { + return "CidrBlockInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *CidrCollectionAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *CidrCollectionAlreadyExistsException) ErrorCode() string { - return "CidrCollectionAlreadyExistsException" + if e.Code == nil { + return "CidrCollectionAlreadyExistsException" + } + return *e.Code } func (e *CidrCollectionAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *CidrCollectionAlreadyExistsException) ErrorFault() smithy.ErrorFault { type CidrCollectionInUseException struct { Message *string + Code *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.Code == nil { + return "CidrCollectionInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -87,7 +108,10 @@ func (e *CidrCollectionVersionMismatchException) ErrorMessage() string { return *e.Message } func (e *CidrCollectionVersionMismatchException) ErrorCode() string { - return "CidrCollectionVersionMismatchException" + if e.Code == nil { + return "CidrCollectionVersionMismatchException" + } + return *e.Code } func (e *CidrCollectionVersionMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -98,6 +122,8 @@ func (e *CidrCollectionVersionMismatchException) ErrorFault() smithy.ErrorFault type ConcurrentModification struct { Message *string + Code *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.Code == nil { + return "ConcurrentModification" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictingDomainExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictingTypes" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DelegationSetAlreadyCreated" + } + return *e.Code +} func (e *DelegationSetAlreadyCreated) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified delegation set has already been marked as reusable. type DelegationSetAlreadyReusable struct { Message *string + Code *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.Code == nil { + return "DelegationSetAlreadyReusable" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DelegationSetInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DelegationSetNotAvailable" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DelegationSetNotReusable" + } + return *e.Code +} func (e *DelegationSetNotReusable) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The hosted zone doesn't have any DNSSEC resources. type DNSSECNotFound struct { Message *string + Code *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.Code == nil { + return "DNSSECNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HealthCheckAlreadyExists" + } + return *e.Code +} func (e *HealthCheckAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error code is not in use. type HealthCheckInUse struct { Message *string + Code *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.Code == nil { + return "HealthCheckInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HealthCheckVersionMismatch" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HostedZoneAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HostedZoneNotEmpty" + } + return *e.Code +} func (e *HostedZoneNotEmpty) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified HostedZone can't be found. type HostedZoneNotFound struct { Message *string + Code *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.Code == nil { + return "HostedZoneNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HostedZoneNotPrivate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "HostedZonePartiallyDelegated" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncompatibleVersion" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -514,7 +666,10 @@ func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorMessage() string { return *e.Message } func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorCode() string { - return "InsufficientCloudWatchLogsResourcePolicy" + if e.Code == nil { + return "InsufficientCloudWatchLogsResourcePolicy" + } + return *e.Code } func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -524,6 +679,8 @@ func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorFault() smithy.ErrorFaul type InvalidArgument struct { Message *string + Code *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.Code == nil { + return "InvalidArgument" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidChangeBatch" + } + return *e.Code +} func (e *InvalidChangeBatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified domain name is not valid. type InvalidDomainName struct { Message *string + Code *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.Code == nil { + return "InvalidDomainName" + } + return *e.Code +} func (e *InvalidDomainName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input is not valid. type InvalidInput struct { Message *string + Code *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.Code == nil { + return "InvalidInput" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidKeySigningKeyName" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidKeySigningKeyStatus" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidKMSArn" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPaginationToken" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSigningStatus" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTrafficPolicyDocument" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidVPCId" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KeySigningKeyAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KeySigningKeyInParentDSRecord" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KeySigningKeyInUse" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -815,7 +1070,10 @@ func (e *KeySigningKeyWithActiveStatusNotFound) ErrorMessage() string { return *e.Message } func (e *KeySigningKeyWithActiveStatusNotFound) ErrorCode() string { - return "KeySigningKeyWithActiveStatusNotFound" + if e.Code == nil { + return "KeySigningKeyWithActiveStatusNotFound" + } + return *e.Code } func (e *KeySigningKeyWithActiveStatusNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -827,6 +1085,8 @@ func (e *KeySigningKeyWithActiveStatusNotFound) ErrorFault() smithy.ErrorFault { type LastVPCAssociation struct { Message *string + Code *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.Code == nil { + return "LastVPCAssociation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitsExceeded" + } + return *e.Code +} func (e *LimitsExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A change with the specified change ID does not exist. type NoSuchChange struct { Message *string + Code *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.Code == nil { + return "NoSuchChange" + } + return *e.Code +} func (e *NoSuchChange) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The CIDR collection you specified, doesn't exist. type NoSuchCidrCollectionException struct { Message *string + Code *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.Code == nil { + return "NoSuchCidrCollectionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchCidrLocationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchCloudWatchLogsLogGroup" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchDelegationSet" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchGeoLocation" + } + return *e.Code +} func (e *NoSuchGeoLocation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No health check exists with the specified ID. type NoSuchHealthCheck struct { Message *string + Code *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.Code == nil { + return "NoSuchHealthCheck" + } + return *e.Code +} func (e *NoSuchHealthCheck) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No hosted zone exists with the ID that you specified. type NoSuchHostedZone struct { Message *string + Code *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.Code == nil { + return "NoSuchHostedZone" + } + return *e.Code +} func (e *NoSuchHostedZone) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key-signing key (KSK) doesn't exist. type NoSuchKeySigningKey struct { Message *string + Code *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.Code == nil { + return "NoSuchKeySigningKey" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoSuchQueryLoggingConfig" + } + return *e.Code +} func (e *NoSuchQueryLoggingConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No traffic policy exists with the specified ID. type NoSuchTrafficPolicy struct { Message *string + Code *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.Code == nil { + return "NoSuchTrafficPolicy" + } + return *e.Code +} func (e *NoSuchTrafficPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No traffic policy instance exists with the specified ID. type NoSuchTrafficPolicyInstance struct { Message *string + Code *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.Code == nil { + return "NoSuchTrafficPolicyInstance" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotAuthorizedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PriorRequestNotComplete" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PublicZoneVPCAssociation" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1176,7 +1555,10 @@ func (e *QueryLoggingConfigAlreadyExists) ErrorMessage() string { return *e.Message } func (e *QueryLoggingConfigAlreadyExists) ErrorCode() string { - return "QueryLoggingConfigAlreadyExists" + if e.Code == nil { + return "QueryLoggingConfigAlreadyExists" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyHealthChecks" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyHostedZones" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyKeySigningKeys" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTrafficPolicies" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTrafficPolicyInstances" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1358,7 +1784,10 @@ func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorCode() string { - return "TooManyTrafficPolicyVersionsForCurrentPolicy" + if e.Code == nil { + return "TooManyTrafficPolicyVersionsForCurrentPolicy" + } + return *e.Code } func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1372,6 +1801,8 @@ func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorFault() smithy.Error type TooManyVPCAssociationAuthorizations struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1385,7 +1816,10 @@ func (e *TooManyVPCAssociationAuthorizations) ErrorMessage() string { return *e.Message } func (e *TooManyVPCAssociationAuthorizations) ErrorCode() string { - return "TooManyVPCAssociationAuthorizations" + if e.Code == nil { + return "TooManyVPCAssociationAuthorizations" + } + return *e.Code } func (e *TooManyVPCAssociationAuthorizations) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1395,6 +1829,8 @@ func (e *TooManyVPCAssociationAuthorizations) ErrorFault() smithy.ErrorFault { type TrafficPolicyAlreadyExists struct { Message *string + Code *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.Code == nil { + return "TrafficPolicyAlreadyExists" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1427,7 +1870,10 @@ func (e *TrafficPolicyInstanceAlreadyExists) ErrorMessage() string { return *e.Message } func (e *TrafficPolicyInstanceAlreadyExists) ErrorCode() string { - return "TrafficPolicyInstanceAlreadyExists" + if e.Code == nil { + return "TrafficPolicyInstanceAlreadyExists" + } + return *e.Code } func (e *TrafficPolicyInstanceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1438,6 +1884,8 @@ func (e *TrafficPolicyInstanceAlreadyExists) ErrorFault() smithy.ErrorFault { type TrafficPolicyInUse struct { Message *string + Code *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.Code == nil { + return "TrafficPolicyInUse" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1471,7 +1926,10 @@ func (e *VPCAssociationAuthorizationNotFound) ErrorMessage() string { return *e.Message } func (e *VPCAssociationAuthorizationNotFound) ErrorCode() string { - return "VPCAssociationAuthorizationNotFound" + if e.Code == nil { + return "VPCAssociationAuthorizationNotFound" + } + return *e.Code } func (e *VPCAssociationAuthorizationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1481,6 +1939,8 @@ func (e *VPCAssociationAuthorizationNotFound) ErrorFault() smithy.ErrorFault { type VPCAssociationNotFound struct { Message *string + Code *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.Code == nil { + return "VPCAssociationNotFound" + } + return *e.Code +} func (e *VPCAssociationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53domains/types/errors.go b/service/route53domains/types/errors.go index 591275dffd0..8c82c0fa761 100644 --- a/service/route53domains/types/errors.go +++ b/service/route53domains/types/errors.go @@ -11,6 +11,8 @@ import ( type DomainLimitExceeded struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -23,13 +25,20 @@ func (e *DomainLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *DomainLimitExceeded) ErrorCode() string { return "DomainLimitExceeded" } +func (e *DomainLimitExceeded) ErrorCode() string { + if e.Code == nil { + return "DomainLimitExceeded" + } + return *e.Code +} func (e *DomainLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is already in progress for the domain. type DuplicateRequest struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -42,7 +51,12 @@ func (e *DuplicateRequest) ErrorMessage() string { } return *e.Message } -func (e *DuplicateRequest) ErrorCode() string { return "DuplicateRequest" } +func (e *DuplicateRequest) ErrorCode() string { + if e.Code == nil { + return "DuplicateRequest" + } + return *e.Code +} func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested item is not acceptable. For example, for APIs that accept a domain @@ -52,6 +66,8 @@ func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultC type InvalidInput struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -64,7 +80,12 @@ func (e *InvalidInput) ErrorMessage() string { } return *e.Message } -func (e *InvalidInput) ErrorCode() string { return "InvalidInput" } +func (e *InvalidInput) ErrorCode() string { + if e.Code == nil { + return "InvalidInput" + } + return *e.Code +} func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of operations or jobs running exceeded the allowed threshold for the @@ -72,6 +93,8 @@ func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type OperationLimitExceeded struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -84,13 +107,20 @@ func (e *OperationLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *OperationLimitExceeded) ErrorCode() string { return "OperationLimitExceeded" } +func (e *OperationLimitExceeded) ErrorCode() string { + if e.Code == nil { + return "OperationLimitExceeded" + } + return *e.Code +} func (e *OperationLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The top-level domain does not support this operation. type TLDRulesViolation struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -103,13 +133,20 @@ func (e *TLDRulesViolation) ErrorMessage() string { } return *e.Message } -func (e *TLDRulesViolation) ErrorCode() string { return "TLDRulesViolation" } +func (e *TLDRulesViolation) ErrorCode() string { + if e.Code == nil { + return "TLDRulesViolation" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -122,5 +159,10 @@ func (e *UnsupportedTLD) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedTLD) ErrorCode() string { return "UnsupportedTLD" } +func (e *UnsupportedTLD) ErrorCode() string { + if e.Code == nil { + return "UnsupportedTLD" + } + return *e.Code +} 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..a13df9dedf4 100644 --- a/service/route53recoverycluster/types/errors.go +++ b/service/route53recoverycluster/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a conflict with this request. Try again. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The cluster endpoint isn't available. Try another cluster endpoint. type EndpointTemporarilyUnavailableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -65,7 +81,10 @@ func (e *EndpointTemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *EndpointTemporarilyUnavailableException) ErrorCode() string { - return "EndpointTemporarilyUnavailableException" + if e.Code == nil { + return "EndpointTemporarilyUnavailableException" + } + return *e.Code } func (e *EndpointTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -75,6 +94,8 @@ func (e *EndpointTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceLimitExceededException" + } + return *e.Code +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied because of request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was a validation error on the request. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoverycontrolconfig/types/errors.go b/service/route53recoverycontrolconfig/types/errors.go index 083469f5c85..80d1b95bb45 100644 --- a/service/route53recoverycontrolconfig/types/errors.go +++ b/service/route53recoverycontrolconfig/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 409 response - ConflictException. You might be using a predefined variable. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 500 response - InternalServiceError. Temporary service error. Retry the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 429 response - LimitExceededException or TooManyRequestsException. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..7a655480ad4 100644 --- a/service/route53recoveryreadiness/types/errors.go +++ b/service/route53recoveryreadiness/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource can cause an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..c54d4584003 100644 --- a/service/route53resolver/types/errors.go +++ b/service/route53resolver/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,12 +26,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ConflictException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -42,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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -61,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.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -80,13 +104,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters in this request are not valid. type InvalidParameterException struct { Message *string + Code *string + FieldName *string noSmithyDocumentSerde @@ -101,13 +132,20 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified Resolver rule policy is invalid. type InvalidPolicyDocument struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -120,13 +158,20 @@ func (e *InvalidPolicyDocument) ErrorMessage() string { } return *e.Message } -func (e *InvalidPolicyDocument) ErrorCode() string { return "InvalidPolicyDocument" } +func (e *InvalidPolicyDocument) ErrorCode() string { + if e.Code == nil { + return "InvalidPolicyDocument" + } + return *e.Code +} func (e *InvalidPolicyDocument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request is invalid. type InvalidRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -139,13 +184,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified tag is invalid. type InvalidTagException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -158,13 +210,20 @@ func (e *InvalidTagException) ErrorMessage() string { } return *e.Message } -func (e *InvalidTagException) ErrorCode() string { return "InvalidTagException" } +func (e *InvalidTagException) ErrorCode() string { + if e.Code == nil { + return "InvalidTagException" + } + return *e.Code +} func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request caused one or more limits to be exceeded. type LimitExceededException struct { Message *string + Code *string + ResourceType *string noSmithyDocumentSerde @@ -179,13 +238,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource that you tried to create already exists. type ResourceExistsException struct { Message *string + Code *string + ResourceType *string noSmithyDocumentSerde @@ -200,13 +266,20 @@ func (e *ResourceExistsException) ErrorMessage() string { } return *e.Message } -func (e *ResourceExistsException) ErrorCode() string { return "ResourceExistsException" } +func (e *ResourceExistsException) ErrorCode() string { + if e.Code == nil { + return "ResourceExistsException" + } + return *e.Code +} 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 + Code *string + ResourceType *string noSmithyDocumentSerde @@ -221,13 +294,20 @@ func (e *ResourceInUseException) ErrorMessage() string { } return *e.Message } -func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } +func (e *ResourceInUseException) ErrorCode() string { + if e.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type ResourceNotFoundException struct { Message *string + Code *string + ResourceType *string noSmithyDocumentSerde @@ -242,13 +322,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource isn't available. type ResourceUnavailableException struct { Message *string + Code *string + ResourceType *string noSmithyDocumentSerde @@ -263,13 +350,20 @@ func (e *ResourceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } +func (e *ResourceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ResourceUnavailableException" + } + return *e.Code +} func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was throttled. Try again in a few minutes. type ThrottlingException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -282,13 +376,20 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type UnknownResourceException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -301,12 +402,20 @@ func (e *UnknownResourceException) ErrorMessage() string { } return *e.Message } -func (e *UnknownResourceException) ErrorCode() string { return "UnknownResourceException" } +func (e *UnknownResourceException) ErrorCode() string { + if e.Code == nil { + return "UnknownResourceException" + } + return *e.Code +} func (e *UnknownResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ValidationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -319,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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..65a8d91056d 100644 --- a/service/rum/types/errors.go +++ b/service/rum/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation attempted to create a resource that already exists. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal service exception. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Resource not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This request exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was throttled because of quota limits. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the arguments for the request is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/s3/api_op_PutBucketAcl.go b/service/s3/api_op_PutBucketAcl.go index bc28a996004..0f669d2acbb 100644 --- a/service/s3/api_op_PutBucketAcl.go +++ b/service/s3/api_op_PutBucketAcl.go @@ -142,7 +142,7 @@ import ( // (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the // Amazon Web Services General Reference. // -// # Related Resources +// Related Resources // // * CreateBucket // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) diff --git a/service/s3/api_op_PutBucketAnalyticsConfiguration.go b/service/s3/api_op_PutBucketAnalyticsConfiguration.go index da70d547ee3..45cec74ed1e 100644 --- a/service/s3/api_op_PutBucketAnalyticsConfiguration.go +++ b/service/s3/api_op_PutBucketAnalyticsConfiguration.go @@ -63,7 +63,7 @@ import ( // bucket, or you do not have the s3:PutAnalyticsConfiguration bucket permission to // set the configuration on the bucket. // -// # Related Resources +// Related Resources // // * // GetBucketAnalyticsConfiguration diff --git a/service/s3/api_op_PutBucketInventoryConfiguration.go b/service/s3/api_op_PutBucketInventoryConfiguration.go index bb1a903b5a8..afca60b9d10 100644 --- a/service/s3/api_op_PutBucketInventoryConfiguration.go +++ b/service/s3/api_op_PutBucketInventoryConfiguration.go @@ -64,7 +64,7 @@ import ( // of the specified bucket, or you do not have the s3:PutInventoryConfiguration // bucket permission to set the configuration on the bucket. // -// # Related Resources +// Related Resources // // * // GetBucketInventoryConfiguration diff --git a/service/s3/api_op_RestoreObject.go b/service/s3/api_op_RestoreObject.go index 45a2aee6af7..01319757029 100644 --- a/service/s3/api_op_RestoreObject.go +++ b/service/s3/api_op_RestoreObject.go @@ -191,7 +191,7 @@ import ( // * If the object is previously // restored, Amazon S3 returns 200 OK in the response. // -// # Special Errors +// Special Errors // // * Code: // RestoreAlreadyInProgress @@ -217,7 +217,7 @@ import ( // // * SOAP Fault Code Prefix: N/A // -// # Related Resources +// Related Resources // // * // PutBucketLifecycleConfiguration diff --git a/service/s3/api_op_UploadPart.go b/service/s3/api_op_UploadPart.go index 2617bed6036..9c70d4c26b9 100644 --- a/service/s3/api_op_UploadPart.go +++ b/service/s3/api_op_UploadPart.go @@ -79,7 +79,7 @@ import ( // * // x-amz-server-side-encryption-customer-key-MD5 // -// # Special Errors +// Special Errors // // * Code: // NoSuchUpload @@ -93,7 +93,7 @@ import ( // * SOAP Fault Code Prefix: // Client // -// # Related Resources +// Related Resources // // * CreateMultipartUpload // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) diff --git a/service/s3/api_op_UploadPartCopy.go b/service/s3/api_op_UploadPartCopy.go index f1fa1395471..c2c58ce7950 100644 --- a/service/s3/api_op_UploadPartCopy.go +++ b/service/s3/api_op_UploadPartCopy.go @@ -97,7 +97,7 @@ import ( // * HTTP Status Code: 400 // Bad Request // -// # Related Resources +// Related Resources // // * CreateMultipartUpload // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) diff --git a/service/s3/doc.go b/service/s3/doc.go index d825a41a779..ce3203be5a9 100644 --- a/service/s3/doc.go +++ b/service/s3/doc.go @@ -2,4 +2,6 @@ // Package s3 provides the API client, operations, and parameter types for Amazon // Simple Storage Service. +// +// package s3 diff --git a/service/s3/types/errors.go b/service/s3/types/errors.go index 8c3a386f7f2..2a5c8a021d0 100644 --- a/service/s3/types/errors.go +++ b/service/s3/types/errors.go @@ -12,6 +12,8 @@ import ( type BucketAlreadyExists struct { Message *string + Code *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.Code == nil { + return "BucketAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BucketAlreadyOwnedByYou" + } + return *e.Code +} func (e *BucketAlreadyOwnedByYou) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Object is archived and inaccessible until restored. type InvalidObjectState struct { Message *string + Code *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.Code == nil { + return "InvalidObjectState" + } + return *e.Code +} func (e *InvalidObjectState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified bucket does not exist. type NoSuchBucket struct { Message *string + Code *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.Code == nil { + return "NoSuchBucket" + } + return *e.Code +} func (e *NoSuchBucket) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key does not exist. type NoSuchKey struct { Message *string + Code *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.Code == nil { + return "NoSuchKey" + } + return *e.Code +} func (e *NoSuchKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified multipart upload does not exist. type NoSuchUpload struct { Message *string + Code *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.Code == nil { + return "NoSuchUpload" + } + return *e.Code +} func (e *NoSuchUpload) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified content does not exist. type NotFound struct { Message *string + Code *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.Code == nil { + return "NotFound" + } + return *e.Code +} func (e *NotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This action is not allowed against this storage tier. type ObjectAlreadyInActiveTierError struct { Message *string + Code *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.Code == nil { + return "ObjectAlreadyInActiveTierError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ObjectNotInActiveTierError" + } + return *e.Code +} func (e *ObjectNotInActiveTierError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/s3/types/types.go b/service/s3/types/types.go index bcef62cec1a..a9692d00647 100644 --- a/service/s3/types/types.go +++ b/service/s3/types/types.go @@ -114,10 +114,9 @@ type AnalyticsExportDestination struct { // filter is provided, all objects will be considered in any analysis. // // The following types satisfy this interface: -// -// AnalyticsFilterMemberAnd -// AnalyticsFilterMemberPrefix -// AnalyticsFilterMemberTag +// AnalyticsFilterMemberAnd +// AnalyticsFilterMemberPrefix +// AnalyticsFilterMemberTag type AnalyticsFilter interface { isAnalyticsFilter() } @@ -350,6 +349,7 @@ type Condition struct { noSmithyDocumentSerde } +// type ContinuationEvent struct { noSmithyDocumentSerde } @@ -2283,12 +2283,11 @@ type LifecycleRuleAndOperator struct { // Filter must have exactly one of Prefix, Tag, or And specified. // // The following types satisfy this interface: -// -// LifecycleRuleFilterMemberAnd -// LifecycleRuleFilterMemberObjectSizeGreaterThan -// LifecycleRuleFilterMemberObjectSizeLessThan -// LifecycleRuleFilterMemberPrefix -// LifecycleRuleFilterMemberTag +// LifecycleRuleFilterMemberAnd +// LifecycleRuleFilterMemberObjectSizeGreaterThan +// LifecycleRuleFilterMemberObjectSizeLessThan +// LifecycleRuleFilterMemberPrefix +// LifecycleRuleFilterMemberTag type LifecycleRuleFilter interface { isLifecycleRuleFilter() } @@ -2450,11 +2449,10 @@ type MetricsConfiguration struct { // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketMetricsConfiguration.html). // // The following types satisfy this interface: -// -// MetricsFilterMemberAccessPointArn -// MetricsFilterMemberAnd -// MetricsFilterMemberPrefix -// MetricsFilterMemberTag +// MetricsFilterMemberAccessPointArn +// MetricsFilterMemberAnd +// MetricsFilterMemberPrefix +// MetricsFilterMemberTag type MetricsFilter interface { isMetricsFilter() } @@ -3236,10 +3234,9 @@ type ReplicationRuleAndOperator struct { // applies. A Filter must specify exactly one Prefix, Tag, or an And child element. // // The following types satisfy this interface: -// -// ReplicationRuleFilterMemberAnd -// ReplicationRuleFilterMemberPrefix -// ReplicationRuleFilterMemberTag +// ReplicationRuleFilterMemberAnd +// ReplicationRuleFilterMemberPrefix +// ReplicationRuleFilterMemberTag type ReplicationRuleFilter interface { isReplicationRuleFilter() } @@ -3455,12 +3452,11 @@ type ScanRange struct { // The container for selecting objects from a content event stream. // // The following types satisfy this interface: -// -// SelectObjectContentEventStreamMemberCont -// SelectObjectContentEventStreamMemberEnd -// SelectObjectContentEventStreamMemberProgress -// SelectObjectContentEventStreamMemberRecords -// SelectObjectContentEventStreamMemberStats +// SelectObjectContentEventStreamMemberCont +// SelectObjectContentEventStreamMemberEnd +// SelectObjectContentEventStreamMemberProgress +// SelectObjectContentEventStreamMemberRecords +// SelectObjectContentEventStreamMemberStats type SelectObjectContentEventStream interface { isSelectObjectContentEventStream() } diff --git a/service/s3control/types/errors.go b/service/s3control/types/errors.go index be9801f930c..a98efaf8329 100644 --- a/service/s3control/types/errors.go +++ b/service/s3control/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type BadRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested Outposts bucket name is not available. The bucket namespace is @@ -31,6 +39,8 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type BucketAlreadyExists struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -43,13 +53,20 @@ func (e *BucketAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *BucketAlreadyExists) ErrorCode() string { return "BucketAlreadyExists" } +func (e *BucketAlreadyExists) ErrorCode() string { + if e.Code == nil { + return "BucketAlreadyExists" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -62,12 +79,20 @@ func (e *BucketAlreadyOwnedByYou) ErrorMessage() string { } return *e.Message } -func (e *BucketAlreadyOwnedByYou) ErrorCode() string { return "BucketAlreadyOwnedByYou" } +func (e *BucketAlreadyOwnedByYou) ErrorCode() string { + if e.Code == nil { + return "BucketAlreadyOwnedByYou" + } + return *e.Code +} func (e *BucketAlreadyOwnedByYou) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type IdempotencyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -80,12 +105,20 @@ func (e *IdempotencyException) ErrorMessage() string { } return *e.Message } -func (e *IdempotencyException) ErrorCode() string { return "IdempotencyException" } +func (e *IdempotencyException) ErrorCode() string { + if e.Code == nil { + return "IdempotencyException" + } + return *e.Code +} func (e *IdempotencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InternalServiceException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -98,12 +131,20 @@ func (e *InternalServiceException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } +func (e *InternalServiceException) ErrorCode() string { + if e.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type InvalidNextTokenException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -116,12 +157,20 @@ func (e *InvalidNextTokenException) ErrorMessage() string { } return *e.Message } -func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } +func (e *InvalidNextTokenException) ErrorCode() string { + if e.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -134,12 +183,20 @@ func (e *InvalidRequestException) ErrorMessage() string { } return *e.Message } -func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorCode() string { + if e.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type JobStatusException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -152,7 +209,12 @@ func (e *JobStatusException) ErrorMessage() string { } return *e.Message } -func (e *JobStatusException) ErrorCode() string { return "JobStatusException" } +func (e *JobStatusException) ErrorCode() string { + if e.Code == nil { + return "JobStatusException" + } + return *e.Code +} func (e *JobStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon S3 throws this exception if you make a GetPublicAccessBlock request @@ -160,6 +222,8 @@ func (e *JobStatusException) ErrorFault() smithy.ErrorFault { return smithy.Faul type NoSuchPublicAccessBlockConfiguration struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -173,15 +237,21 @@ func (e *NoSuchPublicAccessBlockConfiguration) ErrorMessage() string { return *e.Message } func (e *NoSuchPublicAccessBlockConfiguration) ErrorCode() string { - return "NoSuchPublicAccessBlockConfiguration" + if e.Code == nil { + return "NoSuchPublicAccessBlockConfiguration" + } + return *e.Code } func (e *NoSuchPublicAccessBlockConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type NotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -194,12 +264,20 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type TooManyRequestsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -212,13 +290,20 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -231,5 +316,10 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/s3control/types/types.go b/service/s3control/types/types.go index 4c676a0056f..de20c5299b5 100644 --- a/service/s3control/types/types.go +++ b/service/s3control/types/types.go @@ -543,8 +543,7 @@ type JobManifest struct { // Configures the type of the job's ManifestGenerator. // // The following types satisfy this interface: -// -// JobManifestGeneratorMemberS3JobManifestGenerator +// JobManifestGeneratorMemberS3JobManifestGenerator type JobManifestGenerator interface { isJobManifestGenerator() } @@ -1077,8 +1076,7 @@ type ObjectLambdaConfiguration struct { // A container for AwsLambdaTransformation. // // The following types satisfy this interface: -// -// ObjectLambdaContentTransformationMemberAwsLambda +// ObjectLambdaContentTransformationMemberAwsLambda type ObjectLambdaContentTransformation interface { isObjectLambdaContentTransformation() } @@ -1281,6 +1279,7 @@ type RegionReport struct { noSmithyDocumentSerde } +// type S3AccessControlList struct { // @@ -1294,6 +1293,7 @@ type S3AccessControlList struct { noSmithyDocumentSerde } +// type S3AccessControlPolicy struct { // @@ -1440,6 +1440,7 @@ type S3GeneratedManifestDescriptor struct { noSmithyDocumentSerde } +// type S3Grant struct { // @@ -1451,6 +1452,7 @@ type S3Grant struct { noSmithyDocumentSerde } +// type S3Grantee struct { // @@ -1560,6 +1562,7 @@ type S3ObjectLockLegalHold struct { noSmithyDocumentSerde } +// type S3ObjectMetadata struct { // @@ -1598,6 +1601,7 @@ type S3ObjectMetadata struct { noSmithyDocumentSerde } +// type S3ObjectOwner struct { // @@ -1716,6 +1720,7 @@ type S3Tag struct { noSmithyDocumentSerde } +// type SelectionCriteria struct { // A container for the delimiter of the selection criteria being used. @@ -1731,6 +1736,7 @@ type SelectionCriteria struct { noSmithyDocumentSerde } +// type SSEKMS struct { // A container for the ARN of the SSE-KMS encryption. This property is read-only @@ -1756,6 +1762,7 @@ type SSEKMSEncryption struct { noSmithyDocumentSerde } +// type SSES3 struct { noSmithyDocumentSerde } @@ -1849,6 +1856,7 @@ type StorageLensDataExportEncryption struct { noSmithyDocumentSerde } +// type StorageLensTag struct { // @@ -1864,6 +1872,7 @@ type StorageLensTag struct { noSmithyDocumentSerde } +// type Tagging struct { // A collection for a set of tags. diff --git a/service/s3outposts/types/errors.go b/service/s3outposts/types/errors.go index ffdef7dde34..57141ad6097 100644 --- a/service/s3outposts/types/errors.go +++ b/service/s3outposts/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an exception with the internal server. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There was an exception validating this data. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..c4166a87500 100644 --- a/service/sagemaker/types/errors.go +++ b/service/sagemaker/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource being accessed is in use. type ResourceInUse struct { Message *string + Code *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.Code == nil { + return "ResourceInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceLimitExceeded" + } + return *e.Code +} func (e *ResourceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource being access is not found. type ResourceNotFound struct { Message *string + Code *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.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 6a635670478..e38859d4f7b 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -4811,10 +4811,9 @@ type FileSystemDataSource struct { // // "Name": "Metrics.accuracy", // -// "Operator": "GreaterThan", -// -// "Value": +// "Operator": "GreaterThan", // +// "Value": // "0.9" // // } HyperParameters To define a hyperparameter filter, enter a value with @@ -4822,16 +4821,13 @@ type FileSystemDataSource struct { // decimal in a comparison if the specified Value is also a decimal value. If the // specified Value is an integer, the decimal hyperparameter values are treated as // integers. For example, the following filter is satisfied by training jobs with a -// -// "learning_rate" hyperparameter that is less than "0.5": { -// "Name": -// +// "learning_rate" hyperparameter that is less than "0.5": { +// "Name": // "HyperParameters.learning_rate", // -// "Operator": "LessThan", -// -// "Value": +// "Operator": "LessThan", // +// "Value": // "0.5" // // } Tags To define a tag filter, enter a value with the form Tags.. @@ -15016,9 +15012,8 @@ type TrialComponentMetricSummary struct { // specified. This object is specified in the CreateTrialComponent request. // // The following types satisfy this interface: -// -// TrialComponentParameterValueMemberNumberValue -// TrialComponentParameterValueMemberStringValue +// TrialComponentParameterValueMemberNumberValue +// TrialComponentParameterValueMemberStringValue type TrialComponentParameterValue interface { isTrialComponentParameterValue() } diff --git a/service/sagemakera2iruntime/types/errors.go b/service/sagemakera2iruntime/types/errors.go index 322aed6b819..d3b75309bd4 100644 --- a/service/sagemakera2iruntime/types/errors.go +++ b/service/sagemakera2iruntime/types/errors.go @@ -13,6 +13,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded the maximum number of requests. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..4befc1cb2f8 100644 --- a/service/sagemakeredge/types/errors.go +++ b/service/sagemakeredge/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServiceException struct { Message *string + Code *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.Code == nil { + return "InternalServiceException" + } + return *e.Code +} func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemakeredge/types/types.go b/service/sagemakeredge/types/types.go index 40cbe6f6862..33478c86907 100644 --- a/service/sagemakeredge/types/types.go +++ b/service/sagemakeredge/types/types.go @@ -19,6 +19,7 @@ type Checksum struct { noSmithyDocumentSerde } +// type Definition struct { // The checksum information of the model. @@ -36,6 +37,7 @@ type Definition struct { noSmithyDocumentSerde } +// type DeploymentModel struct { // The desired state of the model. diff --git a/service/sagemakerfeaturestoreruntime/types/errors.go b/service/sagemakerfeaturestoreruntime/types/errors.go index 9ca21a3b29d..6e3a9f2670e 100644 --- a/service/sagemakerfeaturestoreruntime/types/errors.go +++ b/service/sagemakerfeaturestoreruntime/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessForbidden struct { Message *string + Code *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.Code == nil { + return "AccessForbidden" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalFailure" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. type ServiceUnavailable struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailable" + } + return *e.Code +} func (e *ServiceUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // There was an error validating your request. type ValidationError struct { Message *string + Code *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.Code == nil { + return "ValidationError" + } + return *e.Code +} 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..4ff4519f5e2 100644 --- a/service/sagemakergeospatial/types/errors.go +++ b/service/sagemakergeospatial/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -23,12 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ConflictException struct { Message *string + Code *string + ResourceId *string noSmithyDocumentSerde @@ -43,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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request processing has failed because of an unknown error, exception, or @@ -51,6 +66,8 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault type InternalServerException struct { Message *string + Code *string + ResourceId *string noSmithyDocumentSerde @@ -65,12 +82,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type ResourceNotFoundException struct { Message *string + Code *string + ResourceId *string noSmithyDocumentSerde @@ -85,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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the service quota. type ServiceQuotaExceededException struct { Message *string + Code *string + ResourceId *string noSmithyDocumentSerde @@ -106,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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *string + ResourceId *string noSmithyDocumentSerde @@ -127,7 +166,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy the constraints specified by an Amazon Web Services @@ -135,6 +179,8 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string + Code *string + ResourceId *string noSmithyDocumentSerde @@ -149,5 +195,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sagemakergeospatial/types/types.go b/service/sagemakergeospatial/types/types.go index 65110412b4a..c9455b00407 100644 --- a/service/sagemakergeospatial/types/types.go +++ b/service/sagemakergeospatial/types/types.go @@ -7,13 +7,15 @@ import ( "time" ) -// The following types satisfy this interface: // -// AreaOfInterestMemberAreaOfInterestGeometry +// +// The following types satisfy this interface: +// AreaOfInterestMemberAreaOfInterestGeometry type AreaOfInterest interface { isAreaOfInterest() } +// type AreaOfInterestMemberAreaOfInterestGeometry struct { Value AreaOfInterestGeometry @@ -22,14 +24,16 @@ type AreaOfInterestMemberAreaOfInterestGeometry struct { func (*AreaOfInterestMemberAreaOfInterestGeometry) isAreaOfInterest() {} -// The following types satisfy this interface: // -// AreaOfInterestGeometryMemberMultiPolygonGeometry -// AreaOfInterestGeometryMemberPolygonGeometry +// +// The following types satisfy this interface: +// AreaOfInterestGeometryMemberMultiPolygonGeometry +// AreaOfInterestGeometryMemberPolygonGeometry type AreaOfInterestGeometry interface { isAreaOfInterestGeometry() } +// type AreaOfInterestGeometryMemberMultiPolygonGeometry struct { Value MultiPolygonGeometryInput @@ -38,6 +42,7 @@ type AreaOfInterestGeometryMemberMultiPolygonGeometry struct { func (*AreaOfInterestGeometryMemberMultiPolygonGeometry) isAreaOfInterestGeometry() {} +// type AreaOfInterestGeometryMemberPolygonGeometry struct { Value PolygonGeometryInput @@ -46,6 +51,7 @@ type AreaOfInterestGeometryMemberPolygonGeometry struct { func (*AreaOfInterestGeometryMemberPolygonGeometry) isAreaOfInterestGeometry() {} +// type AssetValue struct { // @@ -54,6 +60,7 @@ type AssetValue struct { noSmithyDocumentSerde } +// type BandMathConfigInput struct { // @@ -65,10 +72,12 @@ type BandMathConfigInput struct { noSmithyDocumentSerde } +// type CloudMaskingConfigInput struct { noSmithyDocumentSerde } +// type CloudRemovalConfigInput struct { // The name of the algorithm used for cloud removal. @@ -83,6 +92,7 @@ type CloudRemovalConfigInput struct { noSmithyDocumentSerde } +// type CustomIndicesInput struct { // @@ -103,6 +113,7 @@ type EarthObservationJobErrorDetails struct { noSmithyDocumentSerde } +// type EoCloudCoverInput struct { // @@ -118,13 +129,15 @@ type EoCloudCoverInput struct { noSmithyDocumentSerde } -// The following types satisfy this interface: // -// EojDataSourceConfigInputMemberS3Data +// +// The following types satisfy this interface: +// EojDataSourceConfigInputMemberS3Data type EojDataSourceConfigInput interface { isEojDataSourceConfigInput() } +// type EojDataSourceConfigInputMemberS3Data struct { Value S3DataInput @@ -146,6 +159,7 @@ type ExportErrorDetails struct { noSmithyDocumentSerde } +// type ExportErrorDetailsOutput struct { // @@ -157,6 +171,7 @@ type ExportErrorDetailsOutput struct { noSmithyDocumentSerde } +// type ExportS3DataInput struct { // The URL to the Amazon S3 data input. @@ -203,6 +218,7 @@ type Filter struct { noSmithyDocumentSerde } +// type Geometry struct { // @@ -290,20 +306,20 @@ type ItemSource struct { // The input structure for the JobConfig in an EarthObservationJob. // // The following types satisfy this interface: -// -// JobConfigInputMemberBandMathConfig -// JobConfigInputMemberCloudMaskingConfig -// JobConfigInputMemberCloudRemovalConfig -// JobConfigInputMemberGeoMosaicConfig -// JobConfigInputMemberLandCoverSegmentationConfig -// JobConfigInputMemberResamplingConfig -// JobConfigInputMemberStackConfig -// JobConfigInputMemberTemporalStatisticsConfig -// JobConfigInputMemberZonalStatisticsConfig +// JobConfigInputMemberBandMathConfig +// JobConfigInputMemberCloudMaskingConfig +// JobConfigInputMemberCloudRemovalConfig +// JobConfigInputMemberGeoMosaicConfig +// JobConfigInputMemberLandCoverSegmentationConfig +// JobConfigInputMemberResamplingConfig +// JobConfigInputMemberStackConfig +// JobConfigInputMemberTemporalStatisticsConfig +// JobConfigInputMemberZonalStatisticsConfig type JobConfigInput interface { isJobConfigInput() } +// type JobConfigInputMemberBandMathConfig struct { Value BandMathConfigInput @@ -358,6 +374,7 @@ type JobConfigInputMemberResamplingConfig struct { func (*JobConfigInputMemberResamplingConfig) isJobConfigInput() {} +// type JobConfigInputMemberStackConfig struct { Value StackConfigInput @@ -386,10 +403,12 @@ type JobConfigInputMemberZonalStatisticsConfig struct { func (*JobConfigInputMemberZonalStatisticsConfig) isJobConfigInput() {} +// type LandCoverSegmentationConfigInput struct { noSmithyDocumentSerde } +// type LandsatCloudCoverLandInput struct { // @@ -483,6 +502,7 @@ type ListVectorEnrichmentJobOutputConfig struct { noSmithyDocumentSerde } +// type MapMatchingConfig struct { // @@ -508,6 +528,7 @@ type MapMatchingConfig struct { noSmithyDocumentSerde } +// type MultiPolygonGeometryInput struct { // The coordinates of the multipolygon geometry. @@ -518,6 +539,7 @@ type MultiPolygonGeometryInput struct { noSmithyDocumentSerde } +// type Operation struct { // @@ -564,6 +586,7 @@ type OutputConfigInput struct { noSmithyDocumentSerde } +// type OutputResolutionResamplingInput struct { // @@ -574,6 +597,7 @@ type OutputResolutionResamplingInput struct { noSmithyDocumentSerde } +// type OutputResolutionStackInput struct { // @@ -585,6 +609,7 @@ type OutputResolutionStackInput struct { noSmithyDocumentSerde } +// type PlatformInput struct { // The value of the platform. @@ -598,6 +623,7 @@ type PlatformInput struct { noSmithyDocumentSerde } +// type PolygonGeometryInput struct { // @@ -608,6 +634,7 @@ type PolygonGeometryInput struct { noSmithyDocumentSerde } +// type Properties struct { // @@ -631,18 +658,20 @@ type Properties struct { noSmithyDocumentSerde } -// The following types satisfy this interface: // -// PropertyMemberEoCloudCover -// PropertyMemberLandsatCloudCoverLand -// PropertyMemberPlatform -// PropertyMemberViewOffNadir -// PropertyMemberViewSunAzimuth -// PropertyMemberViewSunElevation +// +// The following types satisfy this interface: +// PropertyMemberEoCloudCover +// PropertyMemberLandsatCloudCoverLand +// PropertyMemberPlatform +// PropertyMemberViewOffNadir +// PropertyMemberViewSunAzimuth +// PropertyMemberViewSunElevation type Property interface { isProperty() } +// type PropertyMemberEoCloudCover struct { Value EoCloudCoverInput @@ -651,6 +680,7 @@ type PropertyMemberEoCloudCover struct { func (*PropertyMemberEoCloudCover) isProperty() {} +// type PropertyMemberLandsatCloudCoverLand struct { Value LandsatCloudCoverLandInput @@ -659,6 +689,7 @@ type PropertyMemberLandsatCloudCoverLand struct { func (*PropertyMemberLandsatCloudCoverLand) isProperty() {} +// type PropertyMemberPlatform struct { Value PlatformInput @@ -667,6 +698,7 @@ type PropertyMemberPlatform struct { func (*PropertyMemberPlatform) isProperty() {} +// type PropertyMemberViewOffNadir struct { Value ViewOffNadirInput @@ -675,6 +707,7 @@ type PropertyMemberViewOffNadir struct { func (*PropertyMemberViewOffNadir) isProperty() {} +// type PropertyMemberViewSunAzimuth struct { Value ViewSunAzimuthInput @@ -683,6 +716,7 @@ type PropertyMemberViewSunAzimuth struct { func (*PropertyMemberViewSunAzimuth) isProperty() {} +// type PropertyMemberViewSunElevation struct { Value ViewSunElevationInput @@ -691,6 +725,7 @@ type PropertyMemberViewSunElevation struct { func (*PropertyMemberViewSunElevation) isProperty() {} +// type PropertyFilter struct { // @@ -701,6 +736,7 @@ type PropertyFilter struct { noSmithyDocumentSerde } +// type PropertyFilters struct { // @@ -749,6 +785,7 @@ type RasterDataCollectionMetadata struct { noSmithyDocumentSerde } +// type RasterDataCollectionQueryInput struct { // The Amazon Resource Name (ARN) of the raster data collection. @@ -770,6 +807,7 @@ type RasterDataCollectionQueryInput struct { noSmithyDocumentSerde } +// type RasterDataCollectionQueryOutput struct { // @@ -817,6 +855,7 @@ type RasterDataCollectionQueryWithBandFilterInput struct { noSmithyDocumentSerde } +// type ResamplingConfigInput struct { // @@ -833,6 +872,7 @@ type ResamplingConfigInput struct { noSmithyDocumentSerde } +// type ReverseGeocodingConfig struct { // @@ -867,6 +907,7 @@ type S3DataInput struct { noSmithyDocumentSerde } +// type StackConfigInput struct { // @@ -878,6 +919,7 @@ type StackConfigInput struct { noSmithyDocumentSerde } +// type TemporalStatisticsConfigInput struct { // @@ -910,6 +952,7 @@ type TimeRangeFilterInput struct { noSmithyDocumentSerde } +// type UserDefined struct { // @@ -928,13 +971,13 @@ type UserDefined struct { // It contains configs such as ReverseGeocodingConfig and MapMatchingConfig. // // The following types satisfy this interface: -// -// VectorEnrichmentJobConfigMemberMapMatchingConfig -// VectorEnrichmentJobConfigMemberReverseGeocodingConfig +// VectorEnrichmentJobConfigMemberMapMatchingConfig +// VectorEnrichmentJobConfigMemberReverseGeocodingConfig type VectorEnrichmentJobConfig interface { isVectorEnrichmentJobConfig() } +// type VectorEnrichmentJobConfigMemberMapMatchingConfig struct { Value MapMatchingConfig @@ -943,6 +986,7 @@ type VectorEnrichmentJobConfigMemberMapMatchingConfig struct { func (*VectorEnrichmentJobConfigMemberMapMatchingConfig) isVectorEnrichmentJobConfig() {} +// type VectorEnrichmentJobConfigMemberReverseGeocodingConfig struct { Value ReverseGeocodingConfig @@ -951,13 +995,15 @@ type VectorEnrichmentJobConfigMemberReverseGeocodingConfig struct { func (*VectorEnrichmentJobConfigMemberReverseGeocodingConfig) isVectorEnrichmentJobConfig() {} -// The following types satisfy this interface: // -// VectorEnrichmentJobDataSourceConfigInputMemberS3Data +// +// The following types satisfy this interface: +// VectorEnrichmentJobDataSourceConfigInputMemberS3Data type VectorEnrichmentJobDataSourceConfigInput interface { isVectorEnrichmentJobDataSourceConfigInput() } +// type VectorEnrichmentJobDataSourceConfigInputMemberS3Data struct { Value VectorEnrichmentJobS3Data @@ -1024,6 +1070,7 @@ type VectorEnrichmentJobS3Data struct { noSmithyDocumentSerde } +// type ViewOffNadirInput struct { // @@ -1039,6 +1086,7 @@ type ViewOffNadirInput struct { noSmithyDocumentSerde } +// type ViewSunAzimuthInput struct { // @@ -1054,6 +1102,7 @@ type ViewSunAzimuthInput struct { noSmithyDocumentSerde } +// type ViewSunElevationInput struct { // The lower bound to view the sun elevation. @@ -1069,6 +1118,7 @@ type ViewSunElevationInput struct { noSmithyDocumentSerde } +// type ZonalStatisticsConfigInput struct { // diff --git a/service/sagemakerruntime/types/errors.go b/service/sagemakerruntime/types/errors.go index 6a65e3296ce..f00c9a28dc8 100644 --- a/service/sagemakerruntime/types/errors.go +++ b/service/sagemakerruntime/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalDependencyException struct { Message *string + Code *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.Code == nil { + return "InternalDependencyException" + } + return *e.Code +} func (e *InternalDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An internal failure occurred. type InternalFailure struct { Message *string + Code *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.Code == nil { + return "InternalFailure" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ModelError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ModelNotReadyException" + } + return *e.Code +} func (e *ModelNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is unavailable. Try your call again. type ServiceUnavailable struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailable" + } + return *e.Code +} func (e *ServiceUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Inspect your request and try again. type ValidationError struct { Message *string + Code *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.Code == nil { + return "ValidationError" + } + return *e.Code +} 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..991295a09a7 100644 --- a/service/savingsplans/types/errors.go +++ b/service/savingsplans/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A service quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the input parameters is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..3b455d4de1a 100644 --- a/service/scheduler/types/errors.go +++ b/service/scheduler/types/errors.go @@ -11,6 +11,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error encountered while processing the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource which does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds a service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/schemas/api_op_TagResource.go b/service/schemas/api_op_TagResource.go index c36e92421c2..d9500e4d4c6 100644 --- a/service/schemas/api_op_TagResource.go +++ b/service/schemas/api_op_TagResource.go @@ -26,6 +26,7 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF return out, nil } +// type TagResourceInput struct { // The ARN of the resource. diff --git a/service/schemas/types/errors.go b/service/schemas/types/errors.go index 496ce4d471d..c2aab3d83d0 100644 --- a/service/schemas/types/errors.go +++ b/service/schemas/types/errors.go @@ -24,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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ConflictException struct { @@ -44,7 +49,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ForbiddenException struct { @@ -64,7 +74,12 @@ func (e *ForbiddenException) ErrorMessage() string { } return *e.Message } -func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } +func (e *ForbiddenException) ErrorCode() string { + if e.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type GoneException struct { @@ -84,7 +99,12 @@ func (e *GoneException) ErrorMessage() string { } return *e.Message } -func (e *GoneException) ErrorCode() string { return "GoneException" } +func (e *GoneException) ErrorCode() string { + if e.Code == nil { + return "GoneException" + } + return *e.Code +} func (e *GoneException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type InternalServerErrorException struct { @@ -104,7 +124,12 @@ func (e *InternalServerErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } +func (e *InternalServerErrorException) ErrorCode() string { + if e.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type NotFoundException struct { @@ -124,7 +149,12 @@ func (e *NotFoundException) ErrorMessage() string { } return *e.Message } -func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } +func (e *NotFoundException) ErrorCode() string { + if e.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type PreconditionFailedException struct { @@ -144,7 +174,12 @@ func (e *PreconditionFailedException) ErrorMessage() string { } return *e.Message } -func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } +func (e *PreconditionFailedException) ErrorCode() string { + if e.Code == nil { + return "PreconditionFailedException" + } + return *e.Code +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceUnavailableException struct { @@ -164,7 +199,12 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type TooManyRequestsException struct { @@ -184,7 +224,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type UnauthorizedException struct { @@ -204,5 +249,10 @@ func (e *UnauthorizedException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } +func (e *UnauthorizedException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..bf320ee1878 100644 --- a/service/secretsmanager/types/errors.go +++ b/service/secretsmanager/types/errors.go @@ -12,6 +12,8 @@ import ( type DecryptionFailure struct { Message *string + Code *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.Code == nil { + return "DecryptionFailure" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EncryptionFailure" + } + return *e.Code +} func (e *EncryptionFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServiceError struct { Message *string + Code *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.Code == nil { + return "InternalServiceError" + } + return *e.Code +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The NextToken value is invalid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter name or value is invalid. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource policy has syntax errors. type MalformedPolicyDocumentException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -173,7 +224,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.Code == nil { + return "MalformedPolicyDocumentException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "PreconditionNotMetException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PublicPolicyException" + } + return *e.Code +} func (e *PublicPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource with the ID you requested already exists. type ResourceExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..114c9cb17a2 100644 --- a/service/securityhub/types/errors.go +++ b/service/securityhub/types/errors.go @@ -25,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Internal server error. @@ -46,7 +51,12 @@ func (e *InternalException) ErrorMessage() string { } return *e.Message } -func (e *InternalException) ErrorCode() string { return "InternalException" } +func (e *InternalException) ErrorCode() string { + if e.Code == nil { + return "InternalException" + } + return *e.Code +} func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The account doesn't have permission to perform this action. @@ -67,7 +77,12 @@ func (e *InvalidAccessException) ErrorMessage() string { } return *e.Message } -func (e *InvalidAccessException) ErrorCode() string { return "InvalidAccessException" } +func (e *InvalidAccessException) ErrorCode() string { + if e.Code == nil { + return "InvalidAccessException" + } + return *e.Code +} func (e *InvalidAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because you supplied an invalid or out-of-range value @@ -89,7 +104,12 @@ func (e *InvalidInputException) ErrorMessage() string { } return *e.Message } -func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } +func (e *InvalidInputException) ErrorCode() string { + if e.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create resources beyond the @@ -112,7 +132,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in the request conflicts with an existing resource. @@ -133,7 +158,12 @@ func (e *ResourceConflictException) ErrorMessage() string { } return *e.Message } -func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } +func (e *ResourceConflictException) ErrorCode() string { + if e.Code == nil { + return "ResourceConflictException" + } + return *e.Code +} func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because we can't find the specified resource. @@ -154,5 +184,10 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/securityhub/types/types.go b/service/securityhub/types/types.go index aa2b7b32491..fda8188af22 100644 --- a/service/securityhub/types/types.go +++ b/service/securityhub/types/types.go @@ -5611,6 +5611,7 @@ type AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails struct { noSmithyDocumentSerde } +// type AwsEcsTaskDefinitionVolumesEfsVolumeConfigurationAuthorizationConfigDetails struct { // The Amazon EFS access point identifier to use. diff --git a/service/securitylake/types/errors.go b/service/securitylake/types/errors.go index 811d8450d26..e6f4fe1c4d3 100644 --- a/service/securitylake/types/errors.go +++ b/service/securitylake/types/errors.go @@ -16,6 +16,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Security Lake can't 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 + Code *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.Code == nil { + return "AccountNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BucketNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -89,7 +112,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictSourceNamesException" + } + return *e.Code +} func (e *ConflictSourceNamesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflicting subscription exception operation is in progress. type ConflictSubscriptionException struct { Message *string + Code *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.Code == nil { + return "ConflictSubscriptionException" + } + return *e.Code +} func (e *ConflictSubscriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Represents an error interacting with the Amazon EventBridge service. type EventBridgeException struct { Message *string + Code *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.Code == nil { + return "EventBridgeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was rejected because an invalid or out-of-range value was supplied @@ -202,6 +263,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidInputException struct { Message *string + Code *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.Code == nil { + return "InvalidInputException" + } + return *e.Code +} func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "S3Exception" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your signing certificate could not be validated. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/securitylake/types/types.go b/service/securitylake/types/types.go index 7391b768610..5bc463dfe24 100644 --- a/service/securitylake/types/types.go +++ b/service/securitylake/types/types.go @@ -208,9 +208,8 @@ type RetentionSetting struct { // Security Lake. // // The following types satisfy this interface: -// -// SourceTypeMemberAwsSourceType -// SourceTypeMemberCustomSourceType +// SourceTypeMemberAwsSourceType +// SourceTypeMemberCustomSourceType type SourceType interface { isSourceType() } diff --git a/service/serverlessapplicationrepository/types/errors.go b/service/serverlessapplicationrepository/types/errors.go index 15f35d9b949..14ce3de5f46 100644 --- a/service/serverlessapplicationrepository/types/errors.go +++ b/service/serverlessapplicationrepository/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is not authenticated. type ForbiddenException struct { Message *string + Code *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.Code == nil { + return "ForbiddenException" + } + return *e.Code +} func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The AWS Serverless Application Repository service encountered an internal error. type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/servicecatalog/api_op_SearchProvisionedProducts.go b/service/servicecatalog/api_op_SearchProvisionedProducts.go index 4806e080dca..120d7683637 100644 --- a/service/servicecatalog/api_op_SearchProvisionedProducts.go +++ b/service/servicecatalog/api_op_SearchProvisionedProducts.go @@ -15,9 +15,7 @@ import ( // Gets information about the provisioned products that meet the specified // criteria. To ensure a complete list of provisioned products and remove duplicate // products, use sort-by createdTime. Here is a CLI example: -// -// aws servicecatalog -// +// aws servicecatalog // search-provisioned-products --sort-by createdTime func (c *Client) SearchProvisionedProducts(ctx context.Context, params *SearchProvisionedProductsInput, optFns ...func(*Options)) (*SearchProvisionedProductsOutput, error) { if params == nil { diff --git a/service/servicecatalog/types/errors.go b/service/servicecatalog/types/errors.go index fa688b6fa70..51275a3844f 100644 --- a/service/servicecatalog/types/errors.go +++ b/service/servicecatalog/types/errors.go @@ -11,6 +11,8 @@ import ( type DuplicateResourceException struct { Message *string + Code *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.Code == nil { + return "DuplicateResourceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParametersException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not supported. type OperationNotSupportedException struct { Message *string + Code *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.Code == nil { + return "OperationNotSupportedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagOptionNotMigratedException" + } + return *e.Code +} 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..f77082f8456 100644 --- a/service/servicecatalogappregistry/types/errors.go +++ b/service/servicecatalogappregistry/types/errors.go @@ -12,6 +12,8 @@ import ( type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is experiencing internal problems. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of resources per account has been reached. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request has invalid or missing parameters. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..985798c070c 100644 --- a/service/servicediscovery/types/errors.go +++ b/service/servicediscovery/types/errors.go @@ -12,6 +12,8 @@ import ( type CustomHealthNotFound struct { Message *string + Code *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.Code == nil { + return "CustomHealthNotFound" + } + return *e.Code +} func (e *CustomHealthNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is already in progress. type DuplicateRequest struct { Message *string + Code *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.Code == nil { + return "DuplicateRequest" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InstanceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInput" + } + return *e.Code +} func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The namespace that you're trying to create already exists. type NamespaceAlreadyExists struct { Message *string + Code *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.Code == nil { + return "NamespaceAlreadyExists" + } + return *e.Code +} func (e *NamespaceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No namespace exists with the specified ID. type NamespaceNotFound struct { Message *string + Code *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.Code == nil { + return "NamespaceNotFound" + } + return *e.Code +} func (e *NamespaceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No operation exists with the specified ID. type OperationNotFound struct { Message *string + Code *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.Code == nil { + return "OperationNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RequestLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceInUse" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceAlreadyExists" + } + return *e.Code +} func (e *ServiceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // No service exists with the specified ID. type ServiceNotFound struct { Message *string + Code *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.Code == nil { + return "ServiceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..dbaff73908e 100644 --- a/service/servicequotas/types/errors.go +++ b/service/servicequotas/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *AWSServiceAccessNotEnabledException) ErrorMessage() string { return *e.Message } func (e *AWSServiceAccessNotEnabledException) ErrorCode() string { - return "AWSServiceAccessNotEnabledException" + if e.Code == nil { + return "AWSServiceAccessNotEnabledException" + } + return *e.Code } func (e *AWSServiceAccessNotEnabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *AWSServiceAccessNotEnabledException) ErrorFault() smithy.ErrorFault { type DependencyAccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -67,7 +81,10 @@ func (e *DependencyAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *DependencyAccessDeniedException) ErrorCode() string { - return "DependencyAccessDeniedException" + if e.Code == nil { + return "DependencyAccessDeniedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "IllegalArgumentException" + } + return *e.Code +} func (e *IllegalArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid input was provided. type InvalidPaginationTokenException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -107,7 +133,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.Code == nil { + return "InvalidPaginationTokenException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidResourceStateException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -147,7 +185,10 @@ func (e *NoAvailableOrganizationException) ErrorMessage() string { return *e.Message } func (e *NoAvailableOrganizationException) ErrorCode() string { - return "NoAvailableOrganizationException" + if e.Code == nil { + return "NoAvailableOrganizationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "NoSuchResourceException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -187,7 +237,10 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotInAllFeaturesModeException) ErrorCode() string { - return "OrganizationNotInAllFeaturesModeException" + if e.Code == nil { + return "OrganizationNotInAllFeaturesModeException" + } + return *e.Code } func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -199,6 +252,8 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorFault() smithy.ErrorFau type QuotaExceededException struct { Message *string + Code *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.Code == nil { + return "QuotaExceededException" + } + return *e.Code +} func (e *QuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Something went wrong. type ServiceException struct { Message *string + Code *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.Code == nil { + return "ServiceException" + } + return *e.Code +} func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The quota request template is not associated with your organization. type ServiceQuotaTemplateNotInUseException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -269,7 +345,10 @@ func (e *ServiceQuotaTemplateNotInUseException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaTemplateNotInUseException) ErrorCode() string { - return "ServiceQuotaTemplateNotInUseException" + if e.Code == nil { + return "ServiceQuotaTemplateNotInUseException" + } + return *e.Code } func (e *ServiceQuotaTemplateNotInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -279,6 +358,8 @@ func (e *ServiceQuotaTemplateNotInUseException) ErrorFault() smithy.ErrorFault { type TagPolicyViolationException struct { Message *string + Code *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.Code == nil { + return "TagPolicyViolationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -311,7 +399,10 @@ func (e *TemplatesNotAvailableInRegionException) ErrorMessage() string { return *e.Message } func (e *TemplatesNotAvailableInRegionException) ErrorCode() string { - return "TemplatesNotAvailableInRegionException" + if e.Code == nil { + return "TemplatesNotAvailableInRegionException" + } + return *e.Code } func (e *TemplatesNotAvailableInRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -322,6 +413,8 @@ func (e *TemplatesNotAvailableInRegionException) ErrorFault() smithy.ErrorFault type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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..5e4215ac260 100644 --- a/service/ses/types/errors.go +++ b/service/ses/types/errors.go @@ -13,6 +13,8 @@ import ( type AccountSendingPausedException struct { Message *string + Code *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.Code == nil { + return "AccountSendingPausedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AlreadyExists" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the delete operation could not be completed. type CannotDeleteException struct { Message *string + Code *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.Code == nil { + return "CannotDelete" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConfigurationSetAlreadyExists" + } + return *e.Code } func (e *ConfigurationSetAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -100,6 +126,8 @@ func (e *ConfigurationSetAlreadyExistsException) ErrorFault() smithy.ErrorFault type ConfigurationSetDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "ConfigurationSetDoesNotExist" + } + return *e.Code } func (e *ConfigurationSetDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -127,6 +158,8 @@ func (e *ConfigurationSetDoesNotExistException) ErrorFault() smithy.ErrorFault { type ConfigurationSetSendingPausedException struct { Message *string + Code *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.Code == nil { + return "ConfigurationSetSendingPausedException" + } + return *e.Code } func (e *ConfigurationSetSendingPausedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -152,6 +188,8 @@ func (e *ConfigurationSetSendingPausedException) ErrorFault() smithy.ErrorFault type CustomVerificationEmailInvalidContentException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -165,7 +203,10 @@ func (e *CustomVerificationEmailInvalidContentException) ErrorMessage() string { return *e.Message } func (e *CustomVerificationEmailInvalidContentException) ErrorCode() string { - return "CustomVerificationEmailInvalidContent" + if e.Code == nil { + return "CustomVerificationEmailInvalidContent" + } + return *e.Code } func (e *CustomVerificationEmailInvalidContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -176,6 +217,8 @@ func (e *CustomVerificationEmailInvalidContentException) ErrorFault() smithy.Err type CustomVerificationEmailTemplateAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "CustomVerificationEmailTemplateAlreadyExists" + } + return *e.Code } func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -202,6 +248,8 @@ func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorFault() smi type CustomVerificationEmailTemplateDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "CustomVerificationEmailTemplateDoesNotExist" + } + return *e.Code } func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -228,6 +279,8 @@ func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorFault() smit type EventDestinationAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "EventDestinationAlreadyExists" + } + return *e.Code } func (e *EventDestinationAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -254,6 +310,8 @@ func (e *EventDestinationAlreadyExistsException) ErrorFault() smithy.ErrorFault type EventDestinationDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "EventDestinationDoesNotExist" + } + return *e.Code } func (e *EventDestinationDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -282,6 +343,8 @@ func (e *EventDestinationDoesNotExistException) ErrorFault() smithy.ErrorFault { type FromEmailAddressNotVerifiedException struct { Message *string + Code *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.Code == nil { + return "FromEmailAddressNotVerified" + } + return *e.Code } func (e *FromEmailAddressNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -308,6 +374,8 @@ func (e *FromEmailAddressNotVerifiedException) ErrorFault() smithy.ErrorFault { type InvalidCloudWatchDestinationException struct { Message *string + Code *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.Code == nil { + return "InvalidCloudWatchDestination" + } + return *e.Code } func (e *InvalidCloudWatchDestinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -335,6 +406,8 @@ func (e *InvalidCloudWatchDestinationException) ErrorFault() smithy.ErrorFault { type InvalidConfigurationSetException struct { Message *string + Code *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.Code == nil { + return "InvalidConfigurationSet" + } + return *e.Code +} func (e *InvalidConfigurationSetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that provided delivery option is invalid. type InvalidDeliveryOptionsException struct { Message *string + Code *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.Code == nil { + return "InvalidDeliveryOptions" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFirehoseDestination" + } + return *e.Code +} func (e *InvalidFirehoseDestinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -401,6 +493,8 @@ func (e *InvalidFirehoseDestinationException) ErrorFault() smithy.ErrorFault { type InvalidLambdaFunctionException struct { Message *string + Code *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.Code == nil { + return "InvalidLambdaFunction" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPolicy" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRenderingParameter" + } + return *e.Code +} func (e *InvalidRenderingParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -470,6 +583,8 @@ func (e *InvalidRenderingParameterException) ErrorFault() smithy.ErrorFault { type InvalidS3ConfigurationException struct { Message *string + Code *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.Code == nil { + return "InvalidS3Configuration" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSNSDestination" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSnsTopic" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTemplate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTrackingOptions" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -625,7 +782,10 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - return "MailFromDomainNotVerifiedException" + if e.Code == nil { + return "MailFromDomainNotVerifiedException" + } + return *e.Code } func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -636,6 +796,8 @@ func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { type MessageRejected struct { Message *string + Code *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.Code == nil { + return "MessageRejected" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MissingRenderingAttribute" + } + return *e.Code +} func (e *MissingRenderingAttributeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -680,6 +854,8 @@ func (e *MissingRenderingAttributeException) ErrorFault() smithy.ErrorFault { type ProductionAccessNotGrantedException struct { Message *string + Code *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.Code == nil { + return "ProductionAccessNotGranted" + } + return *e.Code +} func (e *ProductionAccessNotGrantedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -701,6 +882,8 @@ func (e *ProductionAccessNotGrantedException) ErrorFault() smithy.ErrorFault { type RuleDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "RuleDoesNotExist" + } + return *e.Code +} func (e *RuleDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the provided receipt rule set does not exist. type RuleSetDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "RuleSetDoesNotExist" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TemplateDoesNotExist" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TrackingOptionsAlreadyExistsException" + } + return *e.Code } func (e *TrackingOptionsAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -791,6 +998,8 @@ func (e *TrackingOptionsAlreadyExistsException) ErrorFault() smithy.ErrorFault { type TrackingOptionsDoesNotExistException struct { Message *string + Code *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.Code == nil { + return "TrackingOptionsDoesNotExistException" + } + return *e.Code } func (e *TrackingOptionsDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient diff --git a/service/sesv2/api_op_PutDedicatedIpWarmupAttributes.go b/service/sesv2/api_op_PutDedicatedIpWarmupAttributes.go index cc0f780071c..e48186f5496 100644 --- a/service/sesv2/api_op_PutDedicatedIpWarmupAttributes.go +++ b/service/sesv2/api_op_PutDedicatedIpWarmupAttributes.go @@ -10,6 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// func (c *Client) PutDedicatedIpWarmupAttributes(ctx context.Context, params *PutDedicatedIpWarmupAttributesInput, optFns ...func(*Options)) (*PutDedicatedIpWarmupAttributesOutput, error) { if params == nil { params = &PutDedicatedIpWarmupAttributesInput{} diff --git a/service/sesv2/types/errors.go b/service/sesv2/types/errors.go index cdcf7ce7564..4d640342cbe 100644 --- a/service/sesv2/types/errors.go +++ b/service/sesv2/types/errors.go @@ -12,6 +12,8 @@ import ( type AccountSuspendedException struct { Message *string + Code *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.Code == nil { + return "AccountSuspendedException" + } + return *e.Code +} func (e *AccountSuspendedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource specified in your request already exists. type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input you provided is invalid. type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is being modified by another operation or thread. type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -82,7 +105,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified request includes an invalid or expired token. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are too many instances of the specified resource type. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -180,7 +236,10 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - return "MailFromDomainNotVerifiedException" + if e.Code == nil { + return "MailFromDomainNotVerifiedException" + } + return *e.Code } func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -190,6 +249,8 @@ func (e *MailFromDomainNotVerifiedException) ErrorFault() smithy.ErrorFault { type MessageRejected struct { Message *string + Code *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.Code == nil { + return "MessageRejected" + } + return *e.Code +} func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource you attempted to access doesn't exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SendingPausedException" + } + return *e.Code +} func (e *SendingPausedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests have been made to the operation. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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..243e8199346 100644 --- a/service/sfn/types/errors.go +++ b/service/sfn/types/errors.go @@ -11,6 +11,8 @@ import ( type ActivityDoesNotExist struct { Message *string + Code *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.Code == nil { + return "ActivityDoesNotExist" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ActivityLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ActivityWorkerLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ExecutionAlreadyExists" + } + return *e.Code +} func (e *ExecutionAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified execution does not exist. type ExecutionDoesNotExist struct { Message *string + Code *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.Code == nil { + return "ExecutionDoesNotExist" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ExecutionLimitExceeded" + } + return *e.Code +} func (e *ExecutionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Amazon Resource Name (ARN) is not valid. type InvalidArn struct { Message *string + Code *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.Code == nil { + return "InvalidArn" + } + return *e.Code +} func (e *InvalidArn) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided Amazon States Language definition is not valid. type InvalidDefinition struct { Message *string + Code *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.Code == nil { + return "InvalidDefinition" + } + return *e.Code +} func (e *InvalidDefinition) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided JSON input data is not valid. type InvalidExecutionInput struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -179,12 +237,20 @@ func (e *InvalidExecutionInput) ErrorMessage() string { } return *e.Message } -func (e *InvalidExecutionInput) ErrorCode() string { return "InvalidExecutionInput" } +func (e *InvalidExecutionInput) ErrorCode() string { + if e.Code == nil { + return "InvalidExecutionInput" + } + return *e.Code +} func (e *InvalidExecutionInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InvalidLoggingConfiguration struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -197,13 +263,20 @@ func (e *InvalidLoggingConfiguration) ErrorMessage() string { } return *e.Message } -func (e *InvalidLoggingConfiguration) ErrorCode() string { return "InvalidLoggingConfiguration" } +func (e *InvalidLoggingConfiguration) ErrorCode() string { + if e.Code == nil { + return "InvalidLoggingConfiguration" + } + return *e.Code +} func (e *InvalidLoggingConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided name is not valid. type InvalidName struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -216,13 +289,20 @@ func (e *InvalidName) ErrorMessage() string { } return *e.Message } -func (e *InvalidName) ErrorCode() string { return "InvalidName" } +func (e *InvalidName) ErrorCode() string { + if e.Code == nil { + return "InvalidName" + } + return *e.Code +} func (e *InvalidName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided JSON output data is not valid. type InvalidOutput struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -235,13 +315,20 @@ func (e *InvalidOutput) ErrorMessage() string { } return *e.Message } -func (e *InvalidOutput) ErrorCode() string { return "InvalidOutput" } +func (e *InvalidOutput) ErrorCode() string { + if e.Code == nil { + return "InvalidOutput" + } + return *e.Code +} func (e *InvalidOutput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The provided token is not valid. type InvalidToken struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -254,7 +341,12 @@ func (e *InvalidToken) ErrorMessage() string { } return *e.Message } -func (e *InvalidToken) ErrorCode() string { return "InvalidToken" } +func (e *InvalidToken) ErrorCode() string { + if e.Code == nil { + return "InvalidToken" + } + return *e.Code +} func (e *InvalidToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Your tracingConfiguration key does not match, or enabled has not been set to @@ -262,6 +354,8 @@ func (e *InvalidToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type InvalidTracingConfiguration struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -274,7 +368,12 @@ func (e *InvalidTracingConfiguration) ErrorMessage() string { } return *e.Message } -func (e *InvalidTracingConfiguration) ErrorCode() string { return "InvalidTracingConfiguration" } +func (e *InvalidTracingConfiguration) ErrorCode() string { + if e.Code == nil { + return "InvalidTracingConfiguration" + } + return *e.Code +} func (e *InvalidTracingConfiguration) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request is missing a required parameter. This error occurs if both definition @@ -282,6 +381,8 @@ func (e *InvalidTracingConfiguration) ErrorFault() smithy.ErrorFault { return sm type MissingRequiredParameter struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -294,7 +395,12 @@ func (e *MissingRequiredParameter) ErrorMessage() string { } return *e.Message } -func (e *MissingRequiredParameter) ErrorCode() string { return "MissingRequiredParameter" } +func (e *MissingRequiredParameter) ErrorCode() string { + if e.Code == nil { + return "MissingRequiredParameter" + } + return *e.Code +} func (e *MissingRequiredParameter) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Could not find the referenced resource. Only state machine and activity ARNs are @@ -302,6 +408,8 @@ func (e *MissingRequiredParameter) ErrorFault() smithy.ErrorFault { return smith type ResourceNotFound struct { Message *string + Code *string + ResourceName *string noSmithyDocumentSerde @@ -316,7 +424,12 @@ func (e *ResourceNotFound) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFound) ErrorCode() string { return "ResourceNotFound" } +func (e *ResourceNotFound) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} 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 +437,8 @@ func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultC type StateMachineAlreadyExists struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -336,13 +451,20 @@ func (e *StateMachineAlreadyExists) ErrorMessage() string { } return *e.Message } -func (e *StateMachineAlreadyExists) ErrorCode() string { return "StateMachineAlreadyExists" } +func (e *StateMachineAlreadyExists) ErrorCode() string { + if e.Code == nil { + return "StateMachineAlreadyExists" + } + return *e.Code +} func (e *StateMachineAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified state machine is being deleted. type StateMachineDeleting struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -355,13 +477,20 @@ func (e *StateMachineDeleting) ErrorMessage() string { } return *e.Message } -func (e *StateMachineDeleting) ErrorCode() string { return "StateMachineDeleting" } +func (e *StateMachineDeleting) ErrorCode() string { + if e.Code == nil { + return "StateMachineDeleting" + } + return *e.Code +} func (e *StateMachineDeleting) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified state machine does not exist. type StateMachineDoesNotExist struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -374,7 +503,12 @@ func (e *StateMachineDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *StateMachineDoesNotExist) ErrorCode() string { return "StateMachineDoesNotExist" } +func (e *StateMachineDoesNotExist) ErrorCode() string { + if e.Code == nil { + return "StateMachineDoesNotExist" + } + return *e.Code +} func (e *StateMachineDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The maximum number of state machines has been reached. Existing state machines @@ -382,6 +516,8 @@ func (e *StateMachineDoesNotExist) ErrorFault() smithy.ErrorFault { return smith type StateMachineLimitExceeded struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -394,12 +530,20 @@ func (e *StateMachineLimitExceeded) ErrorMessage() string { } return *e.Message } -func (e *StateMachineLimitExceeded) ErrorCode() string { return "StateMachineLimitExceeded" } +func (e *StateMachineLimitExceeded) ErrorCode() string { + if e.Code == nil { + return "StateMachineLimitExceeded" + } + return *e.Code +} func (e *StateMachineLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type StateMachineTypeNotSupported struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -412,12 +556,19 @@ func (e *StateMachineTypeNotSupported) ErrorMessage() string { } return *e.Message } -func (e *StateMachineTypeNotSupported) ErrorCode() string { return "StateMachineTypeNotSupported" } +func (e *StateMachineTypeNotSupported) ErrorCode() string { + if e.Code == nil { + return "StateMachineTypeNotSupported" + } + return *e.Code +} func (e *StateMachineTypeNotSupported) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TaskDoesNotExist struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -430,12 +581,19 @@ func (e *TaskDoesNotExist) ErrorMessage() string { } return *e.Message } -func (e *TaskDoesNotExist) ErrorCode() string { return "TaskDoesNotExist" } +func (e *TaskDoesNotExist) ErrorCode() string { + if e.Code == nil { + return "TaskDoesNotExist" + } + return *e.Code +} func (e *TaskDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type TaskTimedOut struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -448,7 +606,12 @@ func (e *TaskTimedOut) ErrorMessage() string { } return *e.Message } -func (e *TaskTimedOut) ErrorCode() string { return "TaskTimedOut" } +func (e *TaskTimedOut) ErrorCode() string { + if e.Code == nil { + return "TaskTimedOut" + } + return *e.Code +} 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 +620,8 @@ func (e *TaskTimedOut) ErrorFault() smithy.ErrorFault { return smithy.FaultClien type TooManyTags struct { Message *string + Code *string + ResourceName *string noSmithyDocumentSerde @@ -471,7 +636,12 @@ func (e *TooManyTags) ErrorMessage() string { } return *e.Message } -func (e *TooManyTags) ErrorCode() string { return "TooManyTags" } +func (e *TooManyTags) ErrorCode() string { + if e.Code == nil { + return "TooManyTags" + } + return *e.Code +} func (e *TooManyTags) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input does not satisfy the constraints specified by an Amazon Web Services @@ -479,6 +649,8 @@ func (e *TooManyTags) ErrorFault() smithy.ErrorFault { return smithy.FaultClient type ValidationException struct { Message *string + Code *string + Reason ValidationExceptionReason noSmithyDocumentSerde @@ -493,5 +665,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sfn/types/types.go b/service/sfn/types/types.go index 689ed78d2be..8475d644bf1 100644 --- a/service/sfn/types/types.go +++ b/service/sfn/types/types.go @@ -150,6 +150,7 @@ type CloudWatchEventsExecutionDataDetails struct { noSmithyDocumentSerde } +// type CloudWatchLogsLogGroup struct { // The ARN of the the CloudWatch log group to which you want your logs emitted to. @@ -516,6 +517,7 @@ type LambdaFunctionTimedOutEventDetails struct { noSmithyDocumentSerde } +// type LogDestination struct { // An object describing a CloudWatch log group. For more information, see diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index dd910567d93..d945a37f8ce 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -49,7 +58,10 @@ func (e *AccessDeniedForDependencyException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedForDependencyException) ErrorCode() string { - return "AccessDeniedForDependencyException" + if e.Code == nil { + return "AccessDeniedForDependencyException" + } + return *e.Code } func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -60,6 +72,8 @@ func (e *AccessDeniedForDependencyException) ErrorFault() smithy.ErrorFault { type InternalErrorException struct { Message *string + Code *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.Code == nil { + return "InternalErrorException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -113,7 +141,10 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - return "InvalidPaginationTokenException" + if e.Code == nil { + return "InvalidPaginationTokenException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidResourceException" + } + return *e.Code +} func (e *InvalidResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that indicates that the operation would exceed a limit. type LimitsExceededException struct { Message *string + Code *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.Code == nil { + return "LimitsExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LockedSubscriptionException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NoAssociatedRoleException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OptimisticLockException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..9e1cf81f0d8 100644 --- a/service/signer/types/errors.go +++ b/service/signer/types/errors.go @@ -25,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request contains invalid parameters for the ARN or tags. This exception also @@ -47,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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource encountered a conflicting state. @@ -68,7 +78,12 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. @@ -89,7 +104,12 @@ func (e *InternalServiceErrorException) ErrorMessage() string { } return *e.Message } -func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } +func (e *InternalServiceErrorException) ErrorCode() string { + if e.Code == nil { + return "InternalServiceErrorException" + } + return *e.Code +} func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The signing profile was not found. @@ -110,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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A specified resource could not be found. @@ -131,7 +156,12 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The client is making a request that exceeds service limits. @@ -152,7 +182,12 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceLimitExceededException) ErrorCode() string { return "ServiceLimitExceededException" } +func (e *ServiceLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceLimitExceededException" + } + return *e.Code +} func (e *ServiceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. Instead of this error, @@ -174,7 +209,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The allowed number of job-signing requests has been exceeded. This error @@ -196,7 +236,12 @@ func (e *TooManyRequestsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } +func (e *TooManyRequestsException) ErrorCode() string { + if e.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You signing certificate could not be validated. @@ -217,5 +262,10 @@ func (e *ValidationException) ErrorMessage() string { } return *e.Message } -func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorCode() string { + if e.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..9cae2bea5c8 100644 --- a/service/simspaceweaver/types/errors.go +++ b/service/simspaceweaver/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type AccessDeniedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,12 +25,20 @@ func (e *AccessDeniedException) ErrorMessage() string { } return *e.Message } -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorCode() string { + if e.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ConflictException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -40,12 +51,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InternalServerException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -58,12 +77,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -76,12 +103,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ServiceQuotaExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -94,12 +129,20 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { } return *e.Message } -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type TooManyTagsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -112,12 +155,20 @@ func (e *TooManyTagsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorCode() string { + if e.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ValidationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -130,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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..7ac08bf5669 100644 --- a/service/sms/types/errors.go +++ b/service/sms/types/errors.go @@ -12,6 +12,8 @@ import ( type DryRunOperationException struct { Message *string + Code *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.Code == nil { + return "DryRunOperationException" + } + return *e.Code +} func (e *DryRunOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal error occurred. type InternalError struct { Message *string + Code *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.Code == nil { + return "InternalError" + } + return *e.Code +} func (e *InternalError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // A specified parameter is not valid. type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A required parameter is missing. type MissingRequiredParameterException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -82,7 +105,10 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - return "MissingRequiredParameterException" + if e.Code == nil { + return "MissingRequiredParameterException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "NoConnectorsAvailableException" + } + return *e.Code +} func (e *NoConnectorsAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not allowed. type OperationNotPermittedException struct { Message *string + Code *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.Code == nil { + return "OperationNotPermittedException" + } + return *e.Code +} func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified replication job already exists. type ReplicationJobAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -141,7 +183,10 @@ func (e *ReplicationJobAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ReplicationJobAlreadyExistsException) ErrorCode() string { - return "ReplicationJobAlreadyExistsException" + if e.Code == nil { + return "ReplicationJobAlreadyExistsException" + } + return *e.Code } func (e *ReplicationJobAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -151,6 +196,8 @@ func (e *ReplicationJobAlreadyExistsException) ErrorFault() smithy.ErrorFault { type ReplicationJobNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -164,7 +211,10 @@ func (e *ReplicationJobNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReplicationJobNotFoundException) ErrorCode() string { - return "ReplicationJobNotFoundException" + if e.Code == nil { + return "ReplicationJobNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -186,7 +238,10 @@ func (e *ReplicationRunLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ReplicationRunLimitExceededException) ErrorCode() string { - return "ReplicationRunLimitExceededException" + if e.Code == nil { + return "ReplicationRunLimitExceededException" + } + return *e.Code } func (e *ReplicationRunLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -196,6 +251,8 @@ func (e *ReplicationRunLimitExceededException) ErrorFault() smithy.ErrorFault { type ServerCannotBeReplicatedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -209,7 +266,10 @@ func (e *ServerCannotBeReplicatedException) ErrorMessage() string { return *e.Message } func (e *ServerCannotBeReplicatedException) ErrorCode() string { - return "ServerCannotBeReplicatedException" + if e.Code == nil { + return "ServerCannotBeReplicatedException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -230,7 +292,10 @@ func (e *TemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *TemporarilyUnavailableException) ErrorCode() string { - return "TemporarilyUnavailableException" + if e.Code == nil { + return "TemporarilyUnavailableException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "UnauthorizedOperationException" + } + return *e.Code +} 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..7f3944e1566 100644 --- a/service/snowball/types/errors.go +++ b/service/snowball/types/errors.go @@ -13,6 +13,8 @@ import ( type ClusterLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ClusterLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "Ec2RequestFailedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAddressException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -109,7 +139,10 @@ func (e *InvalidInputCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidInputCombinationException) ErrorCode() string { - return "InvalidInputCombinationException" + if e.Code == nil { + return "InvalidInputCombinationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidJobStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidResourceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSRequestFailedException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -214,7 +277,10 @@ func (e *ReturnShippingLabelAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ReturnShippingLabelAlreadyExistsException) ErrorCode() string { - return "ReturnShippingLabelAlreadyExistsException" + if e.Code == nil { + return "ReturnShippingLabelAlreadyExistsException" + } + return *e.Code } func (e *ReturnShippingLabelAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -226,6 +292,8 @@ func (e *ReturnShippingLabelAlreadyExistsException) ErrorFault() smithy.ErrorFau type UnsupportedAddressException struct { Message *string + Code *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.Code == nil { + return "UnsupportedAddressException" + } + return *e.Code +} 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..e07f13f32bb 100644 --- a/service/snowdevicemanagement/types/errors.go +++ b/service/snowdevicemanagement/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An unexpected error occurred while processing the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request references a resource that doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/snowdevicemanagement/types/types.go b/service/snowdevicemanagement/types/types.go index d9fc035fb67..fc7cf1c9657 100644 --- a/service/snowdevicemanagement/types/types.go +++ b/service/snowdevicemanagement/types/types.go @@ -31,9 +31,8 @@ type Capacity struct { // The command given to the device to execute. // // The following types satisfy this interface: -// -// CommandMemberReboot -// CommandMemberUnlock +// CommandMemberReboot +// CommandMemberUnlock type Command interface { isCommand() } diff --git a/service/sns/types/errors.go b/service/sns/types/errors.go index 31a756ed39b..b4077f7b726 100644 --- a/service/sns/types/errors.go +++ b/service/sns/types/errors.go @@ -11,6 +11,8 @@ import ( type AuthorizationErrorException struct { Message *string + Code *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.Code == nil { + return "AuthorizationError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BatchEntryIdsNotDistinct" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "BatchRequestTooLong" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConcurrentAccess" + } + return *e.Code +} func (e *ConcurrentAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request doesn't contain any entries. type EmptyBatchRequestException struct { Message *string + Code *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.Code == nil { + return "EmptyBatchRequest" + } + return *e.Code +} func (e *EmptyBatchRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception error indicating endpoint disabled. type EndpointDisabledException struct { Message *string + Code *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.Code == nil { + return "EndpointDisabled" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FilterPolicyLimitExceeded" + } + return *e.Code +} func (e *FilterPolicyLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -149,6 +198,8 @@ func (e *FilterPolicyLimitExceededException) ErrorFault() smithy.ErrorFault { type InternalErrorException struct { Message *string + Code *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.Code == nil { + return "InternalError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidBatchEntryId" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameter" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ParameterValueInvalid" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSecurity" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSAccessDenied" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSDisabled" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSInvalidState" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSOptInRequired" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "KMSThrottling" + } + return *e.Code +} func (e *KMSThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the requested resource does not exist. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OptedOut" + } + return *e.Code +} func (e *OptedOutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception error indicating platform application disabled. type PlatformApplicationDisabledException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -424,7 +566,10 @@ func (e *PlatformApplicationDisabledException) ErrorMessage() string { return *e.Message } func (e *PlatformApplicationDisabledException) ErrorCode() string { - return "PlatformApplicationDisabled" + if e.Code == nil { + return "PlatformApplicationDisabled" + } + return *e.Code } func (e *PlatformApplicationDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -435,6 +580,8 @@ func (e *PlatformApplicationDisabledException) ErrorFault() smithy.ErrorFault { type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "StaleTag" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SubscriptionLimitExceeded" + } + return *e.Code +} func (e *SubscriptionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -496,6 +662,8 @@ func (e *SubscriptionLimitExceededException) ErrorFault() smithy.ErrorFault { type TagLimitExceededException struct { Message *string + Code *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.Code == nil { + return "TagLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TagPolicy" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "Throttled" + } + return *e.Code +} func (e *ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request contains more entries than permissible. type TooManyEntriesInBatchRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -568,7 +757,10 @@ func (e *TooManyEntriesInBatchRequestException) ErrorMessage() string { return *e.Message } func (e *TooManyEntriesInBatchRequestException) ErrorCode() string { - return "TooManyEntriesInBatchRequest" + if e.Code == nil { + return "TooManyEntriesInBatchRequest" + } + return *e.Code } func (e *TooManyEntriesInBatchRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -578,6 +770,8 @@ func (e *TooManyEntriesInBatchRequestException) ErrorFault() smithy.ErrorFault { type TopicLimitExceededException struct { Message *string + Code *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.Code == nil { + return "TopicLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UserError" + } + return *e.Code +} func (e *UserErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that a parameter in the request is invalid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "VerificationException" + } + return *e.Code +} func (e *VerificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sqs/api_op_AddPermission.go b/service/sqs/api_op_AddPermission.go index 971e29e1daf..3194eb8f46f 100644 --- a/service/sqs/api_op_AddPermission.go +++ b/service/sqs/api_op_AddPermission.go @@ -55,6 +55,7 @@ func (c *Client) AddPermission(ctx context.Context, params *AddPermissionInput, return out, nil } +// type AddPermissionInput struct { // The Amazon Web Services account numbers of the principals diff --git a/service/sqs/api_op_ChangeMessageVisibilityBatch.go b/service/sqs/api_op_ChangeMessageVisibilityBatch.go index 6781ca4aa61..0d8879b39f4 100644 --- a/service/sqs/api_op_ChangeMessageVisibilityBatch.go +++ b/service/sqs/api_op_ChangeMessageVisibilityBatch.go @@ -37,6 +37,7 @@ func (c *Client) ChangeMessageVisibilityBatch(ctx context.Context, params *Chang return out, nil } +// type ChangeMessageVisibilityBatchInput struct { // A list of receipt handles of the messages for which the visibility timeout must diff --git a/service/sqs/api_op_CreateQueue.go b/service/sqs/api_op_CreateQueue.go index 950ec7c125b..6d9171e347c 100644 --- a/service/sqs/api_op_CreateQueue.go +++ b/service/sqs/api_op_CreateQueue.go @@ -68,6 +68,7 @@ func (c *Client) CreateQueue(ctx context.Context, params *CreateQueueInput, optF return out, nil } +// type CreateQueueInput struct { // The name of the new queue. The following limits apply to this name: diff --git a/service/sqs/api_op_DeleteMessage.go b/service/sqs/api_op_DeleteMessage.go index 7d8e6fe9b78..38cd866ddaf 100644 --- a/service/sqs/api_op_DeleteMessage.go +++ b/service/sqs/api_op_DeleteMessage.go @@ -42,6 +42,7 @@ func (c *Client) DeleteMessage(ctx context.Context, params *DeleteMessageInput, return out, nil } +// type DeleteMessageInput struct { // The URL of the Amazon SQS queue from which messages are deleted. Queue URLs and diff --git a/service/sqs/api_op_DeleteMessageBatch.go b/service/sqs/api_op_DeleteMessageBatch.go index 2fe221baa9c..d806737529a 100644 --- a/service/sqs/api_op_DeleteMessageBatch.go +++ b/service/sqs/api_op_DeleteMessageBatch.go @@ -19,8 +19,7 @@ import ( // parameters. These lists are specified using the param.n notation. Values of n // are integers starting from 1. For example, a parameter list with two elements // looks like this: &AttributeName.1=first -// -// &AttributeName.2=second +// &AttributeName.2=second func (c *Client) DeleteMessageBatch(ctx context.Context, params *DeleteMessageBatchInput, optFns ...func(*Options)) (*DeleteMessageBatchOutput, error) { if params == nil { params = &DeleteMessageBatchInput{} @@ -36,6 +35,7 @@ func (c *Client) DeleteMessageBatch(ctx context.Context, params *DeleteMessageBa return out, nil } +// type DeleteMessageBatchInput struct { // A list of receipt handles for the messages to be deleted. diff --git a/service/sqs/api_op_DeleteQueue.go b/service/sqs/api_op_DeleteQueue.go index b5eab8d47e7..07c3f085855 100644 --- a/service/sqs/api_op_DeleteQueue.go +++ b/service/sqs/api_op_DeleteQueue.go @@ -36,6 +36,7 @@ func (c *Client) DeleteQueue(ctx context.Context, params *DeleteQueueInput, optF return out, nil } +// type DeleteQueueInput struct { // The URL of the Amazon SQS queue to delete. Queue URLs and names are diff --git a/service/sqs/api_op_GetQueueAttributes.go b/service/sqs/api_op_GetQueueAttributes.go index 82be851ba71..140aa1e14ad 100644 --- a/service/sqs/api_op_GetQueueAttributes.go +++ b/service/sqs/api_op_GetQueueAttributes.go @@ -29,6 +29,7 @@ func (c *Client) GetQueueAttributes(ctx context.Context, params *GetQueueAttribu return out, nil } +// type GetQueueAttributesInput struct { // The URL of the Amazon SQS queue whose attribute information is retrieved. Queue diff --git a/service/sqs/api_op_GetQueueUrl.go b/service/sqs/api_op_GetQueueUrl.go index b27b4153a8b..db11c4accce 100644 --- a/service/sqs/api_op_GetQueueUrl.go +++ b/service/sqs/api_op_GetQueueUrl.go @@ -32,6 +32,7 @@ func (c *Client) GetQueueUrl(ctx context.Context, params *GetQueueUrlInput, optF return out, nil } +// type GetQueueUrlInput struct { // The name of the queue whose URL must be fetched. Maximum 80 characters. Valid diff --git a/service/sqs/api_op_ListDeadLetterSourceQueues.go b/service/sqs/api_op_ListDeadLetterSourceQueues.go index 0a8481d45bb..be568b74707 100644 --- a/service/sqs/api_op_ListDeadLetterSourceQueues.go +++ b/service/sqs/api_op_ListDeadLetterSourceQueues.go @@ -38,6 +38,7 @@ func (c *Client) ListDeadLetterSourceQueues(ctx context.Context, params *ListDea return out, nil } +// type ListDeadLetterSourceQueuesInput struct { // The URL of a dead-letter queue. Queue URLs and names are case-sensitive. diff --git a/service/sqs/api_op_ListQueues.go b/service/sqs/api_op_ListQueues.go index d11b23896cf..2e853b7f6fb 100644 --- a/service/sqs/api_op_ListQueues.go +++ b/service/sqs/api_op_ListQueues.go @@ -39,6 +39,7 @@ func (c *Client) ListQueues(ctx context.Context, params *ListQueuesInput, optFns return out, nil } +// type ListQueuesInput struct { // Maximum number of results to include in the response. Value range is 1 to 1000. diff --git a/service/sqs/api_op_PurgeQueue.go b/service/sqs/api_op_PurgeQueue.go index a582f773fee..703e04b543c 100644 --- a/service/sqs/api_op_PurgeQueue.go +++ b/service/sqs/api_op_PurgeQueue.go @@ -32,6 +32,7 @@ func (c *Client) PurgeQueue(ctx context.Context, params *PurgeQueueInput, optFns return out, nil } +// type PurgeQueueInput struct { // The URL of the queue from which the PurgeQueue action deletes messages. Queue diff --git a/service/sqs/api_op_ReceiveMessage.go b/service/sqs/api_op_ReceiveMessage.go index 411b164308e..49d0c6d770b 100644 --- a/service/sqs/api_op_ReceiveMessage.go +++ b/service/sqs/api_op_ReceiveMessage.go @@ -71,6 +71,7 @@ func (c *Client) ReceiveMessage(ctx context.Context, params *ReceiveMessageInput return out, nil } +// type ReceiveMessageInput struct { // The URL of the Amazon SQS queue from which messages are received. Queue URLs and diff --git a/service/sqs/api_op_RemovePermission.go b/service/sqs/api_op_RemovePermission.go index bb7f871287d..6273356457b 100644 --- a/service/sqs/api_op_RemovePermission.go +++ b/service/sqs/api_op_RemovePermission.go @@ -39,6 +39,7 @@ func (c *Client) RemovePermission(ctx context.Context, params *RemovePermissionI return out, nil } +// type RemovePermissionInput struct { // The identification of the permission to remove. This is the label added using diff --git a/service/sqs/api_op_SendMessage.go b/service/sqs/api_op_SendMessage.go index 60634ec15ee..23d9ca07fe3 100644 --- a/service/sqs/api_op_SendMessage.go +++ b/service/sqs/api_op_SendMessage.go @@ -31,6 +31,7 @@ func (c *Client) SendMessage(ctx context.Context, params *SendMessageInput, optF return out, nil } +// type SendMessageInput struct { // The message to send. The minimum size is one character. The maximum size is 256 diff --git a/service/sqs/api_op_SendMessageBatch.go b/service/sqs/api_op_SendMessageBatch.go index 509d57814d2..2730be7f950 100644 --- a/service/sqs/api_op_SendMessageBatch.go +++ b/service/sqs/api_op_SendMessageBatch.go @@ -45,6 +45,7 @@ func (c *Client) SendMessageBatch(ctx context.Context, params *SendMessageBatchI return out, nil } +// type SendMessageBatchInput struct { // A list of SendMessageBatchRequestEntry items. diff --git a/service/sqs/api_op_SetQueueAttributes.go b/service/sqs/api_op_SetQueueAttributes.go index 48c6bc993ab..95b58905170 100644 --- a/service/sqs/api_op_SetQueueAttributes.go +++ b/service/sqs/api_op_SetQueueAttributes.go @@ -43,6 +43,7 @@ func (c *Client) SetQueueAttributes(ctx context.Context, params *SetQueueAttribu return out, nil } +// type SetQueueAttributesInput struct { // A map of attributes to set. The following lists the names, descriptions, and diff --git a/service/sqs/doc.go b/service/sqs/doc.go index f66e5a5d7aa..e3af956cf10 100644 --- a/service/sqs/doc.go +++ b/service/sqs/doc.go @@ -21,7 +21,7 @@ // // * Handle error responses // -// # Additional information +// Additional information // // * Amazon SQS Product // Page (http://aws.amazon.com/sqs/) diff --git a/service/sqs/types/errors.go b/service/sqs/types/errors.go index c2559dca552..64288fee278 100644 --- a/service/sqs/types/errors.go +++ b/service/sqs/types/errors.go @@ -11,6 +11,8 @@ import ( type BatchEntryIdsNotDistinct struct { Message *string + Code *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.Code == nil { + return "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AWS.SimpleQueueService.BatchRequestTooLong" + } + return *e.Code +} func (e *BatchRequestTooLong) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request doesn't contain any entries. type EmptyBatchRequest struct { Message *string + Code *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.Code == nil { + return "AWS.SimpleQueueService.EmptyBatchRequest" + } + return *e.Code +} func (e *EmptyBatchRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified attribute doesn't exist. type InvalidAttributeName struct { Message *string + Code *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.Code == nil { + return "InvalidAttributeName" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AWS.SimpleQueueService.InvalidBatchEntryId" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidIdFormat" + } + return *e.Code +} func (e *InvalidIdFormat) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The message contains characters outside the allowed set. type InvalidMessageContents struct { Message *string + Code *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.Code == nil { + return "InvalidMessageContents" + } + return *e.Code +} func (e *InvalidMessageContents) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified message isn't in flight. type MessageNotInflight struct { Message *string + Code *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.Code == nil { + return "AWS.SimpleQueueService.MessageNotInflight" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OverLimit" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AWS.SimpleQueueService.PurgeQueueInProgress" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AWS.SimpleQueueService.QueueDeletedRecently" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AWS.SimpleQueueService.NonExistentQueue" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "QueueAlreadyExists" + } + return *e.Code +} func (e *QueueNameExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified receipt handle isn't valid. type ReceiptHandleIsInvalid struct { Message *string + Code *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.Code == nil { + return "ReceiptHandleIsInvalid" + } + return *e.Code +} func (e *ReceiptHandleIsInvalid) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The batch request contains more entries than permissible. type TooManyEntriesInBatchRequest struct { Message *string + Code *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.Code == nil { + return "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AWS.SimpleQueueService.UnsupportedOperation" + } + return *e.Code } func (e *UnsupportedOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/sqs/types/types.go b/service/sqs/types/types.go index 913b0ff6a5c..c5f10b4bba8 100644 --- a/service/sqs/types/types.go +++ b/service/sqs/types/types.go @@ -40,6 +40,7 @@ type BatchResultErrorEntry struct { // // &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=your_receipt_handle // +// // &ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45 type ChangeMessageVisibilityBatchRequestEntry struct { diff --git a/service/ssm/api_op_CancelCommand.go b/service/ssm/api_op_CancelCommand.go index c76f861bb4a..e7ecb2de06e 100644 --- a/service/ssm/api_op_CancelCommand.go +++ b/service/ssm/api_op_CancelCommand.go @@ -28,6 +28,7 @@ func (c *Client) CancelCommand(ctx context.Context, params *CancelCommandInput, return out, nil } +// type CancelCommandInput struct { // The ID of the command you want to cancel. diff --git a/service/ssm/types/errors.go b/service/ssm/types/errors.go index 3be060f6ee1..3a5874e0563 100644 --- a/service/ssm/types/errors.go +++ b/service/ssm/types/errors.go @@ -12,6 +12,8 @@ import ( type AlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "AlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AssociatedInstances" + } + return *e.Code +} func (e *AssociatedInstances) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified association already exists. type AssociationAlreadyExists struct { Message *string + Code *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.Code == nil { + return "AssociationAlreadyExists" + } + return *e.Code +} func (e *AssociationAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified association doesn't exist. type AssociationDoesNotExist struct { Message *string + Code *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.Code == nil { + return "AssociationDoesNotExist" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -102,7 +132,10 @@ func (e *AssociationExecutionDoesNotExist) ErrorMessage() string { return *e.Message } func (e *AssociationExecutionDoesNotExist) ErrorCode() string { - return "AssociationExecutionDoesNotExist" + if e.Code == nil { + return "AssociationExecutionDoesNotExist" + } + return *e.Code } 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 + Code *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.Code == nil { + return "AssociationLimitExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -143,7 +185,10 @@ func (e *AssociationVersionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *AssociationVersionLimitExceeded) ErrorCode() string { - return "AssociationVersionLimitExceeded" + if e.Code == nil { + return "AssociationVersionLimitExceeded" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -165,7 +212,10 @@ func (e *AutomationDefinitionNotApprovedException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionNotApprovedException) ErrorCode() string { - return "AutomationDefinitionNotApprovedException" + if e.Code == nil { + return "AutomationDefinitionNotApprovedException" + } + return *e.Code } func (e *AutomationDefinitionNotApprovedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -175,6 +225,8 @@ func (e *AutomationDefinitionNotApprovedException) ErrorFault() smithy.ErrorFaul type AutomationDefinitionNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -188,7 +240,10 @@ func (e *AutomationDefinitionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionNotFoundException) ErrorCode() string { - return "AutomationDefinitionNotFoundException" + if e.Code == nil { + return "AutomationDefinitionNotFoundException" + } + return *e.Code } func (e *AutomationDefinitionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -198,6 +253,8 @@ func (e *AutomationDefinitionNotFoundException) ErrorFault() smithy.ErrorFault { type AutomationDefinitionVersionNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -211,7 +268,10 @@ func (e *AutomationDefinitionVersionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionVersionNotFoundException) ErrorCode() string { - return "AutomationDefinitionVersionNotFoundException" + if e.Code == nil { + return "AutomationDefinitionVersionNotFoundException" + } + return *e.Code } func (e *AutomationDefinitionVersionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -222,6 +282,8 @@ func (e *AutomationDefinitionVersionNotFoundException) ErrorFault() smithy.Error type AutomationExecutionLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -235,7 +297,10 @@ func (e *AutomationExecutionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionLimitExceededException) ErrorCode() string { - return "AutomationExecutionLimitExceededException" + if e.Code == nil { + return "AutomationExecutionLimitExceededException" + } + return *e.Code } func (e *AutomationExecutionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -246,6 +311,8 @@ func (e *AutomationExecutionLimitExceededException) ErrorFault() smithy.ErrorFau type AutomationExecutionNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -259,7 +326,10 @@ func (e *AutomationExecutionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionNotFoundException) ErrorCode() string { - return "AutomationExecutionNotFoundException" + if e.Code == nil { + return "AutomationExecutionNotFoundException" + } + return *e.Code } func (e *AutomationExecutionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +340,8 @@ func (e *AutomationExecutionNotFoundException) ErrorFault() smithy.ErrorFault { type AutomationStepNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -283,7 +355,10 @@ func (e *AutomationStepNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationStepNotFoundException) ErrorCode() string { - return "AutomationStepNotFoundException" + if e.Code == nil { + return "AutomationStepNotFoundException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -305,7 +382,10 @@ func (e *ComplianceTypeCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ComplianceTypeCountLimitExceededException) ErrorCode() string { - return "ComplianceTypeCountLimitExceededException" + if e.Code == nil { + return "ComplianceTypeCountLimitExceededException" + } + return *e.Code } func (e *ComplianceTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -316,6 +396,8 @@ func (e *ComplianceTypeCountLimitExceededException) ErrorFault() smithy.ErrorFau type CustomSchemaCountLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -329,7 +411,10 @@ func (e *CustomSchemaCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CustomSchemaCountLimitExceededException) ErrorCode() string { - return "CustomSchemaCountLimitExceededException" + if e.Code == nil { + return "CustomSchemaCountLimitExceededException" + } + return *e.Code } func (e *CustomSchemaCountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -339,6 +424,8 @@ func (e *CustomSchemaCountLimitExceededException) ErrorFault() smithy.ErrorFault type DocumentAlreadyExists struct { Message *string + Code *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.Code == nil { + return "DocumentAlreadyExists" + } + return *e.Code +} func (e *DocumentAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You can have at most 500 active SSM documents. type DocumentLimitExceeded struct { Message *string + Code *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.Code == nil { + return "DocumentLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DocumentPermissionLimit" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DocumentVersionLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DoesNotExistException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateDocumentContent" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateDocumentVersionName" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DuplicateInstanceId" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "FeatureNotAvailableException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -539,7 +689,10 @@ func (e *HierarchyLevelLimitExceededException) ErrorMessage() string { return *e.Message } func (e *HierarchyLevelLimitExceededException) ErrorCode() string { - return "HierarchyLevelLimitExceededException" + if e.Code == nil { + return "HierarchyLevelLimitExceededException" + } + return *e.Code } func (e *HierarchyLevelLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -551,6 +704,8 @@ func (e *HierarchyLevelLimitExceededException) ErrorFault() smithy.ErrorFault { type HierarchyTypeMismatchException struct { Message *string + Code *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.Code == nil { + return "HierarchyTypeMismatchException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IdempotentParameterMismatch" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IncompatiblePolicyException" + } + return *e.Code +} func (e *IncompatiblePolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An error occurred on the server side. type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidActivation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidActivationId" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAggregatorException" + } + return *e.Code +} func (e *InvalidAggregatorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request doesn't meet the regular expression requirement. type InvalidAllowedPatternException struct { Message *string + Code *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.Code == nil { + return "InvalidAllowedPatternException" + } + return *e.Code +} func (e *InvalidAllowedPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The association isn't valid or doesn't exist. type InvalidAssociation struct { Message *string + Code *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.Code == nil { + return "InvalidAssociation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidAssociationVersion" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -765,7 +990,10 @@ func (e *InvalidAutomationExecutionParametersException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationExecutionParametersException) ErrorCode() string { - return "InvalidAutomationExecutionParametersException" + if e.Code == nil { + return "InvalidAutomationExecutionParametersException" + } + return *e.Code } func (e *InvalidAutomationExecutionParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -775,6 +1003,8 @@ func (e *InvalidAutomationExecutionParametersException) ErrorFault() smithy.Erro type InvalidAutomationSignalException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -788,7 +1018,10 @@ func (e *InvalidAutomationSignalException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationSignalException) ErrorCode() string { - return "InvalidAutomationSignalException" + if e.Code == nil { + return "InvalidAutomationSignalException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -809,7 +1044,10 @@ func (e *InvalidAutomationStatusUpdateException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationStatusUpdateException) ErrorCode() string { - return "InvalidAutomationStatusUpdateException" + if e.Code == nil { + return "InvalidAutomationStatusUpdateException" + } + return *e.Code } func (e *InvalidAutomationStatusUpdateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -819,6 +1057,8 @@ func (e *InvalidAutomationStatusUpdateException) ErrorFault() smithy.ErrorFault type InvalidCommandId struct { Message *string + Code *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.Code == nil { + return "InvalidCommandId" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -852,7 +1099,10 @@ func (e *InvalidDeleteInventoryParametersException) ErrorMessage() string { return *e.Message } func (e *InvalidDeleteInventoryParametersException) ErrorCode() string { - return "InvalidDeleteInventoryParametersException" + if e.Code == nil { + return "InvalidDeleteInventoryParametersException" + } + return *e.Code } func (e *InvalidDeleteInventoryParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -863,6 +1113,8 @@ func (e *InvalidDeleteInventoryParametersException) ErrorFault() smithy.ErrorFau type InvalidDeletionIdException struct { Message *string + Code *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.Code == nil { + return "InvalidDeletionIdException" + } + return *e.Code +} func (e *InvalidDeletionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified SSM document doesn't exist. type InvalidDocument struct { Message *string + Code *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.Code == nil { + return "InvalidDocument" + } + return *e.Code +} func (e *InvalidDocument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The content for the document isn't valid. type InvalidDocumentContent struct { Message *string + Code *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.Code == nil { + return "InvalidDocumentContent" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDocumentOperation" + } + return *e.Code +} func (e *InvalidDocumentOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The version of the document schema isn't supported. type InvalidDocumentSchemaVersion struct { Message *string + Code *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.Code == nil { + return "InvalidDocumentSchemaVersion" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidDocumentType" + } + return *e.Code +} func (e *InvalidDocumentType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document version isn't valid or doesn't exist. type InvalidDocumentVersion struct { Message *string + Code *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.Code == nil { + return "InvalidDocumentVersion" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFilter" + } + return *e.Code +} func (e *InvalidFilter) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified key isn't valid. type InvalidFilterKey struct { Message *string + Code *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.Code == nil { + return "InvalidFilterKey" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFilterOption" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFilterValue" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidInstanceId" + } + return *e.Code +} func (e *InvalidInstanceId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified filter value isn't valid. type InvalidInstanceInformationFilterValue struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1121,7 +1457,10 @@ func (e *InvalidInstanceInformationFilterValue) ErrorMessage() string { return *e.Message } func (e *InvalidInstanceInformationFilterValue) ErrorCode() string { - return "InvalidInstanceInformationFilterValue" + if e.Code == nil { + return "InvalidInstanceInformationFilterValue" + } + return *e.Code } func (e *InvalidInstanceInformationFilterValue) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1131,6 +1470,8 @@ func (e *InvalidInstanceInformationFilterValue) ErrorFault() smithy.ErrorFault { type InvalidInventoryGroupException struct { Message *string + Code *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.Code == nil { + return "InvalidInventoryGroupException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1164,7 +1512,10 @@ func (e *InvalidInventoryItemContextException) ErrorMessage() string { return *e.Message } func (e *InvalidInventoryItemContextException) ErrorCode() string { - return "InvalidInventoryItemContextException" + if e.Code == nil { + return "InvalidInventoryItemContextException" + } + return *e.Code } func (e *InvalidInventoryItemContextException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1174,6 +1525,8 @@ func (e *InvalidInventoryItemContextException) ErrorFault() smithy.ErrorFault { type InvalidInventoryRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1187,7 +1540,10 @@ func (e *InvalidInventoryRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidInventoryRequestException) ErrorCode() string { - return "InvalidInventoryRequestException" + if e.Code == nil { + return "InvalidInventoryRequestException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidItemContentException" + } + return *e.Code +} func (e *InvalidItemContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The query key ID isn't valid. type InvalidKeyId struct { Message *string + Code *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.Code == nil { + return "InvalidKeyId" + } + return *e.Code +} func (e *InvalidKeyId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified token isn't valid. type InvalidNextToken struct { Message *string + Code *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.Code == nil { + return "InvalidNextToken" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidNotificationConfig" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidOptionException" + } + return *e.Code +} func (e *InvalidOptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The S3 bucket doesn't exist. type InvalidOutputFolder struct { Message *string + Code *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.Code == nil { + return "InvalidOutputFolder" + } + return *e.Code +} func (e *InvalidOutputFolder) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The output location isn't valid or doesn't exist. type InvalidOutputLocation struct { Message *string + Code *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.Code == nil { + return "InvalidOutputLocation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameters" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPermissionType" + } + return *e.Code +} func (e *InvalidPermissionType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The plugin name isn't valid. type InvalidPluginName struct { Message *string + Code *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.Code == nil { + return "InvalidPluginName" + } + return *e.Code +} func (e *InvalidPluginName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A policy attribute or its value is invalid. type InvalidPolicyAttributeException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1405,7 +1833,10 @@ func (e *InvalidPolicyAttributeException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyAttributeException) ErrorCode() string { - return "InvalidPolicyAttributeException" + if e.Code == nil { + return "InvalidPolicyAttributeException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidPolicyTypeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidResourceId" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidResourceType" + } + return *e.Code +} func (e *InvalidResourceType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified inventory item result attribute isn't valid. type InvalidResultAttributeException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1486,7 +1940,10 @@ func (e *InvalidResultAttributeException) ErrorMessage() string { return *e.Message } func (e *InvalidResultAttributeException) ErrorCode() string { - return "InvalidResultAttributeException" + if e.Code == nil { + return "InvalidResultAttributeException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidRole" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidSchedule" + } + return *e.Code +} func (e *InvalidSchedule) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified tag key or value isn't valid. type InvalidTag struct { Message *string + Code *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.Code == nil { + return "InvalidTag" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidTarget" + } + return *e.Code +} func (e *InvalidTarget) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // TargetMap parameter isn't valid. type InvalidTargetMaps struct { Message *string + Code *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.Code == nil { + return "InvalidTargetMaps" + } + return *e.Code +} func (e *InvalidTargetMaps) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter type name isn't valid. type InvalidTypeNameException struct { Message *string + Code *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.Code == nil { + return "InvalidTypeNameException" + } + return *e.Code +} func (e *InvalidTypeNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The update isn't valid. type InvalidUpdate struct { Message *string + Code *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.Code == nil { + return "InvalidUpdate" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvocationDoesNotExist" + } + return *e.Code +} func (e *InvocationDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The inventory item has invalid content. type ItemContentMismatchException struct { Message *string + Code *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.Code == nil { + return "ItemContentMismatchException" + } + return *e.Code +} func (e *ItemContentMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The inventory item size has exceeded the size limit. type ItemSizeLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ItemSizeLimitExceededException" + } + return *e.Code +} func (e *ItemSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The size limit of a document is 64 KB. type MaxDocumentSizeExceeded struct { Message *string + Code *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.Code == nil { + return "MaxDocumentSizeExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OpsItemAccessDeniedException" + } + return *e.Code +} func (e *OpsItemAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The OpsItem already exists. type OpsItemAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "OpsItemAlreadyExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OpsItemInvalidParameterException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OpsItemLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OpsItemNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OpsItemRelatedItemAlreadyExistsException" + } + return *e.Code } func (e *OpsItemRelatedItemAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1851,6 +2423,8 @@ func (e *OpsItemRelatedItemAlreadyExistsException) ErrorFault() smithy.ErrorFaul type OpsItemRelatedItemAssociationNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1864,7 +2438,10 @@ func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorMessage() string { return *e.Message } func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorCode() string { - return "OpsItemRelatedItemAssociationNotFoundException" + if e.Code == nil { + return "OpsItemRelatedItemAssociationNotFoundException" + } + return *e.Code } func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1874,6 +2451,8 @@ func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorFault() smithy.Err type OpsMetadataAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1887,7 +2466,10 @@ func (e *OpsMetadataAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataAlreadyExistsException) ErrorCode() string { - return "OpsMetadataAlreadyExistsException" + if e.Code == nil { + return "OpsMetadataAlreadyExistsException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -1908,7 +2492,10 @@ func (e *OpsMetadataInvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataInvalidArgumentException) ErrorCode() string { - return "OpsMetadataInvalidArgumentException" + if e.Code == nil { + return "OpsMetadataInvalidArgumentException" + } + return *e.Code } func (e *OpsMetadataInvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1919,6 +2506,8 @@ func (e *OpsMetadataInvalidArgumentException) ErrorFault() smithy.ErrorFault { type OpsMetadataKeyLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1932,7 +2521,10 @@ func (e *OpsMetadataKeyLimitExceededException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataKeyLimitExceededException) ErrorCode() string { - return "OpsMetadataKeyLimitExceededException" + if e.Code == nil { + return "OpsMetadataKeyLimitExceededException" + } + return *e.Code } func (e *OpsMetadataKeyLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -1944,6 +2536,8 @@ func (e *OpsMetadataKeyLimitExceededException) ErrorFault() smithy.ErrorFault { type OpsMetadataLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -1957,7 +2551,10 @@ func (e *OpsMetadataLimitExceededException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataLimitExceededException) ErrorCode() string { - return "OpsMetadataLimitExceededException" + if e.Code == nil { + return "OpsMetadataLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "OpsMetadataNotFoundException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -1998,7 +2604,10 @@ func (e *OpsMetadataTooManyUpdatesException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataTooManyUpdatesException) ErrorCode() string { - return "OpsMetadataTooManyUpdatesException" + if e.Code == nil { + return "OpsMetadataTooManyUpdatesException" + } + return *e.Code } func (e *OpsMetadataTooManyUpdatesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2008,6 +2617,8 @@ func (e *OpsMetadataTooManyUpdatesException) ErrorFault() smithy.ErrorFault { type ParameterAlreadyExists struct { Message *string + Code *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.Code == nil { + return "ParameterAlreadyExists" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ParameterLimitExceeded" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2077,7 +2702,10 @@ func (e *ParameterMaxVersionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ParameterMaxVersionLimitExceeded) ErrorCode() string { - return "ParameterMaxVersionLimitExceeded" + if e.Code == nil { + return "ParameterMaxVersionLimitExceeded" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ParameterNotFound" + } + return *e.Code +} func (e *ParameterNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter name isn't valid. type ParameterPatternMismatchException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2117,7 +2754,10 @@ func (e *ParameterPatternMismatchException) ErrorMessage() string { return *e.Message } func (e *ParameterPatternMismatchException) ErrorCode() string { - return "ParameterPatternMismatchException" + if e.Code == nil { + return "ParameterPatternMismatchException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -2138,7 +2780,10 @@ func (e *ParameterVersionLabelLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ParameterVersionLabelLimitExceeded) ErrorCode() string { - return "ParameterVersionLabelLimitExceeded" + if e.Code == nil { + return "ParameterVersionLabelLimitExceeded" + } + return *e.Code } func (e *ParameterVersionLabelLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2149,6 +2794,8 @@ func (e *ParameterVersionLabelLimitExceeded) ErrorFault() smithy.ErrorFault { type ParameterVersionNotFound struct { Message *string + Code *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.Code == nil { + return "ParameterVersionNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PoliciesLimitExceededException" + } + return *e.Code +} func (e *PoliciesLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A sync configuration with the same name already exists. type ResourceDataSyncAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceDataSyncAlreadyExistsException" + } + return *e.Code } func (e *ResourceDataSyncAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2214,6 +2878,8 @@ func (e *ResourceDataSyncAlreadyExistsException) ErrorFault() smithy.ErrorFault type ResourceDataSyncConflictException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2227,7 +2893,10 @@ func (e *ResourceDataSyncConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncConflictException) ErrorCode() string { - return "ResourceDataSyncConflictException" + if e.Code == nil { + return "ResourceDataSyncConflictException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -2248,7 +2919,10 @@ func (e *ResourceDataSyncCountExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncCountExceededException) ErrorCode() string { - return "ResourceDataSyncCountExceededException" + if e.Code == nil { + return "ResourceDataSyncCountExceededException" + } + return *e.Code } func (e *ResourceDataSyncCountExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2258,6 +2932,8 @@ func (e *ResourceDataSyncCountExceededException) ErrorFault() smithy.ErrorFault type ResourceDataSyncInvalidConfigurationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2271,7 +2947,10 @@ func (e *ResourceDataSyncInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncInvalidConfigurationException) ErrorCode() string { - return "ResourceDataSyncInvalidConfigurationException" + if e.Code == nil { + return "ResourceDataSyncInvalidConfigurationException" + } + return *e.Code } func (e *ResourceDataSyncInvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2281,6 +2960,8 @@ func (e *ResourceDataSyncInvalidConfigurationException) ErrorFault() smithy.Erro type ResourceDataSyncNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceDataSyncNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2364,7 +3064,10 @@ func (e *ResourcePolicyConflictException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyConflictException) ErrorCode() string { - return "ResourcePolicyConflictException" + if e.Code == nil { + return "ResourcePolicyConflictException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourcePolicyInvalidParameterException" + } + return *e.Code } func (e *ResourcePolicyInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2400,6 +3108,8 @@ func (e *ResourcePolicyInvalidParameterException) ErrorFault() smithy.ErrorFault type ResourcePolicyLimitExceededException struct { Message *string + Code *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.Code == nil { + return "ResourcePolicyLimitExceededException" + } + return *e.Code } func (e *ResourcePolicyLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2427,6 +3140,8 @@ func (e *ResourcePolicyLimitExceededException) ErrorFault() smithy.ErrorFault { type ServiceSettingNotFound struct { Message *string + Code *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.Code == nil { + return "ServiceSettingNotFound" + } + return *e.Code +} func (e *ServiceSettingNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The updated status is the same as the current status. type StatusUnchanged struct { Message *string + Code *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.Code == nil { + return "StatusUnchanged" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2478,7 +3207,10 @@ func (e *SubTypeCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SubTypeCountLimitExceededException) ErrorCode() string { - return "SubTypeCountLimitExceededException" + if e.Code == nil { + return "SubTypeCountLimitExceededException" + } + return *e.Code } func (e *SubTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2489,6 +3221,8 @@ func (e *SubTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault { type TargetInUseException struct { Message *string + Code *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.Code == nil { + return "TargetInUseException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TargetNotConnected" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyUpdates" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2585,7 +3347,10 @@ func (e *TotalSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TotalSizeLimitExceededException) ErrorCode() string { - return "TotalSizeLimitExceededException" + if e.Code == nil { + return "TotalSizeLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "UnsupportedCalendarException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -2630,7 +3404,10 @@ func (e *UnsupportedFeatureRequiredException) ErrorMessage() string { return *e.Message } func (e *UnsupportedFeatureRequiredException) ErrorCode() string { - return "UnsupportedFeatureRequiredException" + if e.Code == nil { + return "UnsupportedFeatureRequiredException" + } + return *e.Code } func (e *UnsupportedFeatureRequiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2642,6 +3419,8 @@ func (e *UnsupportedFeatureRequiredException) ErrorFault() smithy.ErrorFault { type UnsupportedInventoryItemContextException struct { Message *string + Code *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.Code == nil { + return "UnsupportedInventoryItemContextException" + } + return *e.Code } func (e *UnsupportedInventoryItemContextException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2669,6 +3451,8 @@ func (e *UnsupportedInventoryItemContextException) ErrorFault() smithy.ErrorFaul type UnsupportedInventorySchemaVersionException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -2682,7 +3466,10 @@ func (e *UnsupportedInventorySchemaVersionException) ErrorMessage() string { return *e.Message } func (e *UnsupportedInventorySchemaVersionException) ErrorCode() string { - return "UnsupportedInventorySchemaVersionException" + if e.Code == nil { + return "UnsupportedInventorySchemaVersionException" + } + return *e.Code } func (e *UnsupportedInventorySchemaVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -2693,6 +3480,8 @@ func (e *UnsupportedInventorySchemaVersionException) ErrorFault() smithy.ErrorFa type UnsupportedOperatingSystem struct { Message *string + Code *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.Code == nil { + return "UnsupportedOperatingSystem" + } + return *e.Code +} func (e *UnsupportedOperatingSystem) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The parameter type isn't supported. type UnsupportedParameterType struct { Message *string + Code *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.Code == nil { + return "UnsupportedParameterType" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedPlatformType" + } + return *e.Code +} func (e *UnsupportedPlatformType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssm/types/types.go b/service/ssm/types/types.go index 4a57b2072de..8f9f8d6cdfc 100644 --- a/service/ssm/types/types.go +++ b/service/ssm/types/types.go @@ -1931,7 +1931,7 @@ type DocumentIdentifier struct { // * // ThirdParty // -// # PlatformTypes +// PlatformTypes // // * Linux // diff --git a/service/ssmcontacts/types/errors.go b/service/ssmcontacts/types/errors.go index c48cc3d6b28..10e989da26b 100644 --- a/service/ssmcontacts/types/errors.go +++ b/service/ssmcontacts/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource causes an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed to due an encryption key error. type DataEncryptionException struct { Message *string + Code *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.Code == nil { + return "DataEncryptionException" + } + return *e.Code +} func (e *DataEncryptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unexpected error occurred while processing the request. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource that doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..22f5e732d27 100644 --- a/service/ssmincidents/types/errors.go +++ b/service/ssmincidents/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Updating or deleting a resource causes an inconsistent state. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Request references a resource which doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssmincidents/types/types.go b/service/ssmincidents/types/types.go index 129e835ac36..613933ff6a4 100644 --- a/service/ssmincidents/types/types.go +++ b/service/ssmincidents/types/types.go @@ -11,8 +11,7 @@ import ( // defines the action. // // The following types satisfy this interface: -// -// ActionMemberSsmAutomation +// ActionMemberSsmAutomation type Action interface { isAction() } @@ -45,9 +44,8 @@ type AddRegionAction struct { // Use the AttributeValueList to filter by string or integer values. // // The following types satisfy this interface: -// -// AttributeValueListMemberIntegerValues -// AttributeValueListMemberStringValues +// AttributeValueListMemberIntegerValues +// AttributeValueListMemberStringValues type AttributeValueList interface { isAttributeValueList() } @@ -74,8 +72,7 @@ func (*AttributeValueListMemberStringValues) isAttributeValueList() {} // beginning of the incident. // // The following types satisfy this interface: -// -// AutomationExecutionMemberSsmExecutionArn +// AutomationExecutionMemberSsmExecutionArn type AutomationExecution interface { isAutomationExecution() } @@ -92,9 +89,8 @@ func (*AutomationExecutionMemberSsmExecutionArn) isAutomationExecution() {} // The Chatbot chat channel used for collaboration during an incident. // // The following types satisfy this interface: -// -// ChatChannelMemberChatbotSns -// ChatChannelMemberEmpty +// ChatChannelMemberChatbotSns +// ChatChannelMemberEmpty type ChatChannel interface { isChatChannel() } @@ -125,10 +121,9 @@ func (*ChatChannelMemberEmpty) isChatChannel() {} // specified for a conditional, the values are ORd. // // The following types satisfy this interface: -// -// ConditionMemberAfter -// ConditionMemberBefore -// ConditionMemberEquals +// ConditionMemberAfter +// ConditionMemberBefore +// ConditionMemberEquals type Condition interface { isCondition() } @@ -176,8 +171,7 @@ type DeleteRegionAction struct { // The dynamic SSM parameter value. // // The following types satisfy this interface: -// -// DynamicSsmParameterValueMemberVariable +// DynamicSsmParameterValueMemberVariable type DynamicSsmParameterValue interface { isDynamicSsmParameterValue() } @@ -202,9 +196,8 @@ type EmptyChatChannel struct { // Web Services resource or a RelatedItem ID. // // The following types satisfy this interface: -// -// EventReferenceMemberRelatedItemId -// EventReferenceMemberResource +// EventReferenceMemberRelatedItemId +// EventReferenceMemberResource type EventReference interface { isEventReference() } @@ -448,8 +441,7 @@ type IncidentTemplate struct { // Information about third-party services integrated into a response plan. // // The following types satisfy this interface: -// -// IntegrationMemberPagerDutyConfiguration +// IntegrationMemberPagerDutyConfiguration type Integration interface { isIntegration() } @@ -483,11 +475,10 @@ type ItemIdentifier struct { // Describes a related item. // // The following types satisfy this interface: -// -// ItemValueMemberArn -// ItemValueMemberMetricDefinition -// ItemValueMemberPagerDutyIncidentDetail -// ItemValueMemberUrl +// ItemValueMemberArn +// ItemValueMemberMetricDefinition +// ItemValueMemberPagerDutyIncidentDetail +// ItemValueMemberUrl type ItemValue interface { isItemValue() } @@ -532,8 +523,7 @@ func (*ItemValueMemberUrl) isItemValue() {} // The SNS targets that are notified when updates are made to an incident. // // The following types satisfy this interface: -// -// NotificationTargetItemMemberSnsTopicArn +// NotificationTargetItemMemberSnsTopicArn type NotificationTargetItem interface { isNotificationTargetItem() } @@ -659,9 +649,8 @@ type RelatedItem struct { // Details about the related item you're adding. // // The following types satisfy this interface: -// -// RelatedItemsUpdateMemberItemToAdd -// RelatedItemsUpdateMemberItemToRemove +// RelatedItemsUpdateMemberItemToAdd +// RelatedItemsUpdateMemberItemToRemove type RelatedItemsUpdate interface { isRelatedItemsUpdate() } @@ -875,9 +864,8 @@ type TriggerDetails struct { // Details used when updating the replication set. // // The following types satisfy this interface: -// -// UpdateReplicationSetActionMemberAddRegionAction -// UpdateReplicationSetActionMemberDeleteRegionAction +// UpdateReplicationSetActionMemberAddRegionAction +// UpdateReplicationSetActionMemberDeleteRegionAction type UpdateReplicationSetAction interface { isUpdateReplicationSetAction() } diff --git a/service/ssmsap/api_op_UpdateApplicationSettings.go b/service/ssmsap/api_op_UpdateApplicationSettings.go index b4e0281fecc..f5e982241f3 100644 --- a/service/ssmsap/api_op_UpdateApplicationSettings.go +++ b/service/ssmsap/api_op_UpdateApplicationSettings.go @@ -11,6 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// func (c *Client) UpdateApplicationSettings(ctx context.Context, params *UpdateApplicationSettingsInput, optFns ...func(*Options)) (*UpdateApplicationSettingsOutput, error) { if params == nil { params = &UpdateApplicationSettingsInput{} diff --git a/service/ssmsap/types/errors.go b/service/ssmsap/types/errors.go index 3bdb608dfa9..6a0b078792e 100644 --- a/service/ssmsap/types/errors.go +++ b/service/ssmsap/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type ConflictException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,12 +25,20 @@ func (e *ConflictException) ErrorMessage() string { } return *e.Message } -func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorCode() string { + if e.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type InternalServerException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -40,12 +51,20 @@ func (e *InternalServerException) ErrorMessage() string { } return *e.Message } -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorCode() string { + if e.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// type ResourceNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -58,12 +77,20 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } return *e.Message } -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorCode() string { + if e.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type ValidationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -76,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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/ssmsap/types/types.go b/service/ssmsap/types/types.go index 3a1aa1992ae..dfb86f6422c 100644 --- a/service/ssmsap/types/types.go +++ b/service/ssmsap/types/types.go @@ -7,6 +7,7 @@ import ( "time" ) +// type Application struct { // @@ -36,6 +37,7 @@ type Application struct { noSmithyDocumentSerde } +// type ApplicationCredential struct { // @@ -56,6 +58,7 @@ type ApplicationCredential struct { noSmithyDocumentSerde } +// type ApplicationSummary struct { // @@ -73,6 +76,7 @@ type ApplicationSummary struct { noSmithyDocumentSerde } +// type Component struct { // @@ -102,6 +106,7 @@ type Component struct { noSmithyDocumentSerde } +// type ComponentSummary struct { // @@ -119,6 +124,7 @@ type ComponentSummary struct { noSmithyDocumentSerde } +// type Database struct { // @@ -157,6 +163,7 @@ type Database struct { noSmithyDocumentSerde } +// type DatabaseSummary struct { // @@ -180,6 +187,7 @@ type DatabaseSummary struct { noSmithyDocumentSerde } +// type Host struct { // @@ -197,6 +205,7 @@ type Host struct { noSmithyDocumentSerde } +// type Operation struct { // diff --git a/service/sso/types/errors.go b/service/sso/types/errors.go index 1401d585cfe..23513a1177e 100644 --- a/service/sso/types/errors.go +++ b/service/sso/types/errors.go @@ -12,6 +12,8 @@ import ( type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource doesn't exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..7fe82f06d69 100644 --- a/service/ssoadmin/types/errors.go +++ b/service/ssoadmin/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // Indicates that a requested resource is not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request failed because it contains a syntax error. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..3e93d4492a4 100644 --- a/service/ssooidc/types/errors.go +++ b/service/ssooidc/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AuthorizationPendingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ExpiredTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidClientException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidClientMetadataException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGrantException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates that the scope provided in the request is invalid. type InvalidScopeException struct { Message *string + Code *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.Code == nil { + return "InvalidScopeException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "SlowDownException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnauthorizedClientException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedGrantTypeException" + } + return *e.Code +} 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..09b67a77375 100644 --- a/service/storagegateway/types/errors.go +++ b/service/storagegateway/types/errors.go @@ -12,6 +12,8 @@ import ( type InternalServerError struct { Message *string + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidGatewayRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableError" + } + return *e.Code +} 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..2ba090eeda3 100644 --- a/service/sts/types/errors.go +++ b/service/sts/types/errors.go @@ -12,6 +12,8 @@ import ( type ExpiredTokenException struct { Message *string + Code *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.Code == nil { + return "ExpiredTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IDPCommunicationError" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "IDPRejectedClaim" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -91,7 +114,10 @@ func (e *InvalidAuthorizationMessageException) ErrorMessage() string { return *e.Message } func (e *InvalidAuthorizationMessageException) ErrorCode() string { - return "InvalidAuthorizationMessageException" + if e.Code == nil { + return "InvalidAuthorizationMessageException" + } + return *e.Code } func (e *InvalidAuthorizationMessageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -103,6 +129,8 @@ func (e *InvalidAuthorizationMessageException) ErrorFault() smithy.ErrorFault { type InvalidIdentityTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidIdentityToken" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MalformedPolicyDocument" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PackedPolicyTooLarge" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RegionDisabledException" + } + return *e.Code +} func (e *RegionDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/support/api_op_DescribeTrustedAdvisorCheckResult.go b/service/support/api_op_DescribeTrustedAdvisorCheckResult.go index f9d9424c84d..18df3484054 100644 --- a/service/support/api_op_DescribeTrustedAdvisorCheckResult.go +++ b/service/support/api_op_DescribeTrustedAdvisorCheckResult.go @@ -59,6 +59,7 @@ func (c *Client) DescribeTrustedAdvisorCheckResult(ctx context.Context, params * return out, nil } +// type DescribeTrustedAdvisorCheckResultInput struct { // The unique identifier for the Trusted Advisor check. diff --git a/service/support/api_op_RefreshTrustedAdvisorCheck.go b/service/support/api_op_RefreshTrustedAdvisorCheck.go index dfeece7b106..73a5c042907 100644 --- a/service/support/api_op_RefreshTrustedAdvisorCheck.go +++ b/service/support/api_op_RefreshTrustedAdvisorCheck.go @@ -41,6 +41,7 @@ func (c *Client) RefreshTrustedAdvisorCheck(ctx context.Context, params *Refresh return out, nil } +// type RefreshTrustedAdvisorCheckInput struct { // The unique identifier for the Trusted Advisor check to refresh. Specifying the diff --git a/service/support/types/errors.go b/service/support/types/errors.go index 86d85fd91aa..72f3d4e02a0 100644 --- a/service/support/types/errors.go +++ b/service/support/types/errors.go @@ -11,6 +11,8 @@ import ( type AttachmentIdNotFound struct { Message *string + Code *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.Code == nil { + return "AttachmentIdNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AttachmentLimitExceeded" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AttachmentSetExpired" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AttachmentSetIdNotFound" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "AttachmentSetSizeLimitExceeded" + } + return *e.Code +} func (e *AttachmentSetSizeLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The case creation limit for the account has been exceeded. type CaseCreationLimitExceeded struct { Message *string + Code *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.Code == nil { + return "CaseCreationLimitExceeded" + } + return *e.Code +} func (e *CaseCreationLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested caseId couldn't be located. type CaseIdNotFound struct { Message *string + Code *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.Code == nil { + return "CaseIdNotFound" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -161,7 +212,10 @@ func (e *DescribeAttachmentLimitExceeded) ErrorMessage() string { return *e.Message } func (e *DescribeAttachmentLimitExceeded) ErrorCode() string { - return "DescribeAttachmentLimitExceeded" + if e.Code == nil { + return "DescribeAttachmentLimitExceeded" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InternalServerError" + } + return *e.Code +} 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..a27e76ee7ab 100644 --- a/service/supportapp/types/errors.go +++ b/service/supportapp/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..25de83da56f 100644 --- a/service/swf/types/errors.go +++ b/service/swf/types/errors.go @@ -17,6 +17,8 @@ import ( type DefaultUndefinedFault struct { Message *string + Code *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.Code == nil { + return "DefaultUndefinedFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DomainAlreadyExistsFault" + } + return *e.Code +} func (e *DomainAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Returned when the specified domain has been deprecated. type DomainDeprecatedFault struct { Message *string + Code *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.Code == nil { + return "DomainDeprecatedFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OperationNotPermittedFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TypeAlreadyExistsFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TypeDeprecatedFault" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnknownResourceFault" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -211,7 +276,10 @@ func (e *WorkflowExecutionAlreadyStartedFault) ErrorMessage() string { return *e.Message } func (e *WorkflowExecutionAlreadyStartedFault) ErrorCode() string { - return "WorkflowExecutionAlreadyStartedFault" + if e.Code == nil { + return "WorkflowExecutionAlreadyStartedFault" + } + return *e.Code } 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..56ce93025a5 100644 --- a/service/synthetics/types/errors.go +++ b/service/synthetics/types/errors.go @@ -11,6 +11,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A conflicting operation is already in progress. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An internal failure occurred. Try the operation again. type InternalFailureException struct { Message *string + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An unknown internal error occurred. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The specified resource was not found. type NotFoundException struct { Message *string + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the input resources is larger than is allowed. type RequestEntityTooLargeException struct { Message *string + Code *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.Code == nil { + return "RequestEntityTooLargeException" + } + return *e.Code +} func (e *RequestEntityTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One of the specified resources was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeded a service quota value. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There were too many simultaneous requests. Try the operation again. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A parameter could not be validated. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..58b1e0eaa18 100644 --- a/service/textract/types/errors.go +++ b/service/textract/types/errors.go @@ -26,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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Textract isn't able to read the document. For more information on the @@ -48,7 +53,12 @@ func (e *BadDocumentException) ErrorMessage() string { } return *e.Message } -func (e *BadDocumentException) ErrorCode() string { return "BadDocumentException" } +func (e *BadDocumentException) ErrorCode() string { + if e.Code == nil { + return "BadDocumentException" + } + return *e.Code +} func (e *BadDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The document can't be processed because it's too large. The maximum document @@ -71,7 +81,12 @@ func (e *DocumentTooLargeException) ErrorMessage() string { } return *e.Message } -func (e *DocumentTooLargeException) ErrorCode() string { return "DocumentTooLargeException" } +func (e *DocumentTooLargeException) ErrorCode() string { + if e.Code == nil { + return "DocumentTooLargeException" + } + return *e.Code +} func (e *DocumentTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates you have exceeded the maximum number of active human in the loop @@ -79,10 +94,11 @@ func (e *DocumentTooLargeException) ErrorFault() smithy.ErrorFault { return smit type HumanLoopQuotaExceededException struct { Message *string + Code *string + ResourceType *string QuotaCode *string ServiceCode *string - Code *string noSmithyDocumentSerde } @@ -97,7 +113,10 @@ func (e *HumanLoopQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *HumanLoopQuotaExceededException) ErrorCode() string { - return "HumanLoopQuotaExceededException" + if e.Code == nil { + return "HumanLoopQuotaExceededException" + } + return *e.Code } func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -122,7 +141,10 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - return "IdempotentParameterMismatchException" + if e.Code == nil { + return "IdempotentParameterMismatchException" + } + return *e.Code } func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -146,7 +168,12 @@ func (e *InternalServerError) ErrorMessage() string { } return *e.Message } -func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } +func (e *InternalServerError) ErrorCode() string { + if e.Code == nil { + return "InternalServerError" + } + return *e.Code +} func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // An invalid job identifier was passed to an asynchronous analysis operation. @@ -167,7 +194,12 @@ func (e *InvalidJobIdException) ErrorMessage() string { } return *e.Message } -func (e *InvalidJobIdException) ErrorCode() string { return "InvalidJobIdException" } +func (e *InvalidJobIdException) ErrorCode() string { + if e.Code == nil { + return "InvalidJobIdException" + } + return *e.Code +} func (e *InvalidJobIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Indicates you do not have decrypt permissions with the KMS key entered, or the @@ -189,7 +221,12 @@ func (e *InvalidKMSKeyException) ErrorMessage() string { } return *e.Message } -func (e *InvalidKMSKeyException) ErrorCode() string { return "InvalidKMSKeyException" } +func (e *InvalidKMSKeyException) ErrorCode() string { + if e.Code == nil { + return "InvalidKMSKeyException" + } + return *e.Code +} func (e *InvalidKMSKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An input parameter violated a constraint. For example, in synchronous @@ -213,7 +250,12 @@ func (e *InvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } +func (e *InvalidParameterException) ErrorCode() string { + if e.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Amazon Textract is unable to access the S3 object that's specified in the @@ -238,7 +280,12 @@ func (e *InvalidS3ObjectException) ErrorMessage() string { } return *e.Message } -func (e *InvalidS3ObjectException) ErrorCode() string { return "InvalidS3ObjectException" } +func (e *InvalidS3ObjectException) ErrorCode() string { + if e.Code == nil { + return "InvalidS3ObjectException" + } + return *e.Code +} func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An Amazon Textract service limit was exceeded. For example, if you start too @@ -263,7 +310,12 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of requests exceeded your throughput limit. If you want to increase @@ -286,7 +338,10 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - return "ProvisionedThroughputExceededException" + if e.Code == nil { + return "ProvisionedThroughputExceededException" + } + return *e.Code } func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -311,7 +366,12 @@ func (e *ThrottlingException) ErrorMessage() string { } return *e.Message } -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorCode() string { + if e.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The format of the input document isn't supported. Documents for operations can @@ -333,5 +393,10 @@ func (e *UnsupportedDocumentException) ErrorMessage() string { } return *e.Message } -func (e *UnsupportedDocumentException) ErrorCode() string { return "UnsupportedDocumentException" } +func (e *UnsupportedDocumentException) ErrorCode() string { + if e.Code == nil { + return "UnsupportedDocumentException" + } + return *e.Code +} func (e *UnsupportedDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/textract/types/types.go b/service/textract/types/types.go index e0653f22b94..8ad1035aceb 100644 --- a/service/textract/types/types.go +++ b/service/textract/types/types.go @@ -741,6 +741,7 @@ type Prediction struct { noSmithyDocumentSerde } +// type QueriesConfig struct { // diff --git a/service/timestreamquery/types/errors.go b/service/timestreamquery/types/errors.go index f810ac4d564..99301af18b6 100644 --- a/service/timestreamquery/types/errors.go +++ b/service/timestreamquery/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Unable to poll results for a cancelled query. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested endpoint was not valid. type InvalidEndpointException struct { Message *string + Code *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.Code == nil { + return "InvalidEndpointException" + } + return *e.Code +} func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Timestream was unable to run the query successfully. type QueryExecutionException struct { Message *string + Code *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.Code == nil { + return "QueryExecutionException" + } + return *e.Code +} func (e *QueryExecutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded the service quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid or malformed request. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..66dbb6540e0 100644 --- a/service/timestreamwrite/types/errors.go +++ b/service/timestreamwrite/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested endpoint was invalid. type InvalidEndpointException struct { Message *string + Code *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.Code == nil { + return "InvalidEndpointException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "RejectedRecordsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Instance quota of resource exceeded for this account. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid or malformed request. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..21b70e80b74 100644 --- a/service/transcribe/types/errors.go +++ b/service/transcribe/types/errors.go @@ -13,6 +13,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NotFoundException" + } + return *e.Code +} func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/transcribe/types/types.go b/service/transcribe/types/types.go index 7fd594f34a7..4ef7e950567 100644 --- a/service/transcribe/types/types.go +++ b/service/transcribe/types/types.go @@ -974,11 +974,10 @@ type RelativeTimeRange struct { // (https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics.html). // // The following types satisfy this interface: -// -// RuleMemberInterruptionFilter -// RuleMemberNonTalkTimeFilter -// RuleMemberSentimentFilter -// RuleMemberTranscriptFilter +// RuleMemberInterruptionFilter +// RuleMemberNonTalkTimeFilter +// RuleMemberSentimentFilter +// RuleMemberTranscriptFilter type Rule interface { isRule() } diff --git a/service/transcribestreaming/types/errors.go b/service/transcribestreaming/types/errors.go index 09fa049c301..682b04a8653 100644 --- a/service/transcribestreaming/types/errors.go +++ b/service/transcribestreaming/types/errors.go @@ -14,6 +14,8 @@ import ( type BadRequestException struct { Message *string + Code *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.Code == nil { + return "BadRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalFailureException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service is currently unavailable. Try your request later. type ServiceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } diff --git a/service/transcribestreaming/types/types.go b/service/transcribestreaming/types/types.go index c486cfb3238..9fb5f5d007a 100644 --- a/service/transcribestreaming/types/types.go +++ b/service/transcribestreaming/types/types.go @@ -41,9 +41,8 @@ type AudioEvent struct { // (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html). // // The following types satisfy this interface: -// -// AudioStreamMemberAudioEvent -// AudioStreamMemberConfigurationEvent +// AudioStreamMemberAudioEvent +// AudioStreamMemberConfigurationEvent type AudioStream interface { isAudioStream() } @@ -142,9 +141,8 @@ type CallAnalyticsItem struct { // details are provided in the UtteranceEvent and CategoryEvent objects. // // The following types satisfy this interface: -// -// CallAnalyticsTranscriptResultStreamMemberCategoryEvent -// CallAnalyticsTranscriptResultStreamMemberUtteranceEvent +// CallAnalyticsTranscriptResultStreamMemberCategoryEvent +// CallAnalyticsTranscriptResultStreamMemberUtteranceEvent type CallAnalyticsTranscriptResultStream interface { isCallAnalyticsTranscriptResultStream() } @@ -474,8 +472,7 @@ type MedicalTranscriptEvent struct { // Contains detailed information about your streaming session. // // The following types satisfy this interface: -// -// MedicalTranscriptResultStreamMemberTranscriptEvent +// MedicalTranscriptResultStreamMemberTranscriptEvent type MedicalTranscriptResultStream interface { isMedicalTranscriptResultStream() } @@ -667,8 +664,7 @@ type TranscriptEvent struct { // Contains detailed information about your streaming session. // // The following types satisfy this interface: -// -// TranscriptResultStreamMemberTranscriptEvent +// TranscriptResultStreamMemberTranscriptEvent type TranscriptResultStream interface { isTranscriptResultStream() } diff --git a/service/transfer/types/errors.go b/service/transfer/types/errors.go index 40afcde3e1d..450031ae147 100644 --- a/service/transfer/types/errors.go +++ b/service/transfer/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServiceError" + } + return *e.Code +} func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The NextToken parameter that was passed is invalid. type InvalidNextTokenException struct { Message *string + Code *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.Code == nil { + return "InvalidNextTokenException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource does not exist. type ResourceExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceExistsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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..d826801849c 100644 --- a/service/translate/types/errors.go +++ b/service/translate/types/errors.go @@ -12,6 +12,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -25,7 +27,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "DetectedLanguageLowConfidenceException" + } + return *e.Code } func (e *DetectedLanguageLowConfidenceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -82,6 +99,8 @@ func (e *DetectedLanguageLowConfidenceException) ErrorFault() smithy.ErrorFault type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidFilterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidParameterValueException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TextSizeLimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Requested display language code is not supported. type UnsupportedDisplayLanguageCodeException struct { Message *string + Code *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.Code == nil { + return "UnsupportedDisplayLanguageCodeException" + } + return *e.Code } func (e *UnsupportedDisplayLanguageCodeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -310,6 +402,8 @@ func (e *UnsupportedDisplayLanguageCodeException) ErrorFault() smithy.ErrorFault type UnsupportedLanguagePairException struct { Message *string + Code *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.Code == nil { + return "UnsupportedLanguagePairException" + } + return *e.Code } 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..6562e9156d4 100644 --- a/service/voiceid/types/errors.go +++ b/service/voiceid/types/errors.go @@ -12,6 +12,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..e7ba896c10c 100644 --- a/service/waf/types/errors.go +++ b/service/waf/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type WAFBadRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,13 +25,20 @@ func (e *WAFBadRequestException) ErrorMessage() string { } return *e.Message } -func (e *WAFBadRequestException) ErrorCode() string { return "WAFBadRequestException" } +func (e *WAFBadRequestException) ErrorCode() string { + if e.Code == nil { + return "WAFBadRequestException" + } + return *e.Code +} func (e *WAFBadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name specified is invalid. type WAFDisallowedNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -41,7 +51,12 @@ func (e *WAFDisallowedNameException) ErrorMessage() string { } return *e.Message } -func (e *WAFDisallowedNameException) ErrorCode() string { return "WAFDisallowedNameException" } +func (e *WAFDisallowedNameException) ErrorCode() string { + if e.Code == nil { + return "WAFDisallowedNameException" + } + return *e.Code +} 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 +87,8 @@ func (e *WAFDisallowedNameException) ErrorFault() smithy.ErrorFault { return smi type WAFEntityMigrationException struct { Message *string + Code *string + MigrationErrorType MigrationErrorType MigrationErrorReason *string @@ -87,7 +104,12 @@ func (e *WAFEntityMigrationException) ErrorMessage() string { } return *e.Message } -func (e *WAFEntityMigrationException) ErrorCode() string { return "WAFEntityMigrationException" } +func (e *WAFEntityMigrationException) ErrorCode() string { + if e.Code == nil { + return "WAFEntityMigrationException" + } + return *e.Code +} func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because of a system problem, even though the request was @@ -95,6 +117,8 @@ func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return sm type WAFInternalErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -107,7 +131,12 @@ func (e *WAFInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *WAFInternalErrorException) ErrorCode() string { return "WAFInternalErrorException" } +func (e *WAFInternalErrorException) ErrorCode() string { + if e.Code == nil { + return "WAFInternalErrorException" + } + return *e.Code +} 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 +144,8 @@ func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smit type WAFInvalidAccountException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -127,7 +158,12 @@ func (e *WAFInvalidAccountException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidAccountException) ErrorCode() string { return "WAFInvalidAccountException" } +func (e *WAFInvalidAccountException) ErrorCode() string { + if e.Code == nil { + return "WAFInvalidAccountException" + } + return *e.Code +} func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because there was nothing to do. For example: @@ -151,6 +187,8 @@ func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smi type WAFInvalidOperationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -163,7 +201,12 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidOperationException) ErrorCode() string { return "WAFInvalidOperationException" } +func (e *WAFInvalidOperationException) ErrorCode() string { + if e.Code == nil { + return "WAFInvalidOperationException" + } + return *e.Code +} func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because AWS WAF didn't recognize a parameter in the @@ -199,6 +242,8 @@ func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidParameterException struct { Message *string + Code *string + Field ParameterExceptionField Parameter *string Reason ParameterExceptionReason @@ -215,7 +260,12 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidParameterException) ErrorCode() string { return "WAFInvalidParameterException" } +func (e *WAFInvalidParameterException) ErrorCode() string { + if e.Code == nil { + return "WAFInvalidParameterException" + } + return *e.Code +} func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because the specified policy is not in the proper format. @@ -247,6 +297,8 @@ func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidPermissionPolicyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -260,7 +312,10 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - return "WAFInvalidPermissionPolicyException" + if e.Code == nil { + return "WAFInvalidPermissionPolicyException" + } + return *e.Code } func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +325,8 @@ func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { type WAFInvalidRegexPatternException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -283,7 +340,10 @@ func (e *WAFInvalidRegexPatternException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidRegexPatternException) ErrorCode() string { - return "WAFInvalidRegexPatternException" + if e.Code == nil { + return "WAFInvalidRegexPatternException" + } + return *e.Code } func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -294,6 +354,8 @@ func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { retur type WAFLimitsExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -306,7 +368,12 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { } return *e.Message } -func (e *WAFLimitsExceededException) ErrorCode() string { return "WAFLimitsExceededException" } +func (e *WAFLimitsExceededException) ErrorCode() string { + if e.Code == nil { + return "WAFLimitsExceededException" + } + return *e.Code +} 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 +393,8 @@ func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smi type WAFNonEmptyEntityException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -338,7 +407,12 @@ func (e *WAFNonEmptyEntityException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonEmptyEntityException) ErrorCode() string { return "WAFNonEmptyEntityException" } +func (e *WAFNonEmptyEntityException) ErrorCode() string { + if e.Code == nil { + return "WAFNonEmptyEntityException" + } + return *e.Code +} 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 +433,8 @@ func (e *WAFNonEmptyEntityException) ErrorFault() smithy.ErrorFault { return smi type WAFNonexistentContainerException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -372,7 +448,10 @@ func (e *WAFNonexistentContainerException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentContainerException) ErrorCode() string { - return "WAFNonexistentContainerException" + if e.Code == nil { + return "WAFNonexistentContainerException" + } + return *e.Code } func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -380,6 +459,8 @@ func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { retu type WAFNonexistentItemException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -392,7 +473,12 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonexistentItemException) ErrorCode() string { return "WAFNonexistentItemException" } +func (e *WAFNonexistentItemException) ErrorCode() string { + if e.Code == nil { + return "WAFNonexistentItemException" + } + return *e.Code +} 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 +491,8 @@ func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return sm type WAFReferencedItemException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -417,7 +505,12 @@ func (e *WAFReferencedItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFReferencedItemException) ErrorCode() string { return "WAFReferencedItemException" } +func (e *WAFReferencedItemException) ErrorCode() string { + if e.Code == nil { + return "WAFReferencedItemException" + } + return *e.Code +} 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 +524,8 @@ func (e *WAFReferencedItemException) ErrorFault() smithy.ErrorFault { return smi type WAFServiceLinkedRoleErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -444,7 +539,10 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - return "WAFServiceLinkedRoleErrorException" + if e.Code == nil { + return "WAFServiceLinkedRoleErrorException" + } + return *e.Code } func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -455,6 +553,8 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { type WAFStaleDataException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -467,13 +567,20 @@ func (e *WAFStaleDataException) ErrorMessage() string { } return *e.Message } -func (e *WAFStaleDataException) ErrorCode() string { return "WAFStaleDataException" } +func (e *WAFStaleDataException) ErrorCode() string { + if e.Code == nil { + return "WAFStaleDataException" + } + return *e.Code +} func (e *WAFStaleDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subscription does not exist. type WAFSubscriptionNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -487,13 +594,19 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - return "WAFSubscriptionNotFoundException" + if e.Code == nil { + return "WAFSubscriptionNotFoundException" + } + return *e.Code } func (e *WAFSubscriptionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type WAFTagOperationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -506,12 +619,20 @@ func (e *WAFTagOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFTagOperationException) ErrorCode() string { return "WAFTagOperationException" } +func (e *WAFTagOperationException) ErrorCode() string { + if e.Code == nil { + return "WAFTagOperationException" + } + return *e.Code +} func (e *WAFTagOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type WAFTagOperationInternalErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -525,7 +646,10 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - return "WAFTagOperationInternalErrorException" + if e.Code == nil { + return "WAFTagOperationInternalErrorException" + } + return *e.Code } 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..c59ce015022 100644 --- a/service/wafregional/types/errors.go +++ b/service/wafregional/types/errors.go @@ -7,9 +7,12 @@ import ( smithy "github.com/aws/smithy-go" ) +// type WAFBadRequestException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -22,13 +25,20 @@ func (e *WAFBadRequestException) ErrorMessage() string { } return *e.Message } -func (e *WAFBadRequestException) ErrorCode() string { return "WAFBadRequestException" } +func (e *WAFBadRequestException) ErrorCode() string { + if e.Code == nil { + return "WAFBadRequestException" + } + return *e.Code +} func (e *WAFBadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The name specified is invalid. type WAFDisallowedNameException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -41,7 +51,12 @@ func (e *WAFDisallowedNameException) ErrorMessage() string { } return *e.Message } -func (e *WAFDisallowedNameException) ErrorCode() string { return "WAFDisallowedNameException" } +func (e *WAFDisallowedNameException) ErrorCode() string { + if e.Code == nil { + return "WAFDisallowedNameException" + } + return *e.Code +} 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 +87,8 @@ func (e *WAFDisallowedNameException) ErrorFault() smithy.ErrorFault { return smi type WAFEntityMigrationException struct { Message *string + Code *string + MigrationErrorType MigrationErrorType MigrationErrorReason *string @@ -87,7 +104,12 @@ func (e *WAFEntityMigrationException) ErrorMessage() string { } return *e.Message } -func (e *WAFEntityMigrationException) ErrorCode() string { return "WAFEntityMigrationException" } +func (e *WAFEntityMigrationException) ErrorCode() string { + if e.Code == nil { + return "WAFEntityMigrationException" + } + return *e.Code +} func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because of a system problem, even though the request was @@ -95,6 +117,8 @@ func (e *WAFEntityMigrationException) ErrorFault() smithy.ErrorFault { return sm type WAFInternalErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -107,7 +131,12 @@ func (e *WAFInternalErrorException) ErrorMessage() string { } return *e.Message } -func (e *WAFInternalErrorException) ErrorCode() string { return "WAFInternalErrorException" } +func (e *WAFInternalErrorException) ErrorCode() string { + if e.Code == nil { + return "WAFInternalErrorException" + } + return *e.Code +} 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 +144,8 @@ func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smit type WAFInvalidAccountException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -127,7 +158,12 @@ func (e *WAFInvalidAccountException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidAccountException) ErrorCode() string { return "WAFInvalidAccountException" } +func (e *WAFInvalidAccountException) ErrorCode() string { + if e.Code == nil { + return "WAFInvalidAccountException" + } + return *e.Code +} func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because there was nothing to do. For example: @@ -151,6 +187,8 @@ func (e *WAFInvalidAccountException) ErrorFault() smithy.ErrorFault { return smi type WAFInvalidOperationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -163,7 +201,12 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidOperationException) ErrorCode() string { return "WAFInvalidOperationException" } +func (e *WAFInvalidOperationException) ErrorCode() string { + if e.Code == nil { + return "WAFInvalidOperationException" + } + return *e.Code +} func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because AWS WAF didn't recognize a parameter in the @@ -199,6 +242,8 @@ func (e *WAFInvalidOperationException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidParameterException struct { Message *string + Code *string + Field ParameterExceptionField Parameter *string Reason ParameterExceptionReason @@ -215,7 +260,12 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { } return *e.Message } -func (e *WAFInvalidParameterException) ErrorCode() string { return "WAFInvalidParameterException" } +func (e *WAFInvalidParameterException) ErrorCode() string { + if e.Code == nil { + return "WAFInvalidParameterException" + } + return *e.Code +} func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation failed because the specified policy is not in the proper format. @@ -247,6 +297,8 @@ func (e *WAFInvalidParameterException) ErrorFault() smithy.ErrorFault { return s type WAFInvalidPermissionPolicyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -260,7 +312,10 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - return "WAFInvalidPermissionPolicyException" + if e.Code == nil { + return "WAFInvalidPermissionPolicyException" + } + return *e.Code } func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -270,6 +325,8 @@ func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { type WAFInvalidRegexPatternException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -283,7 +340,10 @@ func (e *WAFInvalidRegexPatternException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidRegexPatternException) ErrorCode() string { - return "WAFInvalidRegexPatternException" + if e.Code == nil { + return "WAFInvalidRegexPatternException" + } + return *e.Code } func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -294,6 +354,8 @@ func (e *WAFInvalidRegexPatternException) ErrorFault() smithy.ErrorFault { retur type WAFLimitsExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -306,7 +368,12 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { } return *e.Message } -func (e *WAFLimitsExceededException) ErrorCode() string { return "WAFLimitsExceededException" } +func (e *WAFLimitsExceededException) ErrorCode() string { + if e.Code == nil { + return "WAFLimitsExceededException" + } + return *e.Code +} 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 +393,8 @@ func (e *WAFLimitsExceededException) ErrorFault() smithy.ErrorFault { return smi type WAFNonEmptyEntityException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -338,7 +407,12 @@ func (e *WAFNonEmptyEntityException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonEmptyEntityException) ErrorCode() string { return "WAFNonEmptyEntityException" } +func (e *WAFNonEmptyEntityException) ErrorCode() string { + if e.Code == nil { + return "WAFNonEmptyEntityException" + } + return *e.Code +} 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 +433,8 @@ func (e *WAFNonEmptyEntityException) ErrorFault() smithy.ErrorFault { return smi type WAFNonexistentContainerException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -372,7 +448,10 @@ func (e *WAFNonexistentContainerException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentContainerException) ErrorCode() string { - return "WAFNonexistentContainerException" + if e.Code == nil { + return "WAFNonexistentContainerException" + } + return *e.Code } func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -380,6 +459,8 @@ func (e *WAFNonexistentContainerException) ErrorFault() smithy.ErrorFault { retu type WAFNonexistentItemException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -392,7 +473,12 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFNonexistentItemException) ErrorCode() string { return "WAFNonexistentItemException" } +func (e *WAFNonexistentItemException) ErrorCode() string { + if e.Code == nil { + return "WAFNonexistentItemException" + } + return *e.Code +} 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 +491,8 @@ func (e *WAFNonexistentItemException) ErrorFault() smithy.ErrorFault { return sm type WAFReferencedItemException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -417,7 +505,12 @@ func (e *WAFReferencedItemException) ErrorMessage() string { } return *e.Message } -func (e *WAFReferencedItemException) ErrorCode() string { return "WAFReferencedItemException" } +func (e *WAFReferencedItemException) ErrorCode() string { + if e.Code == nil { + return "WAFReferencedItemException" + } + return *e.Code +} 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 +524,8 @@ func (e *WAFReferencedItemException) ErrorFault() smithy.ErrorFault { return smi type WAFServiceLinkedRoleErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -444,7 +539,10 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - return "WAFServiceLinkedRoleErrorException" + if e.Code == nil { + return "WAFServiceLinkedRoleErrorException" + } + return *e.Code } func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -455,6 +553,8 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { type WAFStaleDataException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -467,13 +567,20 @@ func (e *WAFStaleDataException) ErrorMessage() string { } return *e.Message } -func (e *WAFStaleDataException) ErrorCode() string { return "WAFStaleDataException" } +func (e *WAFStaleDataException) ErrorCode() string { + if e.Code == nil { + return "WAFStaleDataException" + } + return *e.Code +} func (e *WAFStaleDataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified subscription does not exist. type WAFSubscriptionNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -487,13 +594,19 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - return "WAFSubscriptionNotFoundException" + if e.Code == nil { + return "WAFSubscriptionNotFoundException" + } + return *e.Code } func (e *WAFSubscriptionNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type WAFTagOperationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -506,12 +619,20 @@ func (e *WAFTagOperationException) ErrorMessage() string { } return *e.Message } -func (e *WAFTagOperationException) ErrorCode() string { return "WAFTagOperationException" } +func (e *WAFTagOperationException) ErrorCode() string { + if e.Code == nil { + return "WAFTagOperationException" + } + return *e.Code +} func (e *WAFTagOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// type WAFTagOperationInternalErrorException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -525,7 +646,10 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - return "WAFTagOperationInternalErrorException" + if e.Code == nil { + return "WAFTagOperationInternalErrorException" + } + return *e.Code } func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -536,6 +660,8 @@ func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { type WAFUnavailableEntityException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -548,5 +674,10 @@ func (e *WAFUnavailableEntityException) ErrorMessage() string { } return *e.Message } -func (e *WAFUnavailableEntityException) ErrorCode() string { return "WAFUnavailableEntityException" } +func (e *WAFUnavailableEntityException) ErrorCode() string { + if e.Code == nil { + return "WAFUnavailableEntityException" + } + return *e.Code +} 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..1564c5599da 100644 --- a/service/wafv2/types/errors.go +++ b/service/wafv2/types/errors.go @@ -12,6 +12,8 @@ import ( type WAFAssociatedItemException struct { Message *string + Code *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.Code == nil { + return "WAFAssociatedItemException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -52,7 +61,10 @@ func (e *WAFConfigurationWarningException) ErrorMessage() string { return *e.Message } func (e *WAFConfigurationWarningException) ErrorCode() string { - return "WAFConfigurationWarningException" + if e.Code == nil { + return "WAFConfigurationWarningException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "WAFDuplicateItemException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -95,7 +116,10 @@ func (e *WAFExpiredManagedRuleGroupVersionException) ErrorMessage() string { return *e.Message } func (e *WAFExpiredManagedRuleGroupVersionException) ErrorCode() string { - return "WAFExpiredManagedRuleGroupVersionException" + if e.Code == nil { + return "WAFExpiredManagedRuleGroupVersionException" + } + return *e.Code } func (e *WAFExpiredManagedRuleGroupVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -106,6 +130,8 @@ func (e *WAFExpiredManagedRuleGroupVersionException) ErrorFault() smithy.ErrorFa type WAFInternalErrorException struct { Message *string + Code *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.Code == nil { + return "WAFInternalErrorException" + } + return *e.Code +} func (e *WAFInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The operation isn't valid. type WAFInvalidOperationException struct { Message *string + Code *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.Code == nil { + return "WAFInvalidOperationException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "WAFInvalidParameterException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -215,7 +262,10 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - return "WAFInvalidPermissionPolicyException" + if e.Code == nil { + return "WAFInvalidPermissionPolicyException" + } + return *e.Code } func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -226,6 +276,8 @@ func (e *WAFInvalidPermissionPolicyException) ErrorFault() smithy.ErrorFault { type WAFInvalidResourceException struct { Message *string + Code *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.Code == nil { + return "WAFInvalidResourceException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "WAFLimitsExceededException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -284,7 +350,10 @@ func (e *WAFLogDestinationPermissionIssueException) ErrorMessage() string { return *e.Message } func (e *WAFLogDestinationPermissionIssueException) ErrorCode() string { - return "WAFLogDestinationPermissionIssueException" + if e.Code == nil { + return "WAFLogDestinationPermissionIssueException" + } + return *e.Code } func (e *WAFLogDestinationPermissionIssueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -297,6 +366,8 @@ func (e *WAFLogDestinationPermissionIssueException) ErrorFault() smithy.ErrorFau type WAFNonexistentItemException struct { Message *string + Code *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.Code == nil { + return "WAFNonexistentItemException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "WAFOptimisticLockException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -357,7 +442,10 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - return "WAFServiceLinkedRoleErrorException" + if e.Code == nil { + return "WAFServiceLinkedRoleErrorException" + } + return *e.Code } func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -368,6 +456,8 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorFault() smithy.ErrorFault { type WAFSubscriptionNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -381,7 +471,10 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - return "WAFSubscriptionNotFoundException" + if e.Code == nil { + return "WAFSubscriptionNotFoundException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "WAFTagOperationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -422,7 +524,10 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - return "WAFTagOperationInternalErrorException" + if e.Code == nil { + return "WAFTagOperationInternalErrorException" + } + return *e.Code } func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer @@ -436,6 +541,8 @@ func (e *WAFTagOperationInternalErrorException) ErrorFault() smithy.ErrorFault { type WAFUnavailableEntityException struct { Message *string + Code *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.Code == nil { + return "WAFUnavailableEntityException" + } + return *e.Code +} 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..a4500ecd690 100644 --- a/service/wellarchitected/types/errors.go +++ b/service/wellarchitected/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The requested resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user has reached their resource quota. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Request was denied due to request throttling. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user input is not valid. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..aaa19ef5d56 100644 --- a/service/wisdom/types/errors.go +++ b/service/wisdom/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "PreconditionFailedException" + } + return *e.Code +} func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource does not exist. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/wisdom/types/types.go b/service/wisdom/types/types.go index b33ae6cdec2..b9e686e8906 100644 --- a/service/wisdom/types/types.go +++ b/service/wisdom/types/types.go @@ -81,8 +81,7 @@ type AssistantAssociationData struct { // The data that is input into Wisdom as a result of the assistant association. // // The following types satisfy this interface: -// -// AssistantAssociationInputDataMemberKnowledgeBaseId +// AssistantAssociationInputDataMemberKnowledgeBaseId type AssistantAssociationInputData interface { isAssistantAssociationInputData() } @@ -99,8 +98,7 @@ func (*AssistantAssociationInputDataMemberKnowledgeBaseId) isAssistantAssociatio // The data that is output as a result of the assistant association. // // The following types satisfy this interface: -// -// AssistantAssociationOutputDataMemberKnowledgeBaseAssociation +// AssistantAssociationOutputDataMemberKnowledgeBaseAssociation type AssistantAssociationOutputData interface { isAssistantAssociationOutputData() } @@ -648,8 +646,7 @@ type RecommendationTrigger struct { // A union type containing information related to the trigger. // // The following types satisfy this interface: -// -// RecommendationTriggerDataMemberQuery +// RecommendationTriggerDataMemberQuery type RecommendationTriggerData interface { isRecommendationTriggerData() } @@ -780,8 +777,7 @@ type SessionSummary struct { // Configuration information about the external data source. // // The following types satisfy this interface: -// -// SourceConfigurationMemberAppIntegrations +// SourceConfigurationMemberAppIntegrations type SourceConfiguration interface { isSourceConfiguration() } diff --git a/service/workdocs/types/errors.go b/service/workdocs/types/errors.go index 6c658f01336..05f5c931802 100644 --- a/service/workdocs/types/errors.go +++ b/service/workdocs/types/errors.go @@ -11,6 +11,8 @@ import ( type ConcurrentModificationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -24,7 +26,10 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - return "ConcurrentModificationException" + if e.Code == nil { + return "ConcurrentModificationException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ConflictingOperationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -66,7 +80,10 @@ func (e *CustomMetadataLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CustomMetadataLimitExceededException) ErrorCode() string { - return "CustomMetadataLimitExceededException" + if e.Code == nil { + return "CustomMetadataLimitExceededException" + } + return *e.Code } func (e *CustomMetadataLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -91,7 +108,10 @@ func (e *DeactivatingLastSystemUserException) ErrorMessage() string { return *e.Message } func (e *DeactivatingLastSystemUserException) ErrorCode() string { - return "DeactivatingLastSystemUserException" + if e.Code == nil { + return "DeactivatingLastSystemUserException" + } + return *e.Code } func (e *DeactivatingLastSystemUserException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -102,6 +122,8 @@ func (e *DeactivatingLastSystemUserException) ErrorFault() smithy.ErrorFault { type DocumentLockedForCommentsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -115,7 +137,10 @@ func (e *DocumentLockedForCommentsException) ErrorMessage() string { return *e.Message } func (e *DocumentLockedForCommentsException) ErrorCode() string { - return "DocumentLockedForCommentsException" + if e.Code == nil { + return "DocumentLockedForCommentsException" + } + return *e.Code } func (e *DocumentLockedForCommentsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -126,6 +151,8 @@ func (e *DocumentLockedForCommentsException) ErrorFault() smithy.ErrorFault { type DraftUploadOutOfSyncException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -138,13 +165,20 @@ func (e *DraftUploadOutOfSyncException) ErrorMessage() string { } return *e.Message } -func (e *DraftUploadOutOfSyncException) ErrorCode() string { return "DraftUploadOutOfSyncException" } +func (e *DraftUploadOutOfSyncException) ErrorCode() string { + if e.Code == nil { + return "DraftUploadOutOfSyncException" + } + return *e.Code +} func (e *DraftUploadOutOfSyncException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type EntityAlreadyExistsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -157,13 +191,20 @@ func (e *EntityAlreadyExistsException) ErrorMessage() string { } return *e.Message } -func (e *EntityAlreadyExistsException) ErrorCode() string { return "EntityAlreadyExistsException" } +func (e *EntityAlreadyExistsException) ErrorCode() string { + if e.Code == nil { + return "EntityAlreadyExistsException" + } + return *e.Code +} func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource does not exist. type EntityNotExistsException struct { Message *string + Code *string + EntityIds []string noSmithyDocumentSerde @@ -178,7 +219,12 @@ func (e *EntityNotExistsException) ErrorMessage() string { } return *e.Message } -func (e *EntityNotExistsException) ErrorCode() string { return "EntityNotExistsException" } +func (e *EntityNotExistsException) ErrorCode() string { + if e.Code == nil { + return "EntityNotExistsException" + } + return *e.Code +} func (e *EntityNotExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The AWS Directory Service cannot reach an on-premises instance. Or a dependency @@ -187,6 +233,8 @@ func (e *EntityNotExistsException) ErrorFault() smithy.ErrorFault { return smith type FailedDependencyException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -199,13 +247,20 @@ func (e *FailedDependencyException) ErrorMessage() string { } return *e.Message } -func (e *FailedDependencyException) ErrorCode() string { return "FailedDependencyException" } +func (e *FailedDependencyException) ErrorCode() string { + if e.Code == nil { + return "FailedDependencyException" + } + return *e.Code +} func (e *FailedDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The user is undergoing transfer of ownership. type IllegalUserStateException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -218,13 +273,20 @@ func (e *IllegalUserStateException) ErrorMessage() string { } return *e.Message } -func (e *IllegalUserStateException) ErrorCode() string { return "IllegalUserStateException" } +func (e *IllegalUserStateException) ErrorCode() string { + if e.Code == nil { + return "IllegalUserStateException" + } + return *e.Code +} func (e *IllegalUserStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The pagination marker or limit fields are not valid. type InvalidArgumentException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -237,13 +299,20 @@ func (e *InvalidArgumentException) ErrorMessage() string { } return *e.Message } -func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } +func (e *InvalidArgumentException) ErrorCode() string { + if e.Code == nil { + return "InvalidArgumentException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -257,7 +326,10 @@ func (e *InvalidCommentOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidCommentOperationException) ErrorCode() string { - return "InvalidCommentOperationException" + if e.Code == nil { + return "InvalidCommentOperationException" + } + return *e.Code } func (e *InvalidCommentOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -265,6 +337,8 @@ func (e *InvalidCommentOperationException) ErrorFault() smithy.ErrorFault { retu type InvalidOperationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -277,13 +351,20 @@ func (e *InvalidOperationException) ErrorMessage() string { } return *e.Message } -func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } +func (e *InvalidOperationException) ErrorCode() string { + if e.Code == nil { + return "InvalidOperationException" + } + return *e.Code +} func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The password is invalid. type InvalidPasswordException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -296,7 +377,12 @@ func (e *InvalidPasswordException) ErrorMessage() string { } return *e.Message } -func (e *InvalidPasswordException) ErrorCode() string { return "InvalidPasswordException" } +func (e *InvalidPasswordException) ErrorCode() string { + if e.Code == nil { + return "InvalidPasswordException" + } + return *e.Code +} 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 +390,8 @@ func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smith type LimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -316,13 +404,20 @@ func (e *LimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } +func (e *LimitExceededException) ErrorCode() string { + if e.Code == nil { + return "LimitExceededException" + } + return *e.Code +} func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified document version is not in the INITIALIZED state. type ProhibitedStateException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -335,7 +430,12 @@ func (e *ProhibitedStateException) ErrorMessage() string { } return *e.Message } -func (e *ProhibitedStateException) ErrorCode() string { return "ProhibitedStateException" } +func (e *ProhibitedStateException) ErrorCode() string { + if e.Code == nil { + return "ProhibitedStateException" + } + return *e.Code +} 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 +443,8 @@ func (e *ProhibitedStateException) ErrorFault() smithy.ErrorFault { return smith type RequestedEntityTooLargeException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -356,7 +458,10 @@ func (e *RequestedEntityTooLargeException) ErrorMessage() string { return *e.Message } func (e *RequestedEntityTooLargeException) ErrorCode() string { - return "RequestedEntityTooLargeException" + if e.Code == nil { + return "RequestedEntityTooLargeException" + } + return *e.Code } func (e *RequestedEntityTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -364,6 +469,8 @@ func (e *RequestedEntityTooLargeException) ErrorFault() smithy.ErrorFault { retu type ResourceAlreadyCheckedOutException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -377,7 +484,10 @@ func (e *ResourceAlreadyCheckedOutException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyCheckedOutException) ErrorCode() string { - return "ResourceAlreadyCheckedOutException" + if e.Code == nil { + return "ResourceAlreadyCheckedOutException" + } + return *e.Code } func (e *ResourceAlreadyCheckedOutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -387,6 +497,8 @@ func (e *ResourceAlreadyCheckedOutException) ErrorFault() smithy.ErrorFault { type ServiceUnavailableException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -399,13 +511,20 @@ func (e *ServiceUnavailableException) ErrorMessage() string { } return *e.Message } -func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } +func (e *ServiceUnavailableException) ErrorCode() string { + if e.Code == nil { + return "ServiceUnavailableException" + } + return *e.Code +} func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The storage limit has been exceeded. type StorageLimitExceededException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -418,13 +537,20 @@ func (e *StorageLimitExceededException) ErrorMessage() string { } return *e.Message } -func (e *StorageLimitExceededException) ErrorCode() string { return "StorageLimitExceededException" } +func (e *StorageLimitExceededException) ErrorCode() string { + if e.Code == nil { + return "StorageLimitExceededException" + } + return *e.Code +} func (e *StorageLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The storage limit will be exceeded. type StorageLimitWillExceedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -438,7 +564,10 @@ func (e *StorageLimitWillExceedException) ErrorMessage() string { return *e.Message } func (e *StorageLimitWillExceedException) ErrorCode() string { - return "StorageLimitWillExceedException" + if e.Code == nil { + return "StorageLimitWillExceedException" + } + return *e.Code } func (e *StorageLimitWillExceedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } @@ -446,6 +575,8 @@ func (e *StorageLimitWillExceedException) ErrorFault() smithy.ErrorFault { retur type TooManyLabelsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -458,7 +589,12 @@ func (e *TooManyLabelsException) ErrorMessage() string { } return *e.Message } -func (e *TooManyLabelsException) ErrorCode() string { return "TooManyLabelsException" } +func (e *TooManyLabelsException) ErrorCode() string { + if e.Code == nil { + return "TooManyLabelsException" + } + return *e.Code +} func (e *TooManyLabelsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You've reached the limit on the number of subscriptions for the WorkDocs @@ -466,6 +602,8 @@ func (e *TooManyLabelsException) ErrorFault() smithy.ErrorFault { return smithy. type TooManySubscriptionsException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -478,7 +616,12 @@ func (e *TooManySubscriptionsException) ErrorMessage() string { } return *e.Message } -func (e *TooManySubscriptionsException) ErrorCode() string { return "TooManySubscriptionsException" } +func (e *TooManySubscriptionsException) ErrorCode() string { + if e.Code == nil { + return "TooManySubscriptionsException" + } + return *e.Code +} func (e *TooManySubscriptionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not permitted. @@ -499,13 +642,20 @@ func (e *UnauthorizedOperationException) ErrorMessage() string { } return *e.Message } -func (e *UnauthorizedOperationException) ErrorCode() string { return "UnauthorizedOperationException" } +func (e *UnauthorizedOperationException) ErrorCode() string { + if e.Code == nil { + return "UnauthorizedOperationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -519,7 +669,10 @@ func (e *UnauthorizedResourceAccessException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedResourceAccessException) ErrorCode() string { - return "UnauthorizedResourceAccessException" + if e.Code == nil { + return "UnauthorizedResourceAccessException" + } + return *e.Code } 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..f3daa6399d9 100644 --- a/service/worklink/types/errors.go +++ b/service/worklink/types/errors.go @@ -11,6 +11,8 @@ import ( type InternalServerErrorException struct { Message *string + Code *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.Code == nil { + return "InternalServerErrorException" + } + return *e.Code +} func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The request is not valid. type InvalidRequestException struct { Message *string + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested resource was not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The number of requests exceeds the limit. type TooManyRequestsException struct { Message *string + Code *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.Code == nil { + return "TooManyRequestsException" + } + return *e.Code +} func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You are not authorized to perform this action. type UnauthorizedException struct { Message *string + Code *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.Code == nil { + return "UnauthorizedException" + } + return *e.Code +} 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..c48550419f7 100644 --- a/service/workmail/types/errors.go +++ b/service/workmail/types/errors.go @@ -12,6 +12,8 @@ import ( type DirectoryInUseException struct { Message *string + Code *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.Code == nil { + return "DirectoryInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -44,7 +53,10 @@ func (e *DirectoryServiceAuthenticationFailedException) ErrorMessage() string { return *e.Message } func (e *DirectoryServiceAuthenticationFailedException) ErrorCode() string { - return "DirectoryServiceAuthenticationFailedException" + if e.Code == nil { + return "DirectoryServiceAuthenticationFailedException" + } + return *e.Code } func (e *DirectoryServiceAuthenticationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -54,6 +66,8 @@ func (e *DirectoryServiceAuthenticationFailedException) ErrorFault() smithy.Erro type DirectoryUnavailableException struct { Message *string + Code *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.Code == nil { + return "DirectoryUnavailableException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EmailAddressInUseException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -107,7 +135,10 @@ func (e *EntityAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *EntityAlreadyRegisteredException) ErrorCode() string { - return "EntityAlreadyRegisteredException" + if e.Code == nil { + return "EntityAlreadyRegisteredException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "EntityNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "EntityStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidConfigurationException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -192,7 +246,10 @@ func (e *InvalidCustomSesConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidCustomSesConfigurationException) ErrorCode() string { - return "InvalidCustomSesConfigurationException" + if e.Code == nil { + return "InvalidCustomSesConfigurationException" + } + return *e.Code } func (e *InvalidCustomSesConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -202,6 +259,8 @@ func (e *InvalidCustomSesConfigurationException) ErrorFault() smithy.ErrorFault type InvalidParameterException struct { Message *string + Code *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.Code == nil { + return "InvalidParameterException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "InvalidPasswordException" + } + return *e.Code +} func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the limit of the resource. type LimitExceededException struct { Message *string + Code *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.Code == nil { + return "LimitExceededException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MailDomainInUseException" + } + return *e.Code +} func (e *MailDomainInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The domain specified is not found in your organization. type MailDomainNotFoundException struct { Message *string + Code *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.Code == nil { + return "MailDomainNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MailDomainStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "NameAvailabilityException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OrganizationNotFoundException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OrganizationStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "ReservedNameException" + } + return *e.Code +} func (e *ReservedNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource cannot be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource can have up to 50 user-applied tags. type TooManyTagsException struct { Message *string + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "UnsupportedOperationException" + } + return *e.Code +} 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..9b91ffe6135 100644 --- a/service/workmailmessageflow/types/errors.go +++ b/service/workmailmessageflow/types/errors.go @@ -25,6 +25,8 @@ import ( type InvalidContentLocation struct { Message *string + Code *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.Code == nil { + return "InvalidContentLocation" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MessageFrozen" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "MessageRejected" + } + return *e.Code +} func (e *MessageRejected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested email message is not found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} 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..7bf07dd5ccc 100644 --- a/service/workspaces/types/errors.go +++ b/service/workspaces/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameter values are not valid. type InvalidParameterValuesException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -43,7 +52,10 @@ func (e *InvalidParameterValuesException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValuesException) ErrorCode() string { - return "InvalidParameterValuesException" + if e.Code == nil { + return "InvalidParameterValuesException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidResourceStateException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "OperationInProgressException" + } + return *e.Code +} func (e *OperationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This operation is not supported. type OperationNotSupportedException struct { Message *string + Code *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.Code == nil { + return "OperationNotSupportedException" + } + return *e.Code +} func (e *OperationNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource already exists. type ResourceAlreadyExistsException struct { Message *string + Code *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.Code == nil { + return "ResourceAlreadyExistsException" + } + return *e.Code +} func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource is associated with a directory. type ResourceAssociatedException struct { Message *string + Code *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.Code == nil { + return "ResourceAssociatedException" + } + return *e.Code +} func (e *ResourceAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be created. type ResourceCreationFailedException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -162,7 +211,10 @@ func (e *ResourceCreationFailedException) ErrorMessage() string { return *e.Message } func (e *ResourceCreationFailedException) ErrorCode() string { - return "ResourceCreationFailedException" + if e.Code == nil { + return "ResourceCreationFailedException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceLimitExceededException" + } + return *e.Code +} func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The resource could not be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified resource is not available. type ResourceUnavailableException struct { Message *string + Code *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.Code == nil { + return "ResourceUnavailableException" + } + return *e.Code +} 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 + Code *string + noSmithyDocumentSerde } @@ -247,7 +322,10 @@ func (e *UnsupportedNetworkConfigurationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedNetworkConfigurationException) ErrorCode() string { - return "UnsupportedNetworkConfigurationException" + if e.Code == nil { + return "UnsupportedNetworkConfigurationException" + } + return *e.Code } func (e *UnsupportedNetworkConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -260,6 +338,8 @@ func (e *UnsupportedNetworkConfigurationException) ErrorFault() smithy.ErrorFaul type UnsupportedWorkspaceConfigurationException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -273,7 +353,10 @@ func (e *UnsupportedWorkspaceConfigurationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedWorkspaceConfigurationException) ErrorCode() string { - return "UnsupportedWorkspaceConfigurationException" + if e.Code == nil { + return "UnsupportedWorkspaceConfigurationException" + } + return *e.Code } func (e *UnsupportedWorkspaceConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient @@ -287,6 +370,8 @@ func (e *UnsupportedWorkspaceConfigurationException) ErrorFault() smithy.ErrorFa type WorkspacesDefaultRoleNotFoundException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -300,7 +385,10 @@ func (e *WorkspacesDefaultRoleNotFoundException) ErrorMessage() string { return *e.Message } func (e *WorkspacesDefaultRoleNotFoundException) ErrorCode() string { - return "WorkspacesDefaultRoleNotFoundException" + if e.Code == nil { + return "WorkspacesDefaultRoleNotFoundException" + } + return *e.Code } 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..38512b9709f 100644 --- a/service/workspacesweb/types/errors.go +++ b/service/workspacesweb/types/errors.go @@ -11,6 +11,8 @@ import ( type AccessDeniedException struct { Message *string + Code *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.Code == nil { + return "AccessDeniedException" + } + return *e.Code +} func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a conflict. type ConflictException struct { Message *string + Code *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.Code == nil { + return "ConflictException" + } + return *e.Code +} func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is an internal server error. type InternalServerException struct { Message *string + Code *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.Code == nil { + return "InternalServerException" + } + return *e.Code +} func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource cannot be found. type ResourceNotFoundException struct { Message *string + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service quota has been exceeded. type ServiceQuotaExceededException struct { Message *string + Code *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.Code == nil { + return "ServiceQuotaExceededException" + } + return *e.Code +} func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a throttling error. type ThrottlingException struct { Message *string + Code *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.Code == nil { + return "ThrottlingException" + } + return *e.Code +} func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There are too many tags. type TooManyTagsException struct { Message *string + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // There is a validation error. type ValidationException struct { Message *string + Code *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.Code == nil { + return "ValidationException" + } + return *e.Code +} 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..4a24411edda 100644 --- a/service/xray/types/errors.go +++ b/service/xray/types/errors.go @@ -13,6 +13,8 @@ import ( type InvalidPolicyRevisionIdException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -26,7 +28,10 @@ func (e *InvalidPolicyRevisionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyRevisionIdException) ErrorCode() string { - return "InvalidPolicyRevisionIdException" + if e.Code == nil { + return "InvalidPolicyRevisionIdException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "InvalidRequestException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "LockoutPreventionException" + } + return *e.Code +} func (e *LockoutPreventionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Invalid policy document provided in request. type MalformedPolicyDocumentException struct { Message *string + Code *string + noSmithyDocumentSerde } @@ -86,7 +107,10 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - return "MalformedPolicyDocumentException" + if e.Code == nil { + return "MalformedPolicyDocumentException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -108,7 +134,10 @@ func (e *PolicyCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *PolicyCountLimitExceededException) ErrorCode() string { - return "PolicyCountLimitExceededException" + if e.Code == nil { + return "PolicyCountLimitExceededException" + } + return *e.Code } 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 + Code *string + noSmithyDocumentSerde } @@ -129,7 +160,10 @@ func (e *PolicySizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *PolicySizeLimitExceededException) ErrorCode() string { - return "PolicySizeLimitExceededException" + if e.Code == nil { + return "PolicySizeLimitExceededException" + } + return *e.Code } 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 + Code *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.Code == nil { + return "ResourceNotFoundException" + } + return *e.Code +} func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have reached the maximum number of sampling rules. type RuleLimitExceededException struct { Message *string + Code *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.Code == nil { + return "RuleLimitExceededException" + } + return *e.Code +} func (e *RuleLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request exceeds the maximum number of requests per second. type ThrottledException struct { Message *string + Code *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.Code == nil { + return "ThrottledException" + } + return *e.Code +} 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 + Code *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.Code == nil { + return "TooManyTagsException" + } + return *e.Code +} func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/xray/types/types.go b/service/xray/types/types.go index d1b3971751d..81934138afd 100644 --- a/service/xray/types/types.go +++ b/service/xray/types/types.go @@ -26,10 +26,9 @@ type Alias struct { // String. // // The following types satisfy this interface: -// -// AnnotationValueMemberBooleanValue -// AnnotationValueMemberNumberValue -// AnnotationValueMemberStringValue +// AnnotationValueMemberBooleanValue +// AnnotationValueMemberNumberValue +// AnnotationValueMemberStringValue type AnnotationValue interface { isAnnotationValue() } @@ -79,6 +78,7 @@ type AvailabilityZoneDetail struct { noSmithyDocumentSerde } +// type BackendConnectionErrors struct { // @@ -1023,6 +1023,7 @@ type Service struct { noSmithyDocumentSerde } +// type ServiceId struct { // @@ -1094,6 +1095,7 @@ type Tag struct { noSmithyDocumentSerde } +// type TelemetryRecord struct { //