@jjrawlins/cdk-iam-policy-builder-helper 0.0.56 → 0.0.58

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 (139) hide show
  1. package/.jsii +3 -3
  2. package/cdk-iam-policy-builder-helper/go.mod +1 -1
  3. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  4. package/cdk-iam-policy-builder-helper/version +1 -1
  5. package/node_modules/@aws-sdk/client-iam/package.json +34 -34
  6. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  7. package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -5
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +5 -5
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +1 -1
  14. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
  15. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
  16. package/node_modules/@aws-sdk/core/package.json +11 -11
  17. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  18. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  19. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  20. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  21. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  22. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  23. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  24. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
  25. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  26. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
  27. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  28. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
  29. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  30. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  31. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  32. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
  33. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  34. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  35. package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
  36. package/node_modules/@aws-sdk/types/package.json +2 -2
  37. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
  38. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  39. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  40. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  41. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
  42. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  43. package/node_modules/@smithy/abort-controller/package.json +2 -2
  44. package/node_modules/@smithy/config-resolver/package.json +4 -4
  45. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -15
  46. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -14
  47. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +226 -190
  48. package/node_modules/@smithy/core/dist-es/index.js +1 -1
  49. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -15
  50. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -2
  51. package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
  52. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  53. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +3 -5
  54. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -2
  55. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -5
  56. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +18 -11
  57. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +5 -1
  58. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +5 -1
  59. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +24 -6
  60. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
  61. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
  62. package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
  63. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
  64. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
  65. package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
  66. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  67. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  68. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  69. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  70. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  71. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +5 -6
  72. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
  73. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +5 -0
  74. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
  75. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
  76. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
  77. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
  78. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  79. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  80. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  81. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  82. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  83. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +5 -6
  84. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
  85. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +5 -0
  86. package/node_modules/@smithy/core/package.json +7 -7
  87. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  88. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  89. package/node_modules/@smithy/hash-node/package.json +2 -2
  90. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  91. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  92. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  93. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  94. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  95. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  96. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  97. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +30 -6
  98. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -3
  99. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
  100. package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  101. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
  102. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  103. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  104. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  105. package/node_modules/@smithy/property-provider/package.json +2 -2
  106. package/node_modules/@smithy/protocol-http/package.json +2 -2
  107. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  108. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  109. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  110. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  111. package/node_modules/@smithy/signature-v4/package.json +4 -4
  112. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +5 -4
  113. package/node_modules/@smithy/smithy-client/dist-es/command.js +5 -4
  114. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
  115. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
  116. package/node_modules/@smithy/smithy-client/package.json +7 -7
  117. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  118. package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
  119. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
  120. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  121. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +2 -1
  122. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
  123. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
  124. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  125. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +2 -1
  126. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
  127. package/node_modules/@smithy/types/package.json +1 -1
  128. package/node_modules/@smithy/url-parser/package.json +3 -3
  129. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  130. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  131. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  132. package/node_modules/@smithy/util-middleware/package.json +2 -2
  133. package/node_modules/@smithy/util-retry/package.json +3 -3
  134. package/node_modules/@smithy/util-stream/package.json +4 -4
  135. package/node_modules/@smithy/util-waiter/package.json +3 -3
  136. package/package.json +6 -6
  137. /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
  138. /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
  139. /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
@@ -1,12 +1,12 @@
1
1
  import type { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
- import type { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
2
+ import type { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext, StaticOperationSchema } from "@smithy/types";
3
3
  /**
4
4
  * @public
5
5
  */
6
6
  export declare abstract class Command<Input extends ClientInput, Output extends ClientOutput, ResolvedClientConfiguration, ClientInput extends object = any, ClientOutput extends MetadataBearer = any> implements ICommand<ClientInput, Input, ClientOutput, Output, ResolvedClientConfiguration> {
7
7
  abstract input: Input;
8
8
  readonly middlewareStack: IMiddlewareStack<Input, Output>;
9
- readonly schema?: OperationSchema;
9
+ readonly schema?: OperationSchema | StaticOperationSchema;
10
10
  /**
11
11
  * Factory for Command ClassBuilder.
12
12
  * @internal
@@ -95,7 +95,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
95
95
  /**
96
96
  * Sets input/output schema for the operation.
97
97
  */
98
- sc(operation: OperationSchema): ClassBuilder<I, O, C, SI, SO>;
98
+ sc(operation: OperationSchema | StaticOperationSchema): ClassBuilder<I, O, C, SI, SO>;
99
99
  /**
100
100
  * @returns a Command class with the classBuilder properties.
101
101
  */
@@ -1,12 +1,12 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
- import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
2
+ import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext, StaticOperationSchema } from "@smithy/types";
3
3
  /**
4
4
  * @public
5
5
  */
6
6
  export declare abstract class Command<Input extends ClientInput, Output extends ClientOutput, ResolvedClientConfiguration, ClientInput extends object = any, ClientOutput extends MetadataBearer = any> implements ICommand<ClientInput, Input, ClientOutput, Output, ResolvedClientConfiguration> {
7
7
  abstract input: Input;
8
8
  readonly middlewareStack: IMiddlewareStack<Input, Output>;
9
- readonly schema?: OperationSchema;
9
+ readonly schema?: OperationSchema | StaticOperationSchema;
10
10
  /**
11
11
  * Factory for Command ClassBuilder.
12
12
  * @internal
@@ -95,7 +95,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
95
95
  /**
96
96
  * Sets input/output schema for the operation.
97
97
  */
98
- sc(operation: OperationSchema): ClassBuilder<I, O, C, SI, SO>;
98
+ sc(operation: OperationSchema | StaticOperationSchema): ClassBuilder<I, O, C, SI, SO>;
99
99
  /**
100
100
  * @returns a Command class with the classBuilder properties.
101
101
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.7.1",
3
+ "version": "4.8.1",
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,12 +25,12 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.15.0",
29
- "@smithy/middleware-endpoint": "^4.3.1",
30
- "@smithy/middleware-stack": "^4.2.0",
31
- "@smithy/protocol-http": "^5.3.0",
32
- "@smithy/types": "^4.6.0",
33
- "@smithy/util-stream": "^4.5.0",
28
+ "@smithy/core": "^3.16.1",
29
+ "@smithy/middleware-endpoint": "^4.3.3",
30
+ "@smithy/middleware-stack": "^4.2.2",
31
+ "@smithy/protocol-http": "^5.3.2",
32
+ "@smithy/types": "^4.7.1",
33
+ "@smithy/util-stream": "^4.5.2",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "engines": {
@@ -23,6 +23,7 @@ export * from "./response";
23
23
  export * from "./retry";
24
24
  export * from "./schema/schema";
25
25
  export * from "./schema/sentinels";
26
+ export * from "./schema/static-schemas";
26
27
  export * from "./serde";
27
28
  export * from "./shapes";
28
29
  export * from "./signature";
@@ -23,15 +23,30 @@ export interface NodeHttpHandlerOptions {
23
23
  /**
24
24
  * The maximum time in milliseconds that the connection phase of a request
25
25
  * may take before the connection attempt is abandoned.
26
- *
27
26
  * Defaults to 0, which disables the timeout.
28
27
  */
29
28
  connectionTimeout?: number;
30
29
  /**
31
- * The number of milliseconds a request can take before automatically being terminated.
30
+ * The maximum number of milliseconds request & response should take.
32
31
  * Defaults to 0, which disables the timeout.
32
+ *
33
+ * If exceeded, a warning will be emitted unless throwOnRequestTimeout=true,
34
+ * in which case a TimeoutError will be thrown.
33
35
  */
34
36
  requestTimeout?: number;
37
+ /**
38
+ * Because requestTimeout was for a long time incorrectly being set as a socket idle timeout,
39
+ * users must also opt-in for request timeout thrown errors.
40
+ * Without this setting, a breach of the request timeout will be logged as a warning.
41
+ */
42
+ throwOnRequestTimeout?: boolean;
43
+ /**
44
+ * The maximum time in milliseconds that a socket may remain idle before it
45
+ * is closed. Defaults to 0, which means no maximum.
46
+ *
47
+ * This does not affect the server, which may still close the connection due to an idle socket.
48
+ */
49
+ socketTimeout?: number;
35
50
  /**
36
51
  * Delay before the NodeHttpHandler checks for socket exhaustion,
37
52
  * and emits a warning if the active sockets and enqueued request count is greater than
@@ -40,14 +55,6 @@ export interface NodeHttpHandlerOptions {
40
55
  * Defaults to connectionTimeout + requestTimeout or 3000ms if those are not set.
41
56
  */
42
57
  socketAcquisitionWarningTimeout?: number;
43
- /**
44
- * This field is deprecated, and requestTimeout should be used instead.
45
- * The maximum time in milliseconds that a socket may remain idle before it
46
- * is closed.
47
- *
48
- * @deprecated Use {@link requestTimeout}
49
- */
50
- socketTimeout?: number;
51
58
  /**
52
59
  * You can pass http.Agent or its constructor options.
53
60
  */
@@ -23,6 +23,7 @@ export * from "./response";
23
23
  export * from "./retry";
24
24
  export * from "./schema/schema";
25
25
  export * from "./schema/sentinels";
26
+ export * from "./schema/static-schemas";
26
27
  export * from "./serde";
27
28
  export * from "./shapes";
28
29
  export * from "./signature";
@@ -3,12 +3,13 @@ import type { HandlerExecutionContext } from "../middleware";
3
3
  import type { MetadataBearer } from "../response";
4
4
  import type { EndpointBearer, SerdeFunctions } from "../serde";
5
5
  import type { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels";
6
+ import type { StaticSchema } from "./static-schemas";
6
7
  import type { TraitBitVector } from "./traits";
7
8
  /**
8
9
  * A schema is an object or value that describes how to serialize/deserialize data.
9
10
  * @public
10
11
  */
11
- export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema;
12
+ export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | StaticSchema | NormalizedSchema;
12
13
  /**
13
14
  * Traits attached to schema objects.
14
15
  *
@@ -0,0 +1,82 @@
1
+ import type { SchemaRef, SchemaTraits } from "../schema/schema";
2
+ /**
3
+ * @alpha
4
+ */
5
+ export type StaticSchemaIdSimple = 0;
6
+ /**
7
+ * @alpha
8
+ */
9
+ export type StaticSchemaIdList = 1;
10
+ /**
11
+ * @alpha
12
+ */
13
+ export type StaticSchemaIdMap = 2;
14
+ /**
15
+ * @alpha
16
+ */
17
+ export type StaticSchemaIdStruct = 3;
18
+ /**
19
+ * @alpha
20
+ */
21
+ export type StaticSchemaIdError = -3;
22
+ /**
23
+ * @alpha
24
+ */
25
+ export type StaticSchemaIdOperation = 9;
26
+ /**
27
+ * @alpha
28
+ */
29
+ export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
30
+ /**
31
+ * @alpha
32
+ */
33
+ export type ShapeName = string;
34
+ /**
35
+ * @alpha
36
+ */
37
+ export type ShapeNamespace = string;
38
+ /**
39
+ * @alpha
40
+ */
41
+ export type StaticSimpleSchema = [StaticSchemaIdSimple, ShapeNamespace, ShapeName, SchemaTraits, SchemaRef];
42
+ /**
43
+ * @alpha
44
+ */
45
+ export type StaticListSchema = [StaticSchemaIdList, ShapeNamespace, ShapeName, SchemaTraits, SchemaRef];
46
+ /**
47
+ * @alpha
48
+ */
49
+ export type StaticMapSchema = [StaticSchemaIdMap, ShapeNamespace, ShapeName, SchemaTraits, SchemaRef, SchemaRef];
50
+ /**
51
+ * @alpha
52
+ */
53
+ export type StaticStructureSchema = [
54
+ StaticSchemaIdStruct,
55
+ ShapeNamespace,
56
+ ShapeName,
57
+ SchemaTraits,
58
+ string[],
59
+ SchemaRef[]
60
+ ];
61
+ /**
62
+ * @alpha
63
+ */
64
+ export type StaticErrorSchema = [
65
+ StaticSchemaIdError,
66
+ ShapeNamespace,
67
+ ShapeName,
68
+ SchemaTraits,
69
+ string[],
70
+ SchemaRef[]
71
+ ];
72
+ /**
73
+ * @alpha
74
+ */
75
+ export type StaticOperationSchema = [
76
+ StaticSchemaIdOperation,
77
+ ShapeNamespace,
78
+ ShapeName,
79
+ SchemaTraits,
80
+ SchemaRef,
81
+ SchemaRef
82
+ ];
@@ -23,15 +23,30 @@ export interface NodeHttpHandlerOptions {
23
23
  /**
24
24
  * The maximum time in milliseconds that the connection phase of a request
25
25
  * may take before the connection attempt is abandoned.
26
- *
27
26
  * Defaults to 0, which disables the timeout.
28
27
  */
29
28
  connectionTimeout?: number;
30
29
  /**
31
- * The number of milliseconds a request can take before automatically being terminated.
30
+ * The maximum number of milliseconds request & response should take.
32
31
  * Defaults to 0, which disables the timeout.
32
+ *
33
+ * If exceeded, a warning will be emitted unless throwOnRequestTimeout=true,
34
+ * in which case a TimeoutError will be thrown.
33
35
  */
34
36
  requestTimeout?: number;
37
+ /**
38
+ * Because requestTimeout was for a long time incorrectly being set as a socket idle timeout,
39
+ * users must also opt-in for request timeout thrown errors.
40
+ * Without this setting, a breach of the request timeout will be logged as a warning.
41
+ */
42
+ throwOnRequestTimeout?: boolean;
43
+ /**
44
+ * The maximum time in milliseconds that a socket may remain idle before it
45
+ * is closed. Defaults to 0, which means no maximum.
46
+ *
47
+ * This does not affect the server, which may still close the connection due to an idle socket.
48
+ */
49
+ socketTimeout?: number;
35
50
  /**
36
51
  * Delay before the NodeHttpHandler checks for socket exhaustion,
37
52
  * and emits a warning if the active sockets and enqueued request count is greater than
@@ -40,14 +55,6 @@ export interface NodeHttpHandlerOptions {
40
55
  * Defaults to connectionTimeout + requestTimeout or 3000ms if those are not set.
41
56
  */
42
57
  socketAcquisitionWarningTimeout?: number;
43
- /**
44
- * This field is deprecated, and requestTimeout should be used instead.
45
- * The maximum time in milliseconds that a socket may remain idle before it
46
- * is closed.
47
- *
48
- * @deprecated Use {@link requestTimeout}
49
- */
50
- socketTimeout?: number;
51
58
  /**
52
59
  * You can pass http.Agent or its constructor options.
53
60
  */
@@ -23,6 +23,7 @@ export * from "./response";
23
23
  export * from "./retry";
24
24
  export * from "./schema/schema";
25
25
  export * from "./schema/sentinels";
26
+ export * from "./schema/static-schemas";
26
27
  export * from "./serde";
27
28
  export * from "./shapes";
28
29
  export * from "./signature";
@@ -3,12 +3,13 @@ import { HandlerExecutionContext } from "../middleware";
3
3
  import { MetadataBearer } from "../response";
4
4
  import { EndpointBearer, SerdeFunctions } from "../serde";
5
5
  import { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels";
6
+ import { StaticSchema } from "./static-schemas";
6
7
  import { TraitBitVector } from "./traits";
7
8
  /**
8
9
  * A schema is an object or value that describes how to serialize/deserialize data.
9
10
  * @public
10
11
  */
11
- export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema;
12
+ export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | StaticSchema | NormalizedSchema;
12
13
  /**
13
14
  * Traits attached to schema objects.
14
15
  *
@@ -0,0 +1,101 @@
1
+ import { SchemaRef, SchemaTraits } from "../schema/schema";
2
+ /**
3
+ * @alpha
4
+ */
5
+ export type StaticSchemaIdSimple = 0;
6
+ /**
7
+ * @alpha
8
+ */
9
+ export type StaticSchemaIdList = 1;
10
+ /**
11
+ * @alpha
12
+ */
13
+ export type StaticSchemaIdMap = 2;
14
+ /**
15
+ * @alpha
16
+ */
17
+ export type StaticSchemaIdStruct = 3;
18
+ /**
19
+ * @alpha
20
+ */
21
+ export type StaticSchemaIdError = -3;
22
+ /**
23
+ * @alpha
24
+ */
25
+ export type StaticSchemaIdOperation = 9;
26
+ /**
27
+ * @alpha
28
+ */
29
+ export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
30
+ /**
31
+ * @alpha
32
+ */
33
+ export type ShapeName = string;
34
+ /**
35
+ * @alpha
36
+ */
37
+ export type ShapeNamespace = string;
38
+ /**
39
+ * @alpha
40
+ */
41
+ export type StaticSimpleSchema = [
42
+ StaticSchemaIdSimple,
43
+ ShapeNamespace,
44
+ ShapeName,
45
+ SchemaTraits,
46
+ SchemaRef
47
+ ];
48
+ /**
49
+ * @alpha
50
+ */
51
+ export type StaticListSchema = [
52
+ StaticSchemaIdList,
53
+ ShapeNamespace,
54
+ ShapeName,
55
+ SchemaTraits,
56
+ SchemaRef
57
+ ];
58
+ /**
59
+ * @alpha
60
+ */
61
+ export type StaticMapSchema = [
62
+ StaticSchemaIdMap,
63
+ ShapeNamespace,
64
+ ShapeName,
65
+ SchemaTraits,
66
+ SchemaRef,
67
+ SchemaRef
68
+ ];
69
+ /**
70
+ * @alpha
71
+ */
72
+ export type StaticStructureSchema = [
73
+ StaticSchemaIdStruct,
74
+ ShapeNamespace,
75
+ ShapeName,
76
+ SchemaTraits,
77
+ string[],
78
+ SchemaRef[]
79
+ ];
80
+ /**
81
+ * @alpha
82
+ */
83
+ export type StaticErrorSchema = [
84
+ StaticSchemaIdError,
85
+ ShapeNamespace,
86
+ ShapeName,
87
+ SchemaTraits,
88
+ string[],
89
+ SchemaRef[]
90
+ ];
91
+ /**
92
+ * @alpha
93
+ */
94
+ export type StaticOperationSchema = [
95
+ StaticSchemaIdOperation,
96
+ ShapeNamespace,
97
+ ShapeName,
98
+ SchemaTraits,
99
+ SchemaRef,
100
+ SchemaRef
101
+ ];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.6.0",
3
+ "version": "4.7.1",
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 types",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
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 url-parser",
@@ -24,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/querystring-parser": "^4.2.0",
28
- "@smithy/types": "^4.6.0",
27
+ "@smithy/querystring-parser": "^4.2.2",
28
+ "@smithy/types": "^4.7.1",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
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,9 +24,9 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/property-provider": "^4.2.0",
28
- "@smithy/smithy-client": "^4.7.1",
29
- "@smithy/types": "^4.6.0",
27
+ "@smithy/property-provider": "^4.2.2",
28
+ "@smithy/smithy-client": "^4.8.1",
29
+ "@smithy/types": "^4.7.1",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
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",
@@ -24,12 +24,12 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/config-resolver": "^4.3.0",
28
- "@smithy/credential-provider-imds": "^4.2.0",
29
- "@smithy/node-config-provider": "^4.3.0",
30
- "@smithy/property-provider": "^4.2.0",
31
- "@smithy/smithy-client": "^4.7.1",
32
- "@smithy/types": "^4.6.0",
27
+ "@smithy/config-resolver": "^4.3.2",
28
+ "@smithy/credential-provider-imds": "^4.2.2",
29
+ "@smithy/node-config-provider": "^4.3.2",
30
+ "@smithy/property-provider": "^4.2.2",
31
+ "@smithy/smithy-client": "^4.8.1",
32
+ "@smithy/types": "^4.7.1",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,8 +29,8 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/node-config-provider": "^4.3.0",
33
- "@smithy/types": "^4.6.0",
32
+ "@smithy/node-config-provider": "^4.3.2",
33
+ "@smithy/types": "^4.7.1",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Shared utilities for 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
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/types": "^4.6.0",
31
+ "@smithy/types": "^4.7.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
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",
@@ -31,8 +31,8 @@
31
31
  "license": "Apache-2.0",
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
- "@smithy/service-error-classification": "^4.2.0",
35
- "@smithy/types": "^4.6.0",
34
+ "@smithy/service-error-classification": "^4.2.2",
35
+ "@smithy/types": "^4.7.1",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
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-stream",
@@ -29,9 +29,9 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/fetch-http-handler": "^5.3.1",
33
- "@smithy/node-http-handler": "^4.3.0",
34
- "@smithy/types": "^4.6.0",
32
+ "@smithy/fetch-http-handler": "^5.3.3",
33
+ "@smithy/node-http-handler": "^4.4.1",
34
+ "@smithy/types": "^4.7.1",
35
35
  "@smithy/util-base64": "^4.3.0",
36
36
  "@smithy/util-buffer-from": "^4.2.0",
37
37
  "@smithy/util-hex-encoding": "^4.2.0",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^4.2.0",
7
- "@smithy/types": "^4.6.0",
6
+ "@smithy/abort-controller": "^4.2.2",
7
+ "@smithy/types": "^4.7.1",
8
8
  "tslib": "^2.6.2"
9
9
  },
10
10
  "scripts": {
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "organization": false
41
41
  },
42
42
  "devDependencies": {
43
- "@aws-sdk/types": "^3.901.0",
43
+ "@aws-sdk/types": "^3.910.0",
44
44
  "@stylistic/eslint-plugin": "^2",
45
45
  "@types/jest": "^29.5.14",
46
46
  "@types/node": "^20",
@@ -55,11 +55,11 @@
55
55
  "jest": "^29.7.0",
56
56
  "jest-junit": "^16",
57
57
  "jsii": "~5.8.0",
58
- "jsii-diff": "^1.115.0",
58
+ "jsii-diff": "^1.116.0",
59
59
  "jsii-docgen": "^10.5.0",
60
- "jsii-pacmak": "^1.115.0",
60
+ "jsii-pacmak": "^1.116.0",
61
61
  "jsii-rosetta": "~5.8.0",
62
- "projen": "^0.97.2",
62
+ "projen": "^0.98.0",
63
63
  "ts-jest": "^29.4.5",
64
64
  "ts-node": "^10.9.2",
65
65
  "typescript": "^5.9.3"
@@ -69,7 +69,7 @@
69
69
  "constructs": "^10.0.5"
70
70
  },
71
71
  "dependencies": {
72
- "@aws-sdk/client-iam": "^3.908.0",
72
+ "@aws-sdk/client-iam": "^3.910.0",
73
73
  "axios": "^1.8.2",
74
74
  "constructs": "^10.4.2",
75
75
  "jsonc-parser": "^3.3.1"
@@ -101,7 +101,7 @@
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "version": "0.0.56",
104
+ "version": "0.0.58",
105
105
  "jest": {
106
106
  "coverageProvider": "v8",
107
107
  "testMatch": [