@aws-sdk/client-shield 3.987.0 → 3.988.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.ShieldServiceException = 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 ShieldServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ShieldServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ShieldServiceException = ShieldServiceException;
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidPaginationTokenException = exports.LockedSubscriptionException = exports.ResourceAlreadyExistsException = exports.InvalidResourceException = exports.ResourceNotFoundException = exports.OptimisticLockException = exports.NoAssociatedRoleException = exports.LimitsExceededException = exports.InvalidParameterException = exports.InvalidOperationException = exports.InternalErrorException = exports.AccessDeniedForDependencyException = exports.AccessDeniedException = void 0;
4
+ const ShieldServiceException_1 = require("./ShieldServiceException");
5
+ class AccessDeniedException extends ShieldServiceException_1.ShieldServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class AccessDeniedForDependencyException extends ShieldServiceException_1.ShieldServiceException {
19
+ name = "AccessDeniedForDependencyException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "AccessDeniedForDependencyException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, AccessDeniedForDependencyException.prototype);
28
+ }
29
+ }
30
+ exports.AccessDeniedForDependencyException = AccessDeniedForDependencyException;
31
+ class InternalErrorException extends ShieldServiceException_1.ShieldServiceException {
32
+ name = "InternalErrorException";
33
+ $fault = "server";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalErrorException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
41
+ }
42
+ }
43
+ exports.InternalErrorException = InternalErrorException;
44
+ class InvalidOperationException extends ShieldServiceException_1.ShieldServiceException {
45
+ name = "InvalidOperationException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "InvalidOperationException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, InvalidOperationException.prototype);
54
+ }
55
+ }
56
+ exports.InvalidOperationException = InvalidOperationException;
57
+ class InvalidParameterException extends ShieldServiceException_1.ShieldServiceException {
58
+ name = "InvalidParameterException";
59
+ $fault = "client";
60
+ reason;
61
+ fields;
62
+ constructor(opts) {
63
+ super({
64
+ name: "InvalidParameterException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
69
+ this.reason = opts.reason;
70
+ this.fields = opts.fields;
71
+ }
72
+ }
73
+ exports.InvalidParameterException = InvalidParameterException;
74
+ class LimitsExceededException extends ShieldServiceException_1.ShieldServiceException {
75
+ name = "LimitsExceededException";
76
+ $fault = "client";
77
+ Type;
78
+ Limit;
79
+ constructor(opts) {
80
+ super({
81
+ name: "LimitsExceededException",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ Object.setPrototypeOf(this, LimitsExceededException.prototype);
86
+ this.Type = opts.Type;
87
+ this.Limit = opts.Limit;
88
+ }
89
+ }
90
+ exports.LimitsExceededException = LimitsExceededException;
91
+ class NoAssociatedRoleException extends ShieldServiceException_1.ShieldServiceException {
92
+ name = "NoAssociatedRoleException";
93
+ $fault = "client";
94
+ constructor(opts) {
95
+ super({
96
+ name: "NoAssociatedRoleException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ Object.setPrototypeOf(this, NoAssociatedRoleException.prototype);
101
+ }
102
+ }
103
+ exports.NoAssociatedRoleException = NoAssociatedRoleException;
104
+ class OptimisticLockException extends ShieldServiceException_1.ShieldServiceException {
105
+ name = "OptimisticLockException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "OptimisticLockException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, OptimisticLockException.prototype);
114
+ }
115
+ }
116
+ exports.OptimisticLockException = OptimisticLockException;
117
+ class ResourceNotFoundException extends ShieldServiceException_1.ShieldServiceException {
118
+ name = "ResourceNotFoundException";
119
+ $fault = "client";
120
+ resourceType;
121
+ constructor(opts) {
122
+ super({
123
+ name: "ResourceNotFoundException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
128
+ this.resourceType = opts.resourceType;
129
+ }
130
+ }
131
+ exports.ResourceNotFoundException = ResourceNotFoundException;
132
+ class InvalidResourceException extends ShieldServiceException_1.ShieldServiceException {
133
+ name = "InvalidResourceException";
134
+ $fault = "client";
135
+ constructor(opts) {
136
+ super({
137
+ name: "InvalidResourceException",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ Object.setPrototypeOf(this, InvalidResourceException.prototype);
142
+ }
143
+ }
144
+ exports.InvalidResourceException = InvalidResourceException;
145
+ class ResourceAlreadyExistsException extends ShieldServiceException_1.ShieldServiceException {
146
+ name = "ResourceAlreadyExistsException";
147
+ $fault = "client";
148
+ resourceType;
149
+ constructor(opts) {
150
+ super({
151
+ name: "ResourceAlreadyExistsException",
152
+ $fault: "client",
153
+ ...opts,
154
+ });
155
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
156
+ this.resourceType = opts.resourceType;
157
+ }
158
+ }
159
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
160
+ class LockedSubscriptionException extends ShieldServiceException_1.ShieldServiceException {
161
+ name = "LockedSubscriptionException";
162
+ $fault = "client";
163
+ constructor(opts) {
164
+ super({
165
+ name: "LockedSubscriptionException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, LockedSubscriptionException.prototype);
170
+ }
171
+ }
172
+ exports.LockedSubscriptionException = LockedSubscriptionException;
173
+ class InvalidPaginationTokenException extends ShieldServiceException_1.ShieldServiceException {
174
+ name = "InvalidPaginationTokenException";
175
+ $fault = "client";
176
+ constructor(opts) {
177
+ super({
178
+ name: "InvalidPaginationTokenException",
179
+ $fault: "client",
180
+ ...opts,
181
+ });
182
+ Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
183
+ }
184
+ }
185
+ exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
@@ -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: "2016-06-02",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.shield",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "http://ddp.amazonaws.com/doc/2016-06-02/",
33
35
  version: "2016-06-02",
34
36
  serviceTarget: "AWSShield_20160616",