@cdklabs/cdk-ecs-codedeploy 0.0.195 → 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.
Files changed (127) hide show
  1. package/.jsii +2 -2
  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/@smithy/protocol-http/dist-cjs/Field.js +1 -1
  7. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +3 -0
  8. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -0
  9. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -6
  10. package/node_modules/@smithy/protocol-http/dist-es/Field.js +1 -1
  11. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +3 -0
  12. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +1 -0
  13. package/node_modules/@smithy/protocol-http/dist-es/types.js +1 -5
  14. package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +1 -1
  15. package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +1 -1
  16. package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +1 -2
  17. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +7 -12
  18. package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +4 -9
  19. package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +15 -50
  20. package/node_modules/@smithy/protocol-http/package.json +3 -2
  21. package/node_modules/@smithy/types/dist-cjs/auth.js +8 -0
  22. package/node_modules/@smithy/types/dist-cjs/checksum.js +2 -0
  23. package/node_modules/@smithy/types/dist-cjs/client.js +2 -0
  24. package/node_modules/@smithy/types/dist-cjs/command.js +2 -0
  25. package/node_modules/@smithy/types/dist-cjs/connection/config.js +2 -0
  26. package/node_modules/@smithy/types/dist-cjs/connection/index.js +6 -0
  27. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +2 -0
  28. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +2 -0
  29. package/node_modules/@smithy/types/dist-cjs/crypto.js +2 -0
  30. package/node_modules/@smithy/types/dist-cjs/encode.js +2 -0
  31. package/node_modules/@smithy/types/dist-cjs/endpoint.js +8 -0
  32. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +2 -0
  33. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +2 -0
  34. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +2 -0
  35. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +2 -0
  36. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +8 -0
  37. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +2 -0
  38. package/node_modules/@smithy/types/dist-cjs/eventStream.js +2 -0
  39. package/node_modules/@smithy/types/dist-cjs/http.js +6 -0
  40. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +2 -0
  41. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +2 -0
  42. package/node_modules/@smithy/types/dist-cjs/identity/index.js +5 -0
  43. package/node_modules/@smithy/types/dist-cjs/index.js +22 -0
  44. package/node_modules/@smithy/types/dist-cjs/logger.js +2 -0
  45. package/node_modules/@smithy/types/dist-cjs/middleware.js +2 -0
  46. package/node_modules/@smithy/types/dist-cjs/pagination.js +2 -0
  47. package/node_modules/@smithy/types/dist-cjs/profile.js +2 -0
  48. package/node_modules/@smithy/types/dist-cjs/response.js +2 -0
  49. package/node_modules/@smithy/types/dist-cjs/retry.js +2 -0
  50. package/node_modules/@smithy/types/dist-cjs/shapes.js +2 -0
  51. package/node_modules/@smithy/types/dist-cjs/signature.js +2 -0
  52. package/node_modules/@smithy/types/dist-cjs/stream.js +2 -0
  53. package/node_modules/@smithy/types/dist-cjs/uri.js +2 -0
  54. package/node_modules/@smithy/types/dist-cjs/waiter.js +2 -0
  55. package/node_modules/@smithy/types/dist-es/auth.js +5 -0
  56. package/node_modules/@smithy/types/dist-es/checksum.js +1 -0
  57. package/node_modules/@smithy/types/dist-es/client.js +1 -0
  58. package/node_modules/@smithy/types/dist-es/command.js +1 -0
  59. package/node_modules/@smithy/types/dist-es/connection/config.js +1 -0
  60. package/node_modules/@smithy/types/dist-es/connection/index.js +3 -0
  61. package/node_modules/@smithy/types/dist-es/connection/manager.js +1 -0
  62. package/node_modules/@smithy/types/dist-es/connection/pool.js +1 -0
  63. package/node_modules/@smithy/types/dist-es/crypto.js +1 -0
  64. package/node_modules/@smithy/types/dist-es/encode.js +1 -0
  65. package/node_modules/@smithy/types/dist-es/endpoint.js +5 -0
  66. package/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +1 -0
  67. package/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +1 -0
  68. package/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +1 -0
  69. package/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +1 -0
  70. package/node_modules/@smithy/types/dist-es/endpoints/index.js +5 -0
  71. package/node_modules/@smithy/types/dist-es/endpoints/shared.js +1 -0
  72. package/node_modules/@smithy/types/dist-es/eventStream.js +1 -0
  73. package/node_modules/@smithy/types/dist-es/http.js +5 -1
  74. package/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +1 -0
  75. package/node_modules/@smithy/types/dist-es/identity/identity.js +1 -0
  76. package/node_modules/@smithy/types/dist-es/identity/index.js +2 -0
  77. package/node_modules/@smithy/types/dist-es/index.js +22 -0
  78. package/node_modules/@smithy/types/dist-es/logger.js +1 -0
  79. package/node_modules/@smithy/types/dist-es/middleware.js +1 -0
  80. package/node_modules/@smithy/types/dist-es/pagination.js +1 -0
  81. package/node_modules/@smithy/types/dist-es/profile.js +1 -0
  82. package/node_modules/@smithy/types/dist-es/response.js +1 -0
  83. package/node_modules/@smithy/types/dist-es/retry.js +1 -0
  84. package/node_modules/@smithy/types/dist-es/shapes.js +1 -0
  85. package/node_modules/@smithy/types/dist-es/signature.js +1 -0
  86. package/node_modules/@smithy/types/dist-es/stream.js +1 -0
  87. package/node_modules/@smithy/types/dist-es/uri.js +1 -0
  88. package/node_modules/@smithy/types/dist-es/waiter.js +1 -0
  89. package/node_modules/@smithy/types/dist-types/auth.d.ts +55 -0
  90. package/node_modules/@smithy/types/dist-types/checksum.d.ts +63 -0
  91. package/node_modules/@smithy/types/dist-types/client.d.ts +25 -0
  92. package/node_modules/@smithy/types/dist-types/command.d.ts +10 -0
  93. package/node_modules/@smithy/types/dist-types/connection/config.d.ts +7 -0
  94. package/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -0
  95. package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +28 -0
  96. package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +24 -0
  97. package/node_modules/@smithy/types/dist-types/crypto.d.ts +60 -0
  98. package/node_modules/@smithy/types/dist-types/encode.d.ts +19 -0
  99. package/node_modules/@smithy/types/dist-types/endpoint.d.ts +77 -0
  100. package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +15 -0
  101. package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +7 -0
  102. package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +19 -0
  103. package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +10 -0
  104. package/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -0
  105. package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +25 -0
  106. package/node_modules/@smithy/types/dist-types/eventStream.d.ts +108 -0
  107. package/node_modules/@smithy/types/dist-types/http.d.ts +86 -1
  108. package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +23 -0
  109. package/node_modules/@smithy/types/dist-types/identity/identity.d.ts +15 -0
  110. package/node_modules/@smithy/types/dist-types/identity/index.d.ts +2 -0
  111. package/node_modules/@smithy/types/dist-types/index.d.ts +22 -0
  112. package/node_modules/@smithy/types/dist-types/logger.d.ts +13 -0
  113. package/node_modules/@smithy/types/dist-types/middleware.d.ts +475 -0
  114. package/node_modules/@smithy/types/dist-types/pagination.d.ts +26 -0
  115. package/node_modules/@smithy/types/dist-types/profile.d.ts +22 -0
  116. package/node_modules/@smithy/types/dist-types/response.d.ts +40 -0
  117. package/node_modules/@smithy/types/dist-types/retry.d.ts +128 -0
  118. package/node_modules/@smithy/types/dist-types/serde.d.ts +68 -0
  119. package/node_modules/@smithy/types/dist-types/shapes.d.ts +72 -0
  120. package/node_modules/@smithy/types/dist-types/signature.d.ts +150 -0
  121. package/node_modules/@smithy/types/dist-types/stream.d.ts +22 -0
  122. package/node_modules/@smithy/types/dist-types/transfer.d.ts +3 -0
  123. package/node_modules/@smithy/types/dist-types/uri.d.ts +17 -0
  124. package/node_modules/@smithy/types/dist-types/util.d.ts +117 -0
  125. package/node_modules/@smithy/types/dist-types/waiter.d.ts +35 -0
  126. package/node_modules/@smithy/types/package.json +7 -2
  127. package/package.json +2 -2
@@ -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 `@aws-sdk/types`.
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
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./awsCredentialIdentity";
2
+ export * from "./identity";
@@ -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
+ }