@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,77 @@
|
|
|
1
|
+
import { AuthScheme } from "./auth";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface EndpointPartition {
|
|
6
|
+
name: string;
|
|
7
|
+
dnsSuffix: string;
|
|
8
|
+
dualStackDnsSuffix: string;
|
|
9
|
+
supportsFIPS: boolean;
|
|
10
|
+
supportsDualStack: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export interface EndpointARN {
|
|
16
|
+
partition: string;
|
|
17
|
+
service: string;
|
|
18
|
+
region: string;
|
|
19
|
+
accountId: string;
|
|
20
|
+
resourceId: Array<string>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare enum EndpointURLScheme {
|
|
26
|
+
HTTP = "http",
|
|
27
|
+
HTTPS = "https"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface EndpointURL {
|
|
33
|
+
/**
|
|
34
|
+
* The URL scheme such as http or https.
|
|
35
|
+
*/
|
|
36
|
+
scheme: EndpointURLScheme;
|
|
37
|
+
/**
|
|
38
|
+
* The authority is the host and optional port component of the URL.
|
|
39
|
+
*/
|
|
40
|
+
authority: string;
|
|
41
|
+
/**
|
|
42
|
+
* The parsed path segment of the URL.
|
|
43
|
+
* This value is as-is as provided by the user.
|
|
44
|
+
*/
|
|
45
|
+
path: string;
|
|
46
|
+
/**
|
|
47
|
+
* The parsed path segment of the URL.
|
|
48
|
+
* This value is guranteed to start and end with a "/".
|
|
49
|
+
*/
|
|
50
|
+
normalizedPath: string;
|
|
51
|
+
/**
|
|
52
|
+
* A boolean indicating whether the authority is an IP address.
|
|
53
|
+
*/
|
|
54
|
+
isIp: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export type EndpointObjectProperty = string | boolean | {
|
|
60
|
+
[key: string]: EndpointObjectProperty;
|
|
61
|
+
} | EndpointObjectProperty[];
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export interface EndpointV2 {
|
|
66
|
+
url: URL;
|
|
67
|
+
properties?: {
|
|
68
|
+
authSchemes?: AuthScheme[];
|
|
69
|
+
} & Record<string, EndpointObjectProperty>;
|
|
70
|
+
headers?: Record<string, string[]>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export type EndpointParameters = {
|
|
76
|
+
[name: string]: undefined | string | boolean;
|
|
77
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EndpointObjectProperty } from "../endpoint";
|
|
2
|
+
import { ConditionObject, Expression } from "./shared";
|
|
3
|
+
export type EndpointObjectProperties = Record<string, EndpointObjectProperty>;
|
|
4
|
+
export type EndpointObjectHeaders = Record<string, Expression[]>;
|
|
5
|
+
export type EndpointObject = {
|
|
6
|
+
url: Expression;
|
|
7
|
+
properties?: EndpointObjectProperties;
|
|
8
|
+
headers?: EndpointObjectHeaders;
|
|
9
|
+
};
|
|
10
|
+
export type EndpointRuleObject = {
|
|
11
|
+
type: "endpoint";
|
|
12
|
+
conditions?: ConditionObject[];
|
|
13
|
+
endpoint: EndpointObject;
|
|
14
|
+
documentation?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RuleSetRules } from "./TreeRuleObject";
|
|
2
|
+
export type DeprecatedObject = {
|
|
3
|
+
message?: string;
|
|
4
|
+
since?: string;
|
|
5
|
+
};
|
|
6
|
+
export type ParameterObject = {
|
|
7
|
+
type: "String" | "Boolean";
|
|
8
|
+
default?: string | boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
documentation?: string;
|
|
11
|
+
builtIn?: string;
|
|
12
|
+
deprecated?: DeprecatedObject;
|
|
13
|
+
};
|
|
14
|
+
export type RuleSetObject = {
|
|
15
|
+
version: string;
|
|
16
|
+
serviceId?: string;
|
|
17
|
+
parameters: Record<string, ParameterObject>;
|
|
18
|
+
rules: RuleSetRules;
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EndpointRuleObject } from "./EndpointRuleObject";
|
|
2
|
+
import { ErrorRuleObject } from "./ErrorRuleObject";
|
|
3
|
+
import { ConditionObject } from "./shared";
|
|
4
|
+
export type RuleSetRules = Array<EndpointRuleObject | ErrorRuleObject | TreeRuleObject>;
|
|
5
|
+
export type TreeRuleObject = {
|
|
6
|
+
type: "tree";
|
|
7
|
+
conditions?: ConditionObject[];
|
|
8
|
+
rules: RuleSetRules;
|
|
9
|
+
documentation?: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Logger } from "../logger";
|
|
2
|
+
export type ReferenceObject = {
|
|
3
|
+
ref: string;
|
|
4
|
+
};
|
|
5
|
+
export type FunctionObject = {
|
|
6
|
+
fn: string;
|
|
7
|
+
argv: FunctionArgv;
|
|
8
|
+
};
|
|
9
|
+
export type FunctionArgv = Array<Expression | boolean | number>;
|
|
10
|
+
export type FunctionReturn = string | boolean | number | {
|
|
11
|
+
[key: string]: FunctionReturn;
|
|
12
|
+
};
|
|
13
|
+
export type ConditionObject = FunctionObject & {
|
|
14
|
+
assign?: string;
|
|
15
|
+
};
|
|
16
|
+
export type Expression = string | ReferenceObject | FunctionObject;
|
|
17
|
+
export type EndpointParams = Record<string, string | boolean>;
|
|
18
|
+
export type EndpointResolverOptions = {
|
|
19
|
+
endpointParams: EndpointParams;
|
|
20
|
+
logger?: Logger;
|
|
21
|
+
};
|
|
22
|
+
export type ReferenceRecord = Record<string, FunctionReturn>;
|
|
23
|
+
export type EvaluateOptions = EndpointResolverOptions & {
|
|
24
|
+
referenceRecord: ReferenceRecord;
|
|
25
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { HttpRequest } from "./http";
|
|
2
|
+
import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, HandlerExecutionContext } from "./middleware";
|
|
3
|
+
import { MetadataBearer } from "./response";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* An event stream message. The headers and body properties will always be
|
|
8
|
+
* defined, with empty headers represented as an object with no keys and an
|
|
9
|
+
* empty body represented as a zero-length Uint8Array.
|
|
10
|
+
*/
|
|
11
|
+
export interface Message {
|
|
12
|
+
headers: MessageHeaders;
|
|
13
|
+
body: Uint8Array;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export type MessageHeaders = Record<string, MessageHeaderValue>;
|
|
19
|
+
type HeaderValue<K extends string, V> = {
|
|
20
|
+
type: K;
|
|
21
|
+
value: V;
|
|
22
|
+
};
|
|
23
|
+
export type BooleanHeaderValue = HeaderValue<"boolean", boolean>;
|
|
24
|
+
export type ByteHeaderValue = HeaderValue<"byte", number>;
|
|
25
|
+
export type ShortHeaderValue = HeaderValue<"short", number>;
|
|
26
|
+
export type IntegerHeaderValue = HeaderValue<"integer", number>;
|
|
27
|
+
export type LongHeaderValue = HeaderValue<"long", Int64>;
|
|
28
|
+
export type BinaryHeaderValue = HeaderValue<"binary", Uint8Array>;
|
|
29
|
+
export type StringHeaderValue = HeaderValue<"string", string>;
|
|
30
|
+
export type TimestampHeaderValue = HeaderValue<"timestamp", Date>;
|
|
31
|
+
export type UuidHeaderValue = HeaderValue<"uuid", string>;
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue;
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface Int64 {
|
|
40
|
+
readonly bytes: Uint8Array;
|
|
41
|
+
valueOf: () => number;
|
|
42
|
+
toString: () => string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
*
|
|
47
|
+
* Util functions for serializing or deserializing event stream
|
|
48
|
+
*/
|
|
49
|
+
export interface EventStreamSerdeContext {
|
|
50
|
+
eventStreamMarshaller: EventStreamMarshaller;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
*
|
|
55
|
+
* A function which deserializes binary event stream message into modeled shape.
|
|
56
|
+
*/
|
|
57
|
+
export interface EventStreamMarshallerDeserFn<StreamType> {
|
|
58
|
+
<T>(body: StreamType, deserializer: (input: Record<string, Message>) => Promise<T>): AsyncIterable<T>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*
|
|
63
|
+
* A function that serializes modeled shape into binary stream message.
|
|
64
|
+
*/
|
|
65
|
+
export interface EventStreamMarshallerSerFn<StreamType> {
|
|
66
|
+
<T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
*
|
|
71
|
+
* An interface which provides functions for serializing and deserializing binary event stream
|
|
72
|
+
* to/from corresponsing modeled shape.
|
|
73
|
+
*/
|
|
74
|
+
export interface EventStreamMarshaller<StreamType = any> {
|
|
75
|
+
deserialize: EventStreamMarshallerDeserFn<StreamType>;
|
|
76
|
+
serialize: EventStreamMarshallerSerFn<StreamType>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export interface EventStreamRequestSigner {
|
|
82
|
+
sign(request: HttpRequest): Promise<HttpRequest>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export interface EventStreamPayloadHandler {
|
|
88
|
+
handle: <Input extends object, Output extends MetadataBearer>(next: FinalizeHandler<Input, Output>, args: FinalizeHandlerArguments<Input>, context?: HandlerExecutionContext) => Promise<FinalizeHandlerOutput<Output>>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export interface EventStreamPayloadHandlerProvider {
|
|
94
|
+
(options: any): EventStreamPayloadHandler;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export interface EventStreamSerdeProvider {
|
|
100
|
+
(options: any): EventStreamMarshaller;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export interface EventStreamSignerProvider {
|
|
106
|
+
(options: any): EventStreamRequestSigner;
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { AbortSignal } from "./abort";
|
|
2
|
+
import { URI } from "./uri";
|
|
1
3
|
/**
|
|
2
4
|
* @public
|
|
3
5
|
*
|
|
4
|
-
* @deprecated use {@link EndpointV2} from `@
|
|
6
|
+
* @deprecated use {@link EndpointV2} from `@smithy/types`.
|
|
5
7
|
*/
|
|
6
8
|
export interface Endpoint {
|
|
7
9
|
protocol: string;
|
|
@@ -10,6 +12,34 @@ export interface Endpoint {
|
|
|
10
12
|
path: string;
|
|
11
13
|
query?: QueryParameterBag;
|
|
12
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*
|
|
18
|
+
* Interface an HTTP request class. Contains
|
|
19
|
+
* addressing information in addition to standard message properties.
|
|
20
|
+
*/
|
|
21
|
+
export interface HttpRequest extends HttpMessage, URI {
|
|
22
|
+
method: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*
|
|
27
|
+
* Represents an HTTP message as received in reply to a request. Contains a
|
|
28
|
+
* numeric status code in addition to standard message properties.
|
|
29
|
+
*/
|
|
30
|
+
export interface HttpResponse extends HttpMessage {
|
|
31
|
+
statusCode: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*
|
|
36
|
+
* Represents an HTTP message with headers and an optional static or streaming
|
|
37
|
+
* body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
|
|
38
|
+
*/
|
|
39
|
+
export interface HttpMessage {
|
|
40
|
+
headers: HeaderBag;
|
|
41
|
+
body?: any;
|
|
42
|
+
}
|
|
13
43
|
/**
|
|
14
44
|
* @public
|
|
15
45
|
*
|
|
@@ -18,3 +48,58 @@ export interface Endpoint {
|
|
|
18
48
|
* to null when query is not in key-value pairs shape
|
|
19
49
|
*/
|
|
20
50
|
export type QueryParameterBag = Record<string, string | Array<string> | null>;
|
|
51
|
+
export type FieldOptions = {
|
|
52
|
+
name: string;
|
|
53
|
+
kind?: FieldPosition;
|
|
54
|
+
values?: string[];
|
|
55
|
+
};
|
|
56
|
+
export declare enum FieldPosition {
|
|
57
|
+
HEADER = 0,
|
|
58
|
+
TRAILER = 1
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*
|
|
63
|
+
* A mapping of header names to string values. Multiple values for the same
|
|
64
|
+
* header should be represented as a single string with values separated by
|
|
65
|
+
* `, `.
|
|
66
|
+
*
|
|
67
|
+
* Keys should be considered case insensitive, even if this is not enforced by a
|
|
68
|
+
* particular implementation. For example, given the following HeaderBag, where
|
|
69
|
+
* keys differ only in case:
|
|
70
|
+
*
|
|
71
|
+
* ```json
|
|
72
|
+
* {
|
|
73
|
+
* 'x-request-date': '2000-01-01T00:00:00Z',
|
|
74
|
+
* 'X-Request-Date': '2001-01-01T00:00:00Z'
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* The SDK may at any point during processing remove one of the object
|
|
79
|
+
* properties in favor of the other. The headers may or may not be combined, and
|
|
80
|
+
* the SDK will not deterministically select which header candidate to use.
|
|
81
|
+
*/
|
|
82
|
+
export type HeaderBag = Record<string, string>;
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
*
|
|
86
|
+
* Represents an HTTP message with headers and an optional static or streaming
|
|
87
|
+
* body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
|
|
88
|
+
*/
|
|
89
|
+
export interface HttpMessage {
|
|
90
|
+
headers: HeaderBag;
|
|
91
|
+
body?: any;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @public
|
|
95
|
+
*
|
|
96
|
+
* Represents the options that may be passed to an Http Handler.
|
|
97
|
+
*/
|
|
98
|
+
export interface HttpHandlerOptions {
|
|
99
|
+
abortSignal?: AbortSignal;
|
|
100
|
+
/**
|
|
101
|
+
* The maximum time in milliseconds that the connection phase of a request
|
|
102
|
+
* may take before the connection attempt is abandoned.
|
|
103
|
+
*/
|
|
104
|
+
requestTimeout?: number;
|
|
105
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Identity, IdentityProvider } from "./identity";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface AwsCredentialIdentity extends Identity {
|
|
6
|
+
/**
|
|
7
|
+
* AWS access key ID
|
|
8
|
+
*/
|
|
9
|
+
readonly accessKeyId: string;
|
|
10
|
+
/**
|
|
11
|
+
* AWS secret access key
|
|
12
|
+
*/
|
|
13
|
+
readonly secretAccessKey: string;
|
|
14
|
+
/**
|
|
15
|
+
* A security or session token to use with these credentials. Usually
|
|
16
|
+
* present for temporary credentials.
|
|
17
|
+
*/
|
|
18
|
+
readonly sessionToken?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export type AwsCredentialIdentityProvider = IdentityProvider<AwsCredentialIdentity>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*/
|
|
4
|
+
export interface Identity {
|
|
5
|
+
/**
|
|
6
|
+
* A `Date` when the identity or credential will no longer be accepted.
|
|
7
|
+
*/
|
|
8
|
+
readonly expiration?: Date;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export interface IdentityProvider<IdentityT extends Identity> {
|
|
14
|
+
(identityProperties?: Record<string, any>): Promise<IdentityT>;
|
|
15
|
+
}
|
|
@@ -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,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*
|
|
4
|
+
* Represents a logger object that is available in HandlerExecutionContext
|
|
5
|
+
* throughout the middleware stack.
|
|
6
|
+
*/
|
|
7
|
+
export interface Logger {
|
|
8
|
+
trace?: (...content: any[]) => void;
|
|
9
|
+
debug: (...content: any[]) => void;
|
|
10
|
+
info: (...content: any[]) => void;
|
|
11
|
+
warn: (...content: any[]) => void;
|
|
12
|
+
error: (...content: any[]) => void;
|
|
13
|
+
}
|