@cdklabs/cdk-ecs-codedeploy 0.0.102 → 0.0.104

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 (181) hide show
  1. package/.jsii +70 -5
  2. package/.projenrc.ts +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@aws-sdk/abort-controller/package.json +2 -2
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeploy.d.ts +48 -0
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +24 -4
  10. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +16 -0
  11. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +16 -0
  12. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +16 -0
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +16 -0
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +16 -0
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +16 -0
  16. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +16 -0
  17. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +16 -0
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +16 -0
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +16 -0
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +16 -0
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +16 -0
  22. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +16 -0
  23. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +16 -0
  24. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +16 -0
  25. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +16 -0
  26. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +16 -0
  27. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +16 -0
  28. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +16 -0
  29. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +16 -0
  30. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +16 -0
  31. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +16 -0
  32. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +16 -0
  33. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +16 -0
  34. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +16 -0
  35. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +16 -0
  36. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +16 -0
  37. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +16 -0
  38. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +16 -0
  39. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +16 -0
  40. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +16 -0
  41. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +16 -0
  42. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +16 -0
  43. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +16 -0
  44. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +16 -0
  45. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +16 -0
  46. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +16 -0
  47. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +16 -0
  48. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +16 -0
  49. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +16 -0
  50. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +16 -0
  51. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +16 -0
  52. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +16 -0
  53. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +16 -0
  54. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +16 -0
  55. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +16 -0
  56. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +16 -0
  57. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/CodeDeployServiceException.d.ts +2 -0
  58. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/models_0.d.ts +382 -0
  59. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/Interfaces.d.ts +3 -0
  60. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationRevisionsPaginator.d.ts +3 -0
  61. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationsPaginator.d.ts +3 -0
  62. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentConfigsPaginator.d.ts +3 -0
  63. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentGroupsPaginator.d.ts +3 -0
  64. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentInstancesPaginator.d.ts +3 -0
  65. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentsPaginator.d.ts +3 -0
  66. package/node_modules/@aws-sdk/client-codedeploy/package.json +30 -30
  67. package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +5 -0
  68. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +24 -4
  69. package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +16 -0
  70. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +16 -0
  71. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +16 -0
  72. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +16 -0
  73. package/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts +2 -0
  74. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +28 -0
  75. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +3 -0
  76. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +3 -0
  77. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +3 -0
  78. package/node_modules/@aws-sdk/client-sso/package.json +26 -26
  79. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +4 -0
  80. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +24 -4
  81. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +16 -0
  82. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +16 -0
  83. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +16 -0
  84. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +2 -0
  85. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +30 -0
  86. package/node_modules/@aws-sdk/client-sso-oidc/package.json +26 -26
  87. package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +19 -83
  88. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +19 -83
  89. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +10 -1
  90. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +24 -4
  91. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +17 -1
  92. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +16 -0
  93. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +16 -0
  94. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +16 -0
  95. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +16 -0
  96. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +16 -0
  97. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +16 -0
  98. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +16 -0
  99. package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +2 -0
  100. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +47 -0
  101. package/node_modules/@aws-sdk/client-sts/package.json +29 -29
  102. package/node_modules/@aws-sdk/config-resolver/package.json +5 -5
  103. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  104. package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  105. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js +1 -3
  106. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +1 -3
  107. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  108. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  109. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  110. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  111. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  112. package/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  113. package/node_modules/@aws-sdk/hash-node/package.json +2 -2
  114. package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  115. package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  116. package/node_modules/@aws-sdk/middleware-endpoint/package.json +7 -7
  117. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  118. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  119. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  120. package/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  121. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +6 -6
  122. package/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  123. package/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  124. package/node_modules/@aws-sdk/middleware-stack/package.json +2 -2
  125. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  126. package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  127. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +11 -6
  128. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-manager.js +92 -0
  129. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-pool.js +36 -0
  130. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +14 -37
  131. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http-handler.js +8 -5
  132. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-connection-manager.js +86 -0
  133. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
  134. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-handler.js +14 -37
  135. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http-handler.d.ts +16 -0
  136. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http2-connection-manager.d.ts +22 -0
  137. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http2-connection-pool.d.ts +13 -0
  138. package/node_modules/@aws-sdk/node-http-handler/dist-types/node-http2-handler.d.ts +9 -16
  139. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -0
  140. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +24 -0
  141. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +14 -0
  142. package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +2 -3
  143. package/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  144. package/node_modules/@aws-sdk/property-provider/package.json +2 -2
  145. package/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  146. package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  147. package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  148. package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  149. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  150. package/node_modules/@aws-sdk/signature-v4/package.json +4 -4
  151. package/node_modules/@aws-sdk/smithy-client/package.json +3 -3
  152. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  153. package/node_modules/@aws-sdk/types/dist-cjs/connection/config.js +2 -0
  154. package/node_modules/@aws-sdk/types/dist-cjs/connection/manager.js +2 -0
  155. package/node_modules/@aws-sdk/types/dist-cjs/connection/pool.js +2 -0
  156. package/node_modules/@aws-sdk/types/dist-cjs/transfer.js +7 -0
  157. package/node_modules/@aws-sdk/types/dist-es/connection/config.js +1 -0
  158. package/node_modules/@aws-sdk/types/dist-es/connection/manager.js +1 -0
  159. package/node_modules/@aws-sdk/types/dist-es/connection/pool.js +1 -0
  160. package/node_modules/@aws-sdk/types/dist-es/transfer.js +6 -1
  161. package/node_modules/@aws-sdk/types/dist-types/connection/config.d.ts +7 -0
  162. package/node_modules/@aws-sdk/types/dist-types/connection/manager.d.ts +28 -0
  163. package/node_modules/@aws-sdk/types/dist-types/connection/pool.d.ts +24 -0
  164. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +5 -0
  165. package/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +9 -1
  166. package/node_modules/@aws-sdk/types/dist-types/ts3.4/connection/config.d.ts +3 -0
  167. package/node_modules/@aws-sdk/types/dist-types/ts3.4/connection/manager.d.ts +14 -0
  168. package/node_modules/@aws-sdk/types/dist-types/ts3.4/connection/pool.d.ts +9 -0
  169. package/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +1 -0
  170. package/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +9 -1
  171. package/node_modules/@aws-sdk/types/package.json +1 -1
  172. package/node_modules/@aws-sdk/url-parser/package.json +3 -3
  173. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  174. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  175. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  176. package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  177. package/node_modules/@aws-sdk/util-retry/package.json +3 -3
  178. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  179. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  180. package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  181. package/package.json +13 -13
@@ -17,11 +17,18 @@ export interface NodeHttp2HandlerOptions {
17
17
  sessionTimeout?: number;
18
18
  /**
19
19
  * Disables processing concurrent streams on a ClientHttp2Session instance. When set
20
- * to true, the handler will create a new session instance for each request to a URL.
20
+ * to true, a new session instance is created for each request to a URL.
21
21
  * **Default:** false.
22
22
  * https://nodejs.org/api/http2.html#http2_class_clienthttp2session
23
23
  */
24
24
  disableConcurrentStreams?: boolean;
25
+ /**
26
+ * Maximum number of concurrent Http2Stream instances per ClientHttp2Session. Each session
27
+ * may have up to 2^31-1 Http2Stream instances over its lifetime.
28
+ * This value must be greater than or equal to 0.
29
+ * https://nodejs.org/api/http2.html#class-http2stream
30
+ */
31
+ maxConcurrentStreams?: number;
25
32
  }
26
33
  export declare class NodeHttp2Handler implements HttpHandler {
27
34
  private config?;
@@ -29,29 +36,15 @@ export declare class NodeHttp2Handler implements HttpHandler {
29
36
  readonly metadata: {
30
37
  handlerProtocol: string;
31
38
  };
32
- private sessionCache;
39
+ private readonly connectionManager;
33
40
  constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
34
41
  destroy(): void;
35
42
  handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
36
43
  response: HttpResponse;
37
44
  }>;
38
- /**
39
- * Returns a session for the given URL.
40
- *
41
- * @param authority The URL to create a session for.
42
- * @param disableConcurrentStreams If true, a new session will be created for each request.
43
- * @returns A session for the given URL.
44
- */
45
- private getSession;
46
45
  /**
47
46
  * Destroys a session.
48
47
  * @param session The session to destroy.
49
48
  */
50
49
  private destroySession;
51
- /**
52
- * Delete a session from the connection pool.
53
- * @param authority The authority of the session to delete.
54
- * @param session The session to delete.
55
- */
56
- private deleteSessionFromCache;
57
50
  }
@@ -4,10 +4,12 @@ import { Agent as hAgent } from "http";
4
4
  import { Agent as hsAgent } from "https";
5
5
  export interface NodeHttpHandlerOptions {
6
6
  connectionTimeout?: number;
7
+ requestTimeout?: number;
7
8
  socketTimeout?: number;
8
9
  httpAgent?: hAgent;
9
10
  httpsAgent?: hsAgent;
10
11
  }
12
+ export declare const DEFAULT_REQUEST_TIMEOUT = 0;
11
13
  export declare class NodeHttpHandler implements HttpHandler {
12
14
  private config?;
13
15
  private readonly configProvider;
@@ -0,0 +1,24 @@
1
+ import { RequestContext } from "@aws-sdk/types";
2
+ import { ConnectConfiguration } from "@aws-sdk/types/src/connection/config";
3
+ import {
4
+ ConnectionManager,
5
+ ConnectionManagerConfiguration,
6
+ } from "@aws-sdk/types/src/connection/manager";
7
+ import { ClientHttp2Session } from "http2";
8
+ export declare class NodeHttp2ConnectionManager
9
+ implements ConnectionManager<ClientHttp2Session>
10
+ {
11
+ constructor(config: ConnectionManagerConfiguration);
12
+ private config;
13
+ private readonly sessionCache;
14
+ lease(
15
+ requestContext: RequestContext,
16
+ connectionConfiguration: ConnectConfiguration
17
+ ): ClientHttp2Session;
18
+ deleteSession(authority: string, session: ClientHttp2Session): void;
19
+ release(requestContext: RequestContext, session: ClientHttp2Session): void;
20
+ destroy(): void;
21
+ setMaxConcurrentStreams(maxConcurrentStreams: number): void;
22
+ setDisableConcurrentStreams(disableConcurrentStreams: boolean): void;
23
+ private getUrlString;
24
+ }
@@ -0,0 +1,14 @@
1
+ import { ConnectionPool } from "@aws-sdk/types/src/connection/pool";
2
+ import { ClientHttp2Session } from "http2";
3
+ export declare class NodeHttp2ConnectionPool
4
+ implements ConnectionPool<ClientHttp2Session>
5
+ {
6
+ private sessions;
7
+ constructor(sessions?: ClientHttp2Session[]);
8
+ poll(): ClientHttp2Session | void;
9
+ offerLast(session: ClientHttp2Session): void;
10
+ contains(session: ClientHttp2Session): boolean;
11
+ remove(session: ClientHttp2Session): void;
12
+ [Symbol.iterator](): IterableIterator<ClientHttp2Session>;
13
+ destroy(connection: ClientHttp2Session): void;
14
+ }
@@ -4,6 +4,7 @@ export interface NodeHttp2HandlerOptions {
4
4
  requestTimeout?: number;
5
5
  sessionTimeout?: number;
6
6
  disableConcurrentStreams?: boolean;
7
+ maxConcurrentStreams?: number;
7
8
  }
8
9
  export declare class NodeHttp2Handler implements HttpHandler {
9
10
  private config?;
@@ -11,7 +12,7 @@ export declare class NodeHttp2Handler implements HttpHandler {
11
12
  readonly metadata: {
12
13
  handlerProtocol: string;
13
14
  };
14
- private sessionCache;
15
+ private readonly connectionManager;
15
16
  constructor(
16
17
  options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>
17
18
  );
@@ -22,7 +23,5 @@ export declare class NodeHttp2Handler implements HttpHandler {
22
23
  ): Promise<{
23
24
  response: HttpResponse;
24
25
  }>;
25
- private getSession;
26
26
  private destroySession;
27
- private deleteSessionFromCache;
28
27
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-http-handler",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -22,10 +22,10 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/abort-controller": "3.295.0",
26
- "@aws-sdk/protocol-http": "3.295.0",
27
- "@aws-sdk/querystring-builder": "3.295.0",
28
- "@aws-sdk/types": "3.295.0",
25
+ "@aws-sdk/abort-controller": "3.296.0",
26
+ "@aws-sdk/protocol-http": "3.296.0",
27
+ "@aws-sdk/querystring-builder": "3.296.0",
28
+ "@aws-sdk/types": "3.296.0",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/property-provider",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/types": "3.296.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/protocol-http",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.295.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-builder",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/types": "3.296.0",
24
24
  "@aws-sdk/util-uri-escape": "3.295.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-parser",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/types": "3.296.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/service-error-classification",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "devDependencies": {
23
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/types": "3.296.0",
24
24
  "@tsconfig/recommended": "1.0.1",
25
25
  "concurrently": "7.0.0",
26
26
  "downlevel-dts": "0.10.1",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aws-sdk/shared-ini-file-loader",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "dependencies": {
5
- "@aws-sdk/types": "3.295.0",
5
+ "@aws-sdk/types": "3.296.0",
6
6
  "tslib": "^2.5.0"
7
7
  },
8
8
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,16 +22,16 @@
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
24
  "@aws-sdk/is-array-buffer": "3.295.0",
25
- "@aws-sdk/types": "3.295.0",
25
+ "@aws-sdk/types": "3.296.0",
26
26
  "@aws-sdk/util-hex-encoding": "3.295.0",
27
- "@aws-sdk/util-middleware": "3.295.0",
27
+ "@aws-sdk/util-middleware": "3.296.0",
28
28
  "@aws-sdk/util-uri-escape": "3.295.0",
29
29
  "@aws-sdk/util-utf8": "3.295.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@aws-crypto/sha256-js": "3.0.0",
34
- "@aws-sdk/protocol-http": "3.295.0",
34
+ "@aws-sdk/protocol-http": "3.296.0",
35
35
  "@aws-sdk/util-buffer-from": "3.295.0",
36
36
  "@tsconfig/recommended": "1.0.1",
37
37
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/smithy-client",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/middleware-stack": "3.295.0",
24
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/middleware-stack": "3.296.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.295.0",
3
+ "version": "3.297.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/client-sso-oidc": "3.295.0",
29
- "@aws-sdk/property-provider": "3.295.0",
30
- "@aws-sdk/shared-ini-file-loader": "3.295.0",
31
- "@aws-sdk/types": "3.295.0",
28
+ "@aws-sdk/client-sso-oidc": "3.297.0",
29
+ "@aws-sdk/property-provider": "3.296.0",
30
+ "@aws-sdk/shared-ini-file-loader": "3.296.0",
31
+ "@aws-sdk/types": "3.296.0",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequestHandlerProtocol = void 0;
4
+ var RequestHandlerProtocol;
5
+ (function (RequestHandlerProtocol) {
6
+ RequestHandlerProtocol["HTTP_0_9"] = "http/0.9";
7
+ RequestHandlerProtocol["HTTP_1_0"] = "http/1.0";
8
+ RequestHandlerProtocol["TDS_8_0"] = "tds/8.0";
9
+ })(RequestHandlerProtocol = exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {}));
@@ -1 +1,6 @@
1
- export {};
1
+ export var RequestHandlerProtocol;
2
+ (function (RequestHandlerProtocol) {
3
+ RequestHandlerProtocol["HTTP_0_9"] = "http/0.9";
4
+ RequestHandlerProtocol["HTTP_1_0"] = "http/1.0";
5
+ RequestHandlerProtocol["TDS_8_0"] = "tds/8.0";
6
+ })(RequestHandlerProtocol || (RequestHandlerProtocol = {}));
@@ -0,0 +1,7 @@
1
+ export interface ConnectConfiguration {
2
+ /**
3
+ * The maximum time in milliseconds that the connection phase of a request
4
+ * may take before the connection attempt is abandoned.
5
+ */
6
+ requestTimeout?: number;
7
+ }
@@ -0,0 +1,28 @@
1
+ import { RequestContext } from "../transfer";
2
+ import { ConnectConfiguration } from "./config";
3
+ export interface ConnectionManagerConfiguration {
4
+ /**
5
+ * Maximum number of allowed concurrent requests per connection.
6
+ */
7
+ maxConcurrency?: number;
8
+ /**
9
+ * Disables concurrent requests per connection.
10
+ */
11
+ disableConcurrency?: boolean;
12
+ }
13
+ export interface ConnectionManager<T> {
14
+ /**
15
+ * Retrieves a connection from the connection pool if available,
16
+ * otherwise establish a new connection
17
+ */
18
+ lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): T;
19
+ /**
20
+ * Releases the connection back to the pool making it potentially
21
+ * re-usable by other requests.
22
+ */
23
+ release(requestContext: RequestContext, connection: T): void;
24
+ /**
25
+ * Destroys the connection manager. All connections will be closed.
26
+ */
27
+ destroy(): void;
28
+ }
@@ -0,0 +1,24 @@
1
+ export interface ConnectionPool<T> {
2
+ /**
3
+ * Retrieve the first connection in the pool
4
+ */
5
+ poll(): T | void;
6
+ /**
7
+ * Release the connection back to the pool making it potentially
8
+ * re-usable by other requests.
9
+ */
10
+ offerLast(connection: T): void;
11
+ /**
12
+ * Removes the connection from the pool, and destroys it.
13
+ */
14
+ destroy(connection: T): void;
15
+ /**
16
+ * Implements the iterable protocol and allows arrays to be consumed
17
+ * by most syntaxes expecting iterables, such as the spread syntax
18
+ * and for...of loops
19
+ */
20
+ [Symbol.iterator](): Iterator<T>;
21
+ }
22
+ export interface CacheKey {
23
+ destination: string;
24
+ }
@@ -108,4 +108,9 @@ export interface ResolvedHttpResponse extends HttpResponse {
108
108
  */
109
109
  export interface HttpHandlerOptions {
110
110
  abortSignal?: AbortSignal;
111
+ /**
112
+ * The maximum time in milliseconds that the connection phase of a request
113
+ * may take before the connection attempt is abandoned.
114
+ */
115
+ requestTimeout?: number;
111
116
  }
@@ -21,5 +21,13 @@ export interface RequestHandler<RequestType, ResponseType, HandlerOptions = {}>
21
21
  * @public
22
22
  */
23
23
  export interface RequestHandlerMetadata {
24
- handlerProtocol: string;
24
+ handlerProtocol: RequestHandlerProtocol | string;
25
+ }
26
+ export declare enum RequestHandlerProtocol {
27
+ HTTP_0_9 = "http/0.9",
28
+ HTTP_1_0 = "http/1.0",
29
+ TDS_8_0 = "tds/8.0"
30
+ }
31
+ export interface RequestContext {
32
+ destination: URL;
25
33
  }
@@ -0,0 +1,3 @@
1
+ export interface ConnectConfiguration {
2
+ requestTimeout?: number;
3
+ }
@@ -0,0 +1,14 @@
1
+ import { RequestContext } from "../transfer";
2
+ import { ConnectConfiguration } from "./config";
3
+ export interface ConnectionManagerConfiguration {
4
+ maxConcurrency?: number;
5
+ disableConcurrency?: boolean;
6
+ }
7
+ export interface ConnectionManager<T> {
8
+ lease(
9
+ requestContext: RequestContext,
10
+ connectionConfiguration: ConnectConfiguration
11
+ ): T;
12
+ release(requestContext: RequestContext, connection: T): void;
13
+ destroy(): void;
14
+ }
@@ -0,0 +1,9 @@
1
+ export interface ConnectionPool<T> {
2
+ poll(): T | void;
3
+ offerLast(connection: T): void;
4
+ destroy(connection: T): void;
5
+ [Symbol.iterator](): Iterator<T>;
6
+ }
7
+ export interface CacheKey {
8
+ destination: string;
9
+ }
@@ -27,4 +27,5 @@ export interface ResolvedHttpResponse extends HttpResponse {
27
27
  }
28
28
  export interface HttpHandlerOptions {
29
29
  abortSignal?: AbortSignal;
30
+ requestTimeout?: number;
30
31
  }
@@ -14,5 +14,13 @@ export interface RequestHandler<
14
14
  ) => Promise<RequestHandlerOutput<ResponseType>>;
15
15
  }
16
16
  export interface RequestHandlerMetadata {
17
- handlerProtocol: string;
17
+ handlerProtocol: RequestHandlerProtocol | string;
18
+ }
19
+ export declare enum RequestHandlerProtocol {
20
+ HTTP_0_9 = "http/0.9",
21
+ HTTP_1_0 = "http/1.0",
22
+ TDS_8_0 = "tds/8.0",
23
+ }
24
+ export interface RequestContext {
25
+ destination: URL;
18
26
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/url-parser",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/querystring-parser": "3.295.0",
24
- "@aws-sdk/types": "3.295.0",
23
+ "@aws-sdk/querystring-parser": "3.296.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-browser",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,13 +19,13 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/property-provider": "3.295.0",
23
- "@aws-sdk/types": "3.295.0",
22
+ "@aws-sdk/property-provider": "3.296.0",
23
+ "@aws-sdk/types": "3.296.0",
24
24
  "bowser": "^2.11.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@aws-sdk/smithy-client": "3.295.0",
28
+ "@aws-sdk/smithy-client": "3.296.0",
29
29
  "@tsconfig/recommended": "1.0.1",
30
30
  "@types/node": "^14.14.31",
31
31
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-node",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/config-resolver": "3.295.0",
23
- "@aws-sdk/credential-provider-imds": "3.295.0",
24
- "@aws-sdk/node-config-provider": "3.295.0",
25
- "@aws-sdk/property-provider": "3.295.0",
26
- "@aws-sdk/types": "3.295.0",
22
+ "@aws-sdk/config-resolver": "3.296.0",
23
+ "@aws-sdk/credential-provider-imds": "3.296.0",
24
+ "@aws-sdk/node-config-provider": "3.296.0",
25
+ "@aws-sdk/property-provider": "3.296.0",
26
+ "@aws-sdk/types": "3.296.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/smithy-client": "3.295.0",
30
+ "@aws-sdk/smithy-client": "3.296.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.295.0",
24
+ "@aws-sdk/types": "3.296.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-middleware",
3
- "version": "3.295.0",
3
+ "version": "3.296.0",
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",
@@ -27,7 +27,7 @@
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/types": "3.295.0",
30
+ "@aws-sdk/types": "3.296.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",