@aws-sdk/client-cloudfront 3.848.0 → 3.855.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const A = "required", B = "fn", C = "argv", D = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = "cloudfront", k = { [A]: false, "type": "String" }, l = { [A]: true, "default": false, "type": "Boolean" }, m = { [D]: "Endpoint" }, n = { [B]: c, [C]: [{ [D]: "UseFIPS" }, true] }, o = { [B]: c, [C]: [{ [D]: "UseDualStack" }, true] }, p = {}, q = { [B]: h, [C]: [{ [B]: "getAttr", [C]: [{ [D]: g }, "name"] }, "aws"] }, r = { [B]: "getAttr", [C]: [{ [D]: g }, "name"] }, s = { [B]: c, [C]: [{ [D]: "UseFIPS" }, false] }, t = { [B]: c, [C]: [{ [D]: "UseDualStack" }, false] }, u = { "authSchemes": [{ "name": i, "signingName": j, "signingRegion": "us-east-1" }] }, v = { [B]: "getAttr", [C]: [{ [D]: g }, "supportsFIPS"] }, w = { [B]: c, [C]: [true, { [B]: "getAttr", [C]: [{ [D]: g }, "supportsDualStack"] }] }, x = [n], y = [o], z = [{ [D]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: k, UseDualStack: l, UseFIPS: l, Endpoint: k }, rules: [{ conditions: [{ [B]: b, [C]: [m] }], rules: [{ conditions: x, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: y, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: m, properties: p, headers: p }, type: e }], type: f }, { conditions: [{ [B]: b, [C]: z }], rules: [{ conditions: [{ [B]: "aws.partition", [C]: z, assign: g }], rules: [{ conditions: [q, s, t], endpoint: { url: "https://cloudfront.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [q, n, t], endpoint: { url: "https://cloudfront-fips.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [{ [B]: h, [C]: [r, "aws-cn"] }, s, t], endpoint: { url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: i, signingName: j, signingRegion: "cn-northwest-1" }] }, headers: p }, type: e }, { conditions: [n, o], rules: [{ conditions: [{ [B]: c, [C]: [a, v] }, w], rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: x, rules: [{ conditions: [{ [B]: c, [C]: [v, a] }], rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: y, rules: [{ conditions: [w], rules: [{ endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
+ const x = "required", y = "fn", z = "argv", A = "ref", B = "authSchemes", C = "name", D = "signingRegion";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [x]: true, "default": false, "type": "Boolean" }, i = { [x]: false, "type": "String" }, j = { [A]: "Endpoint" }, k = { [y]: c, [z]: [{ [A]: "UseFIPS" }, true] }, l = { [y]: c, [z]: [{ [A]: "UseDualStack" }, true] }, m = {}, n = { [y]: "stringEquals", [z]: [{ [y]: "getAttr", [z]: [{ [A]: g }, "name"] }, "aws"] }, o = { [y]: c, [z]: [{ [A]: "UseFIPS" }, false] }, p = { [B]: [{ [C]: "sigv4", [D]: "us-east-1" }] }, q = { [y]: "stringEquals", [z]: [{ [y]: "getAttr", [z]: [{ [A]: g }, "name"] }, "aws-cn"] }, r = { [y]: c, [z]: [{ [A]: "UseDualStack" }, false] }, s = { [B]: [{ [C]: "sigv4", [D]: "cn-northwest-1" }] }, t = { [y]: "getAttr", [z]: [{ [A]: g }, "supportsFIPS"] }, u = { [y]: c, [z]: [true, { [y]: "getAttr", [z]: [{ [A]: g }, "supportsDualStack"] }] }, v = { [B]: [{ [C]: "sigv4", [D]: "{PartitionResult#implicitGlobalRegion}" }] }, w = [{ [A]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [y]: b, [z]: [j] }], rules: [{ conditions: [k], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [l], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [y]: b, [z]: w }], rules: [{ conditions: [{ [y]: "aws.partition", [z]: w, assign: g }], rules: [{ conditions: [n, o, l], endpoint: { url: "https://cloudfront.global.api.aws", properties: p, headers: m }, type: e }, { conditions: [n, k, l], endpoint: { url: "https://cloudfront-fips.global.api.aws", properties: p, headers: m }, type: e }, { conditions: [q, o, r], endpoint: { url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", properties: s, headers: m }, type: e }, { conditions: [q, k, r], endpoint: { url: "https://cloudfront-fips.cn-northwest-1.amazonaws.com.cn", properties: s, headers: m }, type: e }, { conditions: [k, l], rules: [{ conditions: [{ [y]: c, [z]: [a, t] }, u], rules: [{ endpoint: { url: "https://cloudfront-fips.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [k, r], rules: [{ conditions: [{ [y]: c, [z]: [t, a] }], rules: [{ endpoint: { url: "https://cloudfront-fips.{PartitionResult#dnsSuffix}", properties: v, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [o, l], rules: [{ conditions: [u], rules: [{ endpoint: { url: "https://cloudfront.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://cloudfront.{PartitionResult#dnsSuffix}", properties: v, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -285,6 +285,8 @@ __export(index_exports, {
285
285
  OriginRequestPolicyQueryStringBehavior: () => OriginRequestPolicyQueryStringBehavior,
286
286
  OriginRequestPolicyType: () => OriginRequestPolicyType,
287
287
  OriginsFilterSensitiveLog: () => OriginsFilterSensitiveLog,
288
+ ParameterDefinitionFilterSensitiveLog: () => ParameterDefinitionFilterSensitiveLog,
289
+ ParameterDefinitionSchemaFilterSensitiveLog: () => ParameterDefinitionSchemaFilterSensitiveLog,
288
290
  PreconditionFailed: () => PreconditionFailed,
289
291
  PriceClass: () => PriceClass,
290
292
  PublicKeyAlreadyExists: () => PublicKeyAlreadyExists,
@@ -307,7 +309,9 @@ __export(index_exports, {
307
309
  StagingDistributionInUse: () => StagingDistributionInUse,
308
310
  StreamingDistributionAlreadyExists: () => StreamingDistributionAlreadyExists,
309
311
  StreamingDistributionNotDisabled: () => StreamingDistributionNotDisabled,
312
+ StringSchemaConfigFilterSensitiveLog: () => StringSchemaConfigFilterSensitiveLog,
310
313
  TagResourceCommand: () => TagResourceCommand,
314
+ TenantConfigFilterSensitiveLog: () => TenantConfigFilterSensitiveLog,
311
315
  TestFunctionCommand: () => TestFunctionCommand,
312
316
  TestFunctionFailed: () => TestFunctionFailed,
313
317
  TestFunctionRequestFilterSensitiveLog: () => TestFunctionRequestFilterSensitiveLog,
@@ -407,6 +411,7 @@ __export(index_exports, {
407
411
  paginateListInvalidations: () => paginateListInvalidations,
408
412
  paginateListInvalidationsForDistributionTenant: () => paginateListInvalidationsForDistributionTenant,
409
413
  paginateListKeyValueStores: () => paginateListKeyValueStores,
414
+ paginateListOriginAccessControls: () => paginateListOriginAccessControls,
410
415
  paginateListPublicKeys: () => paginateListPublicKeys,
411
416
  paginateListStreamingDistributions: () => paginateListStreamingDistributions,
412
417
  waitForDistributionDeployed: () => waitForDistributionDeployed,
@@ -3014,9 +3019,28 @@ var OriginFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3014
3019
  var OriginsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3015
3020
  ...obj
3016
3021
  }), "OriginsFilterSensitiveLog");
3017
- var DistributionConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3022
+ var StringSchemaConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3018
3023
  ...obj,
3019
3024
  ...obj.Comment && { Comment: import_smithy_client.SENSITIVE_STRING }
3025
+ }), "StringSchemaConfigFilterSensitiveLog");
3026
+ var ParameterDefinitionSchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3027
+ ...obj,
3028
+ ...obj.StringSchema && { StringSchema: StringSchemaConfigFilterSensitiveLog(obj.StringSchema) }
3029
+ }), "ParameterDefinitionSchemaFilterSensitiveLog");
3030
+ var ParameterDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3031
+ ...obj,
3032
+ ...obj.Definition && { Definition: ParameterDefinitionSchemaFilterSensitiveLog(obj.Definition) }
3033
+ }), "ParameterDefinitionFilterSensitiveLog");
3034
+ var TenantConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3035
+ ...obj,
3036
+ ...obj.ParameterDefinitions && {
3037
+ ParameterDefinitions: obj.ParameterDefinitions.map((item) => ParameterDefinitionFilterSensitiveLog(item))
3038
+ }
3039
+ }), "TenantConfigFilterSensitiveLog");
3040
+ var DistributionConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3041
+ ...obj,
3042
+ ...obj.Comment && { Comment: import_smithy_client.SENSITIVE_STRING },
3043
+ ...obj.TenantConfig && { TenantConfig: TenantConfigFilterSensitiveLog(obj.TenantConfig) }
3020
3044
  }), "DistributionConfigFilterSensitiveLog");
3021
3045
  var DistributionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3022
3046
  ...obj,
@@ -3902,25 +3926,32 @@ var GetFunctionResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3902
3926
  ...obj.FunctionCode && { FunctionCode: import_smithy_client.SENSITIVE_STRING }
3903
3927
  }), "GetFunctionResultFilterSensitiveLog");
3904
3928
  var DistributionSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3905
- ...obj
3929
+ ...obj,
3930
+ ...obj.Comment && { Comment: import_smithy_client.SENSITIVE_STRING }
3906
3931
  }), "DistributionSummaryFilterSensitiveLog");
3907
3932
  var DistributionListFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3908
- ...obj
3933
+ ...obj,
3934
+ ...obj.Items && { Items: obj.Items.map((item) => DistributionSummaryFilterSensitiveLog(item)) }
3909
3935
  }), "DistributionListFilterSensitiveLog");
3910
3936
  var ListDistributionsResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3911
- ...obj
3937
+ ...obj,
3938
+ ...obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }
3912
3939
  }), "ListDistributionsResultFilterSensitiveLog");
3913
3940
  var ListDistributionsByAnycastIpListIdResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3914
- ...obj
3941
+ ...obj,
3942
+ ...obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }
3915
3943
  }), "ListDistributionsByAnycastIpListIdResultFilterSensitiveLog");
3916
3944
  var ListDistributionsByConnectionModeResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3917
- ...obj
3945
+ ...obj,
3946
+ ...obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }
3918
3947
  }), "ListDistributionsByConnectionModeResultFilterSensitiveLog");
3919
3948
  var ListDistributionsByRealtimeLogConfigResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3920
- ...obj
3949
+ ...obj,
3950
+ ...obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }
3921
3951
  }), "ListDistributionsByRealtimeLogConfigResultFilterSensitiveLog");
3922
3952
  var ListDistributionsByWebACLIdResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3923
- ...obj
3953
+ ...obj,
3954
+ ...obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }
3924
3955
  }), "ListDistributionsByWebACLIdResultFilterSensitiveLog");
3925
3956
 
3926
3957
  // src/models/models_2.ts
@@ -11757,7 +11788,7 @@ var se_StreamingLoggingConfig = /* @__PURE__ */ __name((input, context) => {
11757
11788
  var se_StringSchemaConfig = /* @__PURE__ */ __name((input, context) => {
11758
11789
  const bn = new import_xml_builder.XmlNode(_SSCt);
11759
11790
  if (input[_Co] != null) {
11760
- bn.c(import_xml_builder.XmlNode.of(_s, input[_Co]).n(_Co));
11791
+ bn.c(import_xml_builder.XmlNode.of(_sST, input[_Co]).n(_Co));
11761
11792
  }
11762
11793
  if (input[_DV] != null) {
11763
11794
  bn.c(import_xml_builder.XmlNode.of(_PV, input[_DV]).n(_DV));
@@ -11851,7 +11882,7 @@ var se_ViewerCertificate = /* @__PURE__ */ __name((input, context) => {
11851
11882
  bn.c(import_xml_builder.XmlNode.of(_b, String(input[_CFDC])).n(_CFDC));
11852
11883
  }
11853
11884
  if (input[_IAMCI] != null) {
11854
- bn.c(import_xml_builder.XmlNode.of(_s, input[_IAMCI]).n(_IAMCI));
11885
+ bn.c(import_xml_builder.XmlNode.of(_SCI, input[_IAMCI]).n(_IAMCI));
11855
11886
  }
11856
11887
  if (input[_ACMCA] != null) {
11857
11888
  bn.c(import_xml_builder.XmlNode.of(_s, input[_ACMCA]).n(_ACMCA));
@@ -15620,6 +15651,7 @@ var _SARN = "SourceARN";
15620
15651
  var _SARNt = "StreamARN";
15621
15652
  var _SB = "SigningBehavior";
15622
15653
  var _SC = "SelectionCriteria";
15654
+ var _SCI = "ServerCertificateId";
15623
15655
  var _SCUI = "S3CanonicalUserId";
15624
15656
  var _SCt = "StatusCodes";
15625
15657
  var _SCta = "StatusCode";
@@ -18107,6 +18139,10 @@ var paginateListInvalidations = (0, import_core.createPaginator)(CloudFrontClien
18107
18139
 
18108
18140
  var paginateListKeyValueStores = (0, import_core.createPaginator)(CloudFrontClient, ListKeyValueStoresCommand, "Marker", "KeyValueStoreList.NextMarker", "MaxItems");
18109
18141
 
18142
+ // src/pagination/ListOriginAccessControlsPaginator.ts
18143
+
18144
+ var paginateListOriginAccessControls = (0, import_core.createPaginator)(CloudFrontClient, ListOriginAccessControlsCommand, "Marker", "OriginAccessControlList.NextMarker", "MaxItems");
18145
+
18110
18146
  // src/pagination/ListPublicKeysPaginator.ts
18111
18147
 
18112
18148
  var paginateListPublicKeys = (0, import_core.createPaginator)(CloudFrontClient, ListPublicKeysCommand, "Marker", "PublicKeyList.NextMarker", "MaxItems");
@@ -18403,6 +18439,7 @@ var waitUntilStreamingDistributionDeployed = /* @__PURE__ */ __name(async (param
18403
18439
  paginateListInvalidationsForDistributionTenant,
18404
18440
  paginateListInvalidations,
18405
18441
  paginateListKeyValueStores,
18442
+ paginateListOriginAccessControls,
18406
18443
  paginateListPublicKeys,
18407
18444
  paginateListStreamingDistributions,
18408
18445
  waitForDistributionDeployed,
@@ -18562,6 +18599,10 @@ var waitUntilStreamingDistributionDeployed = /* @__PURE__ */ __name(async (param
18562
18599
  CustomHeadersFilterSensitiveLog,
18563
18600
  OriginFilterSensitiveLog,
18564
18601
  OriginsFilterSensitiveLog,
18602
+ StringSchemaConfigFilterSensitiveLog,
18603
+ ParameterDefinitionSchemaFilterSensitiveLog,
18604
+ ParameterDefinitionFilterSensitiveLog,
18605
+ TenantConfigFilterSensitiveLog,
18565
18606
  DistributionConfigFilterSensitiveLog,
18566
18607
  DistributionFilterSensitiveLog,
18567
18608
  CopyDistributionResultFilterSensitiveLog,
@@ -1,4 +1,4 @@
1
- const A = "required", B = "fn", C = "argv", D = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = "cloudfront", k = { [A]: false, "type": "String" }, l = { [A]: true, "default": false, "type": "Boolean" }, m = { [D]: "Endpoint" }, n = { [B]: c, [C]: [{ [D]: "UseFIPS" }, true] }, o = { [B]: c, [C]: [{ [D]: "UseDualStack" }, true] }, p = {}, q = { [B]: h, [C]: [{ [B]: "getAttr", [C]: [{ [D]: g }, "name"] }, "aws"] }, r = { [B]: "getAttr", [C]: [{ [D]: g }, "name"] }, s = { [B]: c, [C]: [{ [D]: "UseFIPS" }, false] }, t = { [B]: c, [C]: [{ [D]: "UseDualStack" }, false] }, u = { "authSchemes": [{ "name": i, "signingName": j, "signingRegion": "us-east-1" }] }, v = { [B]: "getAttr", [C]: [{ [D]: g }, "supportsFIPS"] }, w = { [B]: c, [C]: [true, { [B]: "getAttr", [C]: [{ [D]: g }, "supportsDualStack"] }] }, x = [n], y = [o], z = [{ [D]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: k, UseDualStack: l, UseFIPS: l, Endpoint: k }, rules: [{ conditions: [{ [B]: b, [C]: [m] }], rules: [{ conditions: x, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: y, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: m, properties: p, headers: p }, type: e }], type: f }, { conditions: [{ [B]: b, [C]: z }], rules: [{ conditions: [{ [B]: "aws.partition", [C]: z, assign: g }], rules: [{ conditions: [q, s, t], endpoint: { url: "https://cloudfront.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [q, n, t], endpoint: { url: "https://cloudfront-fips.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [{ [B]: h, [C]: [r, "aws-cn"] }, s, t], endpoint: { url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: i, signingName: j, signingRegion: "cn-northwest-1" }] }, headers: p }, type: e }, { conditions: [n, o], rules: [{ conditions: [{ [B]: c, [C]: [a, v] }, w], rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: x, rules: [{ conditions: [{ [B]: c, [C]: [v, a] }], rules: [{ endpoint: { url: "https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: y, rules: [{ conditions: [w], rules: [{ endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
1
+ const x = "required", y = "fn", z = "argv", A = "ref", B = "authSchemes", C = "name", D = "signingRegion";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [x]: true, "default": false, "type": "Boolean" }, i = { [x]: false, "type": "String" }, j = { [A]: "Endpoint" }, k = { [y]: c, [z]: [{ [A]: "UseFIPS" }, true] }, l = { [y]: c, [z]: [{ [A]: "UseDualStack" }, true] }, m = {}, n = { [y]: "stringEquals", [z]: [{ [y]: "getAttr", [z]: [{ [A]: g }, "name"] }, "aws"] }, o = { [y]: c, [z]: [{ [A]: "UseFIPS" }, false] }, p = { [B]: [{ [C]: "sigv4", [D]: "us-east-1" }] }, q = { [y]: "stringEquals", [z]: [{ [y]: "getAttr", [z]: [{ [A]: g }, "name"] }, "aws-cn"] }, r = { [y]: c, [z]: [{ [A]: "UseDualStack" }, false] }, s = { [B]: [{ [C]: "sigv4", [D]: "cn-northwest-1" }] }, t = { [y]: "getAttr", [z]: [{ [A]: g }, "supportsFIPS"] }, u = { [y]: c, [z]: [true, { [y]: "getAttr", [z]: [{ [A]: g }, "supportsDualStack"] }] }, v = { [B]: [{ [C]: "sigv4", [D]: "{PartitionResult#implicitGlobalRegion}" }] }, w = [{ [A]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [y]: b, [z]: [j] }], rules: [{ conditions: [k], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [l], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [y]: b, [z]: w }], rules: [{ conditions: [{ [y]: "aws.partition", [z]: w, assign: g }], rules: [{ conditions: [n, o, l], endpoint: { url: "https://cloudfront.global.api.aws", properties: p, headers: m }, type: e }, { conditions: [n, k, l], endpoint: { url: "https://cloudfront-fips.global.api.aws", properties: p, headers: m }, type: e }, { conditions: [q, o, r], endpoint: { url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", properties: s, headers: m }, type: e }, { conditions: [q, k, r], endpoint: { url: "https://cloudfront-fips.cn-northwest-1.amazonaws.com.cn", properties: s, headers: m }, type: e }, { conditions: [k, l], rules: [{ conditions: [{ [y]: c, [z]: [a, t] }, u], rules: [{ endpoint: { url: "https://cloudfront-fips.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [k, r], rules: [{ conditions: [{ [y]: c, [z]: [t, a] }], rules: [{ endpoint: { url: "https://cloudfront-fips.{PartitionResult#dnsSuffix}", properties: v, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [o, l], rules: [{ conditions: [u], rules: [{ endpoint: { url: "https://cloudfront.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://cloudfront.{PartitionResult#dnsSuffix}", properties: v, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
4
  export const ruleSet = _data;
@@ -1750,9 +1750,28 @@ export const OriginFilterSensitiveLog = (obj) => ({
1750
1750
  export const OriginsFilterSensitiveLog = (obj) => ({
1751
1751
  ...obj,
1752
1752
  });
1753
+ export const StringSchemaConfigFilterSensitiveLog = (obj) => ({
1754
+ ...obj,
1755
+ ...(obj.Comment && { Comment: SENSITIVE_STRING }),
1756
+ });
1757
+ export const ParameterDefinitionSchemaFilterSensitiveLog = (obj) => ({
1758
+ ...obj,
1759
+ ...(obj.StringSchema && { StringSchema: StringSchemaConfigFilterSensitiveLog(obj.StringSchema) }),
1760
+ });
1761
+ export const ParameterDefinitionFilterSensitiveLog = (obj) => ({
1762
+ ...obj,
1763
+ ...(obj.Definition && { Definition: ParameterDefinitionSchemaFilterSensitiveLog(obj.Definition) }),
1764
+ });
1765
+ export const TenantConfigFilterSensitiveLog = (obj) => ({
1766
+ ...obj,
1767
+ ...(obj.ParameterDefinitions && {
1768
+ ParameterDefinitions: obj.ParameterDefinitions.map((item) => ParameterDefinitionFilterSensitiveLog(item)),
1769
+ }),
1770
+ });
1753
1771
  export const DistributionConfigFilterSensitiveLog = (obj) => ({
1754
1772
  ...obj,
1755
1773
  ...(obj.Comment && { Comment: SENSITIVE_STRING }),
1774
+ ...(obj.TenantConfig && { TenantConfig: TenantConfigFilterSensitiveLog(obj.TenantConfig) }),
1756
1775
  });
1757
1776
  export const DistributionFilterSensitiveLog = (obj) => ({
1758
1777
  ...obj,
@@ -615,22 +615,29 @@ export const GetFunctionResultFilterSensitiveLog = (obj) => ({
615
615
  });
616
616
  export const DistributionSummaryFilterSensitiveLog = (obj) => ({
617
617
  ...obj,
618
+ ...(obj.Comment && { Comment: SENSITIVE_STRING }),
618
619
  });
619
620
  export const DistributionListFilterSensitiveLog = (obj) => ({
620
621
  ...obj,
622
+ ...(obj.Items && { Items: obj.Items.map((item) => DistributionSummaryFilterSensitiveLog(item)) }),
621
623
  });
622
624
  export const ListDistributionsResultFilterSensitiveLog = (obj) => ({
623
625
  ...obj,
626
+ ...(obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }),
624
627
  });
625
628
  export const ListDistributionsByAnycastIpListIdResultFilterSensitiveLog = (obj) => ({
626
629
  ...obj,
630
+ ...(obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }),
627
631
  });
628
632
  export const ListDistributionsByConnectionModeResultFilterSensitiveLog = (obj) => ({
629
633
  ...obj,
634
+ ...(obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }),
630
635
  });
631
636
  export const ListDistributionsByRealtimeLogConfigResultFilterSensitiveLog = (obj) => ({
632
637
  ...obj,
638
+ ...(obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }),
633
639
  });
634
640
  export const ListDistributionsByWebACLIdResultFilterSensitiveLog = (obj) => ({
635
641
  ...obj,
642
+ ...(obj.DistributionList && { DistributionList: DistributionListFilterSensitiveLog(obj.DistributionList) }),
636
643
  });
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CloudFrontClient } from "../CloudFrontClient";
3
+ import { ListOriginAccessControlsCommand, } from "../commands/ListOriginAccessControlsCommand";
4
+ export const paginateListOriginAccessControls = createPaginator(CloudFrontClient, ListOriginAccessControlsCommand, "Marker", "OriginAccessControlList.NextMarker", "MaxItems");
@@ -9,5 +9,6 @@ export * from "./ListDomainConflictsPaginator";
9
9
  export * from "./ListInvalidationsForDistributionTenantPaginator";
10
10
  export * from "./ListInvalidationsPaginator";
11
11
  export * from "./ListKeyValueStoresPaginator";
12
+ export * from "./ListOriginAccessControlsPaginator";
12
13
  export * from "./ListPublicKeysPaginator";
13
14
  export * from "./ListStreamingDistributionsPaginator";
@@ -7860,7 +7860,7 @@ const se_StreamingLoggingConfig = (input, context) => {
7860
7860
  const se_StringSchemaConfig = (input, context) => {
7861
7861
  const bn = new __XmlNode(_SSCt);
7862
7862
  if (input[_Co] != null) {
7863
- bn.c(__XmlNode.of(_s, input[_Co]).n(_Co));
7863
+ bn.c(__XmlNode.of(_sST, input[_Co]).n(_Co));
7864
7864
  }
7865
7865
  if (input[_DV] != null) {
7866
7866
  bn.c(__XmlNode.of(_PV, input[_DV]).n(_DV));
@@ -7960,7 +7960,7 @@ const se_ViewerCertificate = (input, context) => {
7960
7960
  bn.c(__XmlNode.of(_b, String(input[_CFDC])).n(_CFDC));
7961
7961
  }
7962
7962
  if (input[_IAMCI] != null) {
7963
- bn.c(__XmlNode.of(_s, input[_IAMCI]).n(_IAMCI));
7963
+ bn.c(__XmlNode.of(_SCI, input[_IAMCI]).n(_IAMCI));
7964
7964
  }
7965
7965
  if (input[_ACMCA] != null) {
7966
7966
  bn.c(__XmlNode.of(_s, input[_ACMCA]).n(_ACMCA));
@@ -11940,6 +11940,7 @@ const _SARN = "SourceARN";
11940
11940
  const _SARNt = "StreamARN";
11941
11941
  const _SB = "SigningBehavior";
11942
11942
  const _SC = "SelectionCriteria";
11943
+ const _SCI = "ServerCertificateId";
11943
11944
  const _SCUI = "S3CanonicalUserId";
11944
11945
  const _SCt = "StatusCodes";
11945
11946
  const _SCta = "StatusCode";
@@ -3,10 +3,10 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provi
3
3
  * @public
4
4
  */
5
5
  export interface ClientInputEndpointParameters {
6
- region?: string | undefined | Provider<string | undefined>;
7
6
  useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
7
  useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
8
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
9
+ region?: string | undefined | Provider<string | undefined>;
10
10
  }
11
11
  export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
12
12
  defaultSigningName: string;
@@ -31,8 +31,8 @@ export declare const commonParams: {
31
31
  };
32
32
  };
33
33
  export interface EndpointParameters extends __EndpointParameters {
34
- Region?: string | undefined;
35
34
  UseDualStack?: boolean | undefined;
36
35
  UseFIPS?: boolean | undefined;
37
36
  Endpoint?: string | undefined;
37
+ Region?: string | undefined;
38
38
  }
@@ -5275,6 +5275,22 @@ export declare const OriginFilterSensitiveLog: (obj: Origin) => any;
5275
5275
  * @internal
5276
5276
  */
5277
5277
  export declare const OriginsFilterSensitiveLog: (obj: Origins) => any;
5278
+ /**
5279
+ * @internal
5280
+ */
5281
+ export declare const StringSchemaConfigFilterSensitiveLog: (obj: StringSchemaConfig) => any;
5282
+ /**
5283
+ * @internal
5284
+ */
5285
+ export declare const ParameterDefinitionSchemaFilterSensitiveLog: (obj: ParameterDefinitionSchema) => any;
5286
+ /**
5287
+ * @internal
5288
+ */
5289
+ export declare const ParameterDefinitionFilterSensitiveLog: (obj: ParameterDefinition) => any;
5290
+ /**
5291
+ * @internal
5292
+ */
5293
+ export declare const TenantConfigFilterSensitiveLog: (obj: TenantConfig) => any;
5278
5294
  /**
5279
5295
  * @internal
5280
5296
  */
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListOriginAccessControlsCommandInput, ListOriginAccessControlsCommandOutput } from "../commands/ListOriginAccessControlsCommand";
3
+ import { CloudFrontPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListOriginAccessControls: (config: CloudFrontPaginationConfiguration, input: ListOriginAccessControlsCommandInput, ...rest: any[]) => Paginator<ListOriginAccessControlsCommandOutput>;
@@ -9,5 +9,6 @@ export * from "./ListDomainConflictsPaginator";
9
9
  export * from "./ListInvalidationsForDistributionTenantPaginator";
10
10
  export * from "./ListInvalidationsPaginator";
11
11
  export * from "./ListKeyValueStoresPaginator";
12
+ export * from "./ListOriginAccessControlsPaginator";
12
13
  export * from "./ListPublicKeysPaginator";
13
14
  export * from "./ListStreamingDistributionsPaginator";
@@ -5,7 +5,6 @@ import {
5
5
  Provider,
6
6
  } from "@smithy/types";
7
7
  export interface ClientInputEndpointParameters {
8
- region?: string | undefined | Provider<string | undefined>;
9
8
  useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
10
9
  useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
11
10
  endpoint?:
@@ -15,6 +14,7 @@ export interface ClientInputEndpointParameters {
15
14
  | Provider<Endpoint>
16
15
  | EndpointV2
17
16
  | Provider<EndpointV2>;
17
+ region?: string | undefined | Provider<string | undefined>;
18
18
  }
19
19
  export type ClientResolvedEndpointParameters = Pick<
20
20
  ClientInputEndpointParameters,
@@ -44,8 +44,8 @@ export declare const commonParams: {
44
44
  };
45
45
  };
46
46
  export interface EndpointParameters extends __EndpointParameters {
47
- Region?: string | undefined;
48
47
  UseDualStack?: boolean | undefined;
49
48
  UseFIPS?: boolean | undefined;
50
49
  Endpoint?: string | undefined;
50
+ Region?: string | undefined;
51
51
  }
@@ -2019,6 +2019,16 @@ export declare const CustomHeadersFilterSensitiveLog: (
2019
2019
  ) => any;
2020
2020
  export declare const OriginFilterSensitiveLog: (obj: Origin) => any;
2021
2021
  export declare const OriginsFilterSensitiveLog: (obj: Origins) => any;
2022
+ export declare const StringSchemaConfigFilterSensitiveLog: (
2023
+ obj: StringSchemaConfig
2024
+ ) => any;
2025
+ export declare const ParameterDefinitionSchemaFilterSensitiveLog: (
2026
+ obj: ParameterDefinitionSchema
2027
+ ) => any;
2028
+ export declare const ParameterDefinitionFilterSensitiveLog: (
2029
+ obj: ParameterDefinition
2030
+ ) => any;
2031
+ export declare const TenantConfigFilterSensitiveLog: (obj: TenantConfig) => any;
2022
2032
  export declare const DistributionConfigFilterSensitiveLog: (
2023
2033
  obj: DistributionConfig
2024
2034
  ) => any;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListOriginAccessControlsCommandInput,
4
+ ListOriginAccessControlsCommandOutput,
5
+ } from "../commands/ListOriginAccessControlsCommand";
6
+ import { CloudFrontPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListOriginAccessControls: (
8
+ config: CloudFrontPaginationConfiguration,
9
+ input: ListOriginAccessControlsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListOriginAccessControlsCommandOutput>;
@@ -9,5 +9,6 @@ export * from "./ListDomainConflictsPaginator";
9
9
  export * from "./ListInvalidationsForDistributionTenantPaginator";
10
10
  export * from "./ListInvalidationsPaginator";
11
11
  export * from "./ListKeyValueStoresPaginator";
12
+ export * from "./ListOriginAccessControlsPaginator";
12
13
  export * from "./ListPublicKeysPaginator";
13
14
  export * from "./ListStreamingDistributionsPaginator";
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.848.0",
4
+ "version": "3.855.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudfront",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.846.0",
24
- "@aws-sdk/credential-provider-node": "3.848.0",
23
+ "@aws-sdk/core": "3.855.0",
24
+ "@aws-sdk/credential-provider-node": "3.855.0",
25
25
  "@aws-sdk/middleware-host-header": "3.840.0",
26
26
  "@aws-sdk/middleware-logger": "3.840.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
- "@aws-sdk/middleware-user-agent": "3.848.0",
28
+ "@aws-sdk/middleware-user-agent": "3.855.0",
29
29
  "@aws-sdk/region-config-resolver": "3.840.0",
30
30
  "@aws-sdk/types": "3.840.0",
31
31
  "@aws-sdk/util-endpoints": "3.848.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.840.0",
33
- "@aws-sdk/util-user-agent-node": "3.848.0",
33
+ "@aws-sdk/util-user-agent-node": "3.855.0",
34
34
  "@aws-sdk/xml-builder": "3.821.0",
35
35
  "@smithy/config-resolver": "^4.1.4",
36
36
  "@smithy/core": "^3.7.0",