@aws-sdk/client-cloudfront 3.378.0 → 3.380.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/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +17 -16
- package/dist-cjs/protocols/Aws_restXml.js +19 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +14 -13
- package/dist-es/protocols/Aws_restXml.js +19 -0
- package/dist-types/commands/CopyDistributionCommand.d.ts +25 -0
- package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +24 -1
- package/dist-types/commands/CreateFunctionCommand.d.ts +2 -2
- package/dist-types/commands/DescribeFunctionCommand.d.ts +1 -1
- package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
- package/dist-types/commands/PublishFunctionCommand.d.ts +1 -1
- package/dist-types/commands/TestFunctionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDistributionCommand.d.ts +6 -0
- package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +19 -0
- package/dist-types/commands/UpdateFunctionCommand.d.ts +2 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +30 -24
- package/dist-types/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -11
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const y = "required", z = "fn", A = "argv", B = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = "cloudfront", i = { [y]: false, "type": "String" }, j = { [y]: true, "default": false, "type": "Boolean" }, k = { [B]: "Endpoint" }, l = { [z]: "booleanEquals", [A]: [{ [B]: "UseFIPS" }, true] }, m = { [z]: "booleanEquals", [A]: [{ [B]: "UseDualStack" }, true] }, n = {}, o = { [z]: f, [A]: [{ [z]: "getAttr", [A]: [{ [B]: e }, "name"] }, "aws"] }, p = { [z]: "getAttr", [A]: [{ [B]: e }, "name"] }, q = { [z]: "booleanEquals", [A]: [{ [B]: "UseFIPS" }, false] }, r = { [z]: "booleanEquals", [A]: [{ [B]: "UseDualStack" }, false] }, s = { "authSchemes": [{ "name": g, "signingName": h, "signingRegion": "us-east-1" }] }, t = { [z]: "booleanEquals", [A]: [true, { [z]: "getAttr", [A]: [{ [B]: e }, "supportsFIPS"] }] }, u = { [z]: "booleanEquals", [A]: [true, { [z]: "getAttr", [A]: [{ [B]: e }, "supportsDualStack"] }] }, v = [l], w = [m], x = [{ [B]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [z]: a, [A]: [k] }], type: b, rules: [{ conditions: v, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: w, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: k, properties: n, headers: n }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [z]: a, [A]: x }], type: b, rules: [{ conditions: [{ [z]: "aws.partition", [A]: x, assign: e }], type: b, rules: [{ conditions: [o, q, r], endpoint: { url: "https://cloudfront.amazonaws.com", properties: s, headers: n }, type: d }, { conditions: [o, l, r], endpoint: { url: "https://cloudfront-fips.amazonaws.com", properties: s, headers: n }, type: d }, { conditions: [{ [z]: f, [A]: [p, "aws-cn"] }, q, r], endpoint: { url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-northwest-1" }] }, headers: n }, type: d }, { conditions: [l, m], type: b, rules: [{ conditions: [t, u], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: v, type: b, rules: [{ conditions: [t], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: w, type: b, rules: [{ conditions: [u], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidRequiredProtocol = exports.InvalidRelativePath = exports.InvalidQueryStringParameters = exports.InvalidProtocolSettings = exports.InvalidOriginReadTimeout = exports.InvalidOriginKeepaliveTimeout = exports.InvalidOriginAccessIdentity = exports.InvalidOriginAccessControl = exports.InvalidOrigin = exports.InvalidMinimumProtocolVersion = exports.InvalidLocationCode = exports.InvalidLambdaFunctionAssociation = exports.InvalidIfMatchVersion = exports.InvalidHeadersForS3Origin = exports.InvalidGeoRestrictionParameter = exports.InvalidFunctionAssociation = exports.InvalidForwardCookies = exports.InvalidErrorCode = exports.InvalidDefaultRootObject = exports.InconsistentQuantities = exports.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior = exports.DistributionAlreadyExists = exports.SSLSupportMethod = exports.MinimumProtocolVersion = exports.GeoRestrictionType = exports.PriceClass = exports.SslProtocol = exports.OriginProtocolPolicy = exports.HttpVersion = exports.CNAMEAlreadyExists = exports.CertificateSource = exports.CannotChangeImmutablePublicKeyFields = exports.CachePolicyType = exports.CachePolicyInUse = exports.CachePolicyAlreadyExists = exports.CachePolicyQueryStringBehavior = exports.CachePolicyHeaderBehavior = exports.CachePolicyCookieBehavior = exports.ViewerProtocolPolicy = exports.EventType = exports.ItemSelection = exports.BatchTooLarge = exports.TooManyDistributionCNAMEs = exports.NoSuchDistribution = exports.InvalidArgument = exports.IllegalUpdate = exports.Method = exports.ICPRecordalStatus = exports.AccessDenied = exports.ResponseHeadersPolicyAccessControlAllowMethodsValues = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.OriginsFilterSensitiveLog = exports.OriginFilterSensitiveLog = exports.CustomHeadersFilterSensitiveLog = exports.OriginCustomHeaderFilterSensitiveLog = exports.ReferrerPolicyList = exports.FrameOptionsList = exports.TooManyRealtimeLogConfigs = exports.RealtimeLogConfigAlreadyExists = exports.TooManyPublicKeys = exports.PublicKeyAlreadyExists = exports.TooManyQueryStringsInOriginRequestPolicy = exports.TooManyOriginRequestPolicies = exports.TooManyHeadersInOriginRequestPolicy = exports.TooManyCookiesInOriginRequestPolicy = exports.OriginRequestPolicyAlreadyExists = exports.OriginRequestPolicyQueryStringBehavior = exports.OriginRequestPolicyHeaderBehavior = exports.OriginRequestPolicyCookieBehavior = exports.TooManyOriginAccessControls = exports.OriginAccessControlAlreadyExists = exports.OriginAccessControlSigningProtocols = exports.OriginAccessControlSigningBehaviors = exports.OriginAccessControlOriginTypes = exports.MonitoringSubscriptionAlreadyExists = exports.RealtimeMetricsSubscriptionStatus = exports.TooManyPublicKeysInKeyGroup = exports.TooManyKeyGroups = exports.KeyGroupAlreadyExists = exports.TooManyInvalidationsInProgress = exports.UnsupportedOperation = exports.TooManyFunctions = exports.FunctionSizeLimitExceeded = exports.FunctionAlreadyExists = exports.FunctionStage = exports.FunctionRuntime = exports.TooManyFieldLevelEncryptionProfiles = exports.TooManyFieldLevelEncryptionFieldPatterns = exports.TooManyFieldLevelEncryptionEncryptionEntities = exports.NoSuchPublicKey = exports.FieldLevelEncryptionProfileSizeExceeded = exports.FieldLevelEncryptionProfileAlreadyExists = exports.TooManyFieldLevelEncryptionQueryArgProfiles = exports.TooManyFieldLevelEncryptionContentTypeProfiles = exports.TooManyFieldLevelEncryptionConfigs = exports.QueryArgProfileEmpty = exports.NoSuchFieldLevelEncryptionProfile = exports.FieldLevelEncryptionConfigAlreadyExists = exports.Format = exports.InvalidTagging = exports.
|
|
4
|
+
exports.InvalidDomainNameForOriginAccessControl = exports.IllegalOriginAccessConfiguration = exports.ContinuousDeploymentPolicyInUse = exports.TooManyContinuousDeploymentPolicies = exports.StagingDistributionInUse = exports.ContinuousDeploymentPolicyType = exports.ContinuousDeploymentPolicyAlreadyExists = exports.TooManyCloudFrontOriginAccessIdentities = exports.CloudFrontOriginAccessIdentityAlreadyExists = exports.TooManyQueryStringsInCachePolicy = exports.TooManyHeadersInCachePolicy = exports.TooManyCookiesInCachePolicy = exports.TooManyCachePolicies = exports.TrustedSignerDoesNotExist = exports.TrustedKeyGroupDoesNotExist = exports.TooManyTrustedSigners = exports.TooManyQueryStringParameters = exports.TooManyOrigins = exports.TooManyOriginGroupsPerDistribution = exports.TooManyOriginCustomHeaders = exports.TooManyLambdaFunctionAssociations = exports.TooManyKeyGroupsAssociatedToDistribution = exports.TooManyHeadersInForwardedValues = exports.TooManyFunctionAssociations = exports.TooManyDistributionsWithSingleFunctionARN = exports.TooManyDistributionsWithLambdaAssociations = exports.TooManyDistributionsWithFunctionAssociations = exports.TooManyDistributionsAssociatedToResponseHeadersPolicy = exports.TooManyDistributionsAssociatedToOriginRequestPolicy = exports.TooManyDistributionsAssociatedToOriginAccessControl = exports.TooManyDistributionsAssociatedToKeyGroup = exports.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig = exports.TooManyDistributionsAssociatedToCachePolicy = exports.TooManyDistributions = exports.TooManyCookieNamesInWhiteList = exports.TooManyCertificates = exports.TooManyCacheBehaviors = exports.RealtimeLogConfigOwnerMismatch = exports.PreconditionFailed = exports.NoSuchResponseHeadersPolicy = exports.NoSuchRealtimeLogConfig = exports.NoSuchOriginRequestPolicy = exports.NoSuchOrigin = exports.NoSuchFieldLevelEncryptionConfig = exports.NoSuchCachePolicy = exports.MissingBody = exports.InvalidWebACLId = exports.InvalidViewerCertificate = exports.InvalidTTLOrder = exports.InvalidResponseCode = void 0;
|
|
5
|
+
exports.OriginsFilterSensitiveLog = exports.OriginFilterSensitiveLog = exports.CustomHeadersFilterSensitiveLog = exports.OriginCustomHeaderFilterSensitiveLog = exports.ReferrerPolicyList = exports.FrameOptionsList = exports.TooManyRealtimeLogConfigs = exports.RealtimeLogConfigAlreadyExists = exports.TooManyPublicKeys = exports.PublicKeyAlreadyExists = exports.TooManyQueryStringsInOriginRequestPolicy = exports.TooManyOriginRequestPolicies = exports.TooManyHeadersInOriginRequestPolicy = exports.TooManyCookiesInOriginRequestPolicy = exports.OriginRequestPolicyAlreadyExists = exports.OriginRequestPolicyQueryStringBehavior = exports.OriginRequestPolicyHeaderBehavior = exports.OriginRequestPolicyCookieBehavior = exports.TooManyOriginAccessControls = exports.OriginAccessControlAlreadyExists = exports.OriginAccessControlSigningProtocols = exports.OriginAccessControlSigningBehaviors = exports.OriginAccessControlOriginTypes = exports.MonitoringSubscriptionAlreadyExists = exports.RealtimeMetricsSubscriptionStatus = exports.TooManyPublicKeysInKeyGroup = exports.TooManyKeyGroups = exports.KeyGroupAlreadyExists = exports.TooManyInvalidationsInProgress = exports.UnsupportedOperation = exports.TooManyFunctions = exports.FunctionSizeLimitExceeded = exports.FunctionAlreadyExists = exports.FunctionStage = exports.FunctionRuntime = exports.TooManyFieldLevelEncryptionProfiles = exports.TooManyFieldLevelEncryptionFieldPatterns = exports.TooManyFieldLevelEncryptionEncryptionEntities = exports.NoSuchPublicKey = exports.FieldLevelEncryptionProfileSizeExceeded = exports.FieldLevelEncryptionProfileAlreadyExists = exports.TooManyFieldLevelEncryptionQueryArgProfiles = exports.TooManyFieldLevelEncryptionContentTypeProfiles = exports.TooManyFieldLevelEncryptionConfigs = exports.QueryArgProfileEmpty = exports.NoSuchFieldLevelEncryptionProfile = exports.FieldLevelEncryptionConfigAlreadyExists = exports.Format = exports.InvalidTagging = exports.NoSuchContinuousDeploymentPolicy = void 0;
|
|
6
6
|
exports.CreateFunctionRequestFilterSensitiveLog = exports.CreateDistributionWithTagsResultFilterSensitiveLog = exports.CreateDistributionWithTagsRequestFilterSensitiveLog = exports.DistributionConfigWithTagsFilterSensitiveLog = exports.CreateDistributionResultFilterSensitiveLog = exports.CreateDistributionRequestFilterSensitiveLog = exports.CopyDistributionResultFilterSensitiveLog = exports.DistributionFilterSensitiveLog = exports.DistributionConfigFilterSensitiveLog = void 0;
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const CloudFrontServiceException_1 = require("./CloudFrontServiceException");
|
|
@@ -840,6 +840,20 @@ class TooManyDistributionsAssociatedToKeyGroup extends CloudFrontServiceExceptio
|
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
exports.TooManyDistributionsAssociatedToKeyGroup = TooManyDistributionsAssociatedToKeyGroup;
|
|
843
|
+
class TooManyDistributionsAssociatedToOriginAccessControl extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
844
|
+
constructor(opts) {
|
|
845
|
+
super({
|
|
846
|
+
name: "TooManyDistributionsAssociatedToOriginAccessControl",
|
|
847
|
+
$fault: "client",
|
|
848
|
+
...opts,
|
|
849
|
+
});
|
|
850
|
+
this.name = "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
851
|
+
this.$fault = "client";
|
|
852
|
+
Object.setPrototypeOf(this, TooManyDistributionsAssociatedToOriginAccessControl.prototype);
|
|
853
|
+
this.Message = opts.Message;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
exports.TooManyDistributionsAssociatedToOriginAccessControl = TooManyDistributionsAssociatedToOriginAccessControl;
|
|
843
857
|
class TooManyDistributionsAssociatedToOriginRequestPolicy extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
844
858
|
constructor(opts) {
|
|
845
859
|
super({
|
|
@@ -1250,20 +1264,6 @@ class NoSuchContinuousDeploymentPolicy extends CloudFrontServiceException_1.Clou
|
|
|
1250
1264
|
}
|
|
1251
1265
|
}
|
|
1252
1266
|
exports.NoSuchContinuousDeploymentPolicy = NoSuchContinuousDeploymentPolicy;
|
|
1253
|
-
class TooManyDistributionsAssociatedToOriginAccessControl extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
1254
|
-
constructor(opts) {
|
|
1255
|
-
super({
|
|
1256
|
-
name: "TooManyDistributionsAssociatedToOriginAccessControl",
|
|
1257
|
-
$fault: "client",
|
|
1258
|
-
...opts,
|
|
1259
|
-
});
|
|
1260
|
-
this.name = "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
1261
|
-
this.$fault = "client";
|
|
1262
|
-
Object.setPrototypeOf(this, TooManyDistributionsAssociatedToOriginAccessControl.prototype);
|
|
1263
|
-
this.Message = opts.Message;
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
exports.TooManyDistributionsAssociatedToOriginAccessControl = TooManyDistributionsAssociatedToOriginAccessControl;
|
|
1267
1267
|
class InvalidTagging extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
1268
1268
|
constructor(opts) {
|
|
1269
1269
|
super({
|
|
@@ -1451,6 +1451,7 @@ class TooManyFieldLevelEncryptionProfiles extends CloudFrontServiceException_1.C
|
|
|
1451
1451
|
exports.TooManyFieldLevelEncryptionProfiles = TooManyFieldLevelEncryptionProfiles;
|
|
1452
1452
|
exports.FunctionRuntime = {
|
|
1453
1453
|
cloudfront_js_1_0: "cloudfront-js-1.0",
|
|
1454
|
+
cloudfront_js_2_0: "cloudfront-js-2.0",
|
|
1454
1455
|
};
|
|
1455
1456
|
exports.FunctionStage = {
|
|
1456
1457
|
DEVELOPMENT: "DEVELOPMENT",
|
|
@@ -52,6 +52,10 @@ const se_CopyDistributionCommand = async (input, context) => {
|
|
|
52
52
|
const node = xml_builder_1.XmlNode.of("string", input.CallerReference).withName("CallerReference");
|
|
53
53
|
bodyNode.addChildNode(node);
|
|
54
54
|
}
|
|
55
|
+
if (input.Enabled !== undefined) {
|
|
56
|
+
const node = xml_builder_1.XmlNode.of("boolean", String(input.Enabled)).withName("Enabled");
|
|
57
|
+
bodyNode.addChildNode(node);
|
|
58
|
+
}
|
|
55
59
|
body += bodyNode.toString();
|
|
56
60
|
return new protocol_http_1.HttpRequest({
|
|
57
61
|
protocol,
|
|
@@ -2745,6 +2749,9 @@ const de_CopyDistributionCommandError = async (output, context) => {
|
|
|
2745
2749
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
2746
2750
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
2747
2751
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
2752
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
2753
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
2754
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
2748
2755
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2749
2756
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2750
2757
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -3210,6 +3217,9 @@ const de_CreateDistributionWithTagsCommandError = async (output, context) => {
|
|
|
3210
3217
|
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
3211
3218
|
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
3212
3219
|
throw await de_IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorRes(parsedOutput, context);
|
|
3220
|
+
case "IllegalOriginAccessConfiguration":
|
|
3221
|
+
case "com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":
|
|
3222
|
+
throw await de_IllegalOriginAccessConfigurationRes(parsedOutput, context);
|
|
3213
3223
|
case "InconsistentQuantities":
|
|
3214
3224
|
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
3215
3225
|
throw await de_InconsistentQuantitiesRes(parsedOutput, context);
|
|
@@ -3339,6 +3349,9 @@ const de_CreateDistributionWithTagsCommandError = async (output, context) => {
|
|
|
3339
3349
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
3340
3350
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
3341
3351
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
3352
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
3353
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
3354
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
3342
3355
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
3343
3356
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
3344
3357
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -6988,6 +7001,9 @@ const de_UpdateDistributionCommandError = async (output, context) => {
|
|
|
6988
7001
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
6989
7002
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
6990
7003
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
7004
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
7005
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
7006
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
6991
7007
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
6992
7008
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
6993
7009
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -7197,6 +7213,9 @@ const de_UpdateDistributionWithStagingConfigCommandError = async (output, contex
|
|
|
7197
7213
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
7198
7214
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
7199
7215
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
7216
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
7217
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
7218
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
7200
7219
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
7201
7220
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
7202
7221
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const y = "required", z = "fn", A = "argv", B = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = "cloudfront", i = { [y]: false, "type": "String" }, j = { [y]: true, "default": false, "type": "Boolean" }, k = { [B]: "Endpoint" }, l = { [z]: "booleanEquals", [A]: [{ [B]: "UseFIPS" }, true] }, m = { [z]: "booleanEquals", [A]: [{ [B]: "UseDualStack" }, true] }, n = {}, o = { [z]: f, [A]: [{ [z]: "getAttr", [A]: [{ [B]: e }, "name"] }, "aws"] }, p = { [z]: "getAttr", [A]: [{ [B]: e }, "name"] }, q = { [z]: "booleanEquals", [A]: [{ [B]: "UseFIPS" }, false] }, r = { [z]: "booleanEquals", [A]: [{ [B]: "UseDualStack" }, false] }, s = { "authSchemes": [{ "name": g, "signingName": h, "signingRegion": "us-east-1" }] }, t = { [z]: "booleanEquals", [A]: [true, { [z]: "getAttr", [A]: [{ [B]: e }, "supportsFIPS"] }] }, u = { [z]: "booleanEquals", [A]: [true, { [z]: "getAttr", [A]: [{ [B]: e }, "supportsDualStack"] }] }, v = [l], w = [m], x = [{ [B]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [z]: a, [A]: [k] }], type: b, rules: [{ conditions: v, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: w, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: k, properties: n, headers: n }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [z]: a, [A]: x }], type: b, rules: [{ conditions: [{ [z]: "aws.partition", [A]: x, assign: e }], type: b, rules: [{ conditions: [o, q, r], endpoint: { url: "https://cloudfront.amazonaws.com", properties: s, headers: n }, type: d }, { conditions: [o, l, r], endpoint: { url: "https://cloudfront-fips.amazonaws.com", properties: s, headers: n }, type: d }, { conditions: [{ [z]: f, [A]: [p, "aws-cn"] }, q, r], endpoint: { url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-northwest-1" }] }, headers: n }, type: d }, { conditions: [l, m], type: b, rules: [{ conditions: [t, u], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: v, type: b, rules: [{ conditions: [t], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: w, type: b, rules: [{ conditions: [u], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -782,6 +782,19 @@ export class TooManyDistributionsAssociatedToKeyGroup extends __BaseException {
|
|
|
782
782
|
this.Message = opts.Message;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
+
export class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
|
|
786
|
+
constructor(opts) {
|
|
787
|
+
super({
|
|
788
|
+
name: "TooManyDistributionsAssociatedToOriginAccessControl",
|
|
789
|
+
$fault: "client",
|
|
790
|
+
...opts,
|
|
791
|
+
});
|
|
792
|
+
this.name = "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
793
|
+
this.$fault = "client";
|
|
794
|
+
Object.setPrototypeOf(this, TooManyDistributionsAssociatedToOriginAccessControl.prototype);
|
|
795
|
+
this.Message = opts.Message;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
785
798
|
export class TooManyDistributionsAssociatedToOriginRequestPolicy extends __BaseException {
|
|
786
799
|
constructor(opts) {
|
|
787
800
|
super({
|
|
@@ -1163,19 +1176,6 @@ export class NoSuchContinuousDeploymentPolicy extends __BaseException {
|
|
|
1163
1176
|
this.Message = opts.Message;
|
|
1164
1177
|
}
|
|
1165
1178
|
}
|
|
1166
|
-
export class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
|
|
1167
|
-
constructor(opts) {
|
|
1168
|
-
super({
|
|
1169
|
-
name: "TooManyDistributionsAssociatedToOriginAccessControl",
|
|
1170
|
-
$fault: "client",
|
|
1171
|
-
...opts,
|
|
1172
|
-
});
|
|
1173
|
-
this.name = "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
1174
|
-
this.$fault = "client";
|
|
1175
|
-
Object.setPrototypeOf(this, TooManyDistributionsAssociatedToOriginAccessControl.prototype);
|
|
1176
|
-
this.Message = opts.Message;
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
1179
|
export class InvalidTagging extends __BaseException {
|
|
1180
1180
|
constructor(opts) {
|
|
1181
1181
|
super({
|
|
@@ -1350,6 +1350,7 @@ export class TooManyFieldLevelEncryptionProfiles extends __BaseException {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
export const FunctionRuntime = {
|
|
1352
1352
|
cloudfront_js_1_0: "cloudfront-js-1.0",
|
|
1353
|
+
cloudfront_js_2_0: "cloudfront-js-2.0",
|
|
1353
1354
|
};
|
|
1354
1355
|
export const FunctionStage = {
|
|
1355
1356
|
DEVELOPMENT: "DEVELOPMENT",
|
|
@@ -44,6 +44,10 @@ export const se_CopyDistributionCommand = async (input, context) => {
|
|
|
44
44
|
const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference");
|
|
45
45
|
bodyNode.addChildNode(node);
|
|
46
46
|
}
|
|
47
|
+
if (input.Enabled !== undefined) {
|
|
48
|
+
const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled");
|
|
49
|
+
bodyNode.addChildNode(node);
|
|
50
|
+
}
|
|
47
51
|
body += bodyNode.toString();
|
|
48
52
|
return new __HttpRequest({
|
|
49
53
|
protocol,
|
|
@@ -2630,6 +2634,9 @@ const de_CopyDistributionCommandError = async (output, context) => {
|
|
|
2630
2634
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
2631
2635
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
2632
2636
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
2637
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
2638
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
2639
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
2633
2640
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2634
2641
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2635
2642
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -3090,6 +3097,9 @@ const de_CreateDistributionWithTagsCommandError = async (output, context) => {
|
|
|
3090
3097
|
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
3091
3098
|
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
3092
3099
|
throw await de_IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorRes(parsedOutput, context);
|
|
3100
|
+
case "IllegalOriginAccessConfiguration":
|
|
3101
|
+
case "com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":
|
|
3102
|
+
throw await de_IllegalOriginAccessConfigurationRes(parsedOutput, context);
|
|
3093
3103
|
case "InconsistentQuantities":
|
|
3094
3104
|
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
3095
3105
|
throw await de_InconsistentQuantitiesRes(parsedOutput, context);
|
|
@@ -3219,6 +3229,9 @@ const de_CreateDistributionWithTagsCommandError = async (output, context) => {
|
|
|
3219
3229
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
3220
3230
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
3221
3231
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
3232
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
3233
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
3234
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
3222
3235
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
3223
3236
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
3224
3237
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -6780,6 +6793,9 @@ const de_UpdateDistributionCommandError = async (output, context) => {
|
|
|
6780
6793
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
6781
6794
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
6782
6795
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
6796
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
6797
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
6798
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
6783
6799
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
6784
6800
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
6785
6801
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -6988,6 +7004,9 @@ const de_UpdateDistributionWithStagingConfigCommandError = async (output, contex
|
|
|
6988
7004
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
6989
7005
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
6990
7006
|
throw await de_TooManyDistributionsAssociatedToKeyGroupRes(parsedOutput, context);
|
|
7007
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
7008
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
7009
|
+
throw await de_TooManyDistributionsAssociatedToOriginAccessControlRes(parsedOutput, context);
|
|
6991
7010
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
6992
7011
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
6993
7012
|
throw await de_TooManyDistributionsAssociatedToOriginRequestPolicyRes(parsedOutput, context);
|
|
@@ -30,6 +30,24 @@ export interface CopyDistributionCommandOutput extends CopyDistributionResult, _
|
|
|
30
30
|
* to modify the staging distribution's configuration. Then you can use
|
|
31
31
|
* <code>CreateContinuousDeploymentPolicy</code> to incrementally move traffic to the
|
|
32
32
|
* staging distribution.</p>
|
|
33
|
+
* <p>This API operation requires the following IAM permissions:</p>
|
|
34
|
+
* <ul>
|
|
35
|
+
* <li>
|
|
36
|
+
* <p>
|
|
37
|
+
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html">GetDistribution</a>
|
|
38
|
+
* </p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>
|
|
42
|
+
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html">CreateDistribution</a>
|
|
43
|
+
* </p>
|
|
44
|
+
* </li>
|
|
45
|
+
* <li>
|
|
46
|
+
* <p>
|
|
47
|
+
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CopyDistribution.html">CopyDistribution</a>
|
|
48
|
+
* </p>
|
|
49
|
+
* </li>
|
|
50
|
+
* </ul>
|
|
33
51
|
* @example
|
|
34
52
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
53
|
* ```javascript
|
|
@@ -41,6 +59,7 @@ export interface CopyDistributionCommandOutput extends CopyDistributionResult, _
|
|
|
41
59
|
* Staging: true || false,
|
|
42
60
|
* IfMatch: "STRING_VALUE",
|
|
43
61
|
* CallerReference: "STRING_VALUE", // required
|
|
62
|
+
* Enabled: true || false,
|
|
44
63
|
* };
|
|
45
64
|
* const command = new CopyDistributionCommand(input);
|
|
46
65
|
* const response = await client.send(command);
|
|
@@ -551,6 +570,12 @@ export interface CopyDistributionCommandOutput extends CopyDistributionResult, _
|
|
|
551
570
|
* allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
552
571
|
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
553
572
|
*
|
|
573
|
+
* @throws {@link TooManyDistributionsAssociatedToOriginAccessControl} (client fault)
|
|
574
|
+
* <p>The maximum number of distributions have been associated with the specified origin
|
|
575
|
+
* access control.</p>
|
|
576
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
577
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
578
|
+
*
|
|
554
579
|
* @throws {@link TooManyDistributionsAssociatedToOriginRequestPolicy} (client fault)
|
|
555
580
|
* <p>The maximum number of distributions have been associated with the specified origin
|
|
556
581
|
* request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
@@ -23,7 +23,20 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Create a new distribution with tags
|
|
26
|
+
* <p>Create a new distribution with tags. This API operation requires the following IAM
|
|
27
|
+
* permissions:</p>
|
|
28
|
+
* <ul>
|
|
29
|
+
* <li>
|
|
30
|
+
* <p>
|
|
31
|
+
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html">CreateDistribution</a>
|
|
32
|
+
* </p>
|
|
33
|
+
* </li>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>
|
|
36
|
+
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_TagResource.html">TagResource</a>
|
|
37
|
+
* </p>
|
|
38
|
+
* </li>
|
|
39
|
+
* </ul>
|
|
27
40
|
* @example
|
|
28
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
42
|
* ```javascript
|
|
@@ -693,6 +706,10 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
|
|
|
693
706
|
* <p>The specified configuration for field-level encryption can't be associated with the
|
|
694
707
|
* specified cache behavior.</p>
|
|
695
708
|
*
|
|
709
|
+
* @throws {@link IllegalOriginAccessConfiguration} (client fault)
|
|
710
|
+
* <p>An origin cannot contain both an origin access control (OAC) and an origin access
|
|
711
|
+
* identity (OAI).</p>
|
|
712
|
+
*
|
|
696
713
|
* @throws {@link InconsistentQuantities} (client fault)
|
|
697
714
|
* <p>The value of <code>Quantity</code> and the size of <code>Items</code> don't
|
|
698
715
|
* match.</p>
|
|
@@ -842,6 +859,12 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
|
|
|
842
859
|
* allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
843
860
|
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
844
861
|
*
|
|
862
|
+
* @throws {@link TooManyDistributionsAssociatedToOriginAccessControl} (client fault)
|
|
863
|
+
* <p>The maximum number of distributions have been associated with the specified origin
|
|
864
|
+
* access control.</p>
|
|
865
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
866
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
867
|
+
*
|
|
845
868
|
* @throws {@link TooManyDistributionsAssociatedToOriginRequestPolicy} (client fault)
|
|
846
869
|
* <p>The maximum number of distributions have been associated with the specified origin
|
|
847
870
|
* request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
@@ -44,7 +44,7 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResult, __Met
|
|
|
44
44
|
* Name: "STRING_VALUE", // required
|
|
45
45
|
* FunctionConfig: { // FunctionConfig
|
|
46
46
|
* Comment: "STRING_VALUE", // required
|
|
47
|
-
* Runtime: "cloudfront-js-1.0", // required
|
|
47
|
+
* Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
48
48
|
* },
|
|
49
49
|
* FunctionCode: "BLOB_VALUE", // required
|
|
50
50
|
* };
|
|
@@ -56,7 +56,7 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResult, __Met
|
|
|
56
56
|
* // Status: "STRING_VALUE",
|
|
57
57
|
* // FunctionConfig: { // FunctionConfig
|
|
58
58
|
* // Comment: "STRING_VALUE", // required
|
|
59
|
-
* // Runtime: "cloudfront-js-1.0", // required
|
|
59
|
+
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
60
60
|
* // },
|
|
61
61
|
* // FunctionMetadata: { // FunctionMetadata
|
|
62
62
|
* // FunctionARN: "STRING_VALUE", // required
|
|
@@ -46,7 +46,7 @@ export interface DescribeFunctionCommandOutput extends DescribeFunctionResult, _
|
|
|
46
46
|
* // Status: "STRING_VALUE",
|
|
47
47
|
* // FunctionConfig: { // FunctionConfig
|
|
48
48
|
* // Comment: "STRING_VALUE", // required
|
|
49
|
-
* // Runtime: "cloudfront-js-1.0", // required
|
|
49
|
+
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
50
50
|
* // },
|
|
51
51
|
* // FunctionMetadata: { // FunctionMetadata
|
|
52
52
|
* // FunctionARN: "STRING_VALUE", // required
|
|
@@ -55,7 +55,7 @@ export interface ListFunctionsCommandOutput extends ListFunctionsResult, __Metad
|
|
|
55
55
|
* // Status: "STRING_VALUE",
|
|
56
56
|
* // FunctionConfig: { // FunctionConfig
|
|
57
57
|
* // Comment: "STRING_VALUE", // required
|
|
58
|
-
* // Runtime: "cloudfront-js-1.0", // required
|
|
58
|
+
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
59
59
|
* // },
|
|
60
60
|
* // FunctionMetadata: { // FunctionMetadata
|
|
61
61
|
* // FunctionARN: "STRING_VALUE", // required
|
|
@@ -51,7 +51,7 @@ export interface PublishFunctionCommandOutput extends PublishFunctionResult, __M
|
|
|
51
51
|
* // Status: "STRING_VALUE",
|
|
52
52
|
* // FunctionConfig: { // FunctionConfig
|
|
53
53
|
* // Comment: "STRING_VALUE", // required
|
|
54
|
-
* // Runtime: "cloudfront-js-1.0", // required
|
|
54
|
+
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
55
55
|
* // },
|
|
56
56
|
* // FunctionMetadata: { // FunctionMetadata
|
|
57
57
|
* // FunctionARN: "STRING_VALUE", // required
|
|
@@ -54,7 +54,7 @@ export interface TestFunctionCommandOutput extends TestFunctionResult, __Metadat
|
|
|
54
54
|
* // Status: "STRING_VALUE",
|
|
55
55
|
* // FunctionConfig: { // FunctionConfig
|
|
56
56
|
* // Comment: "STRING_VALUE", // required
|
|
57
|
-
* // Runtime: "cloudfront-js-1.0", // required
|
|
57
|
+
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
58
58
|
* // },
|
|
59
59
|
* // FunctionMetadata: { // FunctionMetadata
|
|
60
60
|
* // FunctionARN: "STRING_VALUE", // required
|
|
@@ -870,6 +870,12 @@ export interface UpdateDistributionCommandOutput extends UpdateDistributionResul
|
|
|
870
870
|
* allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
871
871
|
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
872
872
|
*
|
|
873
|
+
* @throws {@link TooManyDistributionsAssociatedToOriginAccessControl} (client fault)
|
|
874
|
+
* <p>The maximum number of distributions have been associated with the specified origin
|
|
875
|
+
* access control.</p>
|
|
876
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
877
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
878
|
+
*
|
|
873
879
|
* @throws {@link TooManyDistributionsAssociatedToOriginRequestPolicy} (client fault)
|
|
874
880
|
* <p>The maximum number of distributions have been associated with the specified origin
|
|
875
881
|
* request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
@@ -33,6 +33,19 @@ export interface UpdateDistributionWithStagingConfigCommandOutput extends Update
|
|
|
33
33
|
* verifying that it works as intended, you can use this operation to copy the staging
|
|
34
34
|
* distribution's configuration to the primary distribution. This action will disable the
|
|
35
35
|
* continuous deployment policy and move your domain's traffic back to the primary distribution.</p>
|
|
36
|
+
* <p>This API operation requires the following IAM permissions:</p>
|
|
37
|
+
* <ul>
|
|
38
|
+
* <li>
|
|
39
|
+
* <p>
|
|
40
|
+
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html">GetDistribution</a>
|
|
41
|
+
* </p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>
|
|
45
|
+
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html">UpdateDistribution</a>
|
|
46
|
+
* </p>
|
|
47
|
+
* </li>
|
|
48
|
+
* </ul>
|
|
36
49
|
* @example
|
|
37
50
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
51
|
* ```javascript
|
|
@@ -540,6 +553,12 @@ export interface UpdateDistributionWithStagingConfigCommandOutput extends Update
|
|
|
540
553
|
* allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
541
554
|
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
542
555
|
*
|
|
556
|
+
* @throws {@link TooManyDistributionsAssociatedToOriginAccessControl} (client fault)
|
|
557
|
+
* <p>The maximum number of distributions have been associated with the specified origin
|
|
558
|
+
* access control.</p>
|
|
559
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
560
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
561
|
+
*
|
|
543
562
|
* @throws {@link TooManyDistributionsAssociatedToOriginRequestPolicy} (client fault)
|
|
544
563
|
* <p>The maximum number of distributions have been associated with the specified origin
|
|
545
564
|
* request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
@@ -40,7 +40,7 @@ export interface UpdateFunctionCommandOutput extends UpdateFunctionResult, __Met
|
|
|
40
40
|
* IfMatch: "STRING_VALUE", // required
|
|
41
41
|
* FunctionConfig: { // FunctionConfig
|
|
42
42
|
* Comment: "STRING_VALUE", // required
|
|
43
|
-
* Runtime: "cloudfront-js-1.0", // required
|
|
43
|
+
* Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
44
44
|
* },
|
|
45
45
|
* FunctionCode: "BLOB_VALUE", // required
|
|
46
46
|
* };
|
|
@@ -52,7 +52,7 @@ export interface UpdateFunctionCommandOutput extends UpdateFunctionResult, __Met
|
|
|
52
52
|
* // Status: "STRING_VALUE",
|
|
53
53
|
* // FunctionConfig: { // FunctionConfig
|
|
54
54
|
* // Comment: "STRING_VALUE", // required
|
|
55
|
-
* // Runtime: "cloudfront-js-1.0", // required
|
|
55
|
+
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
56
56
|
* // },
|
|
57
57
|
* // FunctionMetadata: { // FunctionMetadata
|
|
58
58
|
* // FunctionARN: "STRING_VALUE", // required
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export interface ClientInputEndpointParameters {
|
|
3
6
|
region?: string | Provider<string>;
|
|
4
7
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -107,9 +107,8 @@ export interface Signer {
|
|
|
107
107
|
*/
|
|
108
108
|
export interface ActiveTrustedSigners {
|
|
109
109
|
/**
|
|
110
|
-
* <p>This field is <code>true</code> if any of the Amazon Web Services accounts in the list
|
|
111
|
-
*
|
|
112
|
-
* cookies. If not, this field is <code>false</code>.</p>
|
|
110
|
+
* <p>This field is <code>true</code> if any of the Amazon Web Services accounts in the list are configured as
|
|
111
|
+
* trusted signers. If not, this field is <code>false</code>.</p>
|
|
113
112
|
*/
|
|
114
113
|
Enabled: boolean | undefined;
|
|
115
114
|
/**
|
|
@@ -737,9 +736,8 @@ export interface TrustedKeyGroups {
|
|
|
737
736
|
*/
|
|
738
737
|
export interface TrustedSigners {
|
|
739
738
|
/**
|
|
740
|
-
* <p>This field is <code>true</code> if any of the Amazon Web Services accounts
|
|
741
|
-
*
|
|
742
|
-
* field is <code>false</code>.</p>
|
|
739
|
+
* <p>This field is <code>true</code> if any of the Amazon Web Services accounts in the list are configured as
|
|
740
|
+
* trusted signers. If not, this field is <code>false</code>.</p>
|
|
743
741
|
*/
|
|
744
742
|
Enabled: boolean | undefined;
|
|
745
743
|
/**
|
|
@@ -1566,6 +1564,14 @@ export interface CopyDistributionRequest {
|
|
|
1566
1564
|
* request.</p>
|
|
1567
1565
|
*/
|
|
1568
1566
|
CallerReference: string | undefined;
|
|
1567
|
+
/**
|
|
1568
|
+
* <p>A Boolean flag to specify the state of the staging distribution when it's
|
|
1569
|
+
* created. When you set this value to <code>True</code>, the staging
|
|
1570
|
+
* distribution is enabled. When you set this value to <code>False</code>, the
|
|
1571
|
+
* staging distribution is disabled.</p>
|
|
1572
|
+
* <p>If you omit this field, the default value is <code>True</code>.</p>
|
|
1573
|
+
*/
|
|
1574
|
+
Enabled?: boolean;
|
|
1569
1575
|
}
|
|
1570
1576
|
/**
|
|
1571
1577
|
* @public
|
|
@@ -3534,6 +3540,22 @@ export declare class TooManyDistributionsAssociatedToKeyGroup extends __BaseExce
|
|
|
3534
3540
|
*/
|
|
3535
3541
|
constructor(opts: __ExceptionOptionType<TooManyDistributionsAssociatedToKeyGroup, __BaseException>);
|
|
3536
3542
|
}
|
|
3543
|
+
/**
|
|
3544
|
+
* @public
|
|
3545
|
+
* <p>The maximum number of distributions have been associated with the specified origin
|
|
3546
|
+
* access control.</p>
|
|
3547
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
3548
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
3549
|
+
*/
|
|
3550
|
+
export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
|
|
3551
|
+
readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
3552
|
+
readonly $fault: "client";
|
|
3553
|
+
Message?: string;
|
|
3554
|
+
/**
|
|
3555
|
+
* @internal
|
|
3556
|
+
*/
|
|
3557
|
+
constructor(opts: __ExceptionOptionType<TooManyDistributionsAssociatedToOriginAccessControl, __BaseException>);
|
|
3558
|
+
}
|
|
3537
3559
|
/**
|
|
3538
3560
|
* @public
|
|
3539
3561
|
* <p>The maximum number of distributions have been associated with the specified origin
|
|
@@ -4247,22 +4269,6 @@ export declare class NoSuchContinuousDeploymentPolicy extends __BaseException {
|
|
|
4247
4269
|
*/
|
|
4248
4270
|
constructor(opts: __ExceptionOptionType<NoSuchContinuousDeploymentPolicy, __BaseException>);
|
|
4249
4271
|
}
|
|
4250
|
-
/**
|
|
4251
|
-
* @public
|
|
4252
|
-
* <p>The maximum number of distributions have been associated with the specified origin
|
|
4253
|
-
* access control.</p>
|
|
4254
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
4255
|
-
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
4256
|
-
*/
|
|
4257
|
-
export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
|
|
4258
|
-
readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
4259
|
-
readonly $fault: "client";
|
|
4260
|
-
Message?: string;
|
|
4261
|
-
/**
|
|
4262
|
-
* @internal
|
|
4263
|
-
*/
|
|
4264
|
-
constructor(opts: __ExceptionOptionType<TooManyDistributionsAssociatedToOriginAccessControl, __BaseException>);
|
|
4265
|
-
}
|
|
4266
4272
|
/**
|
|
4267
4273
|
* @public
|
|
4268
4274
|
* <p>A complex type that contains <code>Tag</code> key and <code>Tag</code> value.</p>
|
|
@@ -4827,6 +4833,7 @@ export declare class TooManyFieldLevelEncryptionProfiles extends __BaseException
|
|
|
4827
4833
|
*/
|
|
4828
4834
|
export declare const FunctionRuntime: {
|
|
4829
4835
|
readonly cloudfront_js_1_0: "cloudfront-js-1.0";
|
|
4836
|
+
readonly cloudfront_js_2_0: "cloudfront-js-2.0";
|
|
4830
4837
|
};
|
|
4831
4838
|
/**
|
|
4832
4839
|
* @public
|
|
@@ -4842,8 +4849,7 @@ export interface FunctionConfig {
|
|
|
4842
4849
|
*/
|
|
4843
4850
|
Comment: string | undefined;
|
|
4844
4851
|
/**
|
|
4845
|
-
* <p>The function's runtime environment
|
|
4846
|
-
* <code>cloudfront-js-1.0</code>.</p>
|
|
4852
|
+
* <p>The function's runtime environment verion.</p>
|
|
4847
4853
|
*/
|
|
4848
4854
|
Runtime: FunctionRuntime | string | undefined;
|
|
4849
4855
|
}
|
|
@@ -36,7 +36,9 @@ export declare const getRuntimeConfig: (config: CloudFrontClientConfig) => {
|
|
|
36
36
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
37
37
|
signingEscapePath?: boolean | undefined;
|
|
38
38
|
systemClockOffset?: number | undefined;
|
|
39
|
-
signingRegion?: string | undefined;
|
|
39
|
+
signingRegion?: string | undefined; /**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
40
42
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
41
43
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
42
44
|
};
|
|
@@ -321,6 +321,7 @@ export interface CopyDistributionRequest {
|
|
|
321
321
|
Staging?: boolean;
|
|
322
322
|
IfMatch?: string;
|
|
323
323
|
CallerReference: string | undefined;
|
|
324
|
+
Enabled?: boolean;
|
|
324
325
|
}
|
|
325
326
|
export interface CustomErrorResponse {
|
|
326
327
|
ErrorCode: number | undefined;
|
|
@@ -869,6 +870,17 @@ export declare class TooManyDistributionsAssociatedToKeyGroup extends __BaseExce
|
|
|
869
870
|
>
|
|
870
871
|
);
|
|
871
872
|
}
|
|
873
|
+
export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
|
|
874
|
+
readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
875
|
+
readonly $fault: "client";
|
|
876
|
+
Message?: string;
|
|
877
|
+
constructor(
|
|
878
|
+
opts: __ExceptionOptionType<
|
|
879
|
+
TooManyDistributionsAssociatedToOriginAccessControl,
|
|
880
|
+
__BaseException
|
|
881
|
+
>
|
|
882
|
+
);
|
|
883
|
+
}
|
|
872
884
|
export declare class TooManyDistributionsAssociatedToOriginRequestPolicy extends __BaseException {
|
|
873
885
|
readonly name: "TooManyDistributionsAssociatedToOriginRequestPolicy";
|
|
874
886
|
readonly $fault: "client";
|
|
@@ -1237,17 +1249,6 @@ export declare class NoSuchContinuousDeploymentPolicy extends __BaseException {
|
|
|
1237
1249
|
>
|
|
1238
1250
|
);
|
|
1239
1251
|
}
|
|
1240
|
-
export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
|
|
1241
|
-
readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
|
|
1242
|
-
readonly $fault: "client";
|
|
1243
|
-
Message?: string;
|
|
1244
|
-
constructor(
|
|
1245
|
-
opts: __ExceptionOptionType<
|
|
1246
|
-
TooManyDistributionsAssociatedToOriginAccessControl,
|
|
1247
|
-
__BaseException
|
|
1248
|
-
>
|
|
1249
|
-
);
|
|
1250
|
-
}
|
|
1251
1252
|
export interface Tag {
|
|
1252
1253
|
Key: string | undefined;
|
|
1253
1254
|
Value?: string;
|
|
@@ -1483,6 +1484,7 @@ export declare class TooManyFieldLevelEncryptionProfiles extends __BaseException
|
|
|
1483
1484
|
}
|
|
1484
1485
|
export declare const FunctionRuntime: {
|
|
1485
1486
|
readonly cloudfront_js_1_0: "cloudfront-js-1.0";
|
|
1487
|
+
readonly cloudfront_js_2_0: "cloudfront-js-2.0";
|
|
1486
1488
|
};
|
|
1487
1489
|
export type FunctionRuntime =
|
|
1488
1490
|
(typeof FunctionRuntime)[keyof typeof FunctionRuntime];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudfront",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.380.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.379.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.379.1",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.379.1",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.378.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.378.0",
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.379.1",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.379.1",
|
|
31
31
|
"@aws-sdk/types": "3.378.0",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.378.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.378.0",
|