@aws-sdk/client-cloudfront 3.454.0 → 3.456.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 (60) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/CloudFront.js +10 -0
  3. package/dist-cjs/commands/CreateKeyValueStoreCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteKeyValueStoreCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +51 -0
  6. package/dist-cjs/commands/ListKeyValueStoresCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateKeyValueStoreCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +63 -18
  10. package/dist-cjs/models/models_1.js +29 -1
  11. package/dist-cjs/pagination/ListKeyValueStoresPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restXml.js +514 -5
  14. package/dist-es/CloudFront.js +10 -0
  15. package/dist-es/commands/CreateKeyValueStoreCommand.js +47 -0
  16. package/dist-es/commands/DeleteKeyValueStoreCommand.js +47 -0
  17. package/dist-es/commands/DescribeKeyValueStoreCommand.js +47 -0
  18. package/dist-es/commands/ListKeyValueStoresCommand.js +47 -0
  19. package/dist-es/commands/UpdateKeyValueStoreCommand.js +47 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/models/models_0.js +55 -14
  22. package/dist-es/models/models_1.js +27 -0
  23. package/dist-es/pagination/ListKeyValueStoresPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restXml.js +501 -2
  26. package/dist-types/CloudFront.d.ts +35 -0
  27. package/dist-types/CloudFrontClient.d.ts +7 -2
  28. package/dist-types/commands/CreateFunctionCommand.d.ts +16 -0
  29. package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +103 -0
  30. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +1 -2
  31. package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +88 -0
  32. package/dist-types/commands/DescribeFunctionCommand.d.ts +8 -0
  33. package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +90 -0
  34. package/dist-types/commands/ListFunctionsCommand.d.ts +8 -0
  35. package/dist-types/commands/ListKeyValueStoresCommand.d.ts +95 -0
  36. package/dist-types/commands/PublishFunctionCommand.d.ts +8 -0
  37. package/dist-types/commands/TestFunctionCommand.d.ts +8 -0
  38. package/dist-types/commands/UpdateFunctionCommand.d.ts +16 -0
  39. package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +99 -0
  40. package/dist-types/commands/index.d.ts +5 -0
  41. package/dist-types/models/models_0.d.ts +198 -380
  42. package/dist-types/models/models_1.d.ts +518 -3
  43. package/dist-types/pagination/ListKeyValueStoresPaginator.d.ts +7 -0
  44. package/dist-types/pagination/index.d.ts +1 -0
  45. package/dist-types/protocols/Aws_restXml.d.ts +45 -0
  46. package/dist-types/ts3.4/CloudFront.d.ts +85 -0
  47. package/dist-types/ts3.4/CloudFrontClient.d.ts +30 -0
  48. package/dist-types/ts3.4/commands/CreateKeyValueStoreCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +4 -2
  50. package/dist-types/ts3.4/commands/DeleteKeyValueStoreCommand.d.ts +34 -0
  51. package/dist-types/ts3.4/commands/DescribeKeyValueStoreCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListKeyValueStoresCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/UpdateKeyValueStoreCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  55. package/dist-types/ts3.4/models/models_0.d.ts +67 -67
  56. package/dist-types/ts3.4/models/models_1.d.ts +113 -2
  57. package/dist-types/ts3.4/pagination/ListKeyValueStoresPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  59. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +60 -0
  60. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_GetInvalidationCommand = exports.se_GetFunctionCommand = exports.se_GetFieldLevelEncryptionProfileConfigCommand = exports.se_GetFieldLevelEncryptionProfileCommand = exports.se_GetFieldLevelEncryptionConfigCommand = exports.se_GetFieldLevelEncryptionCommand = exports.se_GetDistributionConfigCommand = exports.se_GetDistributionCommand = exports.se_GetContinuousDeploymentPolicyConfigCommand = exports.se_GetContinuousDeploymentPolicyCommand = exports.se_GetCloudFrontOriginAccessIdentityConfigCommand = exports.se_GetCloudFrontOriginAccessIdentityCommand = exports.se_GetCachePolicyConfigCommand = exports.se_GetCachePolicyCommand = exports.se_DescribeFunctionCommand = exports.se_DeleteStreamingDistributionCommand = exports.se_DeleteResponseHeadersPolicyCommand = exports.se_DeleteRealtimeLogConfigCommand = exports.se_DeletePublicKeyCommand = exports.se_DeleteOriginRequestPolicyCommand = exports.se_DeleteOriginAccessControlCommand = exports.se_DeleteMonitoringSubscriptionCommand = exports.se_DeleteKeyGroupCommand = exports.se_DeleteFunctionCommand = exports.se_DeleteFieldLevelEncryptionProfileCommand = exports.se_DeleteFieldLevelEncryptionConfigCommand = exports.se_DeleteDistributionCommand = exports.se_DeleteContinuousDeploymentPolicyCommand = exports.se_DeleteCloudFrontOriginAccessIdentityCommand = exports.se_DeleteCachePolicyCommand = exports.se_CreateStreamingDistributionWithTagsCommand = exports.se_CreateStreamingDistributionCommand = exports.se_CreateResponseHeadersPolicyCommand = exports.se_CreateRealtimeLogConfigCommand = exports.se_CreatePublicKeyCommand = exports.se_CreateOriginRequestPolicyCommand = exports.se_CreateOriginAccessControlCommand = exports.se_CreateMonitoringSubscriptionCommand = exports.se_CreateKeyGroupCommand = exports.se_CreateInvalidationCommand = exports.se_CreateFunctionCommand = exports.se_CreateFieldLevelEncryptionProfileCommand = exports.se_CreateFieldLevelEncryptionConfigCommand = exports.se_CreateDistributionWithTagsCommand = exports.se_CreateDistributionCommand = exports.se_CreateContinuousDeploymentPolicyCommand = exports.se_CreateCloudFrontOriginAccessIdentityCommand = exports.se_CreateCachePolicyCommand = exports.se_CopyDistributionCommand = exports.se_AssociateAliasCommand = void 0;
4
- exports.se_UpdateKeyGroupCommand = exports.se_UpdateFunctionCommand = exports.se_UpdateFieldLevelEncryptionProfileCommand = exports.se_UpdateFieldLevelEncryptionConfigCommand = exports.se_UpdateDistributionWithStagingConfigCommand = exports.se_UpdateDistributionCommand = exports.se_UpdateContinuousDeploymentPolicyCommand = exports.se_UpdateCloudFrontOriginAccessIdentityCommand = exports.se_UpdateCachePolicyCommand = exports.se_UntagResourceCommand = exports.se_TestFunctionCommand = exports.se_TagResourceCommand = exports.se_PublishFunctionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamingDistributionsCommand = exports.se_ListResponseHeadersPoliciesCommand = exports.se_ListRealtimeLogConfigsCommand = exports.se_ListPublicKeysCommand = exports.se_ListOriginRequestPoliciesCommand = exports.se_ListOriginAccessControlsCommand = exports.se_ListKeyGroupsCommand = exports.se_ListInvalidationsCommand = exports.se_ListFunctionsCommand = exports.se_ListFieldLevelEncryptionProfilesCommand = exports.se_ListFieldLevelEncryptionConfigsCommand = exports.se_ListDistributionsByWebACLIdCommand = exports.se_ListDistributionsByResponseHeadersPolicyIdCommand = exports.se_ListDistributionsByRealtimeLogConfigCommand = exports.se_ListDistributionsByOriginRequestPolicyIdCommand = exports.se_ListDistributionsByKeyGroupCommand = exports.se_ListDistributionsByCachePolicyIdCommand = exports.se_ListDistributionsCommand = exports.se_ListContinuousDeploymentPoliciesCommand = exports.se_ListConflictingAliasesCommand = exports.se_ListCloudFrontOriginAccessIdentitiesCommand = exports.se_ListCachePoliciesCommand = exports.se_GetStreamingDistributionConfigCommand = exports.se_GetStreamingDistributionCommand = exports.se_GetResponseHeadersPolicyConfigCommand = exports.se_GetResponseHeadersPolicyCommand = exports.se_GetRealtimeLogConfigCommand = exports.se_GetPublicKeyConfigCommand = exports.se_GetPublicKeyCommand = exports.se_GetOriginRequestPolicyConfigCommand = exports.se_GetOriginRequestPolicyCommand = exports.se_GetOriginAccessControlConfigCommand = exports.se_GetOriginAccessControlCommand = exports.se_GetMonitoringSubscriptionCommand = exports.se_GetKeyGroupConfigCommand = exports.se_GetKeyGroupCommand = void 0;
5
- exports.de_GetDistributionConfigCommand = exports.de_GetDistributionCommand = exports.de_GetContinuousDeploymentPolicyConfigCommand = exports.de_GetContinuousDeploymentPolicyCommand = exports.de_GetCloudFrontOriginAccessIdentityConfigCommand = exports.de_GetCloudFrontOriginAccessIdentityCommand = exports.de_GetCachePolicyConfigCommand = exports.de_GetCachePolicyCommand = exports.de_DescribeFunctionCommand = exports.de_DeleteStreamingDistributionCommand = exports.de_DeleteResponseHeadersPolicyCommand = exports.de_DeleteRealtimeLogConfigCommand = exports.de_DeletePublicKeyCommand = exports.de_DeleteOriginRequestPolicyCommand = exports.de_DeleteOriginAccessControlCommand = exports.de_DeleteMonitoringSubscriptionCommand = exports.de_DeleteKeyGroupCommand = exports.de_DeleteFunctionCommand = exports.de_DeleteFieldLevelEncryptionProfileCommand = exports.de_DeleteFieldLevelEncryptionConfigCommand = exports.de_DeleteDistributionCommand = exports.de_DeleteContinuousDeploymentPolicyCommand = exports.de_DeleteCloudFrontOriginAccessIdentityCommand = exports.de_DeleteCachePolicyCommand = exports.de_CreateStreamingDistributionWithTagsCommand = exports.de_CreateStreamingDistributionCommand = exports.de_CreateResponseHeadersPolicyCommand = exports.de_CreateRealtimeLogConfigCommand = exports.de_CreatePublicKeyCommand = exports.de_CreateOriginRequestPolicyCommand = exports.de_CreateOriginAccessControlCommand = exports.de_CreateMonitoringSubscriptionCommand = exports.de_CreateKeyGroupCommand = exports.de_CreateInvalidationCommand = exports.de_CreateFunctionCommand = exports.de_CreateFieldLevelEncryptionProfileCommand = exports.de_CreateFieldLevelEncryptionConfigCommand = exports.de_CreateDistributionWithTagsCommand = exports.de_CreateDistributionCommand = exports.de_CreateContinuousDeploymentPolicyCommand = exports.de_CreateCloudFrontOriginAccessIdentityCommand = exports.de_CreateCachePolicyCommand = exports.de_CopyDistributionCommand = exports.de_AssociateAliasCommand = exports.se_UpdateStreamingDistributionCommand = exports.se_UpdateResponseHeadersPolicyCommand = exports.se_UpdateRealtimeLogConfigCommand = exports.se_UpdatePublicKeyCommand = exports.se_UpdateOriginRequestPolicyCommand = exports.se_UpdateOriginAccessControlCommand = void 0;
6
- exports.de_UpdateContinuousDeploymentPolicyCommand = exports.de_UpdateCloudFrontOriginAccessIdentityCommand = exports.de_UpdateCachePolicyCommand = exports.de_UntagResourceCommand = exports.de_TestFunctionCommand = exports.de_TagResourceCommand = exports.de_PublishFunctionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamingDistributionsCommand = exports.de_ListResponseHeadersPoliciesCommand = exports.de_ListRealtimeLogConfigsCommand = exports.de_ListPublicKeysCommand = exports.de_ListOriginRequestPoliciesCommand = exports.de_ListOriginAccessControlsCommand = exports.de_ListKeyGroupsCommand = exports.de_ListInvalidationsCommand = exports.de_ListFunctionsCommand = exports.de_ListFieldLevelEncryptionProfilesCommand = exports.de_ListFieldLevelEncryptionConfigsCommand = exports.de_ListDistributionsByWebACLIdCommand = exports.de_ListDistributionsByResponseHeadersPolicyIdCommand = exports.de_ListDistributionsByRealtimeLogConfigCommand = exports.de_ListDistributionsByOriginRequestPolicyIdCommand = exports.de_ListDistributionsByKeyGroupCommand = exports.de_ListDistributionsByCachePolicyIdCommand = exports.de_ListDistributionsCommand = exports.de_ListContinuousDeploymentPoliciesCommand = exports.de_ListConflictingAliasesCommand = exports.de_ListCloudFrontOriginAccessIdentitiesCommand = exports.de_ListCachePoliciesCommand = exports.de_GetStreamingDistributionConfigCommand = exports.de_GetStreamingDistributionCommand = exports.de_GetResponseHeadersPolicyConfigCommand = exports.de_GetResponseHeadersPolicyCommand = exports.de_GetRealtimeLogConfigCommand = exports.de_GetPublicKeyConfigCommand = exports.de_GetPublicKeyCommand = exports.de_GetOriginRequestPolicyConfigCommand = exports.de_GetOriginRequestPolicyCommand = exports.de_GetOriginAccessControlConfigCommand = exports.de_GetOriginAccessControlCommand = exports.de_GetMonitoringSubscriptionCommand = exports.de_GetKeyGroupConfigCommand = exports.de_GetKeyGroupCommand = exports.de_GetInvalidationCommand = exports.de_GetFunctionCommand = exports.de_GetFieldLevelEncryptionProfileConfigCommand = exports.de_GetFieldLevelEncryptionProfileCommand = exports.de_GetFieldLevelEncryptionConfigCommand = exports.de_GetFieldLevelEncryptionCommand = void 0;
7
- exports.de_UpdateStreamingDistributionCommand = exports.de_UpdateResponseHeadersPolicyCommand = exports.de_UpdateRealtimeLogConfigCommand = exports.de_UpdatePublicKeyCommand = exports.de_UpdateOriginRequestPolicyCommand = exports.de_UpdateOriginAccessControlCommand = exports.de_UpdateKeyGroupCommand = exports.de_UpdateFunctionCommand = exports.de_UpdateFieldLevelEncryptionProfileCommand = exports.de_UpdateFieldLevelEncryptionConfigCommand = exports.de_UpdateDistributionWithStagingConfigCommand = exports.de_UpdateDistributionCommand = void 0;
3
+ exports.se_GetFieldLevelEncryptionProfileCommand = exports.se_GetFieldLevelEncryptionConfigCommand = exports.se_GetFieldLevelEncryptionCommand = exports.se_GetDistributionConfigCommand = exports.se_GetDistributionCommand = exports.se_GetContinuousDeploymentPolicyConfigCommand = exports.se_GetContinuousDeploymentPolicyCommand = exports.se_GetCloudFrontOriginAccessIdentityConfigCommand = exports.se_GetCloudFrontOriginAccessIdentityCommand = exports.se_GetCachePolicyConfigCommand = exports.se_GetCachePolicyCommand = exports.se_DescribeKeyValueStoreCommand = exports.se_DescribeFunctionCommand = exports.se_DeleteStreamingDistributionCommand = exports.se_DeleteResponseHeadersPolicyCommand = exports.se_DeleteRealtimeLogConfigCommand = exports.se_DeletePublicKeyCommand = exports.se_DeleteOriginRequestPolicyCommand = exports.se_DeleteOriginAccessControlCommand = exports.se_DeleteMonitoringSubscriptionCommand = exports.se_DeleteKeyValueStoreCommand = exports.se_DeleteKeyGroupCommand = exports.se_DeleteFunctionCommand = exports.se_DeleteFieldLevelEncryptionProfileCommand = exports.se_DeleteFieldLevelEncryptionConfigCommand = exports.se_DeleteDistributionCommand = exports.se_DeleteContinuousDeploymentPolicyCommand = exports.se_DeleteCloudFrontOriginAccessIdentityCommand = exports.se_DeleteCachePolicyCommand = exports.se_CreateStreamingDistributionWithTagsCommand = exports.se_CreateStreamingDistributionCommand = exports.se_CreateResponseHeadersPolicyCommand = exports.se_CreateRealtimeLogConfigCommand = exports.se_CreatePublicKeyCommand = exports.se_CreateOriginRequestPolicyCommand = exports.se_CreateOriginAccessControlCommand = exports.se_CreateMonitoringSubscriptionCommand = exports.se_CreateKeyValueStoreCommand = exports.se_CreateKeyGroupCommand = exports.se_CreateInvalidationCommand = exports.se_CreateFunctionCommand = exports.se_CreateFieldLevelEncryptionProfileCommand = exports.se_CreateFieldLevelEncryptionConfigCommand = exports.se_CreateDistributionWithTagsCommand = exports.se_CreateDistributionCommand = exports.se_CreateContinuousDeploymentPolicyCommand = exports.se_CreateCloudFrontOriginAccessIdentityCommand = exports.se_CreateCachePolicyCommand = exports.se_CopyDistributionCommand = exports.se_AssociateAliasCommand = void 0;
4
+ exports.se_UpdateDistributionWithStagingConfigCommand = exports.se_UpdateDistributionCommand = exports.se_UpdateContinuousDeploymentPolicyCommand = exports.se_UpdateCloudFrontOriginAccessIdentityCommand = exports.se_UpdateCachePolicyCommand = exports.se_UntagResourceCommand = exports.se_TestFunctionCommand = exports.se_TagResourceCommand = exports.se_PublishFunctionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamingDistributionsCommand = exports.se_ListResponseHeadersPoliciesCommand = exports.se_ListRealtimeLogConfigsCommand = exports.se_ListPublicKeysCommand = exports.se_ListOriginRequestPoliciesCommand = exports.se_ListOriginAccessControlsCommand = exports.se_ListKeyValueStoresCommand = exports.se_ListKeyGroupsCommand = exports.se_ListInvalidationsCommand = exports.se_ListFunctionsCommand = exports.se_ListFieldLevelEncryptionProfilesCommand = exports.se_ListFieldLevelEncryptionConfigsCommand = exports.se_ListDistributionsByWebACLIdCommand = exports.se_ListDistributionsByResponseHeadersPolicyIdCommand = exports.se_ListDistributionsByRealtimeLogConfigCommand = exports.se_ListDistributionsByOriginRequestPolicyIdCommand = exports.se_ListDistributionsByKeyGroupCommand = exports.se_ListDistributionsByCachePolicyIdCommand = exports.se_ListDistributionsCommand = exports.se_ListContinuousDeploymentPoliciesCommand = exports.se_ListConflictingAliasesCommand = exports.se_ListCloudFrontOriginAccessIdentitiesCommand = exports.se_ListCachePoliciesCommand = exports.se_GetStreamingDistributionConfigCommand = exports.se_GetStreamingDistributionCommand = exports.se_GetResponseHeadersPolicyConfigCommand = exports.se_GetResponseHeadersPolicyCommand = exports.se_GetRealtimeLogConfigCommand = exports.se_GetPublicKeyConfigCommand = exports.se_GetPublicKeyCommand = exports.se_GetOriginRequestPolicyConfigCommand = exports.se_GetOriginRequestPolicyCommand = exports.se_GetOriginAccessControlConfigCommand = exports.se_GetOriginAccessControlCommand = exports.se_GetMonitoringSubscriptionCommand = exports.se_GetKeyGroupConfigCommand = exports.se_GetKeyGroupCommand = exports.se_GetInvalidationCommand = exports.se_GetFunctionCommand = exports.se_GetFieldLevelEncryptionProfileConfigCommand = void 0;
5
+ exports.de_DescribeKeyValueStoreCommand = exports.de_DescribeFunctionCommand = exports.de_DeleteStreamingDistributionCommand = exports.de_DeleteResponseHeadersPolicyCommand = exports.de_DeleteRealtimeLogConfigCommand = exports.de_DeletePublicKeyCommand = exports.de_DeleteOriginRequestPolicyCommand = exports.de_DeleteOriginAccessControlCommand = exports.de_DeleteMonitoringSubscriptionCommand = exports.de_DeleteKeyValueStoreCommand = exports.de_DeleteKeyGroupCommand = exports.de_DeleteFunctionCommand = exports.de_DeleteFieldLevelEncryptionProfileCommand = exports.de_DeleteFieldLevelEncryptionConfigCommand = exports.de_DeleteDistributionCommand = exports.de_DeleteContinuousDeploymentPolicyCommand = exports.de_DeleteCloudFrontOriginAccessIdentityCommand = exports.de_DeleteCachePolicyCommand = exports.de_CreateStreamingDistributionWithTagsCommand = exports.de_CreateStreamingDistributionCommand = exports.de_CreateResponseHeadersPolicyCommand = exports.de_CreateRealtimeLogConfigCommand = exports.de_CreatePublicKeyCommand = exports.de_CreateOriginRequestPolicyCommand = exports.de_CreateOriginAccessControlCommand = exports.de_CreateMonitoringSubscriptionCommand = exports.de_CreateKeyValueStoreCommand = exports.de_CreateKeyGroupCommand = exports.de_CreateInvalidationCommand = exports.de_CreateFunctionCommand = exports.de_CreateFieldLevelEncryptionProfileCommand = exports.de_CreateFieldLevelEncryptionConfigCommand = exports.de_CreateDistributionWithTagsCommand = exports.de_CreateDistributionCommand = exports.de_CreateContinuousDeploymentPolicyCommand = exports.de_CreateCloudFrontOriginAccessIdentityCommand = exports.de_CreateCachePolicyCommand = exports.de_CopyDistributionCommand = exports.de_AssociateAliasCommand = exports.se_UpdateStreamingDistributionCommand = exports.se_UpdateResponseHeadersPolicyCommand = exports.se_UpdateRealtimeLogConfigCommand = exports.se_UpdatePublicKeyCommand = exports.se_UpdateOriginRequestPolicyCommand = exports.se_UpdateOriginAccessControlCommand = exports.se_UpdateKeyValueStoreCommand = exports.se_UpdateKeyGroupCommand = exports.se_UpdateFunctionCommand = exports.se_UpdateFieldLevelEncryptionProfileCommand = exports.se_UpdateFieldLevelEncryptionConfigCommand = void 0;
6
+ exports.de_ListResponseHeadersPoliciesCommand = exports.de_ListRealtimeLogConfigsCommand = exports.de_ListPublicKeysCommand = exports.de_ListOriginRequestPoliciesCommand = exports.de_ListOriginAccessControlsCommand = exports.de_ListKeyValueStoresCommand = exports.de_ListKeyGroupsCommand = exports.de_ListInvalidationsCommand = exports.de_ListFunctionsCommand = exports.de_ListFieldLevelEncryptionProfilesCommand = exports.de_ListFieldLevelEncryptionConfigsCommand = exports.de_ListDistributionsByWebACLIdCommand = exports.de_ListDistributionsByResponseHeadersPolicyIdCommand = exports.de_ListDistributionsByRealtimeLogConfigCommand = exports.de_ListDistributionsByOriginRequestPolicyIdCommand = exports.de_ListDistributionsByKeyGroupCommand = exports.de_ListDistributionsByCachePolicyIdCommand = exports.de_ListDistributionsCommand = exports.de_ListContinuousDeploymentPoliciesCommand = exports.de_ListConflictingAliasesCommand = exports.de_ListCloudFrontOriginAccessIdentitiesCommand = exports.de_ListCachePoliciesCommand = exports.de_GetStreamingDistributionConfigCommand = exports.de_GetStreamingDistributionCommand = exports.de_GetResponseHeadersPolicyConfigCommand = exports.de_GetResponseHeadersPolicyCommand = exports.de_GetRealtimeLogConfigCommand = exports.de_GetPublicKeyConfigCommand = exports.de_GetPublicKeyCommand = exports.de_GetOriginRequestPolicyConfigCommand = exports.de_GetOriginRequestPolicyCommand = exports.de_GetOriginAccessControlConfigCommand = exports.de_GetOriginAccessControlCommand = exports.de_GetMonitoringSubscriptionCommand = exports.de_GetKeyGroupConfigCommand = exports.de_GetKeyGroupCommand = exports.de_GetInvalidationCommand = exports.de_GetFunctionCommand = exports.de_GetFieldLevelEncryptionProfileConfigCommand = exports.de_GetFieldLevelEncryptionProfileCommand = exports.de_GetFieldLevelEncryptionConfigCommand = exports.de_GetFieldLevelEncryptionCommand = exports.de_GetDistributionConfigCommand = exports.de_GetDistributionCommand = exports.de_GetContinuousDeploymentPolicyConfigCommand = exports.de_GetContinuousDeploymentPolicyCommand = exports.de_GetCloudFrontOriginAccessIdentityConfigCommand = exports.de_GetCloudFrontOriginAccessIdentityCommand = exports.de_GetCachePolicyConfigCommand = exports.de_GetCachePolicyCommand = void 0;
7
+ exports.de_UpdateStreamingDistributionCommand = exports.de_UpdateResponseHeadersPolicyCommand = exports.de_UpdateRealtimeLogConfigCommand = exports.de_UpdatePublicKeyCommand = exports.de_UpdateOriginRequestPolicyCommand = exports.de_UpdateOriginAccessControlCommand = exports.de_UpdateKeyValueStoreCommand = exports.de_UpdateKeyGroupCommand = exports.de_UpdateFunctionCommand = exports.de_UpdateFieldLevelEncryptionProfileCommand = exports.de_UpdateFieldLevelEncryptionConfigCommand = exports.de_UpdateDistributionWithStagingConfigCommand = exports.de_UpdateDistributionCommand = exports.de_UpdateContinuousDeploymentPolicyCommand = exports.de_UpdateCloudFrontOriginAccessIdentityCommand = exports.de_UpdateCachePolicyCommand = exports.de_UntagResourceCommand = exports.de_TestFunctionCommand = exports.de_TagResourceCommand = exports.de_PublishFunctionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamingDistributionsCommand = void 0;
8
8
  const xml_builder_1 = require("@aws-sdk/xml-builder");
9
9
  const protocol_http_1 = require("@smithy/protocol-http");
10
10
  const smithy_client_1 = require("@smithy/smithy-client");
@@ -362,6 +362,40 @@ const se_CreateKeyGroupCommand = async (input, context) => {
362
362
  });
363
363
  };
364
364
  exports.se_CreateKeyGroupCommand = se_CreateKeyGroupCommand;
365
+ const se_CreateKeyValueStoreCommand = async (input, context) => {
366
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
367
+ const headers = {
368
+ "content-type": "application/xml",
369
+ };
370
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store";
371
+ let body;
372
+ body = '<?xml version="1.0" encoding="UTF-8"?>';
373
+ const bodyNode = new xml_builder_1.XmlNode("CreateKeyValueStoreRequest");
374
+ bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
375
+ if (input.Comment !== undefined) {
376
+ const node = xml_builder_1.XmlNode.of("KeyValueStoreComment", input.Comment).withName("Comment");
377
+ bodyNode.addChildNode(node);
378
+ }
379
+ if (input.ImportSource !== undefined) {
380
+ const node = se_ImportSource(input.ImportSource, context).withName("ImportSource");
381
+ bodyNode.addChildNode(node);
382
+ }
383
+ if (input.Name !== undefined) {
384
+ const node = xml_builder_1.XmlNode.of("KeyValueStoreName", input.Name).withName("Name");
385
+ bodyNode.addChildNode(node);
386
+ }
387
+ body += bodyNode.toString();
388
+ return new protocol_http_1.HttpRequest({
389
+ protocol,
390
+ hostname,
391
+ port,
392
+ method: "POST",
393
+ headers,
394
+ path: resolvedPath,
395
+ body,
396
+ });
397
+ };
398
+ exports.se_CreateKeyValueStoreCommand = se_CreateKeyValueStoreCommand;
365
399
  const se_CreateMonitoringSubscriptionCommand = async (input, context) => {
366
400
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
367
401
  const headers = {
@@ -765,6 +799,25 @@ const se_DeleteKeyGroupCommand = async (input, context) => {
765
799
  });
766
800
  };
767
801
  exports.se_DeleteKeyGroupCommand = se_DeleteKeyGroupCommand;
802
+ const se_DeleteKeyValueStoreCommand = async (input, context) => {
803
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
804
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
805
+ "if-match": input.IfMatch,
806
+ });
807
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}";
808
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
809
+ let body;
810
+ return new protocol_http_1.HttpRequest({
811
+ protocol,
812
+ hostname,
813
+ port,
814
+ method: "DELETE",
815
+ headers,
816
+ path: resolvedPath,
817
+ body,
818
+ });
819
+ };
820
+ exports.se_DeleteKeyValueStoreCommand = se_DeleteKeyValueStoreCommand;
768
821
  const se_DeleteMonitoringSubscriptionCommand = async (input, context) => {
769
822
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
770
823
  const headers = {};
@@ -929,6 +982,23 @@ const se_DescribeFunctionCommand = async (input, context) => {
929
982
  });
930
983
  };
931
984
  exports.se_DescribeFunctionCommand = se_DescribeFunctionCommand;
985
+ const se_DescribeKeyValueStoreCommand = async (input, context) => {
986
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
987
+ const headers = {};
988
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}";
989
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
990
+ let body;
991
+ return new protocol_http_1.HttpRequest({
992
+ protocol,
993
+ hostname,
994
+ port,
995
+ method: "GET",
996
+ headers,
997
+ path: resolvedPath,
998
+ body,
999
+ });
1000
+ };
1001
+ exports.se_DescribeKeyValueStoreCommand = se_DescribeKeyValueStoreCommand;
932
1002
  const se_GetCachePolicyCommand = async (input, context) => {
933
1003
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
934
1004
  const headers = {};
@@ -1808,6 +1878,28 @@ const se_ListKeyGroupsCommand = async (input, context) => {
1808
1878
  });
1809
1879
  };
1810
1880
  exports.se_ListKeyGroupsCommand = se_ListKeyGroupsCommand;
1881
+ const se_ListKeyValueStoresCommand = async (input, context) => {
1882
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1883
+ const headers = {};
1884
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store";
1885
+ const query = (0, smithy_client_1.map)({
1886
+ Marker: [, input.Marker],
1887
+ MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1888
+ Status: [, input.Status],
1889
+ });
1890
+ let body;
1891
+ return new protocol_http_1.HttpRequest({
1892
+ protocol,
1893
+ hostname,
1894
+ port,
1895
+ method: "GET",
1896
+ headers,
1897
+ path: resolvedPath,
1898
+ query,
1899
+ body,
1900
+ });
1901
+ };
1902
+ exports.se_ListKeyValueStoresCommand = se_ListKeyValueStoresCommand;
1811
1903
  const se_ListOriginAccessControlsCommand = async (input, context) => {
1812
1904
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1813
1905
  const headers = {};
@@ -2343,6 +2435,34 @@ const se_UpdateKeyGroupCommand = async (input, context) => {
2343
2435
  });
2344
2436
  };
2345
2437
  exports.se_UpdateKeyGroupCommand = se_UpdateKeyGroupCommand;
2438
+ const se_UpdateKeyValueStoreCommand = async (input, context) => {
2439
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2440
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2441
+ "content-type": "application/xml",
2442
+ "if-match": input.IfMatch,
2443
+ });
2444
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}";
2445
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
2446
+ let body;
2447
+ body = '<?xml version="1.0" encoding="UTF-8"?>';
2448
+ const bodyNode = new xml_builder_1.XmlNode("UpdateKeyValueStoreRequest");
2449
+ bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
2450
+ if (input.Comment !== undefined) {
2451
+ const node = xml_builder_1.XmlNode.of("KeyValueStoreComment", input.Comment).withName("Comment");
2452
+ bodyNode.addChildNode(node);
2453
+ }
2454
+ body += bodyNode.toString();
2455
+ return new protocol_http_1.HttpRequest({
2456
+ protocol,
2457
+ hostname,
2458
+ port,
2459
+ method: "PUT",
2460
+ headers,
2461
+ path: resolvedPath,
2462
+ body,
2463
+ });
2464
+ };
2465
+ exports.se_UpdateKeyValueStoreCommand = se_UpdateKeyValueStoreCommand;
2346
2466
  const se_UpdateOriginAccessControlCommand = async (input, context) => {
2347
2467
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2348
2468
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
@@ -3654,6 +3774,51 @@ const de_CreateKeyGroupCommandError = async (output, context) => {
3654
3774
  });
3655
3775
  }
3656
3776
  };
3777
+ const de_CreateKeyValueStoreCommand = async (output, context) => {
3778
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
3779
+ return de_CreateKeyValueStoreCommandError(output, context);
3780
+ }
3781
+ const contents = (0, smithy_client_1.map)({
3782
+ $metadata: deserializeMetadata(output),
3783
+ ETag: [, output.headers["etag"]],
3784
+ Location: [, output.headers["location"]],
3785
+ });
3786
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
3787
+ contents.KeyValueStore = de_KeyValueStore(data, context);
3788
+ return contents;
3789
+ };
3790
+ exports.de_CreateKeyValueStoreCommand = de_CreateKeyValueStoreCommand;
3791
+ const de_CreateKeyValueStoreCommandError = async (output, context) => {
3792
+ const parsedOutput = {
3793
+ ...output,
3794
+ body: await parseErrorBody(output.body, context),
3795
+ };
3796
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3797
+ switch (errorCode) {
3798
+ case "AccessDenied":
3799
+ case "com.amazonaws.cloudfront#AccessDenied":
3800
+ throw await de_AccessDeniedRes(parsedOutput, context);
3801
+ case "EntityAlreadyExists":
3802
+ case "com.amazonaws.cloudfront#EntityAlreadyExists":
3803
+ throw await de_EntityAlreadyExistsRes(parsedOutput, context);
3804
+ case "EntityLimitExceeded":
3805
+ case "com.amazonaws.cloudfront#EntityLimitExceeded":
3806
+ throw await de_EntityLimitExceededRes(parsedOutput, context);
3807
+ case "EntitySizeLimitExceeded":
3808
+ case "com.amazonaws.cloudfront#EntitySizeLimitExceeded":
3809
+ throw await de_EntitySizeLimitExceededRes(parsedOutput, context);
3810
+ case "InvalidArgument":
3811
+ case "com.amazonaws.cloudfront#InvalidArgument":
3812
+ throw await de_InvalidArgumentRes(parsedOutput, context);
3813
+ default:
3814
+ const parsedBody = parsedOutput.body;
3815
+ return throwDefaultError({
3816
+ output,
3817
+ parsedBody: parsedBody.Error,
3818
+ errorCode,
3819
+ });
3820
+ }
3821
+ };
3657
3822
  const de_CreateMonitoringSubscriptionCommand = async (output, context) => {
3658
3823
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3659
3824
  return de_CreateMonitoringSubscriptionCommandError(output, context);
@@ -4402,6 +4567,48 @@ const de_DeleteKeyGroupCommandError = async (output, context) => {
4402
4567
  });
4403
4568
  }
4404
4569
  };
4570
+ const de_DeleteKeyValueStoreCommand = async (output, context) => {
4571
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4572
+ return de_DeleteKeyValueStoreCommandError(output, context);
4573
+ }
4574
+ const contents = (0, smithy_client_1.map)({
4575
+ $metadata: deserializeMetadata(output),
4576
+ });
4577
+ await (0, smithy_client_1.collectBody)(output.body, context);
4578
+ return contents;
4579
+ };
4580
+ exports.de_DeleteKeyValueStoreCommand = de_DeleteKeyValueStoreCommand;
4581
+ const de_DeleteKeyValueStoreCommandError = async (output, context) => {
4582
+ const parsedOutput = {
4583
+ ...output,
4584
+ body: await parseErrorBody(output.body, context),
4585
+ };
4586
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4587
+ switch (errorCode) {
4588
+ case "AccessDenied":
4589
+ case "com.amazonaws.cloudfront#AccessDenied":
4590
+ throw await de_AccessDeniedRes(parsedOutput, context);
4591
+ case "CannotDeleteEntityWhileInUse":
4592
+ case "com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":
4593
+ throw await de_CannotDeleteEntityWhileInUseRes(parsedOutput, context);
4594
+ case "EntityNotFound":
4595
+ case "com.amazonaws.cloudfront#EntityNotFound":
4596
+ throw await de_EntityNotFoundRes(parsedOutput, context);
4597
+ case "InvalidIfMatchVersion":
4598
+ case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
4599
+ throw await de_InvalidIfMatchVersionRes(parsedOutput, context);
4600
+ case "PreconditionFailed":
4601
+ case "com.amazonaws.cloudfront#PreconditionFailed":
4602
+ throw await de_PreconditionFailedRes(parsedOutput, context);
4603
+ default:
4604
+ const parsedBody = parsedOutput.body;
4605
+ return throwDefaultError({
4606
+ output,
4607
+ parsedBody: parsedBody.Error,
4608
+ errorCode,
4609
+ });
4610
+ }
4611
+ };
4405
4612
  const de_DeleteMonitoringSubscriptionCommand = async (output, context) => {
4406
4613
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4407
4614
  return de_DeleteMonitoringSubscriptionCommandError(output, context);
@@ -4731,6 +4938,44 @@ const de_DescribeFunctionCommandError = async (output, context) => {
4731
4938
  });
4732
4939
  }
4733
4940
  };
4941
+ const de_DescribeKeyValueStoreCommand = async (output, context) => {
4942
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4943
+ return de_DescribeKeyValueStoreCommandError(output, context);
4944
+ }
4945
+ const contents = (0, smithy_client_1.map)({
4946
+ $metadata: deserializeMetadata(output),
4947
+ ETag: [, output.headers["etag"]],
4948
+ });
4949
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
4950
+ contents.KeyValueStore = de_KeyValueStore(data, context);
4951
+ return contents;
4952
+ };
4953
+ exports.de_DescribeKeyValueStoreCommand = de_DescribeKeyValueStoreCommand;
4954
+ const de_DescribeKeyValueStoreCommandError = async (output, context) => {
4955
+ const parsedOutput = {
4956
+ ...output,
4957
+ body: await parseErrorBody(output.body, context),
4958
+ };
4959
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4960
+ switch (errorCode) {
4961
+ case "AccessDenied":
4962
+ case "com.amazonaws.cloudfront#AccessDenied":
4963
+ throw await de_AccessDeniedRes(parsedOutput, context);
4964
+ case "EntityNotFound":
4965
+ case "com.amazonaws.cloudfront#EntityNotFound":
4966
+ throw await de_EntityNotFoundRes(parsedOutput, context);
4967
+ case "InvalidArgument":
4968
+ case "com.amazonaws.cloudfront#InvalidArgument":
4969
+ throw await de_InvalidArgumentRes(parsedOutput, context);
4970
+ default:
4971
+ const parsedBody = parsedOutput.body;
4972
+ return throwDefaultError({
4973
+ output,
4974
+ parsedBody: parsedBody.Error,
4975
+ errorCode,
4976
+ });
4977
+ }
4978
+ };
4734
4979
  const de_GetCachePolicyCommand = async (output, context) => {
4735
4980
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4736
4981
  return de_GetCachePolicyCommandError(output, context);
@@ -6261,6 +6506,40 @@ const de_ListKeyGroupsCommandError = async (output, context) => {
6261
6506
  });
6262
6507
  }
6263
6508
  };
6509
+ const de_ListKeyValueStoresCommand = async (output, context) => {
6510
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6511
+ return de_ListKeyValueStoresCommandError(output, context);
6512
+ }
6513
+ const contents = (0, smithy_client_1.map)({
6514
+ $metadata: deserializeMetadata(output),
6515
+ });
6516
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
6517
+ contents.KeyValueStoreList = de_KeyValueStoreList(data, context);
6518
+ return contents;
6519
+ };
6520
+ exports.de_ListKeyValueStoresCommand = de_ListKeyValueStoresCommand;
6521
+ const de_ListKeyValueStoresCommandError = async (output, context) => {
6522
+ const parsedOutput = {
6523
+ ...output,
6524
+ body: await parseErrorBody(output.body, context),
6525
+ };
6526
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
6527
+ switch (errorCode) {
6528
+ case "AccessDenied":
6529
+ case "com.amazonaws.cloudfront#AccessDenied":
6530
+ throw await de_AccessDeniedRes(parsedOutput, context);
6531
+ case "InvalidArgument":
6532
+ case "com.amazonaws.cloudfront#InvalidArgument":
6533
+ throw await de_InvalidArgumentRes(parsedOutput, context);
6534
+ default:
6535
+ const parsedBody = parsedOutput.body;
6536
+ return throwDefaultError({
6537
+ output,
6538
+ parsedBody: parsedBody.Error,
6539
+ errorCode,
6540
+ });
6541
+ }
6542
+ };
6264
6543
  const de_ListOriginAccessControlsCommand = async (output, context) => {
6265
6544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6266
6545
  return de_ListOriginAccessControlsCommandError(output, context);
@@ -7494,6 +7773,50 @@ const de_UpdateKeyGroupCommandError = async (output, context) => {
7494
7773
  });
7495
7774
  }
7496
7775
  };
7776
+ const de_UpdateKeyValueStoreCommand = async (output, context) => {
7777
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7778
+ return de_UpdateKeyValueStoreCommandError(output, context);
7779
+ }
7780
+ const contents = (0, smithy_client_1.map)({
7781
+ $metadata: deserializeMetadata(output),
7782
+ ETag: [, output.headers["etag"]],
7783
+ });
7784
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
7785
+ contents.KeyValueStore = de_KeyValueStore(data, context);
7786
+ return contents;
7787
+ };
7788
+ exports.de_UpdateKeyValueStoreCommand = de_UpdateKeyValueStoreCommand;
7789
+ const de_UpdateKeyValueStoreCommandError = async (output, context) => {
7790
+ const parsedOutput = {
7791
+ ...output,
7792
+ body: await parseErrorBody(output.body, context),
7793
+ };
7794
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
7795
+ switch (errorCode) {
7796
+ case "AccessDenied":
7797
+ case "com.amazonaws.cloudfront#AccessDenied":
7798
+ throw await de_AccessDeniedRes(parsedOutput, context);
7799
+ case "EntityNotFound":
7800
+ case "com.amazonaws.cloudfront#EntityNotFound":
7801
+ throw await de_EntityNotFoundRes(parsedOutput, context);
7802
+ case "InvalidArgument":
7803
+ case "com.amazonaws.cloudfront#InvalidArgument":
7804
+ throw await de_InvalidArgumentRes(parsedOutput, context);
7805
+ case "InvalidIfMatchVersion":
7806
+ case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
7807
+ throw await de_InvalidIfMatchVersionRes(parsedOutput, context);
7808
+ case "PreconditionFailed":
7809
+ case "com.amazonaws.cloudfront#PreconditionFailed":
7810
+ throw await de_PreconditionFailedRes(parsedOutput, context);
7811
+ default:
7812
+ const parsedBody = parsedOutput.body;
7813
+ return throwDefaultError({
7814
+ output,
7815
+ parsedBody: parsedBody.Error,
7816
+ errorCode,
7817
+ });
7818
+ }
7819
+ };
7497
7820
  const de_UpdateOriginAccessControlCommand = async (output, context) => {
7498
7821
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7499
7822
  return de_UpdateOriginAccessControlCommandError(output, context);
@@ -7889,6 +8212,18 @@ const de_CannotChangeImmutablePublicKeyFieldsRes = async (parsedOutput, context)
7889
8212
  });
7890
8213
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7891
8214
  };
8215
+ const de_CannotDeleteEntityWhileInUseRes = async (parsedOutput, context) => {
8216
+ const contents = (0, smithy_client_1.map)({});
8217
+ const data = parsedOutput.body.Error;
8218
+ if (data["Message"] !== undefined) {
8219
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8220
+ }
8221
+ const exception = new models_0_1.CannotDeleteEntityWhileInUse({
8222
+ $metadata: deserializeMetadata(parsedOutput),
8223
+ ...contents,
8224
+ });
8225
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8226
+ };
7892
8227
  const de_CloudFrontOriginAccessIdentityAlreadyExistsRes = async (parsedOutput, context) => {
7893
8228
  const contents = (0, smithy_client_1.map)({});
7894
8229
  const data = parsedOutput.body.Error;
@@ -7973,6 +8308,54 @@ const de_DistributionNotDisabledRes = async (parsedOutput, context) => {
7973
8308
  });
7974
8309
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7975
8310
  };
8311
+ const de_EntityAlreadyExistsRes = async (parsedOutput, context) => {
8312
+ const contents = (0, smithy_client_1.map)({});
8313
+ const data = parsedOutput.body.Error;
8314
+ if (data["Message"] !== undefined) {
8315
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8316
+ }
8317
+ const exception = new models_0_1.EntityAlreadyExists({
8318
+ $metadata: deserializeMetadata(parsedOutput),
8319
+ ...contents,
8320
+ });
8321
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8322
+ };
8323
+ const de_EntityLimitExceededRes = async (parsedOutput, context) => {
8324
+ const contents = (0, smithy_client_1.map)({});
8325
+ const data = parsedOutput.body.Error;
8326
+ if (data["Message"] !== undefined) {
8327
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8328
+ }
8329
+ const exception = new models_0_1.EntityLimitExceeded({
8330
+ $metadata: deserializeMetadata(parsedOutput),
8331
+ ...contents,
8332
+ });
8333
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8334
+ };
8335
+ const de_EntityNotFoundRes = async (parsedOutput, context) => {
8336
+ const contents = (0, smithy_client_1.map)({});
8337
+ const data = parsedOutput.body.Error;
8338
+ if (data["Message"] !== undefined) {
8339
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8340
+ }
8341
+ const exception = new models_1_1.EntityNotFound({
8342
+ $metadata: deserializeMetadata(parsedOutput),
8343
+ ...contents,
8344
+ });
8345
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8346
+ };
8347
+ const de_EntitySizeLimitExceededRes = async (parsedOutput, context) => {
8348
+ const contents = (0, smithy_client_1.map)({});
8349
+ const data = parsedOutput.body.Error;
8350
+ if (data["Message"] !== undefined) {
8351
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8352
+ }
8353
+ const exception = new models_0_1.EntitySizeLimitExceeded({
8354
+ $metadata: deserializeMetadata(parsedOutput),
8355
+ ...contents,
8356
+ });
8357
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8358
+ };
7976
8359
  const de_FieldLevelEncryptionConfigAlreadyExistsRes = async (parsedOutput, context) => {
7977
8360
  const contents = (0, smithy_client_1.map)({});
7978
8361
  const data = parsedOutput.body.Error;
@@ -10423,6 +10806,10 @@ const se_FunctionConfig = (input, context) => {
10423
10806
  const node = xml_builder_1.XmlNode.of("FunctionRuntime", input.Runtime).withName("Runtime");
10424
10807
  bodyNode.addChildNode(node);
10425
10808
  }
10809
+ if (input.KeyValueStoreAssociations != null) {
10810
+ const node = se_KeyValueStoreAssociations(input.KeyValueStoreAssociations, context).withName("KeyValueStoreAssociations");
10811
+ bodyNode.addChildNode(node);
10812
+ }
10426
10813
  return bodyNode;
10427
10814
  };
10428
10815
  const se_GeoRestriction = (input, context) => {
@@ -10469,6 +10856,18 @@ const se_Headers = (input, context) => {
10469
10856
  }
10470
10857
  return bodyNode;
10471
10858
  };
10859
+ const se_ImportSource = (input, context) => {
10860
+ const bodyNode = new xml_builder_1.XmlNode("ImportSource");
10861
+ if (input.SourceType != null) {
10862
+ const node = xml_builder_1.XmlNode.of("ImportSourceType", input.SourceType).withName("SourceType");
10863
+ bodyNode.addChildNode(node);
10864
+ }
10865
+ if (input.SourceARN != null) {
10866
+ const node = xml_builder_1.XmlNode.of("string", input.SourceARN).withName("SourceARN");
10867
+ bodyNode.addChildNode(node);
10868
+ }
10869
+ return bodyNode;
10870
+ };
10472
10871
  const se_InvalidationBatch = (input, context) => {
10473
10872
  const bodyNode = new xml_builder_1.XmlNode("InvalidationBatch");
10474
10873
  if (input.Paths != null) {
@@ -10501,6 +10900,38 @@ const se_KeyGroupConfig = (input, context) => {
10501
10900
  }
10502
10901
  return bodyNode;
10503
10902
  };
10903
+ const se_KeyValueStoreAssociation = (input, context) => {
10904
+ const bodyNode = new xml_builder_1.XmlNode("KeyValueStoreAssociation");
10905
+ if (input.KeyValueStoreARN != null) {
10906
+ const node = xml_builder_1.XmlNode.of("KeyValueStoreARN", input.KeyValueStoreARN).withName("KeyValueStoreARN");
10907
+ bodyNode.addChildNode(node);
10908
+ }
10909
+ return bodyNode;
10910
+ };
10911
+ const se_KeyValueStoreAssociationList = (input, context) => {
10912
+ return input
10913
+ .filter((e) => e != null)
10914
+ .map((entry) => {
10915
+ const node = se_KeyValueStoreAssociation(entry, context);
10916
+ return node.withName("KeyValueStoreAssociation");
10917
+ });
10918
+ };
10919
+ const se_KeyValueStoreAssociations = (input, context) => {
10920
+ const bodyNode = new xml_builder_1.XmlNode("KeyValueStoreAssociations");
10921
+ if (input.Quantity != null) {
10922
+ const node = xml_builder_1.XmlNode.of("integer", String(input.Quantity)).withName("Quantity");
10923
+ bodyNode.addChildNode(node);
10924
+ }
10925
+ if (input.Items != null) {
10926
+ const nodes = se_KeyValueStoreAssociationList(input.Items, context);
10927
+ const containerNode = new xml_builder_1.XmlNode("Items");
10928
+ nodes.map((node) => {
10929
+ containerNode.addChildNode(node);
10930
+ });
10931
+ bodyNode.addChildNode(containerNode);
10932
+ }
10933
+ return bodyNode;
10934
+ };
10504
10935
  const se_KinesisStreamConfig = (input, context) => {
10505
10936
  const bodyNode = new xml_builder_1.XmlNode("KinesisStreamConfig");
10506
10937
  if (input.RoleARN != null) {
@@ -12921,6 +13352,9 @@ const de_FunctionConfig = (output, context) => {
12921
13352
  if (output["Runtime"] !== undefined) {
12922
13353
  contents.Runtime = (0, smithy_client_1.expectString)(output["Runtime"]);
12923
13354
  }
13355
+ if (output["KeyValueStoreAssociations"] !== undefined) {
13356
+ contents.KeyValueStoreAssociations = de_KeyValueStoreAssociations(output["KeyValueStoreAssociations"], context);
13357
+ }
12924
13358
  return contents;
12925
13359
  };
12926
13360
  const de_FunctionExecutionLogList = (output, context) => {
@@ -13177,6 +13611,81 @@ const de_KeyPairIds = (output, context) => {
13177
13611
  }
13178
13612
  return contents;
13179
13613
  };
13614
+ const de_KeyValueStore = (output, context) => {
13615
+ const contents = {};
13616
+ if (output["Name"] !== undefined) {
13617
+ contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
13618
+ }
13619
+ if (output["Id"] !== undefined) {
13620
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
13621
+ }
13622
+ if (output["Comment"] !== undefined) {
13623
+ contents.Comment = (0, smithy_client_1.expectString)(output["Comment"]);
13624
+ }
13625
+ if (output["ARN"] !== undefined) {
13626
+ contents.ARN = (0, smithy_client_1.expectString)(output["ARN"]);
13627
+ }
13628
+ if (output["Status"] !== undefined) {
13629
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
13630
+ }
13631
+ if (output["LastModifiedTime"] !== undefined) {
13632
+ contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["LastModifiedTime"]));
13633
+ }
13634
+ return contents;
13635
+ };
13636
+ const de_KeyValueStoreAssociation = (output, context) => {
13637
+ const contents = {};
13638
+ if (output["KeyValueStoreARN"] !== undefined) {
13639
+ contents.KeyValueStoreARN = (0, smithy_client_1.expectString)(output["KeyValueStoreARN"]);
13640
+ }
13641
+ return contents;
13642
+ };
13643
+ const de_KeyValueStoreAssociationList = (output, context) => {
13644
+ return (output || [])
13645
+ .filter((e) => e != null)
13646
+ .map((entry) => {
13647
+ return de_KeyValueStoreAssociation(entry, context);
13648
+ });
13649
+ };
13650
+ const de_KeyValueStoreAssociations = (output, context) => {
13651
+ const contents = {};
13652
+ if (output["Quantity"] !== undefined) {
13653
+ contents.Quantity = (0, smithy_client_1.strictParseInt32)(output["Quantity"]);
13654
+ }
13655
+ if (output.Items === "") {
13656
+ contents.Items = [];
13657
+ }
13658
+ else if (output["Items"] !== undefined && output["Items"]["KeyValueStoreAssociation"] !== undefined) {
13659
+ contents.Items = de_KeyValueStoreAssociationList((0, smithy_client_1.getArrayIfSingleItem)(output["Items"]["KeyValueStoreAssociation"]), context);
13660
+ }
13661
+ return contents;
13662
+ };
13663
+ const de_KeyValueStoreList = (output, context) => {
13664
+ const contents = {};
13665
+ if (output["NextMarker"] !== undefined) {
13666
+ contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]);
13667
+ }
13668
+ if (output["MaxItems"] !== undefined) {
13669
+ contents.MaxItems = (0, smithy_client_1.strictParseInt32)(output["MaxItems"]);
13670
+ }
13671
+ if (output["Quantity"] !== undefined) {
13672
+ contents.Quantity = (0, smithy_client_1.strictParseInt32)(output["Quantity"]);
13673
+ }
13674
+ if (output.Items === "") {
13675
+ contents.Items = [];
13676
+ }
13677
+ else if (output["Items"] !== undefined && output["Items"]["KeyValueStore"] !== undefined) {
13678
+ contents.Items = de_KeyValueStoreSummaryList((0, smithy_client_1.getArrayIfSingleItem)(output["Items"]["KeyValueStore"]), context);
13679
+ }
13680
+ return contents;
13681
+ };
13682
+ const de_KeyValueStoreSummaryList = (output, context) => {
13683
+ return (output || [])
13684
+ .filter((e) => e != null)
13685
+ .map((entry) => {
13686
+ return de_KeyValueStore(entry, context);
13687
+ });
13688
+ };
13180
13689
  const de_KGKeyPairIds = (output, context) => {
13181
13690
  const contents = {};
13182
13691
  if (output["KeyGroupId"] !== undefined) {