@mavogel/awscdk-rootmail 0.0.312 → 0.0.313

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 (124) hide show
  1. package/.jsii +2 -2
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +15 -1
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/models/models_0.js +10 -0
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/protocols/Aws_json1_1.js +1 -1
  7. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/GetTransformerCommand.d.ts +5 -0
  8. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/PutLogEventsCommand.d.ts +10 -11
  9. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/PutTransformerCommand.d.ts +5 -0
  10. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/TestTransformerCommand.d.ts +5 -0
  11. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  12. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_0.d.ts +60 -2
  13. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  14. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/models/models_0.d.ts +18 -0
  15. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +11 -11
  16. package/node_modules/@aws-sdk/client-route-53/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  17. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  18. package/node_modules/@aws-sdk/client-route-53/package.json +11 -11
  19. package/node_modules/@aws-sdk/client-s3/README.md +8 -0
  20. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +141 -25
  21. package/node_modules/@aws-sdk/client-s3/dist-es/S3.js +2 -0
  22. package/node_modules/@aws-sdk/client-s3/dist-es/commands/RenameObjectCommand.js +28 -0
  23. package/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +1 -0
  24. package/node_modules/@aws-sdk/client-s3/dist-es/models/models_1.js +12 -0
  25. package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +89 -17
  26. package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +7 -0
  27. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +3 -2
  28. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +9 -1
  29. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +16 -1
  30. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +9 -1
  31. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  32. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAclCommand.d.ts +8 -1
  33. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  34. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLoggingCommand.d.ts +8 -1
  35. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +12 -0
  36. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +1 -0
  37. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
  38. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketsCommand.d.ts +8 -1
  39. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListMultipartUploadsCommand.d.ts +8 -1
  40. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectVersionsCommand.d.ts +8 -1
  41. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsCommand.d.ts +8 -1
  42. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListPartsCommand.d.ts +8 -1
  43. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAclCommand.d.ts +13 -2
  44. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  45. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLoggingCommand.d.ts +13 -2
  46. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAclCommand.d.ts +4 -1
  47. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +9 -1
  48. package/node_modules/@aws-sdk/client-s3/dist-types/commands/RenameObjectCommand.d.ts +142 -0
  49. package/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +1 -0
  50. package/node_modules/@aws-sdk/client-s3/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +41 -9
  52. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +123 -0
  53. package/node_modules/@aws-sdk/client-s3/dist-types/protocols/Aws_restXml.d.ts +9 -0
  54. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +17 -0
  55. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +6 -0
  56. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +47 -0
  57. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +1 -0
  58. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  59. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +4 -0
  60. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +23 -0
  61. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/protocols/Aws_restXml.d.ts +12 -0
  62. package/node_modules/@aws-sdk/client-s3/package.json +18 -16
  63. package/node_modules/@aws-sdk/client-ses/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  65. package/node_modules/@aws-sdk/client-ses/package.json +11 -11
  66. package/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  67. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  68. package/node_modules/@aws-sdk/client-ssm/package.json +11 -11
  69. package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  70. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  71. package/node_modules/@aws-sdk/client-sso/package.json +10 -10
  72. package/node_modules/@aws-sdk/core/package.json +2 -2
  73. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  74. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  75. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  76. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  77. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  78. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  79. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  80. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  81. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +3 -3
  82. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  83. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +1 -1
  84. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +1 -1
  85. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +4 -1
  86. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +4 -1
  87. package/node_modules/@aws-sdk/nested-clients/package.json +10 -10
  88. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  89. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  90. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  91. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +16 -1
  92. package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointRequiredConfig.js +1 -0
  93. package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +1 -0
  94. package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointRequiredConfig.js +9 -0
  95. package/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts +1 -0
  96. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +32 -0
  97. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts +1 -0
  98. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointRequiredConfig.d.ts +32 -0
  99. package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
  100. package/node_modules/@smithy/middleware-retry/package.json +4 -4
  101. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +2 -1
  102. package/node_modules/@smithy/service-error-classification/dist-es/constants.js +1 -0
  103. package/node_modules/@smithy/service-error-classification/dist-es/index.js +2 -1
  104. package/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts +4 -0
  105. package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts +4 -0
  106. package/node_modules/@smithy/service-error-classification/package.json +1 -1
  107. package/node_modules/@smithy/smithy-client/package.json +2 -2
  108. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  109. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  110. package/node_modules/@smithy/util-retry/package.json +2 -2
  111. package/node_modules/cdk-nag/.jsii +2 -2
  112. package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
  113. package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
  114. package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
  115. package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
  116. package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
  117. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
  118. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
  119. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
  120. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
  121. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
  122. package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
  123. package/node_modules/cdk-nag/package.json +3 -3
  124. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.828.0",
3
+ "version": "3.835.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/core": "3.826.0",
27
+ "@aws-sdk/core": "3.835.0",
28
28
  "@aws-sdk/types": "3.821.0",
29
29
  "@aws-sdk/util-endpoints": "3.828.0",
30
30
  "@smithy/core": "^3.5.3",
@@ -8,7 +8,7 @@ export interface ClientInputEndpointParameters {
8
8
  useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
9
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
10
  }
11
- export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
11
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
@@ -9,7 +9,7 @@ export interface ClientInputEndpointParameters {
9
9
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
10
  useGlobalEndpoint?: boolean | undefined | Provider<boolean | undefined>;
11
11
  }
12
- export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
13
13
  defaultSigningName: string;
14
14
  };
15
15
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
@@ -16,7 +16,10 @@ export interface ClientInputEndpointParameters {
16
16
  | EndpointV2
17
17
  | Provider<EndpointV2>;
18
18
  }
19
- export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
19
+ export type ClientResolvedEndpointParameters = Pick<
20
+ ClientInputEndpointParameters,
21
+ Exclude<keyof ClientInputEndpointParameters, "endpoint">
22
+ > & {
20
23
  defaultSigningName: string;
21
24
  };
22
25
  export declare const resolveClientEndpointParameters: <T>(
@@ -17,7 +17,10 @@ export interface ClientInputEndpointParameters {
17
17
  | Provider<EndpointV2>;
18
18
  useGlobalEndpoint?: boolean | undefined | Provider<boolean | undefined>;
19
19
  }
20
- export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
+ export type ClientResolvedEndpointParameters = Pick<
21
+ ClientInputEndpointParameters,
22
+ Exclude<keyof ClientInputEndpointParameters, "endpoint">
23
+ > & {
21
24
  defaultSigningName: string;
22
25
  };
23
26
  export declare const resolveClientEndpointParameters: <T>(
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.830.0",
3
+ "version": "3.835.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,40 +28,40 @@
28
28
  "dependencies": {
29
29
  "@aws-crypto/sha256-browser": "5.2.0",
30
30
  "@aws-crypto/sha256-js": "5.2.0",
31
- "@aws-sdk/core": "3.826.0",
31
+ "@aws-sdk/core": "3.835.0",
32
32
  "@aws-sdk/middleware-host-header": "3.821.0",
33
33
  "@aws-sdk/middleware-logger": "3.821.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
35
- "@aws-sdk/middleware-user-agent": "3.828.0",
35
+ "@aws-sdk/middleware-user-agent": "3.835.0",
36
36
  "@aws-sdk/region-config-resolver": "3.821.0",
37
37
  "@aws-sdk/types": "3.821.0",
38
38
  "@aws-sdk/util-endpoints": "3.828.0",
39
39
  "@aws-sdk/util-user-agent-browser": "3.821.0",
40
- "@aws-sdk/util-user-agent-node": "3.828.0",
40
+ "@aws-sdk/util-user-agent-node": "3.835.0",
41
41
  "@smithy/config-resolver": "^4.1.4",
42
42
  "@smithy/core": "^3.5.3",
43
43
  "@smithy/fetch-http-handler": "^5.0.4",
44
44
  "@smithy/hash-node": "^4.0.4",
45
45
  "@smithy/invalid-dependency": "^4.0.4",
46
46
  "@smithy/middleware-content-length": "^4.0.4",
47
- "@smithy/middleware-endpoint": "^4.1.11",
48
- "@smithy/middleware-retry": "^4.1.12",
47
+ "@smithy/middleware-endpoint": "^4.1.12",
48
+ "@smithy/middleware-retry": "^4.1.13",
49
49
  "@smithy/middleware-serde": "^4.0.8",
50
50
  "@smithy/middleware-stack": "^4.0.4",
51
51
  "@smithy/node-config-provider": "^4.1.3",
52
52
  "@smithy/node-http-handler": "^4.0.6",
53
53
  "@smithy/protocol-http": "^5.1.2",
54
- "@smithy/smithy-client": "^4.4.3",
54
+ "@smithy/smithy-client": "^4.4.4",
55
55
  "@smithy/types": "^4.3.1",
56
56
  "@smithy/url-parser": "^4.0.4",
57
57
  "@smithy/util-base64": "^4.0.0",
58
58
  "@smithy/util-body-length-browser": "^4.0.0",
59
59
  "@smithy/util-body-length-node": "^4.0.0",
60
- "@smithy/util-defaults-mode-browser": "^4.0.19",
61
- "@smithy/util-defaults-mode-node": "^4.0.19",
60
+ "@smithy/util-defaults-mode-browser": "^4.0.20",
61
+ "@smithy/util-defaults-mode-node": "^4.0.20",
62
62
  "@smithy/util-endpoints": "^3.0.6",
63
63
  "@smithy/util-middleware": "^4.0.4",
64
- "@smithy/util-retry": "^4.0.5",
64
+ "@smithy/util-retry": "^4.0.6",
65
65
  "@smithy/util-utf8": "^4.0.0",
66
66
  "tslib": "^2.6.2"
67
67
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.826.0",
3
+ "version": "3.835.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline signature-v4-multi-region",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/middleware-sdk-s3": "3.826.0",
27
+ "@aws-sdk/middleware-sdk-s3": "3.835.0",
28
28
  "@aws-sdk/types": "3.821.0",
29
29
  "@smithy/protocol-http": "^5.1.2",
30
30
  "@smithy/signature-v4": "^5.1.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.830.0",
3
+ "version": "3.835.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.826.0",
31
- "@aws-sdk/nested-clients": "3.830.0",
30
+ "@aws-sdk/core": "3.835.0",
31
+ "@aws-sdk/nested-clients": "3.835.0",
32
32
  "@aws-sdk/types": "3.821.0",
33
33
  "@smithy/property-provider": "^4.0.4",
34
34
  "@smithy/shared-ini-file-loader": "^4.0.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.828.0",
3
+ "version": "3.835.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-user-agent": "3.828.0",
24
+ "@aws-sdk/middleware-user-agent": "3.835.0",
25
25
  "@aws-sdk/types": "3.821.0",
26
26
  "@smithy/node-config-provider": "^4.1.3",
27
27
  "@smithy/types": "^4.3.1",
@@ -25,6 +25,7 @@ __export(src_exports, {
25
25
  getEndpointFromInstructions: () => getEndpointFromInstructions,
26
26
  getEndpointPlugin: () => getEndpointPlugin,
27
27
  resolveEndpointConfig: () => resolveEndpointConfig,
28
+ resolveEndpointRequiredConfig: () => resolveEndpointRequiredConfig,
28
29
  resolveParams: () => resolveParams,
29
30
  toEndpointV1: () => toEndpointV1
30
31
  });
@@ -265,6 +266,19 @@ var resolveEndpointConfig = /* @__PURE__ */ __name((input) => {
265
266
  };
266
267
  return resolvedConfig;
267
268
  }, "resolveEndpointConfig");
269
+
270
+ // src/resolveEndpointRequiredConfig.ts
271
+ var resolveEndpointRequiredConfig = /* @__PURE__ */ __name((input) => {
272
+ const { endpoint } = input;
273
+ if (endpoint === void 0) {
274
+ input.endpoint = async () => {
275
+ throw new Error(
276
+ "@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint."
277
+ );
278
+ };
279
+ }
280
+ return input;
281
+ }, "resolveEndpointRequiredConfig");
268
282
  // Annotate the CommonJS export names for ESM import in node:
269
283
 
270
284
  0 && (module.exports = {
@@ -274,6 +288,7 @@ var resolveEndpointConfig = /* @__PURE__ */ __name((input) => {
274
288
  endpointMiddleware,
275
289
  endpointMiddlewareOptions,
276
290
  getEndpointPlugin,
277
- resolveEndpointConfig
291
+ resolveEndpointConfig,
292
+ resolveEndpointRequiredConfig
278
293
  });
279
294
 
@@ -0,0 +1 @@
1
+ module.exports = require("./index.js");
@@ -2,4 +2,5 @@ export * from "./adaptors";
2
2
  export * from "./endpointMiddleware";
3
3
  export * from "./getEndpointPlugin";
4
4
  export * from "./resolveEndpointConfig";
5
+ export * from "./resolveEndpointRequiredConfig";
5
6
  export * from "./types";
@@ -0,0 +1,9 @@
1
+ export const resolveEndpointRequiredConfig = (input) => {
2
+ const { endpoint } = input;
3
+ if (endpoint === undefined) {
4
+ input.endpoint = async () => {
5
+ throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.");
6
+ };
7
+ }
8
+ return input;
9
+ };
@@ -11,6 +11,7 @@ export * from "./endpointMiddleware";
11
11
  */
12
12
  export * from "./getEndpointPlugin";
13
13
  export * from "./resolveEndpointConfig";
14
+ export * from "./resolveEndpointRequiredConfig";
14
15
  /**
15
16
  * @internal
16
17
  */
@@ -0,0 +1,32 @@
1
+ import { Endpoint, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * This is an additional config resolver layer for clients using the default
4
+ * endpoints ruleset. It modifies the input and output config types to make
5
+ * the endpoint configuration property required.
6
+ *
7
+ * It must be placed after the `resolveEndpointConfig`
8
+ * resolver. This replaces the "CustomEndpoints" config resolver, which was used
9
+ * prior to default endpoint rulesets.
10
+ *
11
+ * @public
12
+ */
13
+ export interface EndpointRequiredInputConfig {
14
+ endpoint: string | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
15
+ }
16
+ /**
17
+ * @internal
18
+ */
19
+ interface PreviouslyResolved {
20
+ endpoint?: Provider<Endpoint>;
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ export interface EndpointRequiredResolvedConfig {
26
+ endpoint: Provider<Endpoint>;
27
+ }
28
+ /**
29
+ * @internal
30
+ */
31
+ export declare const resolveEndpointRequiredConfig: <T>(input: T & EndpointRequiredInputConfig & PreviouslyResolved) => T & EndpointRequiredResolvedConfig;
32
+ export {};
@@ -11,6 +11,7 @@ export * from "./endpointMiddleware";
11
11
  */
12
12
  export * from "./getEndpointPlugin";
13
13
  export * from "./resolveEndpointConfig";
14
+ export * from "./resolveEndpointRequiredConfig";
14
15
  /**
15
16
  * @internal
16
17
  */
@@ -0,0 +1,32 @@
1
+ import { Endpoint, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * This is an additional config resolver layer for clients using the default
4
+ * endpoints ruleset. It modifies the input and output config types to make
5
+ * the endpoint configuration property required.
6
+ *
7
+ * It must be placed after the `resolveEndpointConfig`
8
+ * resolver. This replaces the "CustomEndpoints" config resolver, which was used
9
+ * prior to default endpoint rulesets.
10
+ *
11
+ * @public
12
+ */
13
+ export interface EndpointRequiredInputConfig {
14
+ endpoint: string | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
15
+ }
16
+ /**
17
+ * @internal
18
+ */
19
+ interface PreviouslyResolved {
20
+ endpoint?: Provider<Endpoint>;
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ export interface EndpointRequiredResolvedConfig {
26
+ endpoint: Provider<Endpoint>;
27
+ }
28
+ /**
29
+ * @internal
30
+ */
31
+ export declare const resolveEndpointRequiredConfig: <T>(input: T & EndpointRequiredInputConfig & PreviouslyResolved) => T & EndpointRequiredResolvedConfig;
32
+ export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.1.11",
3
+ "version": "4.1.12",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-endpoint",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.1.12",
3
+ "version": "4.1.13",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -35,11 +35,11 @@
35
35
  "dependencies": {
36
36
  "@smithy/node-config-provider": "^4.1.3",
37
37
  "@smithy/protocol-http": "^5.1.2",
38
- "@smithy/service-error-classification": "^4.0.5",
39
- "@smithy/smithy-client": "^4.4.3",
38
+ "@smithy/service-error-classification": "^4.0.6",
39
+ "@smithy/smithy-client": "^4.4.4",
40
40
  "@smithy/types": "^4.3.1",
41
41
  "@smithy/util-middleware": "^4.0.4",
42
- "@smithy/util-retry": "^4.0.5",
42
+ "@smithy/util-retry": "^4.0.6",
43
43
  "tslib": "^2.6.2",
44
44
  "uuid": "^9.0.1"
45
45
  },
@@ -59,6 +59,7 @@ var THROTTLING_ERROR_CODES = [
59
59
  var TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
60
60
  var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
61
61
  var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
62
+ var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
62
63
 
63
64
  // src/index.ts
64
65
  var isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, "isRetryableByTrait");
@@ -84,7 +85,7 @@ var isBrowserNetworkError = /* @__PURE__ */ __name((error) => {
84
85
  return errorMessages.has(error.message);
85
86
  }, "isBrowserNetworkError");
86
87
  var isThrottlingError = /* @__PURE__ */ __name((error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true, "isThrottlingError");
87
- var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
88
+ var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
88
89
  var isServerError = /* @__PURE__ */ __name((error) => {
89
90
  if (error.$metadata?.httpStatusCode !== void 0) {
90
91
  const statusCode = error.$metadata.httpStatusCode;
@@ -25,3 +25,4 @@ export const THROTTLING_ERROR_CODES = [
25
25
  export const TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
26
26
  export const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
27
27
  export const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
28
+ export const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
@@ -1,4 +1,4 @@
1
- import { CLOCK_SKEW_ERROR_CODES, NODEJS_TIMEOUT_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, } from "./constants";
1
+ import { CLOCK_SKEW_ERROR_CODES, NODEJS_NETWORK_ERROR_CODES, NODEJS_TIMEOUT_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, } from "./constants";
2
2
  export const isRetryableByTrait = (error) => error.$retryable !== undefined;
3
3
  export const isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name);
4
4
  export const isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
@@ -22,6 +22,7 @@ export const isThrottlingError = (error) => error.$metadata?.httpStatusCode ===
22
22
  export const isTransientError = (error, depth = 0) => isClockSkewCorrectedError(error) ||
23
23
  TRANSIENT_ERROR_CODES.includes(error.name) ||
24
24
  NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
25
+ NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
25
26
  TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
26
27
  isBrowserNetworkError(error) ||
27
28
  (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
@@ -24,3 +24,7 @@ export declare const TRANSIENT_ERROR_STATUS_CODES: number[];
24
24
  * Node.js system error codes that indicate timeout.
25
25
  */
26
26
  export declare const NODEJS_TIMEOUT_ERROR_CODES: string[];
27
+ /**
28
+ * Node.js system error codes that indicate network error.
29
+ */
30
+ export declare const NODEJS_NETWORK_ERROR_CODES: string[];
@@ -24,3 +24,7 @@ export declare const TRANSIENT_ERROR_STATUS_CODES: number[];
24
24
  * Node.js system error codes that indicate timeout.
25
25
  */
26
26
  export declare const NODEJS_TIMEOUT_ERROR_CODES: string[];
27
+ /**
28
+ * Node.js system error codes that indicate network error.
29
+ */
30
+ export declare const NODEJS_NETWORK_ERROR_CODES: string[];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline service-error-classification",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline smithy-client",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@smithy/core": "^3.5.3",
28
- "@smithy/middleware-endpoint": "^4.1.11",
28
+ "@smithy/middleware-endpoint": "^4.1.12",
29
29
  "@smithy/middleware-stack": "^4.0.4",
30
30
  "@smithy/protocol-http": "^5.1.2",
31
31
  "@smithy/types": "^4.3.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.0.19",
3
+ "version": "4.0.20",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@smithy/property-provider": "^4.0.4",
27
- "@smithy/smithy-client": "^4.4.3",
27
+ "@smithy/smithy-client": "^4.4.4",
28
28
  "@smithy/types": "^4.3.1",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.0.19",
3
+ "version": "4.0.20",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -27,7 +27,7 @@
27
27
  "@smithy/credential-provider-imds": "^4.0.6",
28
28
  "@smithy/node-config-provider": "^4.1.3",
29
29
  "@smithy/property-provider": "^4.0.4",
30
- "@smithy/smithy-client": "^4.4.3",
30
+ "@smithy/smithy-client": "^4.4.4",
31
31
  "@smithy/types": "^4.3.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/service-error-classification": "^4.0.5",
31
+ "@smithy/service-error-classification": "^4.0.6",
32
32
  "@smithy/types": "^4.3.1",
33
33
  "tslib": "^2.6.2"
34
34
  },
@@ -7250,6 +7250,6 @@
7250
7250
  "symbolId": "src/ignore-suppression-conditions:SuppressionIgnoreOr"
7251
7251
  }
7252
7252
  },
7253
- "version": "2.36.18",
7254
- "fingerprint": "u3S86XWVVS99Ub9fUxIBP2St5dVja1/8kQ9NpUKpG6M="
7253
+ "version": "2.36.23",
7254
+ "fingerprint": "rtZcrAXZrs93ndw+JhvipJi3OwsowBqAs1fAurh7H84="
7255
7255
  }
@@ -28,7 +28,7 @@ class SuppressionIgnoreAnd {
28
28
  }
29
29
  exports.SuppressionIgnoreAnd = SuppressionIgnoreAnd;
30
30
  _a = JSII_RTTI_SYMBOL_1;
31
- SuppressionIgnoreAnd[_a] = { fqn: "cdk-nag.SuppressionIgnoreAnd", version: "2.36.18" };
31
+ SuppressionIgnoreAnd[_a] = { fqn: "cdk-nag.SuppressionIgnoreAnd", version: "2.36.23" };
32
32
  /**
33
33
  * Ignore the suppression if any of the given INagSuppressionIgnore return a non-empty message
34
34
  */
@@ -52,7 +52,7 @@ class SuppressionIgnoreOr {
52
52
  }
53
53
  exports.SuppressionIgnoreOr = SuppressionIgnoreOr;
54
54
  _b = JSII_RTTI_SYMBOL_1;
55
- SuppressionIgnoreOr[_b] = { fqn: "cdk-nag.SuppressionIgnoreOr", version: "2.36.18" };
55
+ SuppressionIgnoreOr[_b] = { fqn: "cdk-nag.SuppressionIgnoreOr", version: "2.36.23" };
56
56
  /**
57
57
  * Always ignore the suppression
58
58
  */
@@ -69,7 +69,7 @@ class SuppressionIgnoreAlways {
69
69
  }
70
70
  exports.SuppressionIgnoreAlways = SuppressionIgnoreAlways;
71
71
  _c = JSII_RTTI_SYMBOL_1;
72
- SuppressionIgnoreAlways[_c] = { fqn: "cdk-nag.SuppressionIgnoreAlways", version: "2.36.18" };
72
+ SuppressionIgnoreAlways[_c] = { fqn: "cdk-nag.SuppressionIgnoreAlways", version: "2.36.23" };
73
73
  /**
74
74
  * Don't ignore the suppression
75
75
  */
@@ -80,7 +80,7 @@ class SuppressionIgnoreNever {
80
80
  }
81
81
  exports.SuppressionIgnoreNever = SuppressionIgnoreNever;
82
82
  _d = JSII_RTTI_SYMBOL_1;
83
- SuppressionIgnoreNever[_d] = { fqn: "cdk-nag.SuppressionIgnoreNever", version: "2.36.18" };
83
+ SuppressionIgnoreNever[_d] = { fqn: "cdk-nag.SuppressionIgnoreNever", version: "2.36.23" };
84
84
  /**
85
85
  * Ignore Suppressions for Rules with a NagMessageLevel.ERROR
86
86
  */
@@ -93,5 +93,5 @@ class SuppressionIgnoreErrors {
93
93
  }
94
94
  exports.SuppressionIgnoreErrors = SuppressionIgnoreErrors;
95
95
  _e = JSII_RTTI_SYMBOL_1;
96
- SuppressionIgnoreErrors[_e] = { fqn: "cdk-nag.SuppressionIgnoreErrors", version: "2.36.18" };
96
+ SuppressionIgnoreErrors[_e] = { fqn: "cdk-nag.SuppressionIgnoreErrors", version: "2.36.23" };
97
97
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWdub3JlLXN1cHByZXNzaW9uLWNvbmRpdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaWdub3JlLXN1cHByZXNzaW9uLWNvbmRpdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFLQ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