@aws-sdk/client-cloudfront 3.454.0 → 3.457.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/CloudFront.js +10 -0
- package/dist-cjs/commands/CreateKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/DeleteKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/ListKeyValueStoresCommand.js +51 -0
- package/dist-cjs/commands/UpdateKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +63 -18
- package/dist-cjs/models/models_1.js +29 -1
- package/dist-cjs/pagination/ListKeyValueStoresPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restXml.js +514 -5
- package/dist-es/CloudFront.js +10 -0
- package/dist-es/commands/CreateKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/DeleteKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/DescribeKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/ListKeyValueStoresCommand.js +47 -0
- package/dist-es/commands/UpdateKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +55 -14
- package/dist-es/models/models_1.js +27 -0
- package/dist-es/pagination/ListKeyValueStoresPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restXml.js +501 -2
- package/dist-types/CloudFront.d.ts +35 -0
- package/dist-types/CloudFrontClient.d.ts +7 -2
- package/dist-types/commands/CreateFunctionCommand.d.ts +68 -0
- package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +133 -0
- package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +1 -2
- package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +100 -0
- package/dist-types/commands/DescribeFunctionCommand.d.ts +8 -0
- package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +114 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +8 -0
- package/dist-types/commands/ListKeyValueStoresCommand.d.ts +127 -0
- package/dist-types/commands/PublishFunctionCommand.d.ts +8 -0
- package/dist-types/commands/TestFunctionCommand.d.ts +8 -0
- package/dist-types/commands/UpdateFunctionCommand.d.ts +68 -0
- package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +198 -380
- package/dist-types/models/models_1.d.ts +518 -3
- package/dist-types/pagination/ListKeyValueStoresPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restXml.d.ts +45 -0
- package/dist-types/ts3.4/CloudFront.d.ts +85 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateKeyValueStoreCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeleteKeyValueStoreCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DescribeKeyValueStoreCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListKeyValueStoresCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateKeyValueStoreCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -67
- package/dist-types/ts3.4/models/models_1.d.ts +113 -2
- package/dist-types/ts3.4/pagination/ListKeyValueStoresPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +60 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
3
3
|
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { XMLParser } from "fast-xml-parser";
|
|
5
5
|
import { CloudFrontServiceException as __BaseException } from "../models/CloudFrontServiceException";
|
|
6
|
-
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CloudFrontOriginAccessIdentityAlreadyExists, CNAMEAlreadyExists, ContinuousDeploymentPolicyAlreadyExists, ContinuousDeploymentPolicyInUse, DistributionAlreadyExists, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionSizeLimitExceeded, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, IllegalOriginAccessConfiguration, IllegalUpdate, InconsistentQuantities, InvalidArgument, InvalidDefaultRootObject, InvalidDomainNameForOriginAccessControl, InvalidErrorCode, InvalidForwardCookies, InvalidFunctionAssociation, InvalidGeoRestrictionParameter, InvalidHeadersForS3Origin, InvalidIfMatchVersion, InvalidLambdaFunctionAssociation, InvalidLocationCode, InvalidMinimumProtocolVersion, InvalidOrigin, InvalidOriginAccessControl, InvalidOriginAccessIdentity, InvalidOriginKeepaliveTimeout, InvalidOriginReadTimeout, InvalidProtocolSettings, InvalidQueryStringParameters, InvalidRelativePath, InvalidRequiredProtocol, InvalidResponseCode, InvalidTagging, InvalidTTLOrder, InvalidViewerCertificate, InvalidWebACLId, KeyGroupAlreadyExists, MissingBody, MonitoringSubscriptionAlreadyExists, NoSuchCachePolicy, NoSuchContinuousDeploymentPolicy, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResponseHeadersPolicy, OriginAccessControlAlreadyExists, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch, StagingDistributionInUse, TooManyCacheBehaviors, TooManyCachePolicies, TooManyCertificates, TooManyCloudFrontOriginAccessIdentities, TooManyContinuousDeploymentPolicies, TooManyCookieNamesInWhiteList, TooManyCookiesInCachePolicy, TooManyCookiesInOriginRequestPolicy, TooManyDistributionCNAMEs, TooManyDistributions, TooManyDistributionsAssociatedToCachePolicy, TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, TooManyDistributionsAssociatedToKeyGroup, TooManyDistributionsAssociatedToOriginAccessControl, TooManyDistributionsAssociatedToOriginRequestPolicy, TooManyDistributionsAssociatedToResponseHeadersPolicy, TooManyDistributionsWithFunctionAssociations, TooManyDistributionsWithLambdaAssociations, TooManyDistributionsWithSingleFunctionARN, TooManyFieldLevelEncryptionConfigs, TooManyFieldLevelEncryptionContentTypeProfiles, TooManyFieldLevelEncryptionEncryptionEntities, TooManyFieldLevelEncryptionFieldPatterns, TooManyFieldLevelEncryptionProfiles, TooManyFieldLevelEncryptionQueryArgProfiles, TooManyFunctionAssociations, TooManyFunctions, TooManyHeadersInCachePolicy, TooManyHeadersInForwardedValues, TooManyHeadersInOriginRequestPolicy, TooManyInvalidationsInProgress, TooManyKeyGroups, TooManyKeyGroupsAssociatedToDistribution, TooManyLambdaFunctionAssociations, TooManyOriginAccessControls, TooManyOriginCustomHeaders, TooManyOriginGroupsPerDistribution, TooManyOriginRequestPolicies, TooManyOrigins, TooManyPublicKeys, TooManyPublicKeysInKeyGroup, TooManyQueryStringParameters, TooManyQueryStringsInCachePolicy, TooManyQueryStringsInOriginRequestPolicy, TooManyRealtimeLogConfigs, TooManyTrustedSigners, TrustedKeyGroupDoesNotExist, TrustedSignerDoesNotExist, UnsupportedOperation, } from "../models/models_0";
|
|
7
|
-
import { CloudFrontOriginAccessIdentityInUse, DistributionNotDisabled, FieldLevelEncryptionConfigInUse, FieldLevelEncryptionProfileInUse, FunctionInUse, IllegalDelete, NoSuchCloudFrontOriginAccessIdentity, NoSuchFunctionExists, NoSuchInvalidation, NoSuchMonitoringSubscription, NoSuchOriginAccessControl, NoSuchResource, NoSuchStreamingDistribution, OriginAccessControlInUse, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResourceInUse, ResponseHeadersPolicyAlreadyExists, ResponseHeadersPolicyInUse, StreamingDistributionAlreadyExists, StreamingDistributionNotDisabled, TestFunctionFailed, TooLongCSPInResponseHeadersPolicy, TooManyCustomHeadersInResponseHeadersPolicy, TooManyRemoveHeadersInResponseHeadersPolicy, TooManyResponseHeadersPolicies, TooManyStreamingDistributionCNAMEs, TooManyStreamingDistributions, } from "../models/models_1";
|
|
6
|
+
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CannotDeleteEntityWhileInUse, CloudFrontOriginAccessIdentityAlreadyExists, CNAMEAlreadyExists, ContinuousDeploymentPolicyAlreadyExists, ContinuousDeploymentPolicyInUse, DistributionAlreadyExists, EntityAlreadyExists, EntityLimitExceeded, EntitySizeLimitExceeded, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionSizeLimitExceeded, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, IllegalOriginAccessConfiguration, IllegalUpdate, InconsistentQuantities, InvalidArgument, InvalidDefaultRootObject, InvalidDomainNameForOriginAccessControl, InvalidErrorCode, InvalidForwardCookies, InvalidFunctionAssociation, InvalidGeoRestrictionParameter, InvalidHeadersForS3Origin, InvalidIfMatchVersion, InvalidLambdaFunctionAssociation, InvalidLocationCode, InvalidMinimumProtocolVersion, InvalidOrigin, InvalidOriginAccessControl, InvalidOriginAccessIdentity, InvalidOriginKeepaliveTimeout, InvalidOriginReadTimeout, InvalidProtocolSettings, InvalidQueryStringParameters, InvalidRelativePath, InvalidRequiredProtocol, InvalidResponseCode, InvalidTagging, InvalidTTLOrder, InvalidViewerCertificate, InvalidWebACLId, KeyGroupAlreadyExists, MissingBody, MonitoringSubscriptionAlreadyExists, NoSuchCachePolicy, NoSuchContinuousDeploymentPolicy, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResponseHeadersPolicy, OriginAccessControlAlreadyExists, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch, StagingDistributionInUse, TooManyCacheBehaviors, TooManyCachePolicies, TooManyCertificates, TooManyCloudFrontOriginAccessIdentities, TooManyContinuousDeploymentPolicies, TooManyCookieNamesInWhiteList, TooManyCookiesInCachePolicy, TooManyCookiesInOriginRequestPolicy, TooManyDistributionCNAMEs, TooManyDistributions, TooManyDistributionsAssociatedToCachePolicy, TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, TooManyDistributionsAssociatedToKeyGroup, TooManyDistributionsAssociatedToOriginAccessControl, TooManyDistributionsAssociatedToOriginRequestPolicy, TooManyDistributionsAssociatedToResponseHeadersPolicy, TooManyDistributionsWithFunctionAssociations, TooManyDistributionsWithLambdaAssociations, TooManyDistributionsWithSingleFunctionARN, TooManyFieldLevelEncryptionConfigs, TooManyFieldLevelEncryptionContentTypeProfiles, TooManyFieldLevelEncryptionEncryptionEntities, TooManyFieldLevelEncryptionFieldPatterns, TooManyFieldLevelEncryptionProfiles, TooManyFieldLevelEncryptionQueryArgProfiles, TooManyFunctionAssociations, TooManyFunctions, TooManyHeadersInCachePolicy, TooManyHeadersInForwardedValues, TooManyHeadersInOriginRequestPolicy, TooManyInvalidationsInProgress, TooManyKeyGroups, TooManyKeyGroupsAssociatedToDistribution, TooManyLambdaFunctionAssociations, TooManyOriginAccessControls, TooManyOriginCustomHeaders, TooManyOriginGroupsPerDistribution, TooManyOriginRequestPolicies, TooManyOrigins, TooManyPublicKeys, TooManyPublicKeysInKeyGroup, TooManyQueryStringParameters, TooManyQueryStringsInCachePolicy, TooManyQueryStringsInOriginRequestPolicy, TooManyRealtimeLogConfigs, TooManyTrustedSigners, TrustedKeyGroupDoesNotExist, TrustedSignerDoesNotExist, UnsupportedOperation, } from "../models/models_0";
|
|
7
|
+
import { CloudFrontOriginAccessIdentityInUse, DistributionNotDisabled, EntityNotFound, FieldLevelEncryptionConfigInUse, FieldLevelEncryptionProfileInUse, FunctionInUse, IllegalDelete, NoSuchCloudFrontOriginAccessIdentity, NoSuchFunctionExists, NoSuchInvalidation, NoSuchMonitoringSubscription, NoSuchOriginAccessControl, NoSuchResource, NoSuchStreamingDistribution, OriginAccessControlInUse, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResourceInUse, ResponseHeadersPolicyAlreadyExists, ResponseHeadersPolicyInUse, StreamingDistributionAlreadyExists, StreamingDistributionNotDisabled, TestFunctionFailed, TooLongCSPInResponseHeadersPolicy, TooManyCustomHeadersInResponseHeadersPolicy, TooManyRemoveHeadersInResponseHeadersPolicy, TooManyResponseHeadersPolicies, TooManyStreamingDistributionCNAMEs, TooManyStreamingDistributions, } from "../models/models_1";
|
|
8
8
|
export const se_AssociateAliasCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
@@ -343,6 +343,39 @@ export const se_CreateKeyGroupCommand = async (input, context) => {
|
|
|
343
343
|
body,
|
|
344
344
|
});
|
|
345
345
|
};
|
|
346
|
+
export const se_CreateKeyValueStoreCommand = async (input, context) => {
|
|
347
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
|
+
const headers = {
|
|
349
|
+
"content-type": "application/xml",
|
|
350
|
+
};
|
|
351
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store";
|
|
352
|
+
let body;
|
|
353
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
354
|
+
const bodyNode = new __XmlNode("CreateKeyValueStoreRequest");
|
|
355
|
+
bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
356
|
+
if (input.Comment !== undefined) {
|
|
357
|
+
const node = __XmlNode.of("KeyValueStoreComment", input.Comment).withName("Comment");
|
|
358
|
+
bodyNode.addChildNode(node);
|
|
359
|
+
}
|
|
360
|
+
if (input.ImportSource !== undefined) {
|
|
361
|
+
const node = se_ImportSource(input.ImportSource, context).withName("ImportSource");
|
|
362
|
+
bodyNode.addChildNode(node);
|
|
363
|
+
}
|
|
364
|
+
if (input.Name !== undefined) {
|
|
365
|
+
const node = __XmlNode.of("KeyValueStoreName", input.Name).withName("Name");
|
|
366
|
+
bodyNode.addChildNode(node);
|
|
367
|
+
}
|
|
368
|
+
body += bodyNode.toString();
|
|
369
|
+
return new __HttpRequest({
|
|
370
|
+
protocol,
|
|
371
|
+
hostname,
|
|
372
|
+
port,
|
|
373
|
+
method: "POST",
|
|
374
|
+
headers,
|
|
375
|
+
path: resolvedPath,
|
|
376
|
+
body,
|
|
377
|
+
});
|
|
378
|
+
};
|
|
346
379
|
export const se_CreateMonitoringSubscriptionCommand = async (input, context) => {
|
|
347
380
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
381
|
const headers = {
|
|
@@ -730,6 +763,24 @@ export const se_DeleteKeyGroupCommand = async (input, context) => {
|
|
|
730
763
|
body,
|
|
731
764
|
});
|
|
732
765
|
};
|
|
766
|
+
export const se_DeleteKeyValueStoreCommand = async (input, context) => {
|
|
767
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
768
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
769
|
+
"if-match": input.IfMatch,
|
|
770
|
+
});
|
|
771
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}";
|
|
772
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
773
|
+
let body;
|
|
774
|
+
return new __HttpRequest({
|
|
775
|
+
protocol,
|
|
776
|
+
hostname,
|
|
777
|
+
port,
|
|
778
|
+
method: "DELETE",
|
|
779
|
+
headers,
|
|
780
|
+
path: resolvedPath,
|
|
781
|
+
body,
|
|
782
|
+
});
|
|
783
|
+
};
|
|
733
784
|
export const se_DeleteMonitoringSubscriptionCommand = async (input, context) => {
|
|
734
785
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
735
786
|
const headers = {};
|
|
@@ -886,6 +937,22 @@ export const se_DescribeFunctionCommand = async (input, context) => {
|
|
|
886
937
|
body,
|
|
887
938
|
});
|
|
888
939
|
};
|
|
940
|
+
export const se_DescribeKeyValueStoreCommand = async (input, context) => {
|
|
941
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
942
|
+
const headers = {};
|
|
943
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}";
|
|
944
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
945
|
+
let body;
|
|
946
|
+
return new __HttpRequest({
|
|
947
|
+
protocol,
|
|
948
|
+
hostname,
|
|
949
|
+
port,
|
|
950
|
+
method: "GET",
|
|
951
|
+
headers,
|
|
952
|
+
path: resolvedPath,
|
|
953
|
+
body,
|
|
954
|
+
});
|
|
955
|
+
};
|
|
889
956
|
export const se_GetCachePolicyCommand = async (input, context) => {
|
|
890
957
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
891
958
|
const headers = {};
|
|
@@ -1721,6 +1788,27 @@ export const se_ListKeyGroupsCommand = async (input, context) => {
|
|
|
1721
1788
|
body,
|
|
1722
1789
|
});
|
|
1723
1790
|
};
|
|
1791
|
+
export const se_ListKeyValueStoresCommand = async (input, context) => {
|
|
1792
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1793
|
+
const headers = {};
|
|
1794
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store";
|
|
1795
|
+
const query = map({
|
|
1796
|
+
Marker: [, input.Marker],
|
|
1797
|
+
MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
|
|
1798
|
+
Status: [, input.Status],
|
|
1799
|
+
});
|
|
1800
|
+
let body;
|
|
1801
|
+
return new __HttpRequest({
|
|
1802
|
+
protocol,
|
|
1803
|
+
hostname,
|
|
1804
|
+
port,
|
|
1805
|
+
method: "GET",
|
|
1806
|
+
headers,
|
|
1807
|
+
path: resolvedPath,
|
|
1808
|
+
query,
|
|
1809
|
+
body,
|
|
1810
|
+
});
|
|
1811
|
+
};
|
|
1724
1812
|
export const se_ListOriginAccessControlsCommand = async (input, context) => {
|
|
1725
1813
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1726
1814
|
const headers = {};
|
|
@@ -2236,6 +2324,33 @@ export const se_UpdateKeyGroupCommand = async (input, context) => {
|
|
|
2236
2324
|
body,
|
|
2237
2325
|
});
|
|
2238
2326
|
};
|
|
2327
|
+
export const se_UpdateKeyValueStoreCommand = async (input, context) => {
|
|
2328
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2329
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
2330
|
+
"content-type": "application/xml",
|
|
2331
|
+
"if-match": input.IfMatch,
|
|
2332
|
+
});
|
|
2333
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}";
|
|
2334
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
2335
|
+
let body;
|
|
2336
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2337
|
+
const bodyNode = new __XmlNode("UpdateKeyValueStoreRequest");
|
|
2338
|
+
bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
2339
|
+
if (input.Comment !== undefined) {
|
|
2340
|
+
const node = __XmlNode.of("KeyValueStoreComment", input.Comment).withName("Comment");
|
|
2341
|
+
bodyNode.addChildNode(node);
|
|
2342
|
+
}
|
|
2343
|
+
body += bodyNode.toString();
|
|
2344
|
+
return new __HttpRequest({
|
|
2345
|
+
protocol,
|
|
2346
|
+
hostname,
|
|
2347
|
+
port,
|
|
2348
|
+
method: "PUT",
|
|
2349
|
+
headers,
|
|
2350
|
+
path: resolvedPath,
|
|
2351
|
+
body,
|
|
2352
|
+
});
|
|
2353
|
+
};
|
|
2239
2354
|
export const se_UpdateOriginAccessControlCommand = async (input, context) => {
|
|
2240
2355
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2241
2356
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -3529,6 +3644,50 @@ const de_CreateKeyGroupCommandError = async (output, context) => {
|
|
|
3529
3644
|
});
|
|
3530
3645
|
}
|
|
3531
3646
|
};
|
|
3647
|
+
export const de_CreateKeyValueStoreCommand = async (output, context) => {
|
|
3648
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3649
|
+
return de_CreateKeyValueStoreCommandError(output, context);
|
|
3650
|
+
}
|
|
3651
|
+
const contents = map({
|
|
3652
|
+
$metadata: deserializeMetadata(output),
|
|
3653
|
+
ETag: [, output.headers["etag"]],
|
|
3654
|
+
Location: [, output.headers["location"]],
|
|
3655
|
+
});
|
|
3656
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
3657
|
+
contents.KeyValueStore = de_KeyValueStore(data, context);
|
|
3658
|
+
return contents;
|
|
3659
|
+
};
|
|
3660
|
+
const de_CreateKeyValueStoreCommandError = async (output, context) => {
|
|
3661
|
+
const parsedOutput = {
|
|
3662
|
+
...output,
|
|
3663
|
+
body: await parseErrorBody(output.body, context),
|
|
3664
|
+
};
|
|
3665
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3666
|
+
switch (errorCode) {
|
|
3667
|
+
case "AccessDenied":
|
|
3668
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
3669
|
+
throw await de_AccessDeniedRes(parsedOutput, context);
|
|
3670
|
+
case "EntityAlreadyExists":
|
|
3671
|
+
case "com.amazonaws.cloudfront#EntityAlreadyExists":
|
|
3672
|
+
throw await de_EntityAlreadyExistsRes(parsedOutput, context);
|
|
3673
|
+
case "EntityLimitExceeded":
|
|
3674
|
+
case "com.amazonaws.cloudfront#EntityLimitExceeded":
|
|
3675
|
+
throw await de_EntityLimitExceededRes(parsedOutput, context);
|
|
3676
|
+
case "EntitySizeLimitExceeded":
|
|
3677
|
+
case "com.amazonaws.cloudfront#EntitySizeLimitExceeded":
|
|
3678
|
+
throw await de_EntitySizeLimitExceededRes(parsedOutput, context);
|
|
3679
|
+
case "InvalidArgument":
|
|
3680
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
3681
|
+
throw await de_InvalidArgumentRes(parsedOutput, context);
|
|
3682
|
+
default:
|
|
3683
|
+
const parsedBody = parsedOutput.body;
|
|
3684
|
+
return throwDefaultError({
|
|
3685
|
+
output,
|
|
3686
|
+
parsedBody: parsedBody.Error,
|
|
3687
|
+
errorCode,
|
|
3688
|
+
});
|
|
3689
|
+
}
|
|
3690
|
+
};
|
|
3532
3691
|
export const de_CreateMonitoringSubscriptionCommand = async (output, context) => {
|
|
3533
3692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3534
3693
|
return de_CreateMonitoringSubscriptionCommandError(output, context);
|
|
@@ -4261,6 +4420,47 @@ const de_DeleteKeyGroupCommandError = async (output, context) => {
|
|
|
4261
4420
|
});
|
|
4262
4421
|
}
|
|
4263
4422
|
};
|
|
4423
|
+
export const de_DeleteKeyValueStoreCommand = async (output, context) => {
|
|
4424
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4425
|
+
return de_DeleteKeyValueStoreCommandError(output, context);
|
|
4426
|
+
}
|
|
4427
|
+
const contents = map({
|
|
4428
|
+
$metadata: deserializeMetadata(output),
|
|
4429
|
+
});
|
|
4430
|
+
await collectBody(output.body, context);
|
|
4431
|
+
return contents;
|
|
4432
|
+
};
|
|
4433
|
+
const de_DeleteKeyValueStoreCommandError = async (output, context) => {
|
|
4434
|
+
const parsedOutput = {
|
|
4435
|
+
...output,
|
|
4436
|
+
body: await parseErrorBody(output.body, context),
|
|
4437
|
+
};
|
|
4438
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4439
|
+
switch (errorCode) {
|
|
4440
|
+
case "AccessDenied":
|
|
4441
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4442
|
+
throw await de_AccessDeniedRes(parsedOutput, context);
|
|
4443
|
+
case "CannotDeleteEntityWhileInUse":
|
|
4444
|
+
case "com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":
|
|
4445
|
+
throw await de_CannotDeleteEntityWhileInUseRes(parsedOutput, context);
|
|
4446
|
+
case "EntityNotFound":
|
|
4447
|
+
case "com.amazonaws.cloudfront#EntityNotFound":
|
|
4448
|
+
throw await de_EntityNotFoundRes(parsedOutput, context);
|
|
4449
|
+
case "InvalidIfMatchVersion":
|
|
4450
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
4451
|
+
throw await de_InvalidIfMatchVersionRes(parsedOutput, context);
|
|
4452
|
+
case "PreconditionFailed":
|
|
4453
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
4454
|
+
throw await de_PreconditionFailedRes(parsedOutput, context);
|
|
4455
|
+
default:
|
|
4456
|
+
const parsedBody = parsedOutput.body;
|
|
4457
|
+
return throwDefaultError({
|
|
4458
|
+
output,
|
|
4459
|
+
parsedBody: parsedBody.Error,
|
|
4460
|
+
errorCode,
|
|
4461
|
+
});
|
|
4462
|
+
}
|
|
4463
|
+
};
|
|
4264
4464
|
export const de_DeleteMonitoringSubscriptionCommand = async (output, context) => {
|
|
4265
4465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4266
4466
|
return de_DeleteMonitoringSubscriptionCommandError(output, context);
|
|
@@ -4582,6 +4782,43 @@ const de_DescribeFunctionCommandError = async (output, context) => {
|
|
|
4582
4782
|
});
|
|
4583
4783
|
}
|
|
4584
4784
|
};
|
|
4785
|
+
export const de_DescribeKeyValueStoreCommand = async (output, context) => {
|
|
4786
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4787
|
+
return de_DescribeKeyValueStoreCommandError(output, context);
|
|
4788
|
+
}
|
|
4789
|
+
const contents = map({
|
|
4790
|
+
$metadata: deserializeMetadata(output),
|
|
4791
|
+
ETag: [, output.headers["etag"]],
|
|
4792
|
+
});
|
|
4793
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
4794
|
+
contents.KeyValueStore = de_KeyValueStore(data, context);
|
|
4795
|
+
return contents;
|
|
4796
|
+
};
|
|
4797
|
+
const de_DescribeKeyValueStoreCommandError = async (output, context) => {
|
|
4798
|
+
const parsedOutput = {
|
|
4799
|
+
...output,
|
|
4800
|
+
body: await parseErrorBody(output.body, context),
|
|
4801
|
+
};
|
|
4802
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4803
|
+
switch (errorCode) {
|
|
4804
|
+
case "AccessDenied":
|
|
4805
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4806
|
+
throw await de_AccessDeniedRes(parsedOutput, context);
|
|
4807
|
+
case "EntityNotFound":
|
|
4808
|
+
case "com.amazonaws.cloudfront#EntityNotFound":
|
|
4809
|
+
throw await de_EntityNotFoundRes(parsedOutput, context);
|
|
4810
|
+
case "InvalidArgument":
|
|
4811
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
4812
|
+
throw await de_InvalidArgumentRes(parsedOutput, context);
|
|
4813
|
+
default:
|
|
4814
|
+
const parsedBody = parsedOutput.body;
|
|
4815
|
+
return throwDefaultError({
|
|
4816
|
+
output,
|
|
4817
|
+
parsedBody: parsedBody.Error,
|
|
4818
|
+
errorCode,
|
|
4819
|
+
});
|
|
4820
|
+
}
|
|
4821
|
+
};
|
|
4585
4822
|
export const de_GetCachePolicyCommand = async (output, context) => {
|
|
4586
4823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4587
4824
|
return de_GetCachePolicyCommandError(output, context);
|
|
@@ -6068,6 +6305,39 @@ const de_ListKeyGroupsCommandError = async (output, context) => {
|
|
|
6068
6305
|
});
|
|
6069
6306
|
}
|
|
6070
6307
|
};
|
|
6308
|
+
export const de_ListKeyValueStoresCommand = async (output, context) => {
|
|
6309
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6310
|
+
return de_ListKeyValueStoresCommandError(output, context);
|
|
6311
|
+
}
|
|
6312
|
+
const contents = map({
|
|
6313
|
+
$metadata: deserializeMetadata(output),
|
|
6314
|
+
});
|
|
6315
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
6316
|
+
contents.KeyValueStoreList = de_KeyValueStoreList(data, context);
|
|
6317
|
+
return contents;
|
|
6318
|
+
};
|
|
6319
|
+
const de_ListKeyValueStoresCommandError = async (output, context) => {
|
|
6320
|
+
const parsedOutput = {
|
|
6321
|
+
...output,
|
|
6322
|
+
body: await parseErrorBody(output.body, context),
|
|
6323
|
+
};
|
|
6324
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6325
|
+
switch (errorCode) {
|
|
6326
|
+
case "AccessDenied":
|
|
6327
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
6328
|
+
throw await de_AccessDeniedRes(parsedOutput, context);
|
|
6329
|
+
case "InvalidArgument":
|
|
6330
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6331
|
+
throw await de_InvalidArgumentRes(parsedOutput, context);
|
|
6332
|
+
default:
|
|
6333
|
+
const parsedBody = parsedOutput.body;
|
|
6334
|
+
return throwDefaultError({
|
|
6335
|
+
output,
|
|
6336
|
+
parsedBody: parsedBody.Error,
|
|
6337
|
+
errorCode,
|
|
6338
|
+
});
|
|
6339
|
+
}
|
|
6340
|
+
};
|
|
6071
6341
|
export const de_ListOriginAccessControlsCommand = async (output, context) => {
|
|
6072
6342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6073
6343
|
return de_ListOriginAccessControlsCommandError(output, context);
|
|
@@ -7281,6 +7551,49 @@ const de_UpdateKeyGroupCommandError = async (output, context) => {
|
|
|
7281
7551
|
});
|
|
7282
7552
|
}
|
|
7283
7553
|
};
|
|
7554
|
+
export const de_UpdateKeyValueStoreCommand = async (output, context) => {
|
|
7555
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7556
|
+
return de_UpdateKeyValueStoreCommandError(output, context);
|
|
7557
|
+
}
|
|
7558
|
+
const contents = map({
|
|
7559
|
+
$metadata: deserializeMetadata(output),
|
|
7560
|
+
ETag: [, output.headers["etag"]],
|
|
7561
|
+
});
|
|
7562
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
7563
|
+
contents.KeyValueStore = de_KeyValueStore(data, context);
|
|
7564
|
+
return contents;
|
|
7565
|
+
};
|
|
7566
|
+
const de_UpdateKeyValueStoreCommandError = async (output, context) => {
|
|
7567
|
+
const parsedOutput = {
|
|
7568
|
+
...output,
|
|
7569
|
+
body: await parseErrorBody(output.body, context),
|
|
7570
|
+
};
|
|
7571
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7572
|
+
switch (errorCode) {
|
|
7573
|
+
case "AccessDenied":
|
|
7574
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
7575
|
+
throw await de_AccessDeniedRes(parsedOutput, context);
|
|
7576
|
+
case "EntityNotFound":
|
|
7577
|
+
case "com.amazonaws.cloudfront#EntityNotFound":
|
|
7578
|
+
throw await de_EntityNotFoundRes(parsedOutput, context);
|
|
7579
|
+
case "InvalidArgument":
|
|
7580
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
7581
|
+
throw await de_InvalidArgumentRes(parsedOutput, context);
|
|
7582
|
+
case "InvalidIfMatchVersion":
|
|
7583
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
7584
|
+
throw await de_InvalidIfMatchVersionRes(parsedOutput, context);
|
|
7585
|
+
case "PreconditionFailed":
|
|
7586
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
7587
|
+
throw await de_PreconditionFailedRes(parsedOutput, context);
|
|
7588
|
+
default:
|
|
7589
|
+
const parsedBody = parsedOutput.body;
|
|
7590
|
+
return throwDefaultError({
|
|
7591
|
+
output,
|
|
7592
|
+
parsedBody: parsedBody.Error,
|
|
7593
|
+
errorCode,
|
|
7594
|
+
});
|
|
7595
|
+
}
|
|
7596
|
+
};
|
|
7284
7597
|
export const de_UpdateOriginAccessControlCommand = async (output, context) => {
|
|
7285
7598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7286
7599
|
return de_UpdateOriginAccessControlCommandError(output, context);
|
|
@@ -7670,6 +7983,18 @@ const de_CannotChangeImmutablePublicKeyFieldsRes = async (parsedOutput, context)
|
|
|
7670
7983
|
});
|
|
7671
7984
|
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
7672
7985
|
};
|
|
7986
|
+
const de_CannotDeleteEntityWhileInUseRes = async (parsedOutput, context) => {
|
|
7987
|
+
const contents = map({});
|
|
7988
|
+
const data = parsedOutput.body.Error;
|
|
7989
|
+
if (data["Message"] !== undefined) {
|
|
7990
|
+
contents.Message = __expectString(data["Message"]);
|
|
7991
|
+
}
|
|
7992
|
+
const exception = new CannotDeleteEntityWhileInUse({
|
|
7993
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7994
|
+
...contents,
|
|
7995
|
+
});
|
|
7996
|
+
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
7997
|
+
};
|
|
7673
7998
|
const de_CloudFrontOriginAccessIdentityAlreadyExistsRes = async (parsedOutput, context) => {
|
|
7674
7999
|
const contents = map({});
|
|
7675
8000
|
const data = parsedOutput.body.Error;
|
|
@@ -7754,6 +8079,54 @@ const de_DistributionNotDisabledRes = async (parsedOutput, context) => {
|
|
|
7754
8079
|
});
|
|
7755
8080
|
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
7756
8081
|
};
|
|
8082
|
+
const de_EntityAlreadyExistsRes = async (parsedOutput, context) => {
|
|
8083
|
+
const contents = map({});
|
|
8084
|
+
const data = parsedOutput.body.Error;
|
|
8085
|
+
if (data["Message"] !== undefined) {
|
|
8086
|
+
contents.Message = __expectString(data["Message"]);
|
|
8087
|
+
}
|
|
8088
|
+
const exception = new EntityAlreadyExists({
|
|
8089
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8090
|
+
...contents,
|
|
8091
|
+
});
|
|
8092
|
+
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
8093
|
+
};
|
|
8094
|
+
const de_EntityLimitExceededRes = async (parsedOutput, context) => {
|
|
8095
|
+
const contents = map({});
|
|
8096
|
+
const data = parsedOutput.body.Error;
|
|
8097
|
+
if (data["Message"] !== undefined) {
|
|
8098
|
+
contents.Message = __expectString(data["Message"]);
|
|
8099
|
+
}
|
|
8100
|
+
const exception = new EntityLimitExceeded({
|
|
8101
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8102
|
+
...contents,
|
|
8103
|
+
});
|
|
8104
|
+
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
8105
|
+
};
|
|
8106
|
+
const de_EntityNotFoundRes = async (parsedOutput, context) => {
|
|
8107
|
+
const contents = map({});
|
|
8108
|
+
const data = parsedOutput.body.Error;
|
|
8109
|
+
if (data["Message"] !== undefined) {
|
|
8110
|
+
contents.Message = __expectString(data["Message"]);
|
|
8111
|
+
}
|
|
8112
|
+
const exception = new EntityNotFound({
|
|
8113
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8114
|
+
...contents,
|
|
8115
|
+
});
|
|
8116
|
+
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
8117
|
+
};
|
|
8118
|
+
const de_EntitySizeLimitExceededRes = async (parsedOutput, context) => {
|
|
8119
|
+
const contents = map({});
|
|
8120
|
+
const data = parsedOutput.body.Error;
|
|
8121
|
+
if (data["Message"] !== undefined) {
|
|
8122
|
+
contents.Message = __expectString(data["Message"]);
|
|
8123
|
+
}
|
|
8124
|
+
const exception = new EntitySizeLimitExceeded({
|
|
8125
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8126
|
+
...contents,
|
|
8127
|
+
});
|
|
8128
|
+
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
8129
|
+
};
|
|
7757
8130
|
const de_FieldLevelEncryptionConfigAlreadyExistsRes = async (parsedOutput, context) => {
|
|
7758
8131
|
const contents = map({});
|
|
7759
8132
|
const data = parsedOutput.body.Error;
|
|
@@ -10204,6 +10577,10 @@ const se_FunctionConfig = (input, context) => {
|
|
|
10204
10577
|
const node = __XmlNode.of("FunctionRuntime", input.Runtime).withName("Runtime");
|
|
10205
10578
|
bodyNode.addChildNode(node);
|
|
10206
10579
|
}
|
|
10580
|
+
if (input.KeyValueStoreAssociations != null) {
|
|
10581
|
+
const node = se_KeyValueStoreAssociations(input.KeyValueStoreAssociations, context).withName("KeyValueStoreAssociations");
|
|
10582
|
+
bodyNode.addChildNode(node);
|
|
10583
|
+
}
|
|
10207
10584
|
return bodyNode;
|
|
10208
10585
|
};
|
|
10209
10586
|
const se_GeoRestriction = (input, context) => {
|
|
@@ -10250,6 +10627,18 @@ const se_Headers = (input, context) => {
|
|
|
10250
10627
|
}
|
|
10251
10628
|
return bodyNode;
|
|
10252
10629
|
};
|
|
10630
|
+
const se_ImportSource = (input, context) => {
|
|
10631
|
+
const bodyNode = new __XmlNode("ImportSource");
|
|
10632
|
+
if (input.SourceType != null) {
|
|
10633
|
+
const node = __XmlNode.of("ImportSourceType", input.SourceType).withName("SourceType");
|
|
10634
|
+
bodyNode.addChildNode(node);
|
|
10635
|
+
}
|
|
10636
|
+
if (input.SourceARN != null) {
|
|
10637
|
+
const node = __XmlNode.of("string", input.SourceARN).withName("SourceARN");
|
|
10638
|
+
bodyNode.addChildNode(node);
|
|
10639
|
+
}
|
|
10640
|
+
return bodyNode;
|
|
10641
|
+
};
|
|
10253
10642
|
const se_InvalidationBatch = (input, context) => {
|
|
10254
10643
|
const bodyNode = new __XmlNode("InvalidationBatch");
|
|
10255
10644
|
if (input.Paths != null) {
|
|
@@ -10282,6 +10671,38 @@ const se_KeyGroupConfig = (input, context) => {
|
|
|
10282
10671
|
}
|
|
10283
10672
|
return bodyNode;
|
|
10284
10673
|
};
|
|
10674
|
+
const se_KeyValueStoreAssociation = (input, context) => {
|
|
10675
|
+
const bodyNode = new __XmlNode("KeyValueStoreAssociation");
|
|
10676
|
+
if (input.KeyValueStoreARN != null) {
|
|
10677
|
+
const node = __XmlNode.of("KeyValueStoreARN", input.KeyValueStoreARN).withName("KeyValueStoreARN");
|
|
10678
|
+
bodyNode.addChildNode(node);
|
|
10679
|
+
}
|
|
10680
|
+
return bodyNode;
|
|
10681
|
+
};
|
|
10682
|
+
const se_KeyValueStoreAssociationList = (input, context) => {
|
|
10683
|
+
return input
|
|
10684
|
+
.filter((e) => e != null)
|
|
10685
|
+
.map((entry) => {
|
|
10686
|
+
const node = se_KeyValueStoreAssociation(entry, context);
|
|
10687
|
+
return node.withName("KeyValueStoreAssociation");
|
|
10688
|
+
});
|
|
10689
|
+
};
|
|
10690
|
+
const se_KeyValueStoreAssociations = (input, context) => {
|
|
10691
|
+
const bodyNode = new __XmlNode("KeyValueStoreAssociations");
|
|
10692
|
+
if (input.Quantity != null) {
|
|
10693
|
+
const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity");
|
|
10694
|
+
bodyNode.addChildNode(node);
|
|
10695
|
+
}
|
|
10696
|
+
if (input.Items != null) {
|
|
10697
|
+
const nodes = se_KeyValueStoreAssociationList(input.Items, context);
|
|
10698
|
+
const containerNode = new __XmlNode("Items");
|
|
10699
|
+
nodes.map((node) => {
|
|
10700
|
+
containerNode.addChildNode(node);
|
|
10701
|
+
});
|
|
10702
|
+
bodyNode.addChildNode(containerNode);
|
|
10703
|
+
}
|
|
10704
|
+
return bodyNode;
|
|
10705
|
+
};
|
|
10285
10706
|
const se_KinesisStreamConfig = (input, context) => {
|
|
10286
10707
|
const bodyNode = new __XmlNode("KinesisStreamConfig");
|
|
10287
10708
|
if (input.RoleARN != null) {
|
|
@@ -12702,6 +13123,9 @@ const de_FunctionConfig = (output, context) => {
|
|
|
12702
13123
|
if (output["Runtime"] !== undefined) {
|
|
12703
13124
|
contents.Runtime = __expectString(output["Runtime"]);
|
|
12704
13125
|
}
|
|
13126
|
+
if (output["KeyValueStoreAssociations"] !== undefined) {
|
|
13127
|
+
contents.KeyValueStoreAssociations = de_KeyValueStoreAssociations(output["KeyValueStoreAssociations"], context);
|
|
13128
|
+
}
|
|
12705
13129
|
return contents;
|
|
12706
13130
|
};
|
|
12707
13131
|
const de_FunctionExecutionLogList = (output, context) => {
|
|
@@ -12958,6 +13382,81 @@ const de_KeyPairIds = (output, context) => {
|
|
|
12958
13382
|
}
|
|
12959
13383
|
return contents;
|
|
12960
13384
|
};
|
|
13385
|
+
const de_KeyValueStore = (output, context) => {
|
|
13386
|
+
const contents = {};
|
|
13387
|
+
if (output["Name"] !== undefined) {
|
|
13388
|
+
contents.Name = __expectString(output["Name"]);
|
|
13389
|
+
}
|
|
13390
|
+
if (output["Id"] !== undefined) {
|
|
13391
|
+
contents.Id = __expectString(output["Id"]);
|
|
13392
|
+
}
|
|
13393
|
+
if (output["Comment"] !== undefined) {
|
|
13394
|
+
contents.Comment = __expectString(output["Comment"]);
|
|
13395
|
+
}
|
|
13396
|
+
if (output["ARN"] !== undefined) {
|
|
13397
|
+
contents.ARN = __expectString(output["ARN"]);
|
|
13398
|
+
}
|
|
13399
|
+
if (output["Status"] !== undefined) {
|
|
13400
|
+
contents.Status = __expectString(output["Status"]);
|
|
13401
|
+
}
|
|
13402
|
+
if (output["LastModifiedTime"] !== undefined) {
|
|
13403
|
+
contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"]));
|
|
13404
|
+
}
|
|
13405
|
+
return contents;
|
|
13406
|
+
};
|
|
13407
|
+
const de_KeyValueStoreAssociation = (output, context) => {
|
|
13408
|
+
const contents = {};
|
|
13409
|
+
if (output["KeyValueStoreARN"] !== undefined) {
|
|
13410
|
+
contents.KeyValueStoreARN = __expectString(output["KeyValueStoreARN"]);
|
|
13411
|
+
}
|
|
13412
|
+
return contents;
|
|
13413
|
+
};
|
|
13414
|
+
const de_KeyValueStoreAssociationList = (output, context) => {
|
|
13415
|
+
return (output || [])
|
|
13416
|
+
.filter((e) => e != null)
|
|
13417
|
+
.map((entry) => {
|
|
13418
|
+
return de_KeyValueStoreAssociation(entry, context);
|
|
13419
|
+
});
|
|
13420
|
+
};
|
|
13421
|
+
const de_KeyValueStoreAssociations = (output, context) => {
|
|
13422
|
+
const contents = {};
|
|
13423
|
+
if (output["Quantity"] !== undefined) {
|
|
13424
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
13425
|
+
}
|
|
13426
|
+
if (output.Items === "") {
|
|
13427
|
+
contents.Items = [];
|
|
13428
|
+
}
|
|
13429
|
+
else if (output["Items"] !== undefined && output["Items"]["KeyValueStoreAssociation"] !== undefined) {
|
|
13430
|
+
contents.Items = de_KeyValueStoreAssociationList(__getArrayIfSingleItem(output["Items"]["KeyValueStoreAssociation"]), context);
|
|
13431
|
+
}
|
|
13432
|
+
return contents;
|
|
13433
|
+
};
|
|
13434
|
+
const de_KeyValueStoreList = (output, context) => {
|
|
13435
|
+
const contents = {};
|
|
13436
|
+
if (output["NextMarker"] !== undefined) {
|
|
13437
|
+
contents.NextMarker = __expectString(output["NextMarker"]);
|
|
13438
|
+
}
|
|
13439
|
+
if (output["MaxItems"] !== undefined) {
|
|
13440
|
+
contents.MaxItems = __strictParseInt32(output["MaxItems"]);
|
|
13441
|
+
}
|
|
13442
|
+
if (output["Quantity"] !== undefined) {
|
|
13443
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
13444
|
+
}
|
|
13445
|
+
if (output.Items === "") {
|
|
13446
|
+
contents.Items = [];
|
|
13447
|
+
}
|
|
13448
|
+
else if (output["Items"] !== undefined && output["Items"]["KeyValueStore"] !== undefined) {
|
|
13449
|
+
contents.Items = de_KeyValueStoreSummaryList(__getArrayIfSingleItem(output["Items"]["KeyValueStore"]), context);
|
|
13450
|
+
}
|
|
13451
|
+
return contents;
|
|
13452
|
+
};
|
|
13453
|
+
const de_KeyValueStoreSummaryList = (output, context) => {
|
|
13454
|
+
return (output || [])
|
|
13455
|
+
.filter((e) => e != null)
|
|
13456
|
+
.map((entry) => {
|
|
13457
|
+
return de_KeyValueStore(entry, context);
|
|
13458
|
+
});
|
|
13459
|
+
};
|
|
12961
13460
|
const de_KGKeyPairIds = (output, context) => {
|
|
12962
13461
|
const contents = {};
|
|
12963
13462
|
if (output["KeyGroupId"] !== undefined) {
|