@aws-sdk/client-shield 3.186.0 → 3.188.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Shield.js +146 -153
  3. package/dist-es/ShieldClient.js +22 -28
  4. package/dist-es/commands/AssociateDRTLogBucketCommand.js +21 -28
  5. package/dist-es/commands/AssociateDRTRoleCommand.js +21 -28
  6. package/dist-es/commands/AssociateHealthCheckCommand.js +21 -28
  7. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +21 -28
  8. package/dist-es/commands/CreateProtectionCommand.js +21 -28
  9. package/dist-es/commands/CreateProtectionGroupCommand.js +21 -28
  10. package/dist-es/commands/CreateSubscriptionCommand.js +21 -28
  11. package/dist-es/commands/DeleteProtectionCommand.js +21 -28
  12. package/dist-es/commands/DeleteProtectionGroupCommand.js +21 -28
  13. package/dist-es/commands/DeleteSubscriptionCommand.js +21 -28
  14. package/dist-es/commands/DescribeAttackCommand.js +21 -28
  15. package/dist-es/commands/DescribeAttackStatisticsCommand.js +21 -28
  16. package/dist-es/commands/DescribeDRTAccessCommand.js +21 -28
  17. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +21 -28
  18. package/dist-es/commands/DescribeProtectionCommand.js +21 -28
  19. package/dist-es/commands/DescribeProtectionGroupCommand.js +21 -28
  20. package/dist-es/commands/DescribeSubscriptionCommand.js +21 -28
  21. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +21 -28
  22. package/dist-es/commands/DisableProactiveEngagementCommand.js +21 -28
  23. package/dist-es/commands/DisassociateDRTLogBucketCommand.js +21 -28
  24. package/dist-es/commands/DisassociateDRTRoleCommand.js +21 -28
  25. package/dist-es/commands/DisassociateHealthCheckCommand.js +21 -28
  26. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +21 -28
  27. package/dist-es/commands/EnableProactiveEngagementCommand.js +21 -28
  28. package/dist-es/commands/GetSubscriptionStateCommand.js +21 -28
  29. package/dist-es/commands/ListAttacksCommand.js +21 -28
  30. package/dist-es/commands/ListProtectionGroupsCommand.js +21 -28
  31. package/dist-es/commands/ListProtectionsCommand.js +21 -28
  32. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +21 -28
  33. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  34. package/dist-es/commands/TagResourceCommand.js +21 -28
  35. package/dist-es/commands/UntagResourceCommand.js +21 -28
  36. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +21 -28
  37. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +21 -28
  38. package/dist-es/commands/UpdateProtectionGroupCommand.js +21 -28
  39. package/dist-es/commands/UpdateSubscriptionCommand.js +21 -28
  40. package/dist-es/endpoints.js +8 -8
  41. package/dist-es/models/ShieldServiceException.js +5 -10
  42. package/dist-es/models/models_0.js +458 -253
  43. package/dist-es/pagination/ListAttacksPaginator.js +25 -68
  44. package/dist-es/pagination/ListProtectionGroupsPaginator.js +25 -68
  45. package/dist-es/pagination/ListProtectionsPaginator.js +25 -68
  46. package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +25 -68
  47. package/dist-es/protocols/Aws_json1_1.js +2384 -3132
  48. package/dist-es/runtimeConfig.browser.js +26 -12
  49. package/dist-es/runtimeConfig.js +30 -12
  50. package/dist-es/runtimeConfig.native.js +8 -5
  51. package/dist-es/runtimeConfig.shared.js +8 -11
  52. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "ListTagsForResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "TagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "UntagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateApplicationLayerAutomaticResponseRequestFilterSensitiveLog, UpdateApplicationLayerAutomaticResponseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand, serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateApplicationLayerAutomaticResponseCommand = (function (_super) {
7
- __extends(UpdateApplicationLayerAutomaticResponseCommand, _super);
8
- function UpdateApplicationLayerAutomaticResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateApplicationLayerAutomaticResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateApplicationLayerAutomaticResponseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "UpdateApplicationLayerAutomaticResponseCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "UpdateApplicationLayerAutomaticResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateApplicationLayerAutomaticResponseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateApplicationLayerAutomaticResponseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateApplicationLayerAutomaticResponseCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand(input, context);
33
- };
34
- UpdateApplicationLayerAutomaticResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand(output, context);
36
- };
37
- return UpdateApplicationLayerAutomaticResponseCommand;
38
- }($Command));
39
- export { UpdateApplicationLayerAutomaticResponseCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateEmergencyContactSettingsRequestFilterSensitiveLog, UpdateEmergencyContactSettingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateEmergencyContactSettingsCommand, serializeAws_json1_1UpdateEmergencyContactSettingsCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateEmergencyContactSettingsCommand = (function (_super) {
7
- __extends(UpdateEmergencyContactSettingsCommand, _super);
8
- function UpdateEmergencyContactSettingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateEmergencyContactSettingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateEmergencyContactSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "UpdateEmergencyContactSettingsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "UpdateEmergencyContactSettingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateEmergencyContactSettingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateEmergencyContactSettingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateEmergencyContactSettingsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateEmergencyContactSettingsCommand(input, context);
33
- };
34
- UpdateEmergencyContactSettingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateEmergencyContactSettingsCommand(output, context);
36
- };
37
- return UpdateEmergencyContactSettingsCommand;
38
- }($Command));
39
- export { UpdateEmergencyContactSettingsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateProtectionGroupRequestFilterSensitiveLog, UpdateProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateProtectionGroupCommand, serializeAws_json1_1UpdateProtectionGroupCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateProtectionGroupCommand = (function (_super) {
7
- __extends(UpdateProtectionGroupCommand, _super);
8
- function UpdateProtectionGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateProtectionGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateProtectionGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "UpdateProtectionGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "UpdateProtectionGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateProtectionGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateProtectionGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateProtectionGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateProtectionGroupCommand(input, context);
33
- };
34
- UpdateProtectionGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateProtectionGroupCommand(output, context);
36
- };
37
- return UpdateProtectionGroupCommand;
38
- }($Command));
39
- export { UpdateProtectionGroupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateSubscriptionRequestFilterSensitiveLog, UpdateSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateSubscriptionCommand, serializeAws_json1_1UpdateSubscriptionCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateSubscriptionCommand = (function (_super) {
7
- __extends(UpdateSubscriptionCommand, _super);
8
- function UpdateSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateSubscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ShieldClient";
18
- var commandName = "UpdateSubscriptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ShieldClient";
15
+ const commandName = "UpdateSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateSubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateSubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateSubscriptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateSubscriptionCommand(input, context);
33
- };
34
- UpdateSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateSubscriptionCommand(output, context);
36
- };
37
- return UpdateSubscriptionCommand;
38
- }($Command));
39
- export { UpdateSubscriptionCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "aws-global": {
5
4
  variants: [
6
5
  {
@@ -15,7 +14,7 @@ var regionHash = {
15
14
  signingRegion: "us-east-1",
16
15
  },
17
16
  };
18
- var partitionHash = {
17
+ const partitionHash = {
19
18
  aws: {
20
19
  regions: [
21
20
  "af-south-1",
@@ -138,8 +137,9 @@ var partitionHash = {
138
137
  ],
139
138
  },
140
139
  };
141
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
142
- return __generator(this, function (_a) {
143
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "shield", regionHash: regionHash, partitionHash: partitionHash }))];
144
- });
145
- }); };
140
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
141
+ ...options,
142
+ signingService: "shield",
143
+ regionHash,
144
+ partitionHash,
145
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  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;
2
+ export class ShieldServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, ShieldServiceException.prototype);
9
6
  }
10
- return ShieldServiceException;
11
- }(__ServiceException));
12
- export { ShieldServiceException };
7
+ }