@aws-sdk/client-shield 3.52.0 → 3.53.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.
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./ShieldClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ShieldServiceException } from "./models/ShieldServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var ShieldServiceException = (function (_super) {
4
+ __extends(ShieldServiceException, _super);
5
+ function ShieldServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, ShieldServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return ShieldServiceException;
11
+ }(__ServiceException));
12
+ export { ShieldServiceException };
@@ -1,4 +1,29 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { ShieldServiceException as __BaseException } from "./ShieldServiceException";
3
+ var AccessDeniedException = (function (_super) {
4
+ __extends(AccessDeniedException, _super);
5
+ function AccessDeniedException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
+ _this.name = "AccessDeniedException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
+ return _this;
11
+ }
12
+ return AccessDeniedException;
13
+ }(__BaseException));
14
+ export { AccessDeniedException };
15
+ var AccessDeniedForDependencyException = (function (_super) {
16
+ __extends(AccessDeniedForDependencyException, _super);
17
+ function AccessDeniedForDependencyException(opts) {
18
+ var _this = _super.call(this, __assign({ name: "AccessDeniedForDependencyException", $fault: "client" }, opts)) || this;
19
+ _this.name = "AccessDeniedForDependencyException";
20
+ _this.$fault = "client";
21
+ Object.setPrototypeOf(_this, AccessDeniedForDependencyException.prototype);
22
+ return _this;
23
+ }
24
+ return AccessDeniedForDependencyException;
25
+ }(__BaseException));
26
+ export { AccessDeniedForDependencyException };
2
27
  export var BlockAction;
3
28
  (function (BlockAction) {
4
29
  BlockAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -28,6 +53,30 @@ export var AssociateDRTLogBucketResponse;
28
53
  (function (AssociateDRTLogBucketResponse) {
29
54
  AssociateDRTLogBucketResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
55
  })(AssociateDRTLogBucketResponse || (AssociateDRTLogBucketResponse = {}));
56
+ var InternalErrorException = (function (_super) {
57
+ __extends(InternalErrorException, _super);
58
+ function InternalErrorException(opts) {
59
+ var _this = _super.call(this, __assign({ name: "InternalErrorException", $fault: "server" }, opts)) || this;
60
+ _this.name = "InternalErrorException";
61
+ _this.$fault = "server";
62
+ Object.setPrototypeOf(_this, InternalErrorException.prototype);
63
+ return _this;
64
+ }
65
+ return InternalErrorException;
66
+ }(__BaseException));
67
+ export { InternalErrorException };
68
+ var InvalidOperationException = (function (_super) {
69
+ __extends(InvalidOperationException, _super);
70
+ function InvalidOperationException(opts) {
71
+ var _this = _super.call(this, __assign({ name: "InvalidOperationException", $fault: "client" }, opts)) || this;
72
+ _this.name = "InvalidOperationException";
73
+ _this.$fault = "client";
74
+ Object.setPrototypeOf(_this, InvalidOperationException.prototype);
75
+ return _this;
76
+ }
77
+ return InvalidOperationException;
78
+ }(__BaseException));
79
+ export { InvalidOperationException };
31
80
  export var ValidationExceptionField;
32
81
  (function (ValidationExceptionField) {
33
82
  ValidationExceptionField.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -37,6 +86,71 @@ export var ValidationExceptionReason;
37
86
  ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
38
87
  ValidationExceptionReason["OTHER"] = "OTHER";
39
88
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
89
+ var InvalidParameterException = (function (_super) {
90
+ __extends(InvalidParameterException, _super);
91
+ function InvalidParameterException(opts) {
92
+ var _this = _super.call(this, __assign({ name: "InvalidParameterException", $fault: "client" }, opts)) || this;
93
+ _this.name = "InvalidParameterException";
94
+ _this.$fault = "client";
95
+ Object.setPrototypeOf(_this, InvalidParameterException.prototype);
96
+ _this.reason = opts.reason;
97
+ _this.fields = opts.fields;
98
+ return _this;
99
+ }
100
+ return InvalidParameterException;
101
+ }(__BaseException));
102
+ export { InvalidParameterException };
103
+ var LimitsExceededException = (function (_super) {
104
+ __extends(LimitsExceededException, _super);
105
+ function LimitsExceededException(opts) {
106
+ var _this = _super.call(this, __assign({ name: "LimitsExceededException", $fault: "client" }, opts)) || this;
107
+ _this.name = "LimitsExceededException";
108
+ _this.$fault = "client";
109
+ Object.setPrototypeOf(_this, LimitsExceededException.prototype);
110
+ _this.Type = opts.Type;
111
+ _this.Limit = opts.Limit;
112
+ return _this;
113
+ }
114
+ return LimitsExceededException;
115
+ }(__BaseException));
116
+ export { LimitsExceededException };
117
+ var NoAssociatedRoleException = (function (_super) {
118
+ __extends(NoAssociatedRoleException, _super);
119
+ function NoAssociatedRoleException(opts) {
120
+ var _this = _super.call(this, __assign({ name: "NoAssociatedRoleException", $fault: "client" }, opts)) || this;
121
+ _this.name = "NoAssociatedRoleException";
122
+ _this.$fault = "client";
123
+ Object.setPrototypeOf(_this, NoAssociatedRoleException.prototype);
124
+ return _this;
125
+ }
126
+ return NoAssociatedRoleException;
127
+ }(__BaseException));
128
+ export { NoAssociatedRoleException };
129
+ var OptimisticLockException = (function (_super) {
130
+ __extends(OptimisticLockException, _super);
131
+ function OptimisticLockException(opts) {
132
+ var _this = _super.call(this, __assign({ name: "OptimisticLockException", $fault: "client" }, opts)) || this;
133
+ _this.name = "OptimisticLockException";
134
+ _this.$fault = "client";
135
+ Object.setPrototypeOf(_this, OptimisticLockException.prototype);
136
+ return _this;
137
+ }
138
+ return OptimisticLockException;
139
+ }(__BaseException));
140
+ export { OptimisticLockException };
141
+ var ResourceNotFoundException = (function (_super) {
142
+ __extends(ResourceNotFoundException, _super);
143
+ function ResourceNotFoundException(opts) {
144
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
145
+ _this.name = "ResourceNotFoundException";
146
+ _this.$fault = "client";
147
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
148
+ _this.resourceType = opts.resourceType;
149
+ return _this;
150
+ }
151
+ return ResourceNotFoundException;
152
+ }(__BaseException));
153
+ export { ResourceNotFoundException };
40
154
  export var AssociateDRTRoleRequest;
41
155
  (function (AssociateDRTRoleRequest) {
42
156
  AssociateDRTRoleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -53,6 +167,18 @@ export var AssociateHealthCheckResponse;
53
167
  (function (AssociateHealthCheckResponse) {
54
168
  AssociateHealthCheckResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
55
169
  })(AssociateHealthCheckResponse || (AssociateHealthCheckResponse = {}));
170
+ var InvalidResourceException = (function (_super) {
171
+ __extends(InvalidResourceException, _super);
172
+ function InvalidResourceException(opts) {
173
+ var _this = _super.call(this, __assign({ name: "InvalidResourceException", $fault: "client" }, opts)) || this;
174
+ _this.name = "InvalidResourceException";
175
+ _this.$fault = "client";
176
+ Object.setPrototypeOf(_this, InvalidResourceException.prototype);
177
+ return _this;
178
+ }
179
+ return InvalidResourceException;
180
+ }(__BaseException));
181
+ export { InvalidResourceException };
56
182
  export var EmergencyContact;
57
183
  (function (EmergencyContact) {
58
184
  EmergencyContact.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -158,6 +284,19 @@ export var CreateProtectionResponse;
158
284
  (function (CreateProtectionResponse) {
159
285
  CreateProtectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
286
  })(CreateProtectionResponse || (CreateProtectionResponse = {}));
287
+ var ResourceAlreadyExistsException = (function (_super) {
288
+ __extends(ResourceAlreadyExistsException, _super);
289
+ function ResourceAlreadyExistsException(opts) {
290
+ var _this = _super.call(this, __assign({ name: "ResourceAlreadyExistsException", $fault: "client" }, opts)) || this;
291
+ _this.name = "ResourceAlreadyExistsException";
292
+ _this.$fault = "client";
293
+ Object.setPrototypeOf(_this, ResourceAlreadyExistsException.prototype);
294
+ _this.resourceType = opts.resourceType;
295
+ return _this;
296
+ }
297
+ return ResourceAlreadyExistsException;
298
+ }(__BaseException));
299
+ export { ResourceAlreadyExistsException };
161
300
  export var ProtectionGroupAggregation;
162
301
  (function (ProtectionGroupAggregation) {
163
302
  ProtectionGroupAggregation["MAX"] = "MAX";
@@ -219,6 +358,18 @@ export var DeleteSubscriptionResponse;
219
358
  (function (DeleteSubscriptionResponse) {
220
359
  DeleteSubscriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
360
  })(DeleteSubscriptionResponse || (DeleteSubscriptionResponse = {}));
361
+ var LockedSubscriptionException = (function (_super) {
362
+ __extends(LockedSubscriptionException, _super);
363
+ function LockedSubscriptionException(opts) {
364
+ var _this = _super.call(this, __assign({ name: "LockedSubscriptionException", $fault: "client" }, opts)) || this;
365
+ _this.name = "LockedSubscriptionException";
366
+ _this.$fault = "client";
367
+ Object.setPrototypeOf(_this, LockedSubscriptionException.prototype);
368
+ return _this;
369
+ }
370
+ return LockedSubscriptionException;
371
+ }(__BaseException));
372
+ export { LockedSubscriptionException };
222
373
  export var DescribeAttackRequest;
223
374
  (function (DescribeAttackRequest) {
224
375
  DescribeAttackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -398,6 +549,18 @@ export var ListAttacksResponse;
398
549
  (function (ListAttacksResponse) {
399
550
  ListAttacksResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
400
551
  })(ListAttacksResponse || (ListAttacksResponse = {}));
552
+ var InvalidPaginationTokenException = (function (_super) {
553
+ __extends(InvalidPaginationTokenException, _super);
554
+ function InvalidPaginationTokenException(opts) {
555
+ var _this = _super.call(this, __assign({ name: "InvalidPaginationTokenException", $fault: "client" }, opts)) || this;
556
+ _this.name = "InvalidPaginationTokenException";
557
+ _this.$fault = "client";
558
+ Object.setPrototypeOf(_this, InvalidPaginationTokenException.prototype);
559
+ return _this;
560
+ }
561
+ return InvalidPaginationTokenException;
562
+ }(__BaseException));
563
+ export { InvalidPaginationTokenException };
401
564
  export var ListProtectionGroupsRequest;
402
565
  (function (ListProtectionGroupsRequest) {
403
566
  ListProtectionGroupsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };