@cdklabs/cdk-ecs-codedeploy 0.0.194 → 0.0.196
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.
- package/.jsii +3 -3
- package/.jsii.tabl.json +1 -1
- package/.projenrc.ts +2 -2
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +1 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +3 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -6
- package/node_modules/@smithy/protocol-http/dist-es/Field.js +1 -1
- package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +3 -0
- package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-es/types.js +1 -5
- package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +1 -2
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +7 -12
- package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +4 -9
- package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +15 -50
- package/node_modules/@smithy/protocol-http/package.json +3 -2
- package/node_modules/@smithy/types/dist-cjs/auth.js +8 -0
- package/node_modules/@smithy/types/dist-cjs/checksum.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/client.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/command.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/connection/config.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/connection/index.js +6 -0
- package/node_modules/@smithy/types/dist-cjs/connection/manager.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/connection/pool.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/crypto.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/encode.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/endpoint.js +8 -0
- package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +8 -0
- package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/eventStream.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/http.js +6 -0
- package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/identity.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +5 -0
- package/node_modules/@smithy/types/dist-cjs/index.js +22 -0
- package/node_modules/@smithy/types/dist-cjs/logger.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/middleware.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/pagination.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/profile.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/response.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/retry.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/shapes.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/signature.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/stream.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/uri.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/waiter.js +2 -0
- package/node_modules/@smithy/types/dist-es/auth.js +5 -0
- package/node_modules/@smithy/types/dist-es/checksum.js +1 -0
- package/node_modules/@smithy/types/dist-es/client.js +1 -0
- package/node_modules/@smithy/types/dist-es/command.js +1 -0
- package/node_modules/@smithy/types/dist-es/connection/config.js +1 -0
- package/node_modules/@smithy/types/dist-es/connection/index.js +3 -0
- package/node_modules/@smithy/types/dist-es/connection/manager.js +1 -0
- package/node_modules/@smithy/types/dist-es/connection/pool.js +1 -0
- package/node_modules/@smithy/types/dist-es/crypto.js +1 -0
- package/node_modules/@smithy/types/dist-es/encode.js +1 -0
- package/node_modules/@smithy/types/dist-es/endpoint.js +5 -0
- package/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +1 -0
- package/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +1 -0
- package/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +1 -0
- package/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +1 -0
- package/node_modules/@smithy/types/dist-es/endpoints/index.js +5 -0
- package/node_modules/@smithy/types/dist-es/endpoints/shared.js +1 -0
- package/node_modules/@smithy/types/dist-es/eventStream.js +1 -0
- package/node_modules/@smithy/types/dist-es/http.js +5 -1
- package/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +1 -0
- package/node_modules/@smithy/types/dist-es/identity/identity.js +1 -0
- package/node_modules/@smithy/types/dist-es/identity/index.js +2 -0
- package/node_modules/@smithy/types/dist-es/index.js +22 -0
- package/node_modules/@smithy/types/dist-es/logger.js +1 -0
- package/node_modules/@smithy/types/dist-es/middleware.js +1 -0
- package/node_modules/@smithy/types/dist-es/pagination.js +1 -0
- package/node_modules/@smithy/types/dist-es/profile.js +1 -0
- package/node_modules/@smithy/types/dist-es/response.js +1 -0
- package/node_modules/@smithy/types/dist-es/retry.js +1 -0
- package/node_modules/@smithy/types/dist-es/shapes.js +1 -0
- package/node_modules/@smithy/types/dist-es/signature.js +1 -0
- package/node_modules/@smithy/types/dist-es/stream.js +1 -0
- package/node_modules/@smithy/types/dist-es/uri.js +1 -0
- package/node_modules/@smithy/types/dist-es/waiter.js +1 -0
- package/node_modules/@smithy/types/dist-types/auth.d.ts +55 -0
- package/node_modules/@smithy/types/dist-types/checksum.d.ts +63 -0
- package/node_modules/@smithy/types/dist-types/client.d.ts +25 -0
- package/node_modules/@smithy/types/dist-types/command.d.ts +10 -0
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +28 -0
- package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +24 -0
- package/node_modules/@smithy/types/dist-types/crypto.d.ts +60 -0
- package/node_modules/@smithy/types/dist-types/encode.d.ts +19 -0
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +77 -0
- package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +15 -0
- package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +19 -0
- package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +10 -0
- package/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +25 -0
- package/node_modules/@smithy/types/dist-types/eventStream.d.ts +108 -0
- package/node_modules/@smithy/types/dist-types/http.d.ts +86 -1
- package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +23 -0
- package/node_modules/@smithy/types/dist-types/identity/identity.d.ts +15 -0
- package/node_modules/@smithy/types/dist-types/identity/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/index.d.ts +22 -0
- package/node_modules/@smithy/types/dist-types/logger.d.ts +13 -0
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +475 -0
- package/node_modules/@smithy/types/dist-types/pagination.d.ts +26 -0
- package/node_modules/@smithy/types/dist-types/profile.d.ts +22 -0
- package/node_modules/@smithy/types/dist-types/response.d.ts +40 -0
- package/node_modules/@smithy/types/dist-types/retry.d.ts +128 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +68 -0
- package/node_modules/@smithy/types/dist-types/shapes.d.ts +72 -0
- package/node_modules/@smithy/types/dist-types/signature.d.ts +150 -0
- package/node_modules/@smithy/types/dist-types/stream.d.ts +22 -0
- package/node_modules/@smithy/types/dist-types/transfer.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/uri.d.ts +17 -0
- package/node_modules/@smithy/types/dist-types/util.d.ts +117 -0
- package/node_modules/@smithy/types/dist-types/waiter.d.ts +35 -0
- package/node_modules/@smithy/types/package.json +7 -2
- package/package.json +6 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EndpointURLScheme = void 0;
|
|
4
|
+
var EndpointURLScheme;
|
|
5
|
+
(function (EndpointURLScheme) {
|
|
6
|
+
EndpointURLScheme["HTTP"] = "http";
|
|
7
|
+
EndpointURLScheme["HTTPS"] = "https";
|
|
8
|
+
})(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./EndpointRuleObject"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ErrorRuleObject"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./RuleSetObject"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./shared"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./TreeRuleObject"), exports);
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldPosition = void 0;
|
|
4
|
+
var FieldPosition;
|
|
5
|
+
(function (FieldPosition) {
|
|
6
|
+
FieldPosition[FieldPosition["HEADER"] = 0] = "HEADER";
|
|
7
|
+
FieldPosition[FieldPosition["TRAILER"] = 1] = "TRAILER";
|
|
8
|
+
})(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {}));
|
|
@@ -2,7 +2,29 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./abort"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./auth"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./checksum"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./client"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./command"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./connection"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./crypto"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./encode"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./endpoint"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./endpoints"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./eventStream"), exports);
|
|
5
15
|
tslib_1.__exportStar(require("./http"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./identity"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./logger"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./middleware"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./profile"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./response"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./retry"), exports);
|
|
6
23
|
tslib_1.__exportStar(require("./serde"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./shapes"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./signature"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./stream"), exports);
|
|
7
27
|
tslib_1.__exportStar(require("./transfer"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./uri"), exports);
|
|
8
29
|
tslib_1.__exportStar(require("./util"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./waiter"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
export * from "./abort";
|
|
2
|
+
export * from "./auth";
|
|
3
|
+
export * from "./checksum";
|
|
4
|
+
export * from "./client";
|
|
5
|
+
export * from "./command";
|
|
6
|
+
export * from "./connection";
|
|
7
|
+
export * from "./crypto";
|
|
8
|
+
export * from "./encode";
|
|
9
|
+
export * from "./endpoint";
|
|
10
|
+
export * from "./endpoints";
|
|
11
|
+
export * from "./eventStream";
|
|
2
12
|
export * from "./http";
|
|
13
|
+
export * from "./identity";
|
|
14
|
+
export * from "./logger";
|
|
15
|
+
export * from "./middleware";
|
|
16
|
+
export * from "./pagination";
|
|
17
|
+
export * from "./profile";
|
|
18
|
+
export * from "./response";
|
|
19
|
+
export * from "./retry";
|
|
3
20
|
export * from "./serde";
|
|
21
|
+
export * from "./shapes";
|
|
22
|
+
export * from "./signature";
|
|
23
|
+
export * from "./stream";
|
|
4
24
|
export * from "./transfer";
|
|
25
|
+
export * from "./uri";
|
|
5
26
|
export * from "./util";
|
|
27
|
+
export * from "./waiter";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*
|
|
4
|
+
* Authentication schemes represent a way that the service will authenticate the customer’s identity.
|
|
5
|
+
*/
|
|
6
|
+
export interface AuthScheme {
|
|
7
|
+
/**
|
|
8
|
+
* @example "sigv4a" or "sigv4"
|
|
9
|
+
*/
|
|
10
|
+
name: "sigv4" | "sigv4a" | string;
|
|
11
|
+
/**
|
|
12
|
+
* @example "s3"
|
|
13
|
+
*/
|
|
14
|
+
signingName: string;
|
|
15
|
+
/**
|
|
16
|
+
* @example "us-east-1"
|
|
17
|
+
*/
|
|
18
|
+
signingRegion: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example ["*"]
|
|
21
|
+
* @example ["us-west-2", "us-east-1"]
|
|
22
|
+
*/
|
|
23
|
+
signingRegionSet?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated this field was renamed to signingRegion.
|
|
26
|
+
*/
|
|
27
|
+
signingScope?: never;
|
|
28
|
+
properties: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export interface HttpAuthDefinition {
|
|
34
|
+
/**
|
|
35
|
+
* Defines the location of where the Auth is serialized.
|
|
36
|
+
*/
|
|
37
|
+
in: HttpAuthLocation;
|
|
38
|
+
/**
|
|
39
|
+
* Defines the name of the HTTP header or query string parameter
|
|
40
|
+
* that contains the Auth.
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* Defines the security scheme to use on the `Authorization` header value.
|
|
45
|
+
* This can only be set if the "in" property is set to {@link HttpAuthLocation.HEADER}.
|
|
46
|
+
*/
|
|
47
|
+
scheme?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export declare enum HttpAuthLocation {
|
|
53
|
+
HEADER = "header",
|
|
54
|
+
QUERY = "query"
|
|
55
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { SourceData } from "./crypto";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
5
|
+
* An object that provides a checksum of data provided in chunks to `update`.
|
|
6
|
+
* The checksum may be performed incrementally as chunks are received or all
|
|
7
|
+
* at once when the checksum is finalized, depending on the underlying
|
|
8
|
+
* implementation.
|
|
9
|
+
*
|
|
10
|
+
* It's recommended to compute checksum incrementally to avoid reading the
|
|
11
|
+
* entire payload in memory.
|
|
12
|
+
*
|
|
13
|
+
* A class that implements this interface may accept an optional secret key in its
|
|
14
|
+
* constructor while computing checksum value, when using HMAC. If provided,
|
|
15
|
+
* this secret key would be used when computing checksum.
|
|
16
|
+
*/
|
|
17
|
+
export interface Checksum {
|
|
18
|
+
/**
|
|
19
|
+
* Constant length of the digest created by the algorithm in bytes.
|
|
20
|
+
*/
|
|
21
|
+
digestLength?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new checksum object that contains a deep copy of the internal
|
|
24
|
+
* state of the current `Checksum` object.
|
|
25
|
+
*/
|
|
26
|
+
copy?(): Checksum;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the digest of all of the data passed.
|
|
29
|
+
*/
|
|
30
|
+
digest(): Promise<Uint8Array>;
|
|
31
|
+
/**
|
|
32
|
+
* Allows marking a checksum for checksums that support the ability
|
|
33
|
+
* to mark and reset.
|
|
34
|
+
*
|
|
35
|
+
* @param readLimit - The maximum limit of bytes that can be read
|
|
36
|
+
* before the mark position becomes invalid.
|
|
37
|
+
*/
|
|
38
|
+
mark?(readLimit: number): void;
|
|
39
|
+
/**
|
|
40
|
+
* Resets the checksum to its initial value.
|
|
41
|
+
*/
|
|
42
|
+
reset(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Adds a chunk of data for which checksum needs to be computed.
|
|
45
|
+
* This can be called many times with new data as it is streamed.
|
|
46
|
+
*
|
|
47
|
+
* Implementations may override this method which passes second param
|
|
48
|
+
* which makes Checksum object stateless.
|
|
49
|
+
*
|
|
50
|
+
* @param chunk - The buffer to update checksum with.
|
|
51
|
+
*/
|
|
52
|
+
update(chunk: Uint8Array): void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
*
|
|
57
|
+
* A constructor for a Checksum that may be used to calculate an HMAC. Implementing
|
|
58
|
+
* classes should not directly hold the provided key in memory beyond the
|
|
59
|
+
* lexical scope of the constructor.
|
|
60
|
+
*/
|
|
61
|
+
export interface ChecksumConstructor {
|
|
62
|
+
new (secret?: SourceData): Checksum;
|
|
63
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Command } from "./command";
|
|
2
|
+
import { MiddlewareStack } from "./middleware";
|
|
3
|
+
import { MetadataBearer } from "./response";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* function definition for different overrides of client's 'send' function.
|
|
8
|
+
*/
|
|
9
|
+
interface InvokeFunction<InputTypes extends object, OutputTypes extends MetadataBearer, ResolvedClientConfiguration> {
|
|
10
|
+
<InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any): Promise<OutputType>;
|
|
11
|
+
<InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options: any, cb: (err: any, data?: OutputType) => void): void;
|
|
12
|
+
<InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any, cb?: (err: any, data?: OutputType) => void): Promise<OutputType> | void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A general interface for service clients, idempotent to browser or node clients
|
|
16
|
+
* This type corresponds to SmithyClient(https://github.com/aws/aws-sdk-js-v3/blob/main/packages/smithy-client/src/client.ts).
|
|
17
|
+
* It's provided for using without importing the SmithyClient class.
|
|
18
|
+
*/
|
|
19
|
+
export interface Client<Input extends object, Output extends MetadataBearer, ResolvedClientConfiguration> {
|
|
20
|
+
readonly config: ResolvedClientConfiguration;
|
|
21
|
+
middlewareStack: MiddlewareStack<Input, Output>;
|
|
22
|
+
send: InvokeFunction<Input, Output, ResolvedClientConfiguration>;
|
|
23
|
+
destroy: () => void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Handler, MiddlewareStack } from "./middleware";
|
|
2
|
+
import { MetadataBearer } from "./response";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface Command<ClientInput extends object, InputType extends ClientInput, ClientOutput extends MetadataBearer, OutputType extends ClientOutput, ResolvedConfiguration> {
|
|
7
|
+
readonly input: InputType;
|
|
8
|
+
readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
|
|
9
|
+
resolveMiddleware(stack: MiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedConfiguration, options: any): Handler<InputType, OutputType>;
|
|
10
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*/
|
|
4
|
+
export type SourceData = string | ArrayBuffer | ArrayBufferView;
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*
|
|
8
|
+
* An object that provides a hash of data provided in chunks to `update`. The
|
|
9
|
+
* hash may be performed incrementally as chunks are received or all at once
|
|
10
|
+
* when the hash is finalized, depending on the underlying implementation.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated use {@link Checksum}
|
|
13
|
+
*/
|
|
14
|
+
export interface Hash {
|
|
15
|
+
/**
|
|
16
|
+
* Adds a chunk of data to the hash. If a buffer is provided, the `encoding`
|
|
17
|
+
* argument will be ignored. If a string is provided without a specified
|
|
18
|
+
* encoding, implementations must assume UTF-8 encoding.
|
|
19
|
+
*
|
|
20
|
+
* Not all encodings are supported on all platforms, though all must support
|
|
21
|
+
* UTF-8.
|
|
22
|
+
*/
|
|
23
|
+
update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
|
|
24
|
+
/**
|
|
25
|
+
* Finalizes the hash and provides a promise that will be fulfilled with the
|
|
26
|
+
* raw bytes of the calculated hash.
|
|
27
|
+
*/
|
|
28
|
+
digest(): Promise<Uint8Array>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*
|
|
33
|
+
* A constructor for a hash that may be used to calculate an HMAC. Implementing
|
|
34
|
+
* classes should not directly hold the provided key in memory beyond the
|
|
35
|
+
* lexical scope of the constructor.
|
|
36
|
+
*
|
|
37
|
+
* @deprecated use {@link ChecksumConstructor}
|
|
38
|
+
*/
|
|
39
|
+
export interface HashConstructor {
|
|
40
|
+
new (secret?: SourceData): Hash;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*
|
|
45
|
+
* A function that calculates the hash of a data stream. Determining the hash
|
|
46
|
+
* will consume the stream, so only replayable streams should be provided to an
|
|
47
|
+
* implementation of this interface.
|
|
48
|
+
*/
|
|
49
|
+
export interface StreamHasher<StreamType = any> {
|
|
50
|
+
(hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
*
|
|
55
|
+
* A function that returns a promise fulfilled with bytes from a
|
|
56
|
+
* cryptographically secure pseudorandom number generator.
|
|
57
|
+
*/
|
|
58
|
+
export interface randomValues {
|
|
59
|
+
(byteLength: number): Promise<Uint8Array>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Message } from "./eventStream";
|
|
2
|
+
export interface MessageEncoder {
|
|
3
|
+
encode(message: Message): Uint8Array;
|
|
4
|
+
}
|
|
5
|
+
export interface MessageDecoder {
|
|
6
|
+
decode(message: ArrayBufferView): Message;
|
|
7
|
+
feed(message: ArrayBufferView): void;
|
|
8
|
+
endOfStream(): void;
|
|
9
|
+
getMessage(): AvailableMessage;
|
|
10
|
+
getAvailableMessages(): AvailableMessages;
|
|
11
|
+
}
|
|
12
|
+
export interface AvailableMessage {
|
|
13
|
+
getMessage(): Message | undefined;
|
|
14
|
+
isEndOfStream(): boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface AvailableMessages {
|
|
17
|
+
getMessages(): Message[];
|
|
18
|
+
isEndOfStream(): boolean;
|
|
19
|
+
}
|