@aws-sdk/client-app-mesh 3.987.0 → 3.989.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppMeshServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class AppMeshServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, AppMeshServiceException.prototype);
10
+ }
11
+ }
12
+ exports.AppMeshServiceException = AppMeshServiceException;
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TooManyTagsException = exports.ResourceInUseException = exports.LimitExceededException = exports.ConflictException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BadRequestException = void 0;
4
+ const AppMeshServiceException_1 = require("./AppMeshServiceException");
5
+ class BadRequestException extends AppMeshServiceException_1.AppMeshServiceException {
6
+ name = "BadRequestException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "BadRequestException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, BadRequestException.prototype);
15
+ }
16
+ }
17
+ exports.BadRequestException = BadRequestException;
18
+ class ForbiddenException extends AppMeshServiceException_1.AppMeshServiceException {
19
+ name = "ForbiddenException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ForbiddenException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
28
+ }
29
+ }
30
+ exports.ForbiddenException = ForbiddenException;
31
+ class InternalServerErrorException extends AppMeshServiceException_1.AppMeshServiceException {
32
+ name = "InternalServerErrorException";
33
+ $fault = "server";
34
+ $retryable = {};
35
+ constructor(opts) {
36
+ super({
37
+ name: "InternalServerErrorException",
38
+ $fault: "server",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
42
+ }
43
+ }
44
+ exports.InternalServerErrorException = InternalServerErrorException;
45
+ class NotFoundException extends AppMeshServiceException_1.AppMeshServiceException {
46
+ name = "NotFoundException";
47
+ $fault = "client";
48
+ constructor(opts) {
49
+ super({
50
+ name: "NotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, NotFoundException.prototype);
55
+ }
56
+ }
57
+ exports.NotFoundException = NotFoundException;
58
+ class ServiceUnavailableException extends AppMeshServiceException_1.AppMeshServiceException {
59
+ name = "ServiceUnavailableException";
60
+ $fault = "server";
61
+ $retryable = {};
62
+ constructor(opts) {
63
+ super({
64
+ name: "ServiceUnavailableException",
65
+ $fault: "server",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
69
+ }
70
+ }
71
+ exports.ServiceUnavailableException = ServiceUnavailableException;
72
+ class TooManyRequestsException extends AppMeshServiceException_1.AppMeshServiceException {
73
+ name = "TooManyRequestsException";
74
+ $fault = "client";
75
+ $retryable = {
76
+ throttling: true,
77
+ };
78
+ constructor(opts) {
79
+ super({
80
+ name: "TooManyRequestsException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
85
+ }
86
+ }
87
+ exports.TooManyRequestsException = TooManyRequestsException;
88
+ class ConflictException extends AppMeshServiceException_1.AppMeshServiceException {
89
+ name = "ConflictException";
90
+ $fault = "client";
91
+ constructor(opts) {
92
+ super({
93
+ name: "ConflictException",
94
+ $fault: "client",
95
+ ...opts,
96
+ });
97
+ Object.setPrototypeOf(this, ConflictException.prototype);
98
+ }
99
+ }
100
+ exports.ConflictException = ConflictException;
101
+ class LimitExceededException extends AppMeshServiceException_1.AppMeshServiceException {
102
+ name = "LimitExceededException";
103
+ $fault = "client";
104
+ constructor(opts) {
105
+ super({
106
+ name: "LimitExceededException",
107
+ $fault: "client",
108
+ ...opts,
109
+ });
110
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
111
+ }
112
+ }
113
+ exports.LimitExceededException = LimitExceededException;
114
+ class ResourceInUseException extends AppMeshServiceException_1.AppMeshServiceException {
115
+ name = "ResourceInUseException";
116
+ $fault = "client";
117
+ constructor(opts) {
118
+ super({
119
+ name: "ResourceInUseException",
120
+ $fault: "client",
121
+ ...opts,
122
+ });
123
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
124
+ }
125
+ }
126
+ exports.ResourceInUseException = ResourceInUseException;
127
+ class TooManyTagsException extends AppMeshServiceException_1.AppMeshServiceException {
128
+ name = "TooManyTagsException";
129
+ $fault = "client";
130
+ constructor(opts) {
131
+ super({
132
+ name: "TooManyTagsException",
133
+ $fault: "client",
134
+ ...opts,
135
+ });
136
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
137
+ }
138
+ }
139
+ exports.TooManyTagsException = TooManyTagsException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2019-01-25",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.appmesh",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2019-01-25",
33
35
  serviceTarget: "AppMesh",
34
36
  },