@aws-sdk/client-s3-control 3.777.0 → 3.779.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/endpoint/endpointResolver.js +1 -0
  3. package/dist-cjs/endpoint/ruleset.js +3 -3
  4. package/dist-cjs/index.js +482 -201
  5. package/dist-es/S3Control.js +8 -0
  6. package/dist-es/commands/CreateAccessPointCommand.js +1 -0
  7. package/dist-es/commands/DeleteAccessPointScopeCommand.js +30 -0
  8. package/dist-es/commands/GetAccessPointScopeCommand.js +30 -0
  9. package/dist-es/commands/ListAccessPointsForDirectoryBucketsCommand.js +29 -0
  10. package/dist-es/commands/PutAccessPointScopeCommand.js +30 -0
  11. package/dist-es/commands/index.js +4 -0
  12. package/dist-es/endpoint/endpointResolver.js +1 -0
  13. package/dist-es/endpoint/ruleset.js +3 -3
  14. package/dist-es/models/models_0.js +10 -0
  15. package/dist-es/pagination/ListAccessPointsForDirectoryBucketsPaginator.js +4 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restXml.js +221 -51
  18. package/dist-types/S3Control.d.ts +29 -0
  19. package/dist-types/S3ControlClient.d.ts +6 -2
  20. package/dist-types/commands/CreateAccessPointCommand.d.ts +16 -5
  21. package/dist-types/commands/DeleteAccessPointCommand.d.ts +1 -4
  22. package/dist-types/commands/DeleteAccessPointPolicyCommand.d.ts +1 -4
  23. package/dist-types/commands/DeleteAccessPointScopeCommand.d.ts +78 -0
  24. package/dist-types/commands/GetAccessPointCommand.d.ts +1 -4
  25. package/dist-types/commands/GetAccessPointPolicyCommand.d.ts +1 -4
  26. package/dist-types/commands/GetAccessPointScopeCommand.d.ts +84 -0
  27. package/dist-types/commands/ListAccessPointsForDirectoryBucketsCommand.d.ts +92 -0
  28. package/dist-types/commands/ListJobsCommand.d.ts +2 -1
  29. package/dist-types/commands/ListMultiRegionAccessPointsCommand.d.ts +1 -1
  30. package/dist-types/commands/ListRegionalBucketsCommand.d.ts +1 -1
  31. package/dist-types/commands/ListStorageLensConfigurationsCommand.d.ts +1 -2
  32. package/dist-types/commands/PutAccessPointPolicyCommand.d.ts +1 -4
  33. package/dist-types/commands/PutAccessPointScopeCommand.d.ts +128 -0
  34. package/dist-types/commands/index.d.ts +4 -0
  35. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  36. package/dist-types/models/models_0.d.ts +141 -147
  37. package/dist-types/models/models_1.d.ts +172 -3
  38. package/dist-types/pagination/ListAccessPointsForDirectoryBucketsPaginator.d.ts +7 -0
  39. package/dist-types/pagination/index.d.ts +1 -0
  40. package/dist-types/protocols/Aws_restXml.d.ts +36 -0
  41. package/dist-types/ts3.4/S3Control.d.ts +75 -0
  42. package/dist-types/ts3.4/S3ControlClient.d.ts +24 -0
  43. package/dist-types/ts3.4/commands/DeleteAccessPointScopeCommand.d.ts +46 -0
  44. package/dist-types/ts3.4/commands/GetAccessPointScopeCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/ListAccessPointsForDirectoryBucketsCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +2 -1
  47. package/dist-types/ts3.4/commands/ListMultiRegionAccessPointsCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/ListRegionalBucketsCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/ListStorageLensConfigurationsCommand.d.ts +4 -2
  50. package/dist-types/ts3.4/commands/PutAccessPointScopeCommand.d.ts +46 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  52. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +38 -34
  54. package/dist-types/ts3.4/models/models_1.d.ts +42 -0
  55. package/dist-types/ts3.4/pagination/ListAccessPointsForDirectoryBucketsPaginator.d.ts +11 -0
  56. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  57. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +48 -0
  58. package/package.json +1 -1
package/README.md CHANGED
@@ -346,6 +346,14 @@ DeleteAccessPointPolicyForObjectLambda
346
346
 
347
347
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/DeleteAccessPointPolicyForObjectLambdaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/DeleteAccessPointPolicyForObjectLambdaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/DeleteAccessPointPolicyForObjectLambdaCommandOutput/)
348
348
 
349
+ </details>
350
+ <details>
351
+ <summary>
352
+ DeleteAccessPointScope
353
+ </summary>
354
+
355
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/DeleteAccessPointScopeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/DeleteAccessPointScopeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/DeleteAccessPointScopeCommandOutput/)
356
+
349
357
  </details>
350
358
  <details>
351
359
  <summary>
@@ -554,6 +562,14 @@ GetAccessPointPolicyStatusForObjectLambda
554
562
 
555
563
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/GetAccessPointPolicyStatusForObjectLambdaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/GetAccessPointPolicyStatusForObjectLambdaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/GetAccessPointPolicyStatusForObjectLambdaCommandOutput/)
556
564
 
565
+ </details>
566
+ <details>
567
+ <summary>
568
+ GetAccessPointScope
569
+ </summary>
570
+
571
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/GetAccessPointScopeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/GetAccessPointScopeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/GetAccessPointScopeCommandOutput/)
572
+
557
573
  </details>
558
574
  <details>
559
575
  <summary>
@@ -714,6 +730,14 @@ ListAccessPoints
714
730
 
715
731
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/ListAccessPointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/ListAccessPointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/ListAccessPointsCommandOutput/)
716
732
 
733
+ </details>
734
+ <details>
735
+ <summary>
736
+ ListAccessPointsForDirectoryBuckets
737
+ </summary>
738
+
739
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/ListAccessPointsForDirectoryBucketsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/ListAccessPointsForDirectoryBucketsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/ListAccessPointsForDirectoryBucketsCommandOutput/)
740
+
717
741
  </details>
718
742
  <details>
719
743
  <summary>
@@ -810,6 +834,14 @@ PutAccessPointPolicyForObjectLambda
810
834
 
811
835
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/PutAccessPointPolicyForObjectLambdaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/PutAccessPointPolicyForObjectLambdaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/PutAccessPointPolicyForObjectLambdaCommandOutput/)
812
836
 
837
+ </details>
838
+ <details>
839
+ <summary>
840
+ PutAccessPointScope
841
+ </summary>
842
+
843
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3-control/command/PutAccessPointScopeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/PutAccessPointScopeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3-control/Interface/PutAccessPointScopeCommandOutput/)
844
+
813
845
  </details>
814
846
  <details>
815
847
  <summary>
@@ -17,6 +17,7 @@ const cache = new util_endpoints_2.EndpointCache({
17
17
  "UseArnRegion",
18
18
  "UseDualStack",
19
19
  "UseFIPS",
20
+ "UseS3ExpressControlEndpoint",
20
21
  ],
21
22
  });
22
23
  const defaultEndpointResolver = (endpointParams, context = {}) => {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const aF = "required", aG = "type", aH = "conditions", aI = "fn", aJ = "argv", aK = "ref", aL = "assign", aM = "authSchemes", aN = "disableDoubleEncoding", aO = "name", aP = "signingName", aQ = "signingRegion", aR = "x-amz-account-id", aS = "x-amz-outpost-id";
5
- const a = false, b = true, c = "isSet", d = "stringEquals", e = "aws.partition", f = "error", g = "{Region}", h = "endpoint", i = "tree", j = "getAttr", k = "not", l = "isValidHostLabel", m = "Invalid Configuration: DualStack and custom endpoint are not supported", n = "{url#scheme}://{url#authority}{url#path}", o = "s3-outposts", p = "aws.parseArn", q = "accessPointArn", r = "resourceId[0]", s = "arnType", t = "service", u = "resourceId[1]", v = "outpostId", w = "arnPartition", x = "{accessPointArn#accountId}", y = "resourceId[2]", z = "outpostType", A = "resourceId[3]", B = "bucketArn", C = "{bucketArn#accountId}", D = { [aF]: false, [aG]: "String" }, E = { [aF]: true, "default": false, [aG]: "Boolean" }, F = { [aF]: false, [aG]: "Boolean" }, G = { [aK]: "Region" }, H = { [aI]: c, [aJ]: [{ [aK]: "Endpoint" }] }, I = { [aI]: "parseURL", [aJ]: [{ [aK]: "Endpoint" }], [aL]: "url" }, J = { [aI]: "booleanEquals", [aJ]: [{ [aK]: "UseDualStack" }, true] }, K = { [aI]: "booleanEquals", [aJ]: [{ [aK]: "UseFIPS" }, true] }, L = { [aM]: [{ [aN]: true, [aO]: "sigv4", [aP]: "s3", [aQ]: g }] }, M = {}, N = { [aK]: "OutpostId" }, O = { [aH]: [K, { [aI]: d, [aJ]: [{ [aI]: j, [aJ]: [{ [aK]: "partitionResult" }, "name"] }, "aws-cn"] }], [f]: "Partition does not support FIPS", [aG]: f }, P = { [aH]: [{ [aI]: c, [aJ]: [{ [aK]: "RequiresAccountId" }] }, { [aI]: "booleanEquals", [aJ]: [{ [aK]: "RequiresAccountId" }, true] }, { [aI]: k, [aJ]: [{ [aI]: c, [aJ]: [{ [aK]: "AccountId" }] }] }], [f]: "AccountId is required but not set", [aG]: f }, Q = { [aI]: c, [aJ]: [{ [aK]: "RequiresAccountId" }] }, R = { [aI]: "booleanEquals", [aJ]: [{ [aK]: "RequiresAccountId" }, true] }, S = { [aI]: c, [aJ]: [{ [aK]: "AccountId" }] }, T = { [aK]: "AccountId" }, U = { [aH]: [S, { [aI]: k, [aJ]: [{ [aI]: l, [aJ]: [T, false] }] }], [f]: "AccountId must only contain a-z, A-Z, 0-9 and `-`.", [aG]: f }, V = { [aH]: [H, J], [f]: m, [aG]: f }, W = { [aM]: [{ [aN]: true, [aO]: "sigv4", [aP]: o, [aQ]: g }] }, X = { [f]: "Invalid region: region was not a valid DNS name.", [aG]: f }, Y = { [aK]: q }, Z = { [aI]: k, [aJ]: [{ [aI]: d, [aJ]: [{ [aK]: s }, ""] }] }, aa = { [aI]: c, [aJ]: [{ [aK]: "UseArnRegion" }] }, ab = { [aI]: "booleanEquals", [aJ]: [{ [aK]: "UseArnRegion" }, false] }, ac = { [aI]: j, [aJ]: [Y, "region"] }, ad = { [aI]: j, [aJ]: [Y, "accountId"] }, ae = { [aK]: z }, af = { [aM]: [{ [aN]: true, [aO]: "sigv4", [aP]: o, [aQ]: "{accessPointArn#region}" }] }, ag = { [aR]: [x], [aS]: ["{outpostId}"] }, ah = { [f]: "Invalid ARN: Expected a 4-component resource", [aG]: f }, ai = { [f]: "Invalid ARN: missing account ID", [aG]: f }, aj = { [f]: "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", [aG]: f }, ak = { [f]: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", [aG]: f }, al = { [f]: "Invalid ARN: The Outpost Id was not set", [aG]: f }, am = { [f]: "Invalid ARN: No ARN type specified", [aG]: f }, an = { [aK]: B }, ao = { [aI]: j, [aJ]: [an, "region"] }, ap = { [aI]: j, [aJ]: [an, "accountId"] }, aq = { [aM]: [{ [aN]: true, [aO]: "sigv4", [aP]: o, [aQ]: "{bucketArn#region}" }] }, ar = { [aR]: [C], [aS]: ["{outpostId}"] }, as = { [aI]: "booleanEquals", [aJ]: [{ [aK]: "UseDualStack" }, false] }, at = { [aI]: "booleanEquals", [aJ]: [{ [aK]: "UseFIPS" }, false] }, au = [G], av = [{ [aI]: e, [aJ]: [G], [aL]: "partitionResult" }], aw = [J], ax = [K], ay = [{ [aI]: l, [aJ]: [G, true] }], az = [H, I], aA = [K, J], aB = [{ [aK]: "AccessPointName" }], aC = [{ [aI]: l, [aJ]: [{ [aK]: v }, false] }], aD = [{ [aI]: d, [aJ]: [{ [aI]: j, [aJ]: [{ [aK]: w }, "name"] }, { [aI]: j, [aJ]: [{ [aK]: "partitionResult" }, "name"] }] }], aE = [{ [aK]: "Bucket" }];
6
- const _data = { version: "1.0", parameters: { Region: D, UseFIPS: E, UseDualStack: E, Endpoint: D, AccountId: D, RequiresAccountId: F, OutpostId: D, Bucket: D, AccessPointName: D, UseArnRegion: F }, rules: [{ [aH]: [{ [aI]: c, [aJ]: au }], rules: [{ [aH]: [{ [aI]: d, [aJ]: [G, "snow"] }, H, I], rules: [{ [aH]: av, rules: [{ [aH]: aw, error: "S3 Snow does not support DualStack", [aG]: f }, { [aH]: ax, error: "S3 Snow does not support FIPS", [aG]: f }, { endpoint: { url: "{url#scheme}://{url#authority}", properties: L, headers: M }, [aG]: h }], [aG]: i }], [aG]: i }, { [aH]: [{ [aI]: c, [aJ]: [N] }], rules: [{ [aH]: av, rules: [O, P, U, { [aH]: [{ [aI]: k, [aJ]: [{ [aI]: l, [aJ]: [N, a] }] }], error: "OutpostId must only contain a-z, A-Z, 0-9 and `-`.", [aG]: f }, V, { [aH]: ay, rules: [{ [aH]: az, endpoint: { url: n, properties: W, headers: M }, [aG]: h }, { [aH]: aA, endpoint: { url: "https://s3-outposts-fips.{Region}.{partitionResult#dualStackDnsSuffix}", properties: W, headers: M }, [aG]: h }, { [aH]: ax, endpoint: { url: "https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}", properties: W, headers: M }, [aG]: h }, { [aH]: aw, endpoint: { url: "https://s3-outposts.{Region}.{partitionResult#dualStackDnsSuffix}", properties: W, headers: M }, [aG]: h }, { endpoint: { url: "https://s3-outposts.{Region}.{partitionResult#dnsSuffix}", properties: W, headers: M }, [aG]: h }], [aG]: i }, X], [aG]: i }], [aG]: i }, { [aH]: [{ [aI]: c, [aJ]: aB }, { [aI]: p, [aJ]: aB, [aL]: q }], rules: [{ [aH]: [{ [aI]: j, [aJ]: [Y, r], [aL]: s }, Z], rules: [{ [aH]: [{ [aI]: d, [aJ]: [{ [aI]: j, [aJ]: [Y, t] }, o] }], rules: [{ [aH]: [{ [aI]: j, [aJ]: [Y, u], [aL]: v }], rules: [{ [aH]: aC, rules: [V, { [aH]: [aa, ab, { [aI]: k, [aJ]: [{ [aI]: d, [aJ]: [ac, g] }] }], error: "Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aG]: f }, { [aH]: av, rules: [{ [aH]: [{ [aI]: e, [aJ]: [ac], [aL]: w }], rules: [{ [aH]: aD, rules: [{ [aH]: [{ [aI]: l, [aJ]: [ac, b] }], rules: [{ [aH]: [{ [aI]: k, [aJ]: [{ [aI]: d, [aJ]: [ad, ""] }] }], rules: [{ [aH]: [{ [aI]: l, [aJ]: [ad, a] }], rules: [{ [aH]: [S, { [aI]: k, [aJ]: [{ [aI]: d, [aJ]: [T, x] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)", [aG]: f }, { [aH]: [{ [aI]: j, [aJ]: [Y, y], [aL]: z }], rules: [{ [aH]: [{ [aI]: j, [aJ]: [Y, A], [aL]: "accessPointName" }], rules: [{ [aH]: [{ [aI]: d, [aJ]: [ae, "accesspoint"] }], rules: [{ [aH]: aA, endpoint: { url: "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dualStackDnsSuffix}", properties: af, headers: ag }, [aG]: h }, { [aH]: ax, endpoint: { url: "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}", properties: af, headers: ag }, [aG]: h }, { [aH]: aw, endpoint: { url: "https://s3-outposts.{accessPointArn#region}.{arnPartition#dualStackDnsSuffix}", properties: af, headers: ag }, [aG]: h }, { [aH]: az, endpoint: { url: n, properties: af, headers: ag }, [aG]: h }, { endpoint: { url: "https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}", properties: af, headers: ag }, [aG]: h }], [aG]: i }, { error: "Expected an outpost type `accesspoint`, found `{outpostType}`", [aG]: f }], [aG]: i }, { error: "Invalid ARN: expected an access point name", [aG]: f }], [aG]: i }, ah], [aG]: i }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`", [aG]: f }], [aG]: i }, ai], [aG]: i }, { error: "Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)", [aG]: f }], [aG]: i }, aj], [aG]: i }], [aG]: i }], [aG]: i }, ak], [aG]: i }, al], [aG]: i }], [aG]: i }, am], [aG]: i }, { [aH]: [{ [aI]: c, [aJ]: aE }, { [aI]: p, [aJ]: aE, [aL]: B }], rules: [{ [aH]: [{ [aI]: j, [aJ]: [an, r], [aL]: s }, Z], rules: [{ [aH]: [{ [aI]: d, [aJ]: [{ [aI]: j, [aJ]: [an, t] }, o] }], rules: [{ [aH]: [{ [aI]: j, [aJ]: [an, u], [aL]: v }], rules: [{ [aH]: aC, rules: [V, { [aH]: [aa, ab, { [aI]: k, [aJ]: [{ [aI]: d, [aJ]: [ao, g] }] }], error: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aG]: f }, { [aH]: [{ [aI]: e, [aJ]: [ao], [aL]: w }], rules: [{ [aH]: av, rules: [{ [aH]: aD, rules: [{ [aH]: [{ [aI]: l, [aJ]: [ao, b] }], rules: [{ [aH]: [{ [aI]: k, [aJ]: [{ [aI]: d, [aJ]: [ap, ""] }] }], rules: [{ [aH]: [{ [aI]: l, [aJ]: [ap, a] }], rules: [{ [aH]: [S, { [aI]: k, [aJ]: [{ [aI]: d, [aJ]: [T, C] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)", [aG]: f }, { [aH]: [{ [aI]: j, [aJ]: [an, y], [aL]: z }], rules: [{ [aH]: [{ [aI]: j, [aJ]: [an, A], [aL]: "bucketName" }], rules: [{ [aH]: [{ [aI]: d, [aJ]: [ae, "bucket"] }], rules: [{ [aH]: aA, endpoint: { url: "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dualStackDnsSuffix}", properties: aq, headers: ar }, [aG]: h }, { [aH]: ax, endpoint: { url: "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}", properties: aq, headers: ar }, [aG]: h }, { [aH]: aw, endpoint: { url: "https://s3-outposts.{bucketArn#region}.{arnPartition#dualStackDnsSuffix}", properties: aq, headers: ar }, [aG]: h }, { [aH]: az, endpoint: { url: n, properties: aq, headers: ar }, [aG]: h }, { endpoint: { url: "https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}", properties: aq, headers: ar }, [aG]: h }], [aG]: i }, { error: "Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`", [aG]: f }], [aG]: i }, { error: "Invalid ARN: expected a bucket name", [aG]: f }], [aG]: i }, ah], [aG]: i }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [aG]: f }], [aG]: i }, ai], [aG]: i }, { error: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [aG]: f }], [aG]: i }, aj], [aG]: i }], [aG]: i }], [aG]: i }, ak], [aG]: i }, al], [aG]: i }], [aG]: i }, am], [aG]: i }, { [aH]: av, rules: [{ [aH]: ay, rules: [O, P, U, { [aH]: az, rules: [{ [aH]: aw, error: m, [aG]: f }, { [aH]: [Q, R, S], endpoint: { url: "{url#scheme}://{AccountId}.{url#authority}{url#path}", properties: L, headers: M }, [aG]: h }, { endpoint: { url: n, properties: L, headers: M }, [aG]: h }], [aG]: i }, { [aH]: [K, J, Q, R, S], endpoint: { url: "https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }, { [aH]: aA, endpoint: { url: "https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }, { [aH]: [K, as, Q, R, S], endpoint: { url: "https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }, { [aH]: [K, as], endpoint: { url: "https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }, { [aH]: [at, J, Q, R, S], endpoint: { url: "https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }, { [aH]: [at, J], endpoint: { url: "https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }, { [aH]: [at, as, Q, R, S], endpoint: { url: "https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }, { [aH]: [at, as], endpoint: { url: "https://s3-control.{Region}.{partitionResult#dnsSuffix}", properties: L, headers: M }, [aG]: h }], [aG]: i }, X], [aG]: i }], [aG]: i }, { error: "Region must be set", [aG]: f }] };
4
+ const aQ = "required", aR = "type", aS = "conditions", aT = "fn", aU = "argv", aV = "ref", aW = "assign", aX = "properties", aY = "authSchemes", aZ = "disableDoubleEncoding", ba = "name", bb = "signingName", bc = "signingRegion", bd = "headers", be = "x-amz-account-id", bf = "x-amz-outpost-id";
5
+ const a = false, b = true, c = "isSet", d = "booleanEquals", e = "aws.partition", f = "stringEquals", g = "getAttr", h = "error", i = "not", j = "isValidHostLabel", k = "Invalid Configuration: DualStack and custom endpoint are not supported", l = "{url#scheme}://{url#authority}{url#path}", m = "s3-outposts", n = "{Region}", o = "endpoint", p = "tree", q = "substring", r = "accessPointSuffix", s = "s3expressAvailabilityZoneId", t = "s3expressAvailabilityZoneDelim", u = "aws.parseArn", v = "accessPointArn", w = "resourceId[0]", x = "arnType", y = "service", z = "resourceId[1]", A = "outpostId", B = "arnPartition", C = "{accessPointArn#accountId}", D = "resourceId[2]", E = "outpostType", F = "resourceId[3]", G = "bucketArn", H = "{bucketArn#accountId}", I = { [aQ]: false, [aR]: "String" }, J = { [aQ]: true, "default": false, [aR]: "Boolean" }, K = { [aQ]: false, [aR]: "Boolean" }, L = { [aV]: "Region" }, M = { [aT]: d, [aU]: [{ [aV]: "UseFIPS" }, true] }, N = { [aT]: e, [aU]: [L], [aW]: "partitionResult" }, O = { [aT]: g, [aU]: [{ [aV]: "partitionResult" }, "name"] }, P = { [aV]: "OutpostId" }, Q = { [aS]: [{ [aT]: c, [aU]: [{ [aV]: "RequiresAccountId" }] }, { [aT]: d, [aU]: [{ [aV]: "RequiresAccountId" }, true] }, { [aT]: i, [aU]: [{ [aT]: c, [aU]: [{ [aV]: "AccountId" }] }] }], [h]: "AccountId is required but not set", [aR]: h }, R = { [aT]: c, [aU]: [{ [aV]: "RequiresAccountId" }] }, S = { [aT]: d, [aU]: [{ [aV]: "RequiresAccountId" }, true] }, T = { [aT]: c, [aU]: [{ [aV]: "AccountId" }] }, U = { [aV]: "AccountId" }, V = { [aS]: [T, { [aT]: i, [aU]: [{ [aT]: j, [aU]: [U, false] }] }], [h]: "AccountId must only contain a-z, A-Z, 0-9 and `-`.", [aR]: h }, W = { [aS]: [{ [aT]: c, [aU]: [{ [aV]: "Endpoint" }] }, { [aT]: d, [aU]: [{ [aV]: "UseDualStack" }, true] }], [h]: k, [aR]: h }, X = { [aT]: c, [aU]: [{ [aV]: "Endpoint" }] }, Y = { [aT]: d, [aU]: [{ [aV]: "UseDualStack" }, true] }, Z = { [aT]: "parseURL", [aU]: [{ [aV]: "Endpoint" }], [aW]: "url" }, aa = { [aY]: [{ [aZ]: true, [ba]: "sigv4", [bb]: m, [bc]: n }] }, ab = {}, ac = { [h]: "Invalid region: region was not a valid DNS name.", [aR]: h }, ad = { [aT]: c, [aU]: [{ [aV]: "AccessPointName" }] }, ae = { [aV]: "AccessPointName" }, af = { [aT]: f, [aU]: [{ [aV]: t }, "--"] }, ag = { [aV]: "UseS3ExpressControlEndpoint" }, ah = { [aY]: [{ [aZ]: true, [ba]: "sigv4", [bb]: "s3", [bc]: n }] }, ai = { [aV]: v }, aj = { [aT]: i, [aU]: [{ [aT]: f, [aU]: [{ [aV]: x }, ""] }] }, ak = { [aT]: c, [aU]: [{ [aV]: "UseArnRegion" }] }, al = { [aT]: d, [aU]: [{ [aV]: "UseArnRegion" }, false] }, am = { [aT]: g, [aU]: [ai, "region"] }, an = { [aT]: g, [aU]: [ai, "accountId"] }, ao = { [aV]: E }, ap = { [aY]: [{ [aZ]: true, [ba]: "sigv4", [bb]: m, [bc]: "{accessPointArn#region}" }] }, aq = { [be]: [C], [bf]: ["{outpostId}"] }, ar = { [h]: "Invalid ARN: Expected a 4-component resource", [aR]: h }, as = { [h]: "Invalid ARN: missing account ID", [aR]: h }, at = { [h]: "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", [aR]: h }, au = { [h]: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", [aR]: h }, av = { [h]: "Invalid ARN: The Outpost Id was not set", [aR]: h }, aw = { [h]: "Invalid ARN: No ARN type specified", [aR]: h }, ax = { [aV]: G }, ay = { [aT]: g, [aU]: [ax, "region"] }, az = { [aT]: g, [aU]: [ax, "accountId"] }, aA = { [aY]: [{ [aZ]: true, [ba]: "sigv4", [bb]: m, [bc]: "{bucketArn#region}" }] }, aB = { [be]: [H], [bf]: ["{outpostId}"] }, aC = { [aT]: d, [aU]: [{ [aV]: "UseDualStack" }, false] }, aD = { [aT]: d, [aU]: [{ [aV]: "UseFIPS" }, false] }, aE = [L], aF = [N], aG = [{ [aT]: j, [aU]: [L, true] }], aH = [X, Z], aI = [M, Y], aJ = [M], aK = [Y], aL = [ae], aM = [{ [aS]: [M], [o]: { "url": "https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}", [aX]: { [aY]: [{ [aZ]: true, [ba]: "sigv4", [bb]: "s3express", [bc]: n }] }, [bd]: {} }, [aR]: o }, { [o]: { "url": "https://s3express-control.{Region}.{partitionResult#dnsSuffix}", [aX]: { [aY]: [{ [aZ]: true, [ba]: "sigv4", [bb]: "s3express", [bc]: n }] }, [bd]: {} }, [aR]: o }], aN = [{ [aT]: j, [aU]: [{ [aV]: A }, false] }], aO = [{ [aT]: f, [aU]: [{ [aT]: g, [aU]: [{ [aV]: B }, "name"] }, O] }], aP = [{ [aV]: "Bucket" }];
6
+ const _data = { version: "1.0", parameters: { Region: I, UseFIPS: J, UseDualStack: J, Endpoint: I, AccountId: I, RequiresAccountId: K, OutpostId: I, Bucket: I, AccessPointName: I, UseArnRegion: K, UseS3ExpressControlEndpoint: K }, rules: [{ [aS]: [{ [aT]: c, [aU]: aE }], rules: [{ [aS]: [M, N, { [aT]: f, [aU]: [O, "aws-cn"] }], error: "Partition does not support FIPS", [aR]: h }, { [aS]: [{ [aT]: c, [aU]: [P] }], rules: [{ [aS]: aF, rules: [Q, V, { [aS]: [{ [aT]: i, [aU]: [{ [aT]: j, [aU]: [P, a] }] }], error: "OutpostId must only contain a-z, A-Z, 0-9 and `-`.", [aR]: h }, W, { [aS]: aG, rules: [{ [aS]: aH, endpoint: { url: l, [aX]: aa, [bd]: ab }, [aR]: o }, { [aS]: aI, endpoint: { url: "https://s3-outposts-fips.{Region}.{partitionResult#dualStackDnsSuffix}", [aX]: aa, [bd]: ab }, [aR]: o }, { [aS]: aJ, endpoint: { url: "https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}", [aX]: aa, [bd]: ab }, [aR]: o }, { [aS]: aK, endpoint: { url: "https://s3-outposts.{Region}.{partitionResult#dualStackDnsSuffix}", [aX]: aa, [bd]: ab }, [aR]: o }, { endpoint: { url: "https://s3-outposts.{Region}.{partitionResult#dnsSuffix}", [aX]: aa, [bd]: ab }, [aR]: o }], [aR]: p }, ac], [aR]: p }], [aR]: p }, { [aS]: [ad, { [aT]: q, [aU]: [ae, 0, 7, b], [aW]: r }, { [aT]: f, [aU]: [{ [aV]: r }, "--xa-s3"] }], rules: [{ [aS]: aF, rules: [{ [aS]: aK, error: "S3Express does not support Dual-stack.", [aR]: h }, { [aS]: [{ [aT]: q, [aU]: [ae, 7, 15, b], [aW]: s }, { [aT]: q, [aU]: [ae, 15, 17, b], [aW]: t }, af], rules: aM, [aR]: p }, { [aS]: [{ [aT]: q, [aU]: [ae, 7, 16, b], [aW]: s }, { [aT]: q, [aU]: [ae, 16, 18, b], [aW]: t }, af], rules: aM, [aR]: p }, { [aS]: [{ [aT]: q, [aU]: [ae, 7, 20, b], [aW]: s }, { [aT]: q, [aU]: [ae, 20, 22, b], [aW]: t }, af], rules: aM, [aR]: p }, { [aS]: [{ [aT]: q, [aU]: [ae, 7, 21, b], [aW]: s }, { [aT]: q, [aU]: [ae, 21, 23, b], [aW]: t }, af], rules: aM, [aR]: p }, { [aS]: [{ [aT]: q, [aU]: [ae, 7, 27, b], [aW]: s }, { [aT]: q, [aU]: [ae, 27, 29, b], [aW]: t }, af], rules: aM, [aR]: p }, { error: "Unrecognized S3Express Access Point name format.", [aR]: h }], [aR]: p }], [aR]: p }, { [aS]: [{ [aT]: c, [aU]: [ag] }, { [aT]: d, [aU]: [ag, b] }], rules: [{ [aS]: aF, rules: aM, [aR]: p }], [aR]: p }, { [aS]: [{ [aT]: f, [aU]: [L, "snow"] }, X, Z], rules: [{ [aS]: aF, rules: [{ [aS]: aK, error: "S3 Snow does not support DualStack", [aR]: h }, { [aS]: aJ, error: "S3 Snow does not support FIPS", [aR]: h }, { endpoint: { url: "{url#scheme}://{url#authority}", [aX]: ah, [bd]: ab }, [aR]: o }], [aR]: p }], [aR]: p }, { [aS]: [ad, { [aT]: u, [aU]: aL, [aW]: v }], rules: [{ [aS]: [{ [aT]: g, [aU]: [ai, w], [aW]: x }, aj], rules: [{ [aS]: [{ [aT]: f, [aU]: [{ [aT]: g, [aU]: [ai, y] }, m] }], rules: [{ [aS]: [{ [aT]: g, [aU]: [ai, z], [aW]: A }], rules: [{ [aS]: aN, rules: [W, { [aS]: [ak, al, { [aT]: i, [aU]: [{ [aT]: f, [aU]: [am, n] }] }], error: "Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aR]: h }, { [aS]: aF, rules: [{ [aS]: [{ [aT]: e, [aU]: [am], [aW]: B }], rules: [{ [aS]: aO, rules: [{ [aS]: [{ [aT]: j, [aU]: [am, b] }], rules: [{ [aS]: [{ [aT]: i, [aU]: [{ [aT]: f, [aU]: [an, ""] }] }], rules: [{ [aS]: [{ [aT]: j, [aU]: [an, a] }], rules: [{ [aS]: [T, { [aT]: i, [aU]: [{ [aT]: f, [aU]: [U, C] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)", [aR]: h }, { [aS]: [{ [aT]: g, [aU]: [ai, D], [aW]: E }], rules: [{ [aS]: [{ [aT]: g, [aU]: [ai, F], [aW]: "accessPointName" }], rules: [{ [aS]: [{ [aT]: f, [aU]: [ao, "accesspoint"] }], rules: [{ [aS]: aI, endpoint: { url: "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dualStackDnsSuffix}", [aX]: ap, [bd]: aq }, [aR]: o }, { [aS]: aJ, endpoint: { url: "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}", [aX]: ap, [bd]: aq }, [aR]: o }, { [aS]: aK, endpoint: { url: "https://s3-outposts.{accessPointArn#region}.{arnPartition#dualStackDnsSuffix}", [aX]: ap, [bd]: aq }, [aR]: o }, { [aS]: aH, endpoint: { url: l, [aX]: ap, [bd]: aq }, [aR]: o }, { endpoint: { url: "https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}", [aX]: ap, [bd]: aq }, [aR]: o }], [aR]: p }, { error: "Expected an outpost type `accesspoint`, found `{outpostType}`", [aR]: h }], [aR]: p }, { error: "Invalid ARN: expected an access point name", [aR]: h }], [aR]: p }, ar], [aR]: p }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`", [aR]: h }], [aR]: p }, as], [aR]: p }, { error: "Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)", [aR]: h }], [aR]: p }, at], [aR]: p }], [aR]: p }], [aR]: p }, au], [aR]: p }, av], [aR]: p }], [aR]: p }, aw], [aR]: p }, { [aS]: [{ [aT]: c, [aU]: aP }, { [aT]: u, [aU]: aP, [aW]: G }], rules: [{ [aS]: [{ [aT]: g, [aU]: [ax, w], [aW]: x }, aj], rules: [{ [aS]: [{ [aT]: f, [aU]: [{ [aT]: g, [aU]: [ax, y] }, m] }], rules: [{ [aS]: [{ [aT]: g, [aU]: [ax, z], [aW]: A }], rules: [{ [aS]: aN, rules: [W, { [aS]: [ak, al, { [aT]: i, [aU]: [{ [aT]: f, [aU]: [ay, n] }] }], error: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aR]: h }, { [aS]: [{ [aT]: e, [aU]: [ay], [aW]: B }], rules: [{ [aS]: aF, rules: [{ [aS]: aO, rules: [{ [aS]: [{ [aT]: j, [aU]: [ay, b] }], rules: [{ [aS]: [{ [aT]: i, [aU]: [{ [aT]: f, [aU]: [az, ""] }] }], rules: [{ [aS]: [{ [aT]: j, [aU]: [az, a] }], rules: [{ [aS]: [T, { [aT]: i, [aU]: [{ [aT]: f, [aU]: [U, H] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)", [aR]: h }, { [aS]: [{ [aT]: g, [aU]: [ax, D], [aW]: E }], rules: [{ [aS]: [{ [aT]: g, [aU]: [ax, F], [aW]: "bucketName" }], rules: [{ [aS]: [{ [aT]: f, [aU]: [ao, "bucket"] }], rules: [{ [aS]: aI, endpoint: { url: "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dualStackDnsSuffix}", [aX]: aA, [bd]: aB }, [aR]: o }, { [aS]: aJ, endpoint: { url: "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}", [aX]: aA, [bd]: aB }, [aR]: o }, { [aS]: aK, endpoint: { url: "https://s3-outposts.{bucketArn#region}.{arnPartition#dualStackDnsSuffix}", [aX]: aA, [bd]: aB }, [aR]: o }, { [aS]: aH, endpoint: { url: l, [aX]: aA, [bd]: aB }, [aR]: o }, { endpoint: { url: "https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}", [aX]: aA, [bd]: aB }, [aR]: o }], [aR]: p }, { error: "Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`", [aR]: h }], [aR]: p }, { error: "Invalid ARN: expected a bucket name", [aR]: h }], [aR]: p }, ar], [aR]: p }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [aR]: h }], [aR]: p }, as], [aR]: p }, { error: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [aR]: h }], [aR]: p }, at], [aR]: p }], [aR]: p }], [aR]: p }, au], [aR]: p }, av], [aR]: p }], [aR]: p }, aw], [aR]: p }, { [aS]: aF, rules: [{ [aS]: aG, rules: [Q, V, { [aS]: aH, rules: [{ [aS]: aK, error: k, [aR]: h }, { [aS]: [R, S, T], endpoint: { url: "{url#scheme}://{AccountId}.{url#authority}{url#path}", [aX]: ah, [bd]: ab }, [aR]: o }, { endpoint: { url: l, [aX]: ah, [bd]: ab }, [aR]: o }], [aR]: p }, { [aS]: [M, Y, R, S, T], endpoint: { url: "https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }, { [aS]: aI, endpoint: { url: "https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }, { [aS]: [M, aC, R, S, T], endpoint: { url: "https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }, { [aS]: [M, aC], endpoint: { url: "https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }, { [aS]: [aD, Y, R, S, T], endpoint: { url: "https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }, { [aS]: [aD, Y], endpoint: { url: "https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }, { [aS]: [aD, aC, R, S, T], endpoint: { url: "https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }, { [aS]: [aD, aC], endpoint: { url: "https://s3-control.{Region}.{partitionResult#dnsSuffix}", [aX]: ah, [bd]: ab }, [aR]: o }], [aR]: p }, ac], [aR]: p }], [aR]: p }, { error: "Region must be set", [aR]: h }] };
7
7
  exports.ruleSet = _data;