@cdklabs/cdk-ecs-codedeploy 0.0.161 → 0.0.163

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 (142) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/protocols/Aws_json1_1.js +1 -1
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +1 -1
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +3 -2
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/EndpointParameters.d.ts +2 -1
  10. package/node_modules/@aws-sdk/client-codedeploy/dist-types/protocols/Aws_json1_1.d.ts +2 -2
  11. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +12 -12
  12. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +9 -9
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +13 -13
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.shared.d.ts +4 -4
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +7 -5
  16. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
  17. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -15
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -15
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
  22. package/node_modules/@aws-sdk/client-codedeploy/package.json +5 -4
  23. package/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +1 -1
  24. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +1 -1
  25. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +3 -2
  26. package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +2 -1
  27. package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +2 -2
  28. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +11 -11
  29. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +8 -8
  30. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +12 -12
  31. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +4 -4
  32. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +7 -5
  33. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
  34. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  35. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +17 -14
  36. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +11 -11
  37. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +19 -14
  38. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
  39. package/node_modules/@aws-sdk/client-sso/package.json +3 -2
  40. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -1
  41. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +1 -1
  42. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +3 -2
  43. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +2 -1
  44. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +2 -2
  45. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +11 -11
  46. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +8 -8
  47. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +12 -12
  48. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +4 -4
  49. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +7 -5
  50. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
  51. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  52. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +17 -14
  53. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +11 -11
  54. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +19 -14
  55. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
  56. package/node_modules/@aws-sdk/client-sso-oidc/package.json +3 -2
  57. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +2 -1
  58. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +3 -2
  59. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +3 -2
  60. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +2 -1
  61. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +2 -1
  62. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +42 -1
  63. package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1
  64. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +2 -1
  65. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +3 -2
  66. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +3 -2
  67. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +2 -1
  68. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +2 -1
  69. package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +33 -0
  70. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +1 -1
  71. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +3 -2
  72. package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts +2 -1
  73. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +32 -0
  74. package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +2 -2
  75. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +13 -13
  76. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +9 -9
  77. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +14 -14
  78. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +4 -4
  79. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +7 -5
  80. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
  81. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +22 -0
  82. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +2 -2
  83. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +19 -16
  84. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
  85. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +21 -16
  86. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
  87. package/node_modules/@aws-sdk/client-sts/package.json +4 -3
  88. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  89. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  90. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  91. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  92. package/node_modules/@smithy/protocol-http/LICENSE +201 -0
  93. package/node_modules/@smithy/protocol-http/README.md +4 -0
  94. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +27 -0
  95. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +23 -0
  96. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +2 -0
  97. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +49 -0
  98. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +17 -0
  99. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +10 -0
  100. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +8 -0
  101. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +8 -0
  102. package/node_modules/@smithy/protocol-http/dist-es/Field.js +23 -0
  103. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +19 -0
  104. package/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +1 -0
  105. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +45 -0
  106. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +13 -0
  107. package/node_modules/@smithy/protocol-http/dist-es/index.js +7 -0
  108. package/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +4 -0
  109. package/node_modules/@smithy/protocol-http/dist-es/types.js +5 -0
  110. package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +49 -0
  111. package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +44 -0
  112. package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +5 -0
  113. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +28 -0
  114. package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +21 -0
  115. package/node_modules/@smithy/protocol-http/dist-types/index.d.ts +7 -0
  116. package/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +1 -0
  117. package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +56 -0
  118. package/node_modules/@smithy/protocol-http/package.json +62 -0
  119. package/node_modules/@smithy/types/LICENSE +201 -0
  120. package/node_modules/@smithy/types/README.md +4 -0
  121. package/node_modules/@smithy/types/dist-cjs/abort.js +2 -0
  122. package/node_modules/@smithy/types/dist-cjs/http.js +2 -0
  123. package/node_modules/@smithy/types/dist-cjs/index.js +8 -0
  124. package/node_modules/@smithy/types/dist-cjs/serde.js +2 -0
  125. package/node_modules/@smithy/types/dist-cjs/transfer.js +9 -0
  126. package/node_modules/@smithy/types/dist-cjs/util.js +2 -0
  127. package/node_modules/@smithy/types/dist-es/abort.js +1 -0
  128. package/node_modules/@smithy/types/dist-es/http.js +1 -0
  129. package/node_modules/@smithy/types/dist-es/index.js +5 -0
  130. package/node_modules/@smithy/types/dist-es/serde.js +1 -0
  131. package/node_modules/@smithy/types/dist-es/transfer.js +6 -0
  132. package/node_modules/@smithy/types/dist-es/util.js +1 -0
  133. package/node_modules/@smithy/types/dist-types/abort.d.ts +49 -0
  134. package/node_modules/@smithy/types/dist-types/http.d.ts +20 -0
  135. package/node_modules/@smithy/types/dist-types/index.d.ts +5 -0
  136. package/node_modules/@smithy/types/dist-types/serde.d.ts +36 -0
  137. package/node_modules/@smithy/types/dist-types/transfer.d.ts +30 -0
  138. package/node_modules/@smithy/types/dist-types/util.d.ts +38 -0
  139. package/node_modules/@smithy/types/package.json +57 -0
  140. package/node_modules/tslib/modules/index.d.ts +34 -1
  141. package/node_modules/tslib/package.json +1 -1
  142. package/package.json +6 -6
@@ -0,0 +1,49 @@
1
+ import { FieldOptions, FieldPosition } from "./types";
2
+ /**
3
+ * A name-value pair representing a single field
4
+ * transmitted in an HTTP Request or Response.
5
+ *
6
+ * The kind will dictate metadata placement within
7
+ * an HTTP message.
8
+ *
9
+ * All field names are case insensitive and
10
+ * case-variance must be treated as equivalent.
11
+ * Names MAY be normalized but SHOULD be preserved
12
+ * for accuracy during transmission.
13
+ */
14
+ export declare class Field {
15
+ readonly name: string;
16
+ readonly kind: FieldPosition;
17
+ values: string[];
18
+ constructor({ name, kind, values }: FieldOptions);
19
+ /**
20
+ * Appends a value to the field.
21
+ *
22
+ * @param value The value to append.
23
+ */
24
+ add(value: string): void;
25
+ /**
26
+ * Overwrite existing field values.
27
+ *
28
+ * @param values The new field values.
29
+ */
30
+ set(values: string[]): void;
31
+ /**
32
+ * Remove all matching entries from list.
33
+ *
34
+ * @param value Value to remove.
35
+ */
36
+ remove(value: string): void;
37
+ /**
38
+ * Get comma-delimited string.
39
+ *
40
+ * @returns String representation of {@link Field}.
41
+ */
42
+ toString(): string;
43
+ /**
44
+ * Get string values as a list
45
+ *
46
+ * @returns Values in {@link Field} as a list.
47
+ */
48
+ get(): string[];
49
+ }
@@ -0,0 +1,44 @@
1
+ import { Field } from "./Field";
2
+ import { FieldPosition } from "./types";
3
+ export type FieldsOptions = {
4
+ fields?: Field[];
5
+ encoding?: string;
6
+ };
7
+ /**
8
+ * Collection of Field entries mapped by name.
9
+ */
10
+ export declare class Fields {
11
+ private readonly entries;
12
+ private readonly encoding;
13
+ constructor({ fields, encoding }: FieldsOptions);
14
+ /**
15
+ * Set entry for a {@link Field} name. The `name`
16
+ * attribute will be used to key the collection.
17
+ *
18
+ * @param field The {@link Field} to set.
19
+ */
20
+ setField(field: Field): void;
21
+ /**
22
+ * Retrieve {@link Field} entry by name.
23
+ *
24
+ * @param name The name of the {@link Field} entry
25
+ * to retrieve
26
+ * @returns The {@link Field} if it exists.
27
+ */
28
+ getField(name: string): Field | undefined;
29
+ /**
30
+ * Delete entry from collection.
31
+ *
32
+ * @param name Name of the entry to delete.
33
+ */
34
+ removeField(name: string): void;
35
+ /**
36
+ * Helper function for retrieving specific types of fields.
37
+ * Used to grab all headers or all trailers.
38
+ *
39
+ * @param kind {@link FieldPosition} of entries to retrieve.
40
+ * @returns The {@link Field} entries with the specified
41
+ * {@link FieldPosition}.
42
+ */
43
+ getByType(kind: FieldPosition): Field[];
44
+ }
@@ -0,0 +1,5 @@
1
+ import { RequestHandler } from "@smithy/types";
2
+ import { HttpRequest } from "./httpRequest";
3
+ import { HttpResponse } from "./httpResponse";
4
+ import { HttpHandlerOptions } from "./types";
5
+ export type HttpHandler = RequestHandler<HttpRequest, HttpResponse, HttpHandlerOptions>;
@@ -0,0 +1,28 @@
1
+ import { Endpoint, QueryParameterBag } from "@smithy/types";
2
+ import { HeaderBag, HttpMessage } from "./types";
3
+ type HttpRequestOptions = Partial<HttpMessage> & Partial<Endpoint> & {
4
+ method?: string;
5
+ };
6
+ /**
7
+ * @public
8
+ *
9
+ * Interface an HTTP request class. Contains
10
+ * addressing information in addition to standard message properties.
11
+ */
12
+ export interface HttpRequest extends HttpMessage, Endpoint {
13
+ method: string;
14
+ }
15
+ export declare class HttpRequest implements HttpMessage, Endpoint {
16
+ method: string;
17
+ protocol: string;
18
+ hostname: string;
19
+ port?: number;
20
+ path: string;
21
+ query: QueryParameterBag;
22
+ headers: HeaderBag;
23
+ body?: any;
24
+ constructor(options: HttpRequestOptions);
25
+ static isInstance(request: unknown): request is HttpRequest;
26
+ clone(): HttpRequest;
27
+ }
28
+ export {};
@@ -0,0 +1,21 @@
1
+ import { HeaderBag, HttpMessage } from "./types";
2
+ type HttpResponseOptions = Partial<HttpMessage> & {
3
+ statusCode: number;
4
+ };
5
+ /**
6
+ * @public
7
+ *
8
+ * Represents an HTTP message as received in reply to a request. Contains a
9
+ * numeric status code in addition to standard message properties.
10
+ */
11
+ export interface HttpResponse extends HttpMessage {
12
+ statusCode: number;
13
+ }
14
+ export declare class HttpResponse {
15
+ statusCode: number;
16
+ headers: HeaderBag;
17
+ body?: any;
18
+ constructor(options: HttpResponseOptions);
19
+ static isInstance(response: unknown): response is HttpResponse;
20
+ }
21
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from "./Field";
2
+ export * from "./Fields";
3
+ export * from "./httpHandler";
4
+ export * from "./httpRequest";
5
+ export * from "./httpResponse";
6
+ export * from "./isValidHostname";
7
+ export * from "./types";
@@ -0,0 +1 @@
1
+ export declare function isValidHostname(hostname: string): boolean;
@@ -0,0 +1,56 @@
1
+ import { AbortSignal } from "@smithy/types";
2
+ export type FieldOptions = {
3
+ name: string;
4
+ kind?: FieldPosition;
5
+ values?: string[];
6
+ };
7
+ export declare enum FieldPosition {
8
+ HEADER = 0,
9
+ TRAILER = 1
10
+ }
11
+ /**
12
+ * @public
13
+ *
14
+ * A mapping of header names to string values. Multiple values for the same
15
+ * header should be represented as a single string with values separated by
16
+ * `, `.
17
+ *
18
+ * Keys should be considered case insensitive, even if this is not enforced by a
19
+ * particular implementation. For example, given the following HeaderBag, where
20
+ * keys differ only in case:
21
+ *
22
+ * ```json
23
+ * {
24
+ * 'x-request-date': '2000-01-01T00:00:00Z',
25
+ * 'X-Request-Date': '2001-01-01T00:00:00Z'
26
+ * }
27
+ * ```
28
+ *
29
+ * The SDK may at any point during processing remove one of the object
30
+ * properties in favor of the other. The headers may or may not be combined, and
31
+ * the SDK will not deterministically select which header candidate to use.
32
+ */
33
+ export type HeaderBag = Record<string, string>;
34
+ /**
35
+ * @public
36
+ *
37
+ * Represents an HTTP message with headers and an optional static or streaming
38
+ * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
39
+ */
40
+ export interface HttpMessage {
41
+ headers: HeaderBag;
42
+ body?: any;
43
+ }
44
+ /**
45
+ * @public
46
+ *
47
+ * Represents the options that may be passed to an Http Handler.
48
+ */
49
+ export interface HttpHandlerOptions {
50
+ abortSignal?: AbortSignal;
51
+ /**
52
+ * The maximum time in milliseconds that the connection phase of a request
53
+ * may take before the connection attempt is abandoned.
54
+ */
55
+ requestTimeout?: number;
56
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@smithy/protocol-http",
3
+ "version": "1.0.1",
4
+ "scripts": {
5
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
+ "build:cjs": "tsc -p tsconfig.cjs.json",
7
+ "build:es": "tsc -p tsconfig.es.json",
8
+ "build:types": "tsc -p tsconfig.types.json",
9
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
+ "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
+ "test": "jest"
15
+ },
16
+ "main": "./dist-cjs/index.js",
17
+ "module": "./dist-es/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "author": {
20
+ "name": "AWS Smithy Team",
21
+ "email": "",
22
+ "url": "https://smithy.io"
23
+ },
24
+ "license": "Apache-2.0",
25
+ "dependencies": {
26
+ "@smithy/types": "^1.0.0",
27
+ "tslib": "^2.5.0"
28
+ },
29
+ "engines": {
30
+ "node": ">=14.0.0"
31
+ },
32
+ "typesVersions": {
33
+ "<4.0": {
34
+ "dist-types/*": [
35
+ "dist-types/ts3.4/*"
36
+ ]
37
+ }
38
+ },
39
+ "files": [
40
+ "dist-*/**"
41
+ ],
42
+ "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/protocol-http",
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "https://github.com/awslabs/smithy-typescript.git",
46
+ "directory": "packages/protocol-http"
47
+ },
48
+ "devDependencies": {
49
+ "@tsconfig/recommended": "1.0.1",
50
+ "concurrently": "7.0.0",
51
+ "downlevel-dts": "0.10.1",
52
+ "rimraf": "3.0.2",
53
+ "typedoc": "0.23.23",
54
+ "typescript": "~4.9.5"
55
+ },
56
+ "typedoc": {
57
+ "entryPoint": "src/index.ts"
58
+ },
59
+ "publishConfig": {
60
+ "directory": ".release/package"
61
+ }
62
+ }
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,4 @@
1
+ # @smithy/types
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types)
4
+ [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./abort"), exports);
5
+ tslib_1.__exportStar(require("./http"), exports);
6
+ tslib_1.__exportStar(require("./serde"), exports);
7
+ tslib_1.__exportStar(require("./transfer"), exports);
8
+ tslib_1.__exportStar(require("./util"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ "use strict";
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 = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from "./abort";
2
+ export * from "./http";
3
+ export * from "./serde";
4
+ export * from "./transfer";
5
+ export * from "./util";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
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 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @public
3
+ */
4
+ export interface AbortHandler {
5
+ (this: AbortSignal, ev: any): any;
6
+ }
7
+ /**
8
+ * @public
9
+ *
10
+ * Holders of an AbortSignal object may query if the associated operation has
11
+ * been aborted and register an onabort handler.
12
+ *
13
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
14
+ */
15
+ export interface AbortSignal {
16
+ /**
17
+ * Whether the action represented by this signal has been cancelled.
18
+ */
19
+ readonly aborted: boolean;
20
+ /**
21
+ * A function to be invoked when the action represented by this signal has
22
+ * been cancelled.
23
+ */
24
+ onabort: AbortHandler | Function | null;
25
+ }
26
+ /**
27
+ * @public
28
+ *
29
+ * The AWS SDK uses a Controller/Signal model to allow for cooperative
30
+ * cancellation of asynchronous operations. When initiating such an operation,
31
+ * the caller can create an AbortController and then provide linked signal to
32
+ * subtasks. This allows a single source to communicate to multiple consumers
33
+ * that an action has been aborted without dictating how that cancellation
34
+ * should be handled.
35
+ *
36
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortController
37
+ */
38
+ export interface AbortController {
39
+ /**
40
+ * An object that reports whether the action associated with this
41
+ * `AbortController` has been cancelled.
42
+ */
43
+ readonly signal: AbortSignal;
44
+ /**
45
+ * Declares the operation associated with this AbortController to have been
46
+ * cancelled.
47
+ */
48
+ abort(): void;
49
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @public
3
+ *
4
+ * @deprecated use {@link EndpointV2} from `@aws-sdk/types`.
5
+ */
6
+ export interface Endpoint {
7
+ protocol: string;
8
+ hostname: string;
9
+ port?: number;
10
+ path: string;
11
+ query?: QueryParameterBag;
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * A mapping of query parameter names to strings or arrays of strings, with the
17
+ * second being used when a parameter contains a list of values. Value can be set
18
+ * to null when query is not in key-value pairs shape
19
+ */
20
+ export type QueryParameterBag = Record<string, string | Array<string> | null>;
@@ -0,0 +1,5 @@
1
+ export * from "./abort";
2
+ export * from "./http";
3
+ export * from "./serde";
4
+ export * from "./transfer";
5
+ export * from "./util";