@aws-sdk/client-shield 3.40.0 → 3.44.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 (67) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/Shield.js +45 -0
  3. package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +36 -0
  4. package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +36 -0
  5. package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoints.js +8 -0
  8. package/dist-cjs/models/models_0.js +74 -9
  9. package/dist-cjs/protocols/Aws_json1_1.js +363 -2
  10. package/dist-es/Shield.js +45 -0
  11. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +39 -0
  12. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +39 -0
  13. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +39 -0
  14. package/dist-es/commands/index.js +3 -0
  15. package/dist-es/endpoints.js +8 -0
  16. package/dist-es/models/models_0.js +49 -4
  17. package/dist-es/protocols/Aws_json1_1.js +430 -50
  18. package/dist-types/Shield.d.ts +50 -12
  19. package/dist-types/ShieldClient.d.ts +5 -2
  20. package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +2 -2
  21. package/dist-types/commands/AssociateDRTRoleCommand.d.ts +5 -4
  22. package/dist-types/commands/AssociateHealthCheckCommand.d.ts +3 -3
  23. package/dist-types/commands/AssociateProactiveEngagementDetailsCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateProtectionCommand.d.ts +7 -3
  25. package/dist-types/commands/CreateProtectionGroupCommand.d.ts +1 -1
  26. package/dist-types/commands/CreateSubscriptionCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteProtectionCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteProtectionGroupCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteSubscriptionCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeAttackCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeAttackStatisticsCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeDRTAccessCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeEmergencyContactSettingsCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeProtectionCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeProtectionGroupCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeSubscriptionCommand.d.ts +1 -1
  37. package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +36 -0
  38. package/dist-types/commands/DisableProactiveEngagementCommand.d.ts +1 -1
  39. package/dist-types/commands/DisassociateDRTLogBucketCommand.d.ts +1 -2
  40. package/dist-types/commands/DisassociateDRTRoleCommand.d.ts +1 -2
  41. package/dist-types/commands/DisassociateHealthCheckCommand.d.ts +3 -3
  42. package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +48 -0
  43. package/dist-types/commands/EnableProactiveEngagementCommand.d.ts +1 -1
  44. package/dist-types/commands/GetSubscriptionStateCommand.d.ts +1 -1
  45. package/dist-types/commands/ListAttacksCommand.d.ts +1 -1
  46. package/dist-types/commands/ListProtectionGroupsCommand.d.ts +1 -1
  47. package/dist-types/commands/ListProtectionsCommand.d.ts +1 -1
  48. package/dist-types/commands/ListResourcesInProtectionGroupCommand.d.ts +1 -1
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  51. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +35 -0
  53. package/dist-types/commands/UpdateEmergencyContactSettingsCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateProtectionGroupCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateSubscriptionCommand.d.ts +1 -1
  56. package/dist-types/commands/index.d.ts +3 -0
  57. package/dist-types/models/models_0.d.ts +260 -60
  58. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  59. package/dist-types/ts3.4/Shield.d.ts +15 -0
  60. package/dist-types/ts3.4/ShieldClient.d.ts +5 -2
  61. package/dist-types/ts3.4/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +98 -10
  66. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
  67. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1DescribeSubscriptionCommand = exports.deserializeAws_json1_1DescribeProtectionGroupCommand = exports.deserializeAws_json1_1DescribeProtectionCommand = exports.deserializeAws_json1_1DescribeEmergencyContactSettingsCommand = exports.deserializeAws_json1_1DescribeDRTAccessCommand = exports.deserializeAws_json1_1DescribeAttackStatisticsCommand = exports.deserializeAws_json1_1DescribeAttackCommand = exports.deserializeAws_json1_1DeleteSubscriptionCommand = exports.deserializeAws_json1_1DeleteProtectionGroupCommand = exports.deserializeAws_json1_1DeleteProtectionCommand = exports.deserializeAws_json1_1CreateSubscriptionCommand = exports.deserializeAws_json1_1CreateProtectionGroupCommand = exports.deserializeAws_json1_1CreateProtectionCommand = exports.deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand = exports.deserializeAws_json1_1AssociateHealthCheckCommand = exports.deserializeAws_json1_1AssociateDRTRoleCommand = exports.deserializeAws_json1_1AssociateDRTLogBucketCommand = exports.serializeAws_json1_1UpdateSubscriptionCommand = exports.serializeAws_json1_1UpdateProtectionGroupCommand = exports.serializeAws_json1_1UpdateEmergencyContactSettingsCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListResourcesInProtectionGroupCommand = exports.serializeAws_json1_1ListProtectionsCommand = exports.serializeAws_json1_1ListProtectionGroupsCommand = exports.serializeAws_json1_1ListAttacksCommand = exports.serializeAws_json1_1GetSubscriptionStateCommand = exports.serializeAws_json1_1EnableProactiveEngagementCommand = exports.serializeAws_json1_1DisassociateHealthCheckCommand = exports.serializeAws_json1_1DisassociateDRTRoleCommand = exports.serializeAws_json1_1DisassociateDRTLogBucketCommand = exports.serializeAws_json1_1DisableProactiveEngagementCommand = exports.serializeAws_json1_1DescribeSubscriptionCommand = exports.serializeAws_json1_1DescribeProtectionGroupCommand = exports.serializeAws_json1_1DescribeProtectionCommand = exports.serializeAws_json1_1DescribeEmergencyContactSettingsCommand = exports.serializeAws_json1_1DescribeDRTAccessCommand = exports.serializeAws_json1_1DescribeAttackStatisticsCommand = exports.serializeAws_json1_1DescribeAttackCommand = exports.serializeAws_json1_1DeleteSubscriptionCommand = exports.serializeAws_json1_1DeleteProtectionGroupCommand = exports.serializeAws_json1_1DeleteProtectionCommand = exports.serializeAws_json1_1CreateSubscriptionCommand = exports.serializeAws_json1_1CreateProtectionGroupCommand = exports.serializeAws_json1_1CreateProtectionCommand = exports.serializeAws_json1_1AssociateProactiveEngagementDetailsCommand = exports.serializeAws_json1_1AssociateHealthCheckCommand = exports.serializeAws_json1_1AssociateDRTRoleCommand = exports.serializeAws_json1_1AssociateDRTLogBucketCommand = void 0;
4
- exports.deserializeAws_json1_1UpdateSubscriptionCommand = exports.deserializeAws_json1_1UpdateProtectionGroupCommand = exports.deserializeAws_json1_1UpdateEmergencyContactSettingsCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourcesInProtectionGroupCommand = exports.deserializeAws_json1_1ListProtectionsCommand = exports.deserializeAws_json1_1ListProtectionGroupsCommand = exports.deserializeAws_json1_1ListAttacksCommand = exports.deserializeAws_json1_1GetSubscriptionStateCommand = exports.deserializeAws_json1_1EnableProactiveEngagementCommand = exports.deserializeAws_json1_1DisassociateHealthCheckCommand = exports.deserializeAws_json1_1DisassociateDRTRoleCommand = exports.deserializeAws_json1_1DisassociateDRTLogBucketCommand = exports.deserializeAws_json1_1DisableProactiveEngagementCommand = void 0;
3
+ exports.deserializeAws_json1_1DescribeEmergencyContactSettingsCommand = exports.deserializeAws_json1_1DescribeDRTAccessCommand = exports.deserializeAws_json1_1DescribeAttackStatisticsCommand = exports.deserializeAws_json1_1DescribeAttackCommand = exports.deserializeAws_json1_1DeleteSubscriptionCommand = exports.deserializeAws_json1_1DeleteProtectionGroupCommand = exports.deserializeAws_json1_1DeleteProtectionCommand = exports.deserializeAws_json1_1CreateSubscriptionCommand = exports.deserializeAws_json1_1CreateProtectionGroupCommand = exports.deserializeAws_json1_1CreateProtectionCommand = exports.deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand = exports.deserializeAws_json1_1AssociateHealthCheckCommand = exports.deserializeAws_json1_1AssociateDRTRoleCommand = exports.deserializeAws_json1_1AssociateDRTLogBucketCommand = exports.serializeAws_json1_1UpdateSubscriptionCommand = exports.serializeAws_json1_1UpdateProtectionGroupCommand = exports.serializeAws_json1_1UpdateEmergencyContactSettingsCommand = exports.serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListResourcesInProtectionGroupCommand = exports.serializeAws_json1_1ListProtectionsCommand = exports.serializeAws_json1_1ListProtectionGroupsCommand = exports.serializeAws_json1_1ListAttacksCommand = exports.serializeAws_json1_1GetSubscriptionStateCommand = exports.serializeAws_json1_1EnableProactiveEngagementCommand = exports.serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = exports.serializeAws_json1_1DisassociateHealthCheckCommand = exports.serializeAws_json1_1DisassociateDRTRoleCommand = exports.serializeAws_json1_1DisassociateDRTLogBucketCommand = exports.serializeAws_json1_1DisableProactiveEngagementCommand = exports.serializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand = exports.serializeAws_json1_1DescribeSubscriptionCommand = exports.serializeAws_json1_1DescribeProtectionGroupCommand = exports.serializeAws_json1_1DescribeProtectionCommand = exports.serializeAws_json1_1DescribeEmergencyContactSettingsCommand = exports.serializeAws_json1_1DescribeDRTAccessCommand = exports.serializeAws_json1_1DescribeAttackStatisticsCommand = exports.serializeAws_json1_1DescribeAttackCommand = exports.serializeAws_json1_1DeleteSubscriptionCommand = exports.serializeAws_json1_1DeleteProtectionGroupCommand = exports.serializeAws_json1_1DeleteProtectionCommand = exports.serializeAws_json1_1CreateSubscriptionCommand = exports.serializeAws_json1_1CreateProtectionGroupCommand = exports.serializeAws_json1_1CreateProtectionCommand = exports.serializeAws_json1_1AssociateProactiveEngagementDetailsCommand = exports.serializeAws_json1_1AssociateHealthCheckCommand = exports.serializeAws_json1_1AssociateDRTRoleCommand = exports.serializeAws_json1_1AssociateDRTLogBucketCommand = void 0;
4
+ exports.deserializeAws_json1_1UpdateSubscriptionCommand = exports.deserializeAws_json1_1UpdateProtectionGroupCommand = exports.deserializeAws_json1_1UpdateEmergencyContactSettingsCommand = exports.deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourcesInProtectionGroupCommand = exports.deserializeAws_json1_1ListProtectionsCommand = exports.deserializeAws_json1_1ListProtectionGroupsCommand = exports.deserializeAws_json1_1ListAttacksCommand = exports.deserializeAws_json1_1GetSubscriptionStateCommand = exports.deserializeAws_json1_1EnableProactiveEngagementCommand = exports.deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = exports.deserializeAws_json1_1DisassociateHealthCheckCommand = exports.deserializeAws_json1_1DisassociateDRTRoleCommand = exports.deserializeAws_json1_1DisassociateDRTLogBucketCommand = exports.deserializeAws_json1_1DisableProactiveEngagementCommand = exports.deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand = exports.deserializeAws_json1_1DescribeSubscriptionCommand = exports.deserializeAws_json1_1DescribeProtectionGroupCommand = exports.deserializeAws_json1_1DescribeProtectionCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const serializeAws_json1_1AssociateDRTLogBucketCommand = async (input, context) => {
@@ -174,6 +174,16 @@ const serializeAws_json1_1DescribeSubscriptionCommand = async (input, context) =
174
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
175
  };
176
176
  exports.serializeAws_json1_1DescribeSubscriptionCommand = serializeAws_json1_1DescribeSubscriptionCommand;
177
+ const serializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand = async (input, context) => {
178
+ const headers = {
179
+ "content-type": "application/x-amz-json-1.1",
180
+ "x-amz-target": "AWSShield_20160616.DisableApplicationLayerAutomaticResponse",
181
+ };
182
+ let body;
183
+ body = JSON.stringify(serializeAws_json1_1DisableApplicationLayerAutomaticResponseRequest(input, context));
184
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
+ };
186
+ exports.serializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand = serializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand;
177
187
  const serializeAws_json1_1DisableProactiveEngagementCommand = async (input, context) => {
178
188
  const headers = {
179
189
  "content-type": "application/x-amz-json-1.1",
@@ -214,6 +224,16 @@ const serializeAws_json1_1DisassociateHealthCheckCommand = async (input, context
214
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
225
  };
216
226
  exports.serializeAws_json1_1DisassociateHealthCheckCommand = serializeAws_json1_1DisassociateHealthCheckCommand;
227
+ const serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = async (input, context) => {
228
+ const headers = {
229
+ "content-type": "application/x-amz-json-1.1",
230
+ "x-amz-target": "AWSShield_20160616.EnableApplicationLayerAutomaticResponse",
231
+ };
232
+ let body;
233
+ body = JSON.stringify(serializeAws_json1_1EnableApplicationLayerAutomaticResponseRequest(input, context));
234
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
235
+ };
236
+ exports.serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand;
217
237
  const serializeAws_json1_1EnableProactiveEngagementCommand = async (input, context) => {
218
238
  const headers = {
219
239
  "content-type": "application/x-amz-json-1.1",
@@ -304,6 +324,16 @@ const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
304
324
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
325
  };
306
326
  exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
327
+ const serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = async (input, context) => {
328
+ const headers = {
329
+ "content-type": "application/x-amz-json-1.1",
330
+ "x-amz-target": "AWSShield_20160616.UpdateApplicationLayerAutomaticResponse",
331
+ };
332
+ let body;
333
+ body = JSON.stringify(serializeAws_json1_1UpdateApplicationLayerAutomaticResponseRequest(input, context));
334
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
+ };
336
+ exports.serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand;
307
337
  const serializeAws_json1_1UpdateEmergencyContactSettingsCommand = async (input, context) => {
308
338
  const headers = {
309
339
  "content-type": "application/x-amz-json-1.1",
@@ -563,6 +593,14 @@ const deserializeAws_json1_1AssociateHealthCheckCommandError = async (output, co
563
593
  $metadata: deserializeMetadata(output),
564
594
  };
565
595
  break;
596
+ case "InvalidResourceException":
597
+ case "com.amazonaws.shield#InvalidResourceException":
598
+ response = {
599
+ ...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
600
+ name: errorCode,
601
+ $metadata: deserializeMetadata(output),
602
+ };
603
+ break;
566
604
  case "LimitsExceededException":
567
605
  case "com.amazonaws.shield#LimitsExceededException":
568
606
  response = {
@@ -1501,6 +1539,85 @@ const deserializeAws_json1_1DescribeSubscriptionCommandError = async (output, co
1501
1539
  delete response.Message;
1502
1540
  return Promise.reject(Object.assign(new Error(message), response));
1503
1541
  };
1542
+ const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand = async (output, context) => {
1543
+ if (output.statusCode >= 300) {
1544
+ return deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommandError(output, context);
1545
+ }
1546
+ const data = await parseBody(output.body, context);
1547
+ let contents = {};
1548
+ contents = deserializeAws_json1_1DisableApplicationLayerAutomaticResponseResponse(data, context);
1549
+ const response = {
1550
+ $metadata: deserializeMetadata(output),
1551
+ ...contents,
1552
+ };
1553
+ return Promise.resolve(response);
1554
+ };
1555
+ exports.deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand = deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand;
1556
+ const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
1557
+ const parsedOutput = {
1558
+ ...output,
1559
+ body: await parseBody(output.body, context),
1560
+ };
1561
+ let response;
1562
+ let errorCode = "UnknownError";
1563
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1564
+ switch (errorCode) {
1565
+ case "InternalErrorException":
1566
+ case "com.amazonaws.shield#InternalErrorException":
1567
+ response = {
1568
+ ...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
1569
+ name: errorCode,
1570
+ $metadata: deserializeMetadata(output),
1571
+ };
1572
+ break;
1573
+ case "InvalidOperationException":
1574
+ case "com.amazonaws.shield#InvalidOperationException":
1575
+ response = {
1576
+ ...(await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context)),
1577
+ name: errorCode,
1578
+ $metadata: deserializeMetadata(output),
1579
+ };
1580
+ break;
1581
+ case "InvalidParameterException":
1582
+ case "com.amazonaws.shield#InvalidParameterException":
1583
+ response = {
1584
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
1585
+ name: errorCode,
1586
+ $metadata: deserializeMetadata(output),
1587
+ };
1588
+ break;
1589
+ case "OptimisticLockException":
1590
+ case "com.amazonaws.shield#OptimisticLockException":
1591
+ response = {
1592
+ ...(await deserializeAws_json1_1OptimisticLockExceptionResponse(parsedOutput, context)),
1593
+ name: errorCode,
1594
+ $metadata: deserializeMetadata(output),
1595
+ };
1596
+ break;
1597
+ case "ResourceNotFoundException":
1598
+ case "com.amazonaws.shield#ResourceNotFoundException":
1599
+ response = {
1600
+ ...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1601
+ name: errorCode,
1602
+ $metadata: deserializeMetadata(output),
1603
+ };
1604
+ break;
1605
+ default:
1606
+ const parsedBody = parsedOutput.body;
1607
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1608
+ response = {
1609
+ ...parsedBody,
1610
+ name: `${errorCode}`,
1611
+ message: parsedBody.message || parsedBody.Message || errorCode,
1612
+ $fault: "client",
1613
+ $metadata: deserializeMetadata(output),
1614
+ };
1615
+ }
1616
+ const message = response.message || response.Message || errorCode;
1617
+ response.message = message;
1618
+ delete response.Message;
1619
+ return Promise.reject(Object.assign(new Error(message), response));
1620
+ };
1504
1621
  const deserializeAws_json1_1DisableProactiveEngagementCommand = async (output, context) => {
1505
1622
  if (output.statusCode >= 300) {
1506
1623
  return deserializeAws_json1_1DisableProactiveEngagementCommandError(output, context);
@@ -1777,6 +1894,101 @@ const deserializeAws_json1_1DisassociateHealthCheckCommandError = async (output,
1777
1894
  $metadata: deserializeMetadata(output),
1778
1895
  };
1779
1896
  break;
1897
+ case "InvalidResourceException":
1898
+ case "com.amazonaws.shield#InvalidResourceException":
1899
+ response = {
1900
+ ...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
1901
+ name: errorCode,
1902
+ $metadata: deserializeMetadata(output),
1903
+ };
1904
+ break;
1905
+ case "OptimisticLockException":
1906
+ case "com.amazonaws.shield#OptimisticLockException":
1907
+ response = {
1908
+ ...(await deserializeAws_json1_1OptimisticLockExceptionResponse(parsedOutput, context)),
1909
+ name: errorCode,
1910
+ $metadata: deserializeMetadata(output),
1911
+ };
1912
+ break;
1913
+ case "ResourceNotFoundException":
1914
+ case "com.amazonaws.shield#ResourceNotFoundException":
1915
+ response = {
1916
+ ...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1917
+ name: errorCode,
1918
+ $metadata: deserializeMetadata(output),
1919
+ };
1920
+ break;
1921
+ default:
1922
+ const parsedBody = parsedOutput.body;
1923
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1924
+ response = {
1925
+ ...parsedBody,
1926
+ name: `${errorCode}`,
1927
+ message: parsedBody.message || parsedBody.Message || errorCode,
1928
+ $fault: "client",
1929
+ $metadata: deserializeMetadata(output),
1930
+ };
1931
+ }
1932
+ const message = response.message || response.Message || errorCode;
1933
+ response.message = message;
1934
+ delete response.Message;
1935
+ return Promise.reject(Object.assign(new Error(message), response));
1936
+ };
1937
+ const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = async (output, context) => {
1938
+ if (output.statusCode >= 300) {
1939
+ return deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommandError(output, context);
1940
+ }
1941
+ const data = await parseBody(output.body, context);
1942
+ let contents = {};
1943
+ contents = deserializeAws_json1_1EnableApplicationLayerAutomaticResponseResponse(data, context);
1944
+ const response = {
1945
+ $metadata: deserializeMetadata(output),
1946
+ ...contents,
1947
+ };
1948
+ return Promise.resolve(response);
1949
+ };
1950
+ exports.deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand;
1951
+ const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
1952
+ const parsedOutput = {
1953
+ ...output,
1954
+ body: await parseBody(output.body, context),
1955
+ };
1956
+ let response;
1957
+ let errorCode = "UnknownError";
1958
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1959
+ switch (errorCode) {
1960
+ case "InternalErrorException":
1961
+ case "com.amazonaws.shield#InternalErrorException":
1962
+ response = {
1963
+ ...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
1964
+ name: errorCode,
1965
+ $metadata: deserializeMetadata(output),
1966
+ };
1967
+ break;
1968
+ case "InvalidOperationException":
1969
+ case "com.amazonaws.shield#InvalidOperationException":
1970
+ response = {
1971
+ ...(await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context)),
1972
+ name: errorCode,
1973
+ $metadata: deserializeMetadata(output),
1974
+ };
1975
+ break;
1976
+ case "InvalidParameterException":
1977
+ case "com.amazonaws.shield#InvalidParameterException":
1978
+ response = {
1979
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
1980
+ name: errorCode,
1981
+ $metadata: deserializeMetadata(output),
1982
+ };
1983
+ break;
1984
+ case "LimitsExceededException":
1985
+ case "com.amazonaws.shield#LimitsExceededException":
1986
+ response = {
1987
+ ...(await deserializeAws_json1_1LimitsExceededExceptionResponse(parsedOutput, context)),
1988
+ name: errorCode,
1989
+ $metadata: deserializeMetadata(output),
1990
+ };
1991
+ break;
1780
1992
  case "OptimisticLockException":
1781
1993
  case "com.amazonaws.shield#OptimisticLockException":
1782
1994
  response = {
@@ -2392,6 +2604,85 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
2392
2604
  delete response.Message;
2393
2605
  return Promise.reject(Object.assign(new Error(message), response));
2394
2606
  };
2607
+ const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = async (output, context) => {
2608
+ if (output.statusCode >= 300) {
2609
+ return deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommandError(output, context);
2610
+ }
2611
+ const data = await parseBody(output.body, context);
2612
+ let contents = {};
2613
+ contents = deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseResponse(data, context);
2614
+ const response = {
2615
+ $metadata: deserializeMetadata(output),
2616
+ ...contents,
2617
+ };
2618
+ return Promise.resolve(response);
2619
+ };
2620
+ exports.deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand;
2621
+ const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommandError = async (output, context) => {
2622
+ const parsedOutput = {
2623
+ ...output,
2624
+ body: await parseBody(output.body, context),
2625
+ };
2626
+ let response;
2627
+ let errorCode = "UnknownError";
2628
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2629
+ switch (errorCode) {
2630
+ case "InternalErrorException":
2631
+ case "com.amazonaws.shield#InternalErrorException":
2632
+ response = {
2633
+ ...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
2634
+ name: errorCode,
2635
+ $metadata: deserializeMetadata(output),
2636
+ };
2637
+ break;
2638
+ case "InvalidOperationException":
2639
+ case "com.amazonaws.shield#InvalidOperationException":
2640
+ response = {
2641
+ ...(await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context)),
2642
+ name: errorCode,
2643
+ $metadata: deserializeMetadata(output),
2644
+ };
2645
+ break;
2646
+ case "InvalidParameterException":
2647
+ case "com.amazonaws.shield#InvalidParameterException":
2648
+ response = {
2649
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
2650
+ name: errorCode,
2651
+ $metadata: deserializeMetadata(output),
2652
+ };
2653
+ break;
2654
+ case "OptimisticLockException":
2655
+ case "com.amazonaws.shield#OptimisticLockException":
2656
+ response = {
2657
+ ...(await deserializeAws_json1_1OptimisticLockExceptionResponse(parsedOutput, context)),
2658
+ name: errorCode,
2659
+ $metadata: deserializeMetadata(output),
2660
+ };
2661
+ break;
2662
+ case "ResourceNotFoundException":
2663
+ case "com.amazonaws.shield#ResourceNotFoundException":
2664
+ response = {
2665
+ ...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2666
+ name: errorCode,
2667
+ $metadata: deserializeMetadata(output),
2668
+ };
2669
+ break;
2670
+ default:
2671
+ const parsedBody = parsedOutput.body;
2672
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2673
+ response = {
2674
+ ...parsedBody,
2675
+ name: `${errorCode}`,
2676
+ message: parsedBody.message || parsedBody.Message || errorCode,
2677
+ $fault: "client",
2678
+ $metadata: deserializeMetadata(output),
2679
+ };
2680
+ }
2681
+ const message = response.message || response.Message || errorCode;
2682
+ response.message = message;
2683
+ delete response.Message;
2684
+ return Promise.reject(Object.assign(new Error(message), response));
2685
+ };
2395
2686
  const deserializeAws_json1_1UpdateEmergencyContactSettingsCommand = async (output, context) => {
2396
2687
  if (output.statusCode >= 300) {
2397
2688
  return deserializeAws_json1_1UpdateEmergencyContactSettingsCommandError(output, context);
@@ -2781,6 +3072,12 @@ const serializeAws_json1_1AssociateProactiveEngagementDetailsRequest = (input, c
2781
3072
  }),
2782
3073
  };
2783
3074
  };
3075
+ const serializeAws_json1_1BlockAction = (input, context) => {
3076
+ return {};
3077
+ };
3078
+ const serializeAws_json1_1CountAction = (input, context) => {
3079
+ return {};
3080
+ };
2784
3081
  const serializeAws_json1_1CreateProtectionGroupRequest = (input, context) => {
2785
3082
  return {
2786
3083
  ...(input.Aggregation !== undefined && input.Aggregation !== null && { Aggregation: input.Aggregation }),
@@ -2846,6 +3143,11 @@ const serializeAws_json1_1DescribeProtectionRequest = (input, context) => {
2846
3143
  const serializeAws_json1_1DescribeSubscriptionRequest = (input, context) => {
2847
3144
  return {};
2848
3145
  };
3146
+ const serializeAws_json1_1DisableApplicationLayerAutomaticResponseRequest = (input, context) => {
3147
+ return {
3148
+ ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3149
+ };
3150
+ };
2849
3151
  const serializeAws_json1_1DisableProactiveEngagementRequest = (input, context) => {
2850
3152
  return {};
2851
3153
  };
@@ -2881,6 +3183,13 @@ const serializeAws_json1_1EmergencyContactList = (input, context) => {
2881
3183
  return serializeAws_json1_1EmergencyContact(entry, context);
2882
3184
  });
2883
3185
  };
3186
+ const serializeAws_json1_1EnableApplicationLayerAutomaticResponseRequest = (input, context) => {
3187
+ return {
3188
+ ...(input.Action !== undefined &&
3189
+ input.Action !== null && { Action: serializeAws_json1_1ResponseAction(input.Action, context) }),
3190
+ ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3191
+ };
3192
+ };
2884
3193
  const serializeAws_json1_1EnableProactiveEngagementRequest = (input, context) => {
2885
3194
  return {};
2886
3195
  };
@@ -2946,6 +3255,14 @@ const serializeAws_json1_1ResourceArnFilterList = (input, context) => {
2946
3255
  return entry;
2947
3256
  });
2948
3257
  };
3258
+ const serializeAws_json1_1ResponseAction = (input, context) => {
3259
+ return {
3260
+ ...(input.Block !== undefined &&
3261
+ input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3262
+ ...(input.Count !== undefined &&
3263
+ input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3264
+ };
3265
+ };
2949
3266
  const serializeAws_json1_1Tag = (input, context) => {
2950
3267
  return {
2951
3268
  ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
@@ -2993,6 +3310,13 @@ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
2993
3310
  input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
2994
3311
  };
2995
3312
  };
3313
+ const serializeAws_json1_1UpdateApplicationLayerAutomaticResponseRequest = (input, context) => {
3314
+ return {
3315
+ ...(input.Action !== undefined &&
3316
+ input.Action !== null && { Action: serializeAws_json1_1ResponseAction(input.Action, context) }),
3317
+ ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3318
+ };
3319
+ };
2996
3320
  const serializeAws_json1_1UpdateEmergencyContactSettingsRequest = (input, context) => {
2997
3321
  return {
2998
3322
  ...(input.EmergencyContactList !== undefined &&
@@ -3027,6 +3351,14 @@ const deserializeAws_json1_1AccessDeniedForDependencyException = (output, contex
3027
3351
  message: smithy_client_1.expectString(output.message),
3028
3352
  };
3029
3353
  };
3354
+ const deserializeAws_json1_1ApplicationLayerAutomaticResponseConfiguration = (output, context) => {
3355
+ return {
3356
+ Action: output.Action !== undefined && output.Action !== null
3357
+ ? deserializeAws_json1_1ResponseAction(output.Action, context)
3358
+ : undefined,
3359
+ Status: smithy_client_1.expectString(output.Status),
3360
+ };
3361
+ };
3030
3362
  const deserializeAws_json1_1AssociateDRTLogBucketResponse = (output, context) => {
3031
3363
  return {};
3032
3364
  };
@@ -3160,12 +3492,18 @@ const deserializeAws_json1_1AttackVolumeStatistics = (output, context) => {
3160
3492
  Max: smithy_client_1.limitedParseDouble(output.Max),
3161
3493
  };
3162
3494
  };
3495
+ const deserializeAws_json1_1BlockAction = (output, context) => {
3496
+ return {};
3497
+ };
3163
3498
  const deserializeAws_json1_1Contributor = (output, context) => {
3164
3499
  return {
3165
3500
  Name: smithy_client_1.expectString(output.Name),
3166
3501
  Value: smithy_client_1.expectLong(output.Value),
3167
3502
  };
3168
3503
  };
3504
+ const deserializeAws_json1_1CountAction = (output, context) => {
3505
+ return {};
3506
+ };
3169
3507
  const deserializeAws_json1_1CreateProtectionGroupResponse = (output, context) => {
3170
3508
  return {};
3171
3509
  };
@@ -3239,6 +3577,9 @@ const deserializeAws_json1_1DescribeSubscriptionResponse = (output, context) =>
3239
3577
  : undefined,
3240
3578
  };
3241
3579
  };
3580
+ const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseResponse = (output, context) => {
3581
+ return {};
3582
+ };
3242
3583
  const deserializeAws_json1_1DisableProactiveEngagementResponse = (output, context) => {
3243
3584
  return {};
3244
3585
  };
@@ -3268,6 +3609,9 @@ const deserializeAws_json1_1EmergencyContactList = (output, context) => {
3268
3609
  return deserializeAws_json1_1EmergencyContact(entry, context);
3269
3610
  });
3270
3611
  };
3612
+ const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseResponse = (output, context) => {
3613
+ return {};
3614
+ };
3271
3615
  const deserializeAws_json1_1EnableProactiveEngagementResponse = (output, context) => {
3272
3616
  return {};
3273
3617
  };
@@ -3419,6 +3763,10 @@ const deserializeAws_json1_1OptimisticLockException = (output, context) => {
3419
3763
  };
3420
3764
  const deserializeAws_json1_1Protection = (output, context) => {
3421
3765
  return {
3766
+ ApplicationLayerAutomaticResponseConfiguration: output.ApplicationLayerAutomaticResponseConfiguration !== undefined &&
3767
+ output.ApplicationLayerAutomaticResponseConfiguration !== null
3768
+ ? deserializeAws_json1_1ApplicationLayerAutomaticResponseConfiguration(output.ApplicationLayerAutomaticResponseConfiguration, context)
3769
+ : undefined,
3422
3770
  HealthCheckIds: output.HealthCheckIds !== undefined && output.HealthCheckIds !== null
3423
3771
  ? deserializeAws_json1_1HealthCheckIds(output.HealthCheckIds, context)
3424
3772
  : undefined,
@@ -3519,6 +3867,16 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
3519
3867
  resourceType: smithy_client_1.expectString(output.resourceType),
3520
3868
  };
3521
3869
  };
3870
+ const deserializeAws_json1_1ResponseAction = (output, context) => {
3871
+ return {
3872
+ Block: output.Block !== undefined && output.Block !== null
3873
+ ? deserializeAws_json1_1BlockAction(output.Block, context)
3874
+ : undefined,
3875
+ Count: output.Count !== undefined && output.Count !== null
3876
+ ? deserializeAws_json1_1CountAction(output.Count, context)
3877
+ : undefined,
3878
+ };
3879
+ };
3522
3880
  const deserializeAws_json1_1SubResourceSummary = (output, context) => {
3523
3881
  return {
3524
3882
  AttackVectors: output.AttackVectors !== undefined && output.AttackVectors !== null
@@ -3651,6 +4009,9 @@ const deserializeAws_json1_1TopContributors = (output, context) => {
3651
4009
  const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
3652
4010
  return {};
3653
4011
  };
4012
+ const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseResponse = (output, context) => {
4013
+ return {};
4014
+ };
3654
4015
  const deserializeAws_json1_1UpdateEmergencyContactSettingsResponse = (output, context) => {
3655
4016
  return {};
3656
4017
  };
package/dist-es/Shield.js CHANGED
@@ -16,10 +16,12 @@ import { DescribeEmergencyContactSettingsCommand, } from "./commands/DescribeEme
16
16
  import { DescribeProtectionCommand, } from "./commands/DescribeProtectionCommand";
17
17
  import { DescribeProtectionGroupCommand, } from "./commands/DescribeProtectionGroupCommand";
18
18
  import { DescribeSubscriptionCommand, } from "./commands/DescribeSubscriptionCommand";
19
+ import { DisableApplicationLayerAutomaticResponseCommand, } from "./commands/DisableApplicationLayerAutomaticResponseCommand";
19
20
  import { DisableProactiveEngagementCommand, } from "./commands/DisableProactiveEngagementCommand";
20
21
  import { DisassociateDRTLogBucketCommand, } from "./commands/DisassociateDRTLogBucketCommand";
21
22
  import { DisassociateDRTRoleCommand, } from "./commands/DisassociateDRTRoleCommand";
22
23
  import { DisassociateHealthCheckCommand, } from "./commands/DisassociateHealthCheckCommand";
24
+ import { EnableApplicationLayerAutomaticResponseCommand, } from "./commands/EnableApplicationLayerAutomaticResponseCommand";
23
25
  import { EnableProactiveEngagementCommand, } from "./commands/EnableProactiveEngagementCommand";
24
26
  import { GetSubscriptionStateCommand, } from "./commands/GetSubscriptionStateCommand";
25
27
  import { ListAttacksCommand } from "./commands/ListAttacksCommand";
@@ -29,6 +31,7 @@ import { ListResourcesInProtectionGroupCommand, } from "./commands/ListResources
29
31
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
30
32
  import { TagResourceCommand } from "./commands/TagResourceCommand";
31
33
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
34
+ import { UpdateApplicationLayerAutomaticResponseCommand, } from "./commands/UpdateApplicationLayerAutomaticResponseCommand";
32
35
  import { UpdateEmergencyContactSettingsCommand, } from "./commands/UpdateEmergencyContactSettingsCommand";
33
36
  import { UpdateProtectionGroupCommand, } from "./commands/UpdateProtectionGroupCommand";
34
37
  import { UpdateSubscriptionCommand, } from "./commands/UpdateSubscriptionCommand";
@@ -276,6 +279,20 @@ var Shield = (function (_super) {
276
279
  return this.send(command, optionsOrCb);
277
280
  }
278
281
  };
282
+ Shield.prototype.disableApplicationLayerAutomaticResponse = function (args, optionsOrCb, cb) {
283
+ var command = new DisableApplicationLayerAutomaticResponseCommand(args);
284
+ if (typeof optionsOrCb === "function") {
285
+ this.send(command, optionsOrCb);
286
+ }
287
+ else if (typeof cb === "function") {
288
+ if (typeof optionsOrCb !== "object")
289
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
290
+ this.send(command, optionsOrCb || {}, cb);
291
+ }
292
+ else {
293
+ return this.send(command, optionsOrCb);
294
+ }
295
+ };
279
296
  Shield.prototype.disableProactiveEngagement = function (args, optionsOrCb, cb) {
280
297
  var command = new DisableProactiveEngagementCommand(args);
281
298
  if (typeof optionsOrCb === "function") {
@@ -332,6 +349,20 @@ var Shield = (function (_super) {
332
349
  return this.send(command, optionsOrCb);
333
350
  }
334
351
  };
352
+ Shield.prototype.enableApplicationLayerAutomaticResponse = function (args, optionsOrCb, cb) {
353
+ var command = new EnableApplicationLayerAutomaticResponseCommand(args);
354
+ if (typeof optionsOrCb === "function") {
355
+ this.send(command, optionsOrCb);
356
+ }
357
+ else if (typeof cb === "function") {
358
+ if (typeof optionsOrCb !== "object")
359
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
360
+ this.send(command, optionsOrCb || {}, cb);
361
+ }
362
+ else {
363
+ return this.send(command, optionsOrCb);
364
+ }
365
+ };
335
366
  Shield.prototype.enableProactiveEngagement = function (args, optionsOrCb, cb) {
336
367
  var command = new EnableProactiveEngagementCommand(args);
337
368
  if (typeof optionsOrCb === "function") {
@@ -458,6 +489,20 @@ var Shield = (function (_super) {
458
489
  return this.send(command, optionsOrCb);
459
490
  }
460
491
  };
492
+ Shield.prototype.updateApplicationLayerAutomaticResponse = function (args, optionsOrCb, cb) {
493
+ var command = new UpdateApplicationLayerAutomaticResponseCommand(args);
494
+ if (typeof optionsOrCb === "function") {
495
+ this.send(command, optionsOrCb);
496
+ }
497
+ else if (typeof cb === "function") {
498
+ if (typeof optionsOrCb !== "object")
499
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
500
+ this.send(command, optionsOrCb || {}, cb);
501
+ }
502
+ else {
503
+ return this.send(command, optionsOrCb);
504
+ }
505
+ };
461
506
  Shield.prototype.updateEmergencyContactSettings = function (args, optionsOrCb, cb) {
462
507
  var command = new UpdateEmergencyContactSettingsCommand(args);
463
508
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DisableApplicationLayerAutomaticResponseRequest, DisableApplicationLayerAutomaticResponseResponse, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand, serializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand, } from "../protocols/Aws_json1_1";
6
+ var DisableApplicationLayerAutomaticResponseCommand = (function (_super) {
7
+ __extends(DisableApplicationLayerAutomaticResponseCommand, _super);
8
+ function DisableApplicationLayerAutomaticResponseCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DisableApplicationLayerAutomaticResponseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "DisableApplicationLayerAutomaticResponseCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DisableApplicationLayerAutomaticResponseRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DisableApplicationLayerAutomaticResponseResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DisableApplicationLayerAutomaticResponseCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand(input, context);
33
+ };
34
+ DisableApplicationLayerAutomaticResponseCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand(output, context);
36
+ };
37
+ return DisableApplicationLayerAutomaticResponseCommand;
38
+ }($Command));
39
+ export { DisableApplicationLayerAutomaticResponseCommand };