@aws-sdk/client-shield 3.1076.0 → 3.1078.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 (128) hide show
  1. package/dist-cjs/index.js +47 -365
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AssociateDRTLogBucketCommand.js +2 -14
  4. package/dist-es/commands/AssociateDRTRoleCommand.js +2 -14
  5. package/dist-es/commands/AssociateHealthCheckCommand.js +2 -14
  6. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +2 -14
  7. package/dist-es/commands/CreateProtectionCommand.js +2 -14
  8. package/dist-es/commands/CreateProtectionGroupCommand.js +2 -14
  9. package/dist-es/commands/CreateSubscriptionCommand.js +2 -14
  10. package/dist-es/commands/DeleteProtectionCommand.js +2 -14
  11. package/dist-es/commands/DeleteProtectionGroupCommand.js +2 -14
  12. package/dist-es/commands/DeleteSubscriptionCommand.js +2 -14
  13. package/dist-es/commands/DescribeAttackCommand.js +2 -14
  14. package/dist-es/commands/DescribeAttackStatisticsCommand.js +2 -14
  15. package/dist-es/commands/DescribeDRTAccessCommand.js +2 -14
  16. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +2 -14
  17. package/dist-es/commands/DescribeProtectionCommand.js +2 -14
  18. package/dist-es/commands/DescribeProtectionGroupCommand.js +2 -14
  19. package/dist-es/commands/DescribeSubscriptionCommand.js +2 -14
  20. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +2 -14
  21. package/dist-es/commands/DisableProactiveEngagementCommand.js +2 -14
  22. package/dist-es/commands/DisassociateDRTLogBucketCommand.js +2 -14
  23. package/dist-es/commands/DisassociateDRTRoleCommand.js +2 -14
  24. package/dist-es/commands/DisassociateHealthCheckCommand.js +2 -14
  25. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +2 -14
  26. package/dist-es/commands/EnableProactiveEngagementCommand.js +2 -14
  27. package/dist-es/commands/GetSubscriptionStateCommand.js +2 -14
  28. package/dist-es/commands/ListAttacksCommand.js +2 -14
  29. package/dist-es/commands/ListProtectionGroupsCommand.js +2 -14
  30. package/dist-es/commands/ListProtectionsCommand.js +2 -14
  31. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +2 -14
  32. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  33. package/dist-es/commands/TagResourceCommand.js +2 -14
  34. package/dist-es/commands/UntagResourceCommand.js +2 -14
  35. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +2 -14
  36. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +2 -14
  37. package/dist-es/commands/UpdateProtectionGroupCommand.js +2 -14
  38. package/dist-es/commands/UpdateSubscriptionCommand.js +2 -14
  39. package/dist-es/index.js +1 -0
  40. package/dist-es/runtimeConfig.browser.js +0 -2
  41. package/dist-es/runtimeConfig.js +1 -2
  42. package/dist-es/runtimeConfig.native.js +0 -2
  43. package/dist-es/runtimeConfig.shared.js +2 -0
  44. package/dist-types/commandBuilder.d.ts +18 -0
  45. package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +3 -8
  46. package/dist-types/commands/AssociateDRTRoleCommand.d.ts +3 -8
  47. package/dist-types/commands/AssociateHealthCheckCommand.d.ts +3 -8
  48. package/dist-types/commands/AssociateProactiveEngagementDetailsCommand.d.ts +3 -8
  49. package/dist-types/commands/CreateProtectionCommand.d.ts +3 -8
  50. package/dist-types/commands/CreateProtectionGroupCommand.d.ts +3 -8
  51. package/dist-types/commands/CreateSubscriptionCommand.d.ts +3 -8
  52. package/dist-types/commands/DeleteProtectionCommand.d.ts +3 -8
  53. package/dist-types/commands/DeleteProtectionGroupCommand.d.ts +3 -8
  54. package/dist-types/commands/DeleteSubscriptionCommand.d.ts +3 -8
  55. package/dist-types/commands/DescribeAttackCommand.d.ts +3 -8
  56. package/dist-types/commands/DescribeAttackStatisticsCommand.d.ts +3 -8
  57. package/dist-types/commands/DescribeDRTAccessCommand.d.ts +3 -8
  58. package/dist-types/commands/DescribeEmergencyContactSettingsCommand.d.ts +3 -8
  59. package/dist-types/commands/DescribeProtectionCommand.d.ts +3 -8
  60. package/dist-types/commands/DescribeProtectionGroupCommand.d.ts +3 -8
  61. package/dist-types/commands/DescribeSubscriptionCommand.d.ts +3 -8
  62. package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +3 -8
  63. package/dist-types/commands/DisableProactiveEngagementCommand.d.ts +3 -8
  64. package/dist-types/commands/DisassociateDRTLogBucketCommand.d.ts +3 -8
  65. package/dist-types/commands/DisassociateDRTRoleCommand.d.ts +3 -8
  66. package/dist-types/commands/DisassociateHealthCheckCommand.d.ts +3 -8
  67. package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +3 -8
  68. package/dist-types/commands/EnableProactiveEngagementCommand.d.ts +3 -8
  69. package/dist-types/commands/GetSubscriptionStateCommand.d.ts +3 -8
  70. package/dist-types/commands/ListAttacksCommand.d.ts +3 -8
  71. package/dist-types/commands/ListProtectionGroupsCommand.d.ts +3 -8
  72. package/dist-types/commands/ListProtectionsCommand.d.ts +3 -8
  73. package/dist-types/commands/ListResourcesInProtectionGroupCommand.d.ts +3 -8
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  75. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  76. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  77. package/dist-types/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +3 -8
  78. package/dist-types/commands/UpdateEmergencyContactSettingsCommand.d.ts +3 -8
  79. package/dist-types/commands/UpdateProtectionGroupCommand.d.ts +3 -8
  80. package/dist-types/commands/UpdateSubscriptionCommand.d.ts +3 -8
  81. package/dist-types/index.d.ts +1 -0
  82. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  83. package/dist-types/runtimeConfig.d.ts +1 -1
  84. package/dist-types/runtimeConfig.native.d.ts +1 -1
  85. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  86. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  87. package/dist-types/ts3.4/commands/AssociateDRTLogBucketCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/AssociateDRTRoleCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/AssociateHealthCheckCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/AssociateProactiveEngagementDetailsCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/CreateProtectionCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/CreateProtectionGroupCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/DeleteProtectionCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/DeleteProtectionGroupCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/DeleteSubscriptionCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/DescribeAttackCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/DescribeAttackStatisticsCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/DescribeDRTAccessCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/DescribeEmergencyContactSettingsCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/DescribeProtectionCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/DescribeProtectionGroupCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/DescribeSubscriptionCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/DisableProactiveEngagementCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/DisassociateDRTLogBucketCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/DisassociateDRTRoleCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/commands/DisassociateHealthCheckCommand.d.ts +7 -16
  109. package/dist-types/ts3.4/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +7 -16
  110. package/dist-types/ts3.4/commands/EnableProactiveEngagementCommand.d.ts +7 -16
  111. package/dist-types/ts3.4/commands/GetSubscriptionStateCommand.d.ts +7 -16
  112. package/dist-types/ts3.4/commands/ListAttacksCommand.d.ts +7 -16
  113. package/dist-types/ts3.4/commands/ListProtectionGroupsCommand.d.ts +7 -16
  114. package/dist-types/ts3.4/commands/ListProtectionsCommand.d.ts +7 -16
  115. package/dist-types/ts3.4/commands/ListResourcesInProtectionGroupCommand.d.ts +7 -16
  116. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  117. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  118. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  119. package/dist-types/ts3.4/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +7 -16
  120. package/dist-types/ts3.4/commands/UpdateEmergencyContactSettingsCommand.d.ts +7 -16
  121. package/dist-types/ts3.4/commands/UpdateProtectionGroupCommand.d.ts +7 -16
  122. package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +7 -16
  123. package/dist-types/ts3.4/index.d.ts +1 -0
  124. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  125. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  126. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  127. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  128. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultShieldHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -1343,6 +1345,7 @@ const getRuntimeConfig$1 = (config) => {
1343
1345
  serviceTarget: "AWSShield_20160616",
1344
1346
  },
1345
1347
  serviceId: config?.serviceId ?? "Shield",
1348
+ sha256: config?.sha256 ?? Sha256,
1346
1349
  urlParser: config?.urlParser ?? parseUrl,
1347
1350
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1348
1351
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1376,7 +1379,6 @@ const getRuntimeConfig = (config) => {
1376
1379
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1377
1380
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1378
1381
  }, config),
1379
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1380
1382
  streamCollector: config?.streamCollector ?? streamCollector,
1381
1383
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1382
1384
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1464,436 +1466,116 @@ class ShieldClient extends Client {
1464
1466
  }
1465
1467
  }
1466
1468
 
1467
- class AssociateDRTLogBucketCommand extends Command
1468
- .classBuilder()
1469
- .ep(commonParams)
1470
- .m(function (Command, cs, config, o) {
1471
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1472
- })
1473
- .s("AWSShield_20160616", "AssociateDRTLogBucket", {})
1474
- .n("ShieldClient", "AssociateDRTLogBucketCommand")
1475
- .sc(AssociateDRTLogBucket$)
1476
- .build() {
1469
+ const command = makeBuilder(commonParams, "AWSShield_20160616", "ShieldClient", getEndpointPlugin);
1470
+ const _ep0 = {};
1471
+ const _mw0 = (Command, cs, config, o) => [];
1472
+
1473
+ class AssociateDRTLogBucketCommand extends command(_ep0, _mw0, "AssociateDRTLogBucket", AssociateDRTLogBucket$) {
1477
1474
  }
1478
1475
 
1479
- class AssociateDRTRoleCommand extends Command
1480
- .classBuilder()
1481
- .ep(commonParams)
1482
- .m(function (Command, cs, config, o) {
1483
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1484
- })
1485
- .s("AWSShield_20160616", "AssociateDRTRole", {})
1486
- .n("ShieldClient", "AssociateDRTRoleCommand")
1487
- .sc(AssociateDRTRole$)
1488
- .build() {
1476
+ class AssociateDRTRoleCommand extends command(_ep0, _mw0, "AssociateDRTRole", AssociateDRTRole$) {
1489
1477
  }
1490
1478
 
1491
- class AssociateHealthCheckCommand extends Command
1492
- .classBuilder()
1493
- .ep(commonParams)
1494
- .m(function (Command, cs, config, o) {
1495
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1496
- })
1497
- .s("AWSShield_20160616", "AssociateHealthCheck", {})
1498
- .n("ShieldClient", "AssociateHealthCheckCommand")
1499
- .sc(AssociateHealthCheck$)
1500
- .build() {
1479
+ class AssociateHealthCheckCommand extends command(_ep0, _mw0, "AssociateHealthCheck", AssociateHealthCheck$) {
1501
1480
  }
1502
1481
 
1503
- class AssociateProactiveEngagementDetailsCommand extends Command
1504
- .classBuilder()
1505
- .ep(commonParams)
1506
- .m(function (Command, cs, config, o) {
1507
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1508
- })
1509
- .s("AWSShield_20160616", "AssociateProactiveEngagementDetails", {})
1510
- .n("ShieldClient", "AssociateProactiveEngagementDetailsCommand")
1511
- .sc(AssociateProactiveEngagementDetails$)
1512
- .build() {
1482
+ class AssociateProactiveEngagementDetailsCommand extends command(_ep0, _mw0, "AssociateProactiveEngagementDetails", AssociateProactiveEngagementDetails$) {
1513
1483
  }
1514
1484
 
1515
- class CreateProtectionCommand extends Command
1516
- .classBuilder()
1517
- .ep(commonParams)
1518
- .m(function (Command, cs, config, o) {
1519
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1520
- })
1521
- .s("AWSShield_20160616", "CreateProtection", {})
1522
- .n("ShieldClient", "CreateProtectionCommand")
1523
- .sc(CreateProtection$)
1524
- .build() {
1485
+ class CreateProtectionCommand extends command(_ep0, _mw0, "CreateProtection", CreateProtection$) {
1525
1486
  }
1526
1487
 
1527
- class CreateProtectionGroupCommand extends Command
1528
- .classBuilder()
1529
- .ep(commonParams)
1530
- .m(function (Command, cs, config, o) {
1531
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1532
- })
1533
- .s("AWSShield_20160616", "CreateProtectionGroup", {})
1534
- .n("ShieldClient", "CreateProtectionGroupCommand")
1535
- .sc(CreateProtectionGroup$)
1536
- .build() {
1488
+ class CreateProtectionGroupCommand extends command(_ep0, _mw0, "CreateProtectionGroup", CreateProtectionGroup$) {
1537
1489
  }
1538
1490
 
1539
- class CreateSubscriptionCommand extends Command
1540
- .classBuilder()
1541
- .ep(commonParams)
1542
- .m(function (Command, cs, config, o) {
1543
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1544
- })
1545
- .s("AWSShield_20160616", "CreateSubscription", {})
1546
- .n("ShieldClient", "CreateSubscriptionCommand")
1547
- .sc(CreateSubscription$)
1548
- .build() {
1491
+ class CreateSubscriptionCommand extends command(_ep0, _mw0, "CreateSubscription", CreateSubscription$) {
1549
1492
  }
1550
1493
 
1551
- class DeleteProtectionCommand extends Command
1552
- .classBuilder()
1553
- .ep(commonParams)
1554
- .m(function (Command, cs, config, o) {
1555
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1556
- })
1557
- .s("AWSShield_20160616", "DeleteProtection", {})
1558
- .n("ShieldClient", "DeleteProtectionCommand")
1559
- .sc(DeleteProtection$)
1560
- .build() {
1494
+ class DeleteProtectionCommand extends command(_ep0, _mw0, "DeleteProtection", DeleteProtection$) {
1561
1495
  }
1562
1496
 
1563
- class DeleteProtectionGroupCommand extends Command
1564
- .classBuilder()
1565
- .ep(commonParams)
1566
- .m(function (Command, cs, config, o) {
1567
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1568
- })
1569
- .s("AWSShield_20160616", "DeleteProtectionGroup", {})
1570
- .n("ShieldClient", "DeleteProtectionGroupCommand")
1571
- .sc(DeleteProtectionGroup$)
1572
- .build() {
1497
+ class DeleteProtectionGroupCommand extends command(_ep0, _mw0, "DeleteProtectionGroup", DeleteProtectionGroup$) {
1573
1498
  }
1574
1499
 
1575
- class DeleteSubscriptionCommand extends Command
1576
- .classBuilder()
1577
- .ep(commonParams)
1578
- .m(function (Command, cs, config, o) {
1579
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1580
- })
1581
- .s("AWSShield_20160616", "DeleteSubscription", {})
1582
- .n("ShieldClient", "DeleteSubscriptionCommand")
1583
- .sc(DeleteSubscription$)
1584
- .build() {
1500
+ class DeleteSubscriptionCommand extends command(_ep0, _mw0, "DeleteSubscription", DeleteSubscription$) {
1585
1501
  }
1586
1502
 
1587
- class DescribeAttackCommand extends Command
1588
- .classBuilder()
1589
- .ep(commonParams)
1590
- .m(function (Command, cs, config, o) {
1591
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1592
- })
1593
- .s("AWSShield_20160616", "DescribeAttack", {})
1594
- .n("ShieldClient", "DescribeAttackCommand")
1595
- .sc(DescribeAttack$)
1596
- .build() {
1503
+ class DescribeAttackCommand extends command(_ep0, _mw0, "DescribeAttack", DescribeAttack$) {
1597
1504
  }
1598
1505
 
1599
- class DescribeAttackStatisticsCommand extends Command
1600
- .classBuilder()
1601
- .ep(commonParams)
1602
- .m(function (Command, cs, config, o) {
1603
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1604
- })
1605
- .s("AWSShield_20160616", "DescribeAttackStatistics", {})
1606
- .n("ShieldClient", "DescribeAttackStatisticsCommand")
1607
- .sc(DescribeAttackStatistics$)
1608
- .build() {
1506
+ class DescribeAttackStatisticsCommand extends command(_ep0, _mw0, "DescribeAttackStatistics", DescribeAttackStatistics$) {
1609
1507
  }
1610
1508
 
1611
- class DescribeDRTAccessCommand extends Command
1612
- .classBuilder()
1613
- .ep(commonParams)
1614
- .m(function (Command, cs, config, o) {
1615
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1616
- })
1617
- .s("AWSShield_20160616", "DescribeDRTAccess", {})
1618
- .n("ShieldClient", "DescribeDRTAccessCommand")
1619
- .sc(DescribeDRTAccess$)
1620
- .build() {
1509
+ class DescribeDRTAccessCommand extends command(_ep0, _mw0, "DescribeDRTAccess", DescribeDRTAccess$) {
1621
1510
  }
1622
1511
 
1623
- class DescribeEmergencyContactSettingsCommand extends Command
1624
- .classBuilder()
1625
- .ep(commonParams)
1626
- .m(function (Command, cs, config, o) {
1627
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1628
- })
1629
- .s("AWSShield_20160616", "DescribeEmergencyContactSettings", {})
1630
- .n("ShieldClient", "DescribeEmergencyContactSettingsCommand")
1631
- .sc(DescribeEmergencyContactSettings$)
1632
- .build() {
1512
+ class DescribeEmergencyContactSettingsCommand extends command(_ep0, _mw0, "DescribeEmergencyContactSettings", DescribeEmergencyContactSettings$) {
1633
1513
  }
1634
1514
 
1635
- class DescribeProtectionCommand extends Command
1636
- .classBuilder()
1637
- .ep(commonParams)
1638
- .m(function (Command, cs, config, o) {
1639
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1640
- })
1641
- .s("AWSShield_20160616", "DescribeProtection", {})
1642
- .n("ShieldClient", "DescribeProtectionCommand")
1643
- .sc(DescribeProtection$)
1644
- .build() {
1515
+ class DescribeProtectionCommand extends command(_ep0, _mw0, "DescribeProtection", DescribeProtection$) {
1645
1516
  }
1646
1517
 
1647
- class DescribeProtectionGroupCommand extends Command
1648
- .classBuilder()
1649
- .ep(commonParams)
1650
- .m(function (Command, cs, config, o) {
1651
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1652
- })
1653
- .s("AWSShield_20160616", "DescribeProtectionGroup", {})
1654
- .n("ShieldClient", "DescribeProtectionGroupCommand")
1655
- .sc(DescribeProtectionGroup$)
1656
- .build() {
1518
+ class DescribeProtectionGroupCommand extends command(_ep0, _mw0, "DescribeProtectionGroup", DescribeProtectionGroup$) {
1657
1519
  }
1658
1520
 
1659
- class DescribeSubscriptionCommand extends Command
1660
- .classBuilder()
1661
- .ep(commonParams)
1662
- .m(function (Command, cs, config, o) {
1663
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1664
- })
1665
- .s("AWSShield_20160616", "DescribeSubscription", {})
1666
- .n("ShieldClient", "DescribeSubscriptionCommand")
1667
- .sc(DescribeSubscription$)
1668
- .build() {
1521
+ class DescribeSubscriptionCommand extends command(_ep0, _mw0, "DescribeSubscription", DescribeSubscription$) {
1669
1522
  }
1670
1523
 
1671
- class DisableApplicationLayerAutomaticResponseCommand extends Command
1672
- .classBuilder()
1673
- .ep(commonParams)
1674
- .m(function (Command, cs, config, o) {
1675
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1676
- })
1677
- .s("AWSShield_20160616", "DisableApplicationLayerAutomaticResponse", {})
1678
- .n("ShieldClient", "DisableApplicationLayerAutomaticResponseCommand")
1679
- .sc(DisableApplicationLayerAutomaticResponse$)
1680
- .build() {
1524
+ class DisableApplicationLayerAutomaticResponseCommand extends command(_ep0, _mw0, "DisableApplicationLayerAutomaticResponse", DisableApplicationLayerAutomaticResponse$) {
1681
1525
  }
1682
1526
 
1683
- class DisableProactiveEngagementCommand extends Command
1684
- .classBuilder()
1685
- .ep(commonParams)
1686
- .m(function (Command, cs, config, o) {
1687
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1688
- })
1689
- .s("AWSShield_20160616", "DisableProactiveEngagement", {})
1690
- .n("ShieldClient", "DisableProactiveEngagementCommand")
1691
- .sc(DisableProactiveEngagement$)
1692
- .build() {
1527
+ class DisableProactiveEngagementCommand extends command(_ep0, _mw0, "DisableProactiveEngagement", DisableProactiveEngagement$) {
1693
1528
  }
1694
1529
 
1695
- class DisassociateDRTLogBucketCommand extends Command
1696
- .classBuilder()
1697
- .ep(commonParams)
1698
- .m(function (Command, cs, config, o) {
1699
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1700
- })
1701
- .s("AWSShield_20160616", "DisassociateDRTLogBucket", {})
1702
- .n("ShieldClient", "DisassociateDRTLogBucketCommand")
1703
- .sc(DisassociateDRTLogBucket$)
1704
- .build() {
1530
+ class DisassociateDRTLogBucketCommand extends command(_ep0, _mw0, "DisassociateDRTLogBucket", DisassociateDRTLogBucket$) {
1705
1531
  }
1706
1532
 
1707
- class DisassociateDRTRoleCommand extends Command
1708
- .classBuilder()
1709
- .ep(commonParams)
1710
- .m(function (Command, cs, config, o) {
1711
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1712
- })
1713
- .s("AWSShield_20160616", "DisassociateDRTRole", {})
1714
- .n("ShieldClient", "DisassociateDRTRoleCommand")
1715
- .sc(DisassociateDRTRole$)
1716
- .build() {
1533
+ class DisassociateDRTRoleCommand extends command(_ep0, _mw0, "DisassociateDRTRole", DisassociateDRTRole$) {
1717
1534
  }
1718
1535
 
1719
- class DisassociateHealthCheckCommand extends Command
1720
- .classBuilder()
1721
- .ep(commonParams)
1722
- .m(function (Command, cs, config, o) {
1723
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1724
- })
1725
- .s("AWSShield_20160616", "DisassociateHealthCheck", {})
1726
- .n("ShieldClient", "DisassociateHealthCheckCommand")
1727
- .sc(DisassociateHealthCheck$)
1728
- .build() {
1536
+ class DisassociateHealthCheckCommand extends command(_ep0, _mw0, "DisassociateHealthCheck", DisassociateHealthCheck$) {
1729
1537
  }
1730
1538
 
1731
- class EnableApplicationLayerAutomaticResponseCommand extends Command
1732
- .classBuilder()
1733
- .ep(commonParams)
1734
- .m(function (Command, cs, config, o) {
1735
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1736
- })
1737
- .s("AWSShield_20160616", "EnableApplicationLayerAutomaticResponse", {})
1738
- .n("ShieldClient", "EnableApplicationLayerAutomaticResponseCommand")
1739
- .sc(EnableApplicationLayerAutomaticResponse$)
1740
- .build() {
1539
+ class EnableApplicationLayerAutomaticResponseCommand extends command(_ep0, _mw0, "EnableApplicationLayerAutomaticResponse", EnableApplicationLayerAutomaticResponse$) {
1741
1540
  }
1742
1541
 
1743
- class EnableProactiveEngagementCommand extends Command
1744
- .classBuilder()
1745
- .ep(commonParams)
1746
- .m(function (Command, cs, config, o) {
1747
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1748
- })
1749
- .s("AWSShield_20160616", "EnableProactiveEngagement", {})
1750
- .n("ShieldClient", "EnableProactiveEngagementCommand")
1751
- .sc(EnableProactiveEngagement$)
1752
- .build() {
1542
+ class EnableProactiveEngagementCommand extends command(_ep0, _mw0, "EnableProactiveEngagement", EnableProactiveEngagement$) {
1753
1543
  }
1754
1544
 
1755
- class GetSubscriptionStateCommand extends Command
1756
- .classBuilder()
1757
- .ep(commonParams)
1758
- .m(function (Command, cs, config, o) {
1759
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1760
- })
1761
- .s("AWSShield_20160616", "GetSubscriptionState", {})
1762
- .n("ShieldClient", "GetSubscriptionStateCommand")
1763
- .sc(GetSubscriptionState$)
1764
- .build() {
1545
+ class GetSubscriptionStateCommand extends command(_ep0, _mw0, "GetSubscriptionState", GetSubscriptionState$) {
1765
1546
  }
1766
1547
 
1767
- class ListAttacksCommand extends Command
1768
- .classBuilder()
1769
- .ep(commonParams)
1770
- .m(function (Command, cs, config, o) {
1771
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1772
- })
1773
- .s("AWSShield_20160616", "ListAttacks", {})
1774
- .n("ShieldClient", "ListAttacksCommand")
1775
- .sc(ListAttacks$)
1776
- .build() {
1548
+ class ListAttacksCommand extends command(_ep0, _mw0, "ListAttacks", ListAttacks$) {
1777
1549
  }
1778
1550
 
1779
- class ListProtectionGroupsCommand extends Command
1780
- .classBuilder()
1781
- .ep(commonParams)
1782
- .m(function (Command, cs, config, o) {
1783
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1784
- })
1785
- .s("AWSShield_20160616", "ListProtectionGroups", {})
1786
- .n("ShieldClient", "ListProtectionGroupsCommand")
1787
- .sc(ListProtectionGroups$)
1788
- .build() {
1551
+ class ListProtectionGroupsCommand extends command(_ep0, _mw0, "ListProtectionGroups", ListProtectionGroups$) {
1789
1552
  }
1790
1553
 
1791
- class ListProtectionsCommand extends Command
1792
- .classBuilder()
1793
- .ep(commonParams)
1794
- .m(function (Command, cs, config, o) {
1795
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1796
- })
1797
- .s("AWSShield_20160616", "ListProtections", {})
1798
- .n("ShieldClient", "ListProtectionsCommand")
1799
- .sc(ListProtections$)
1800
- .build() {
1554
+ class ListProtectionsCommand extends command(_ep0, _mw0, "ListProtections", ListProtections$) {
1801
1555
  }
1802
1556
 
1803
- class ListResourcesInProtectionGroupCommand extends Command
1804
- .classBuilder()
1805
- .ep(commonParams)
1806
- .m(function (Command, cs, config, o) {
1807
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1808
- })
1809
- .s("AWSShield_20160616", "ListResourcesInProtectionGroup", {})
1810
- .n("ShieldClient", "ListResourcesInProtectionGroupCommand")
1811
- .sc(ListResourcesInProtectionGroup$)
1812
- .build() {
1557
+ class ListResourcesInProtectionGroupCommand extends command(_ep0, _mw0, "ListResourcesInProtectionGroup", ListResourcesInProtectionGroup$) {
1813
1558
  }
1814
1559
 
1815
- class ListTagsForResourceCommand extends Command
1816
- .classBuilder()
1817
- .ep(commonParams)
1818
- .m(function (Command, cs, config, o) {
1819
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1820
- })
1821
- .s("AWSShield_20160616", "ListTagsForResource", {})
1822
- .n("ShieldClient", "ListTagsForResourceCommand")
1823
- .sc(ListTagsForResource$)
1824
- .build() {
1560
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1825
1561
  }
1826
1562
 
1827
- class TagResourceCommand extends Command
1828
- .classBuilder()
1829
- .ep(commonParams)
1830
- .m(function (Command, cs, config, o) {
1831
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1832
- })
1833
- .s("AWSShield_20160616", "TagResource", {})
1834
- .n("ShieldClient", "TagResourceCommand")
1835
- .sc(TagResource$)
1836
- .build() {
1563
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1837
1564
  }
1838
1565
 
1839
- class UntagResourceCommand extends Command
1840
- .classBuilder()
1841
- .ep(commonParams)
1842
- .m(function (Command, cs, config, o) {
1843
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1844
- })
1845
- .s("AWSShield_20160616", "UntagResource", {})
1846
- .n("ShieldClient", "UntagResourceCommand")
1847
- .sc(UntagResource$)
1848
- .build() {
1566
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1849
1567
  }
1850
1568
 
1851
- class UpdateApplicationLayerAutomaticResponseCommand extends Command
1852
- .classBuilder()
1853
- .ep(commonParams)
1854
- .m(function (Command, cs, config, o) {
1855
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1856
- })
1857
- .s("AWSShield_20160616", "UpdateApplicationLayerAutomaticResponse", {})
1858
- .n("ShieldClient", "UpdateApplicationLayerAutomaticResponseCommand")
1859
- .sc(UpdateApplicationLayerAutomaticResponse$)
1860
- .build() {
1569
+ class UpdateApplicationLayerAutomaticResponseCommand extends command(_ep0, _mw0, "UpdateApplicationLayerAutomaticResponse", UpdateApplicationLayerAutomaticResponse$) {
1861
1570
  }
1862
1571
 
1863
- class UpdateEmergencyContactSettingsCommand extends Command
1864
- .classBuilder()
1865
- .ep(commonParams)
1866
- .m(function (Command, cs, config, o) {
1867
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1868
- })
1869
- .s("AWSShield_20160616", "UpdateEmergencyContactSettings", {})
1870
- .n("ShieldClient", "UpdateEmergencyContactSettingsCommand")
1871
- .sc(UpdateEmergencyContactSettings$)
1872
- .build() {
1572
+ class UpdateEmergencyContactSettingsCommand extends command(_ep0, _mw0, "UpdateEmergencyContactSettings", UpdateEmergencyContactSettings$) {
1873
1573
  }
1874
1574
 
1875
- class UpdateProtectionGroupCommand extends Command
1876
- .classBuilder()
1877
- .ep(commonParams)
1878
- .m(function (Command, cs, config, o) {
1879
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1880
- })
1881
- .s("AWSShield_20160616", "UpdateProtectionGroup", {})
1882
- .n("ShieldClient", "UpdateProtectionGroupCommand")
1883
- .sc(UpdateProtectionGroup$)
1884
- .build() {
1575
+ class UpdateProtectionGroupCommand extends command(_ep0, _mw0, "UpdateProtectionGroup", UpdateProtectionGroup$) {
1885
1576
  }
1886
1577
 
1887
- class UpdateSubscriptionCommand extends Command
1888
- .classBuilder()
1889
- .ep(commonParams)
1890
- .m(function (Command, cs, config, o) {
1891
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1892
- })
1893
- .s("AWSShield_20160616", "UpdateSubscription", {})
1894
- .n("ShieldClient", "UpdateSubscriptionCommand")
1895
- .sc(UpdateSubscription$)
1896
- .build() {
1578
+ class UpdateSubscriptionCommand extends command(_ep0, _mw0, "UpdateSubscription", UpdateSubscription$) {
1897
1579
  }
1898
1580
 
1899
1581
  const paginateListAttacks = createPaginator(ShieldClient, ListAttacksCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSShield_20160616", "ShieldClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssociateDRTLogBucket$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateDRTLogBucketCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSShield_20160616", "AssociateDRTLogBucket", {})
13
- .n("ShieldClient", "AssociateDRTLogBucketCommand")
14
- .sc(AssociateDRTLogBucket$)
15
- .build() {
3
+ export class AssociateDRTLogBucketCommand extends command(_ep0, _mw0, "AssociateDRTLogBucket", AssociateDRTLogBucket$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssociateDRTRole$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateDRTRoleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSShield_20160616", "AssociateDRTRole", {})
13
- .n("ShieldClient", "AssociateDRTRoleCommand")
14
- .sc(AssociateDRTRole$)
15
- .build() {
3
+ export class AssociateDRTRoleCommand extends command(_ep0, _mw0, "AssociateDRTRole", AssociateDRTRole$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssociateHealthCheck$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateHealthCheckCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSShield_20160616", "AssociateHealthCheck", {})
13
- .n("ShieldClient", "AssociateHealthCheckCommand")
14
- .sc(AssociateHealthCheck$)
15
- .build() {
3
+ export class AssociateHealthCheckCommand extends command(_ep0, _mw0, "AssociateHealthCheck", AssociateHealthCheck$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssociateProactiveEngagementDetails$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateProactiveEngagementDetailsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSShield_20160616", "AssociateProactiveEngagementDetails", {})
13
- .n("ShieldClient", "AssociateProactiveEngagementDetailsCommand")
14
- .sc(AssociateProactiveEngagementDetails$)
15
- .build() {
3
+ export class AssociateProactiveEngagementDetailsCommand extends command(_ep0, _mw0, "AssociateProactiveEngagementDetails", AssociateProactiveEngagementDetails$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateProtection$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateProtectionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSShield_20160616", "CreateProtection", {})
13
- .n("ShieldClient", "CreateProtectionCommand")
14
- .sc(CreateProtection$)
15
- .build() {
3
+ export class CreateProtectionCommand extends command(_ep0, _mw0, "CreateProtection", CreateProtection$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateProtectionGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateProtectionGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSShield_20160616", "CreateProtectionGroup", {})
13
- .n("ShieldClient", "CreateProtectionGroupCommand")
14
- .sc(CreateProtectionGroup$)
15
- .build() {
3
+ export class CreateProtectionGroupCommand extends command(_ep0, _mw0, "CreateProtectionGroup", CreateProtectionGroup$) {
16
4
  }