@cdklabs/cdk-ecs-codedeploy 0.0.93 → 0.0.95

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 (158) 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/abort-controller/package.json +2 -2
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +23 -0
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +19 -0
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +13 -0
  10. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +23 -0
  11. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +23 -0
  12. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +32 -0
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +10 -0
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +10 -0
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +26 -0
  16. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +19 -0
  17. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +124 -0
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +24 -0
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +131 -0
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +12 -0
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +13 -0
  22. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +18 -0
  23. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +16 -0
  24. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +1 -0
  25. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +7 -0
  26. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +10 -0
  27. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +19 -0
  28. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +11 -0
  29. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +14 -0
  30. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +23 -0
  31. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +23 -0
  32. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +26 -0
  33. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +10 -0
  34. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +32 -0
  35. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +4 -0
  36. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +4 -0
  37. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +13 -0
  38. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +35 -0
  39. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +29 -0
  40. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +34 -0
  41. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +10 -0
  42. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +10 -0
  43. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
  44. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +27 -0
  45. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +19 -0
  46. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +34 -0
  47. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +23 -0
  48. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +20 -0
  49. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +20 -0
  50. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +27 -0
  51. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +27 -0
  52. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +13 -0
  53. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +125 -0
  54. package/node_modules/@aws-sdk/client-codedeploy/package.json +30 -30
  55. package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +16 -0
  56. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +16 -0
  57. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +16 -0
  58. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +13 -0
  59. package/node_modules/@aws-sdk/client-sso/package.json +26 -26
  60. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +42 -0
  61. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +16 -0
  62. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +22 -0
  63. package/node_modules/@aws-sdk/client-sso-oidc/package.json +26 -26
  64. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +27 -0
  65. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +37 -0
  66. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +44 -0
  67. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +6 -0
  68. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +1 -0
  69. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +1 -0
  70. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +23 -0
  71. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +8 -0
  72. package/node_modules/@aws-sdk/client-sts/package.json +29 -29
  73. package/node_modules/@aws-sdk/config-resolver/package.json +5 -5
  74. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  75. package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  76. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  77. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  78. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  79. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  80. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  81. package/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  82. package/node_modules/@aws-sdk/hash-node/package.json +2 -2
  83. package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  84. package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  85. package/node_modules/@aws-sdk/middleware-endpoint/package.json +7 -7
  86. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  87. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  88. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  89. package/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  90. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +6 -6
  91. package/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  92. package/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  93. package/node_modules/@aws-sdk/middleware-stack/package.json +2 -2
  94. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  95. package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  96. package/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  97. package/node_modules/@aws-sdk/property-provider/package.json +2 -2
  98. package/node_modules/@aws-sdk/protocol-http/dist-cjs/Field.js +1 -3
  99. package/node_modules/@aws-sdk/protocol-http/dist-cjs/Fields.js +10 -0
  100. package/node_modules/@aws-sdk/protocol-http/dist-cjs/headersProxy.js +52 -0
  101. package/node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +99 -24
  102. package/node_modules/@aws-sdk/protocol-http/dist-cjs/queryProxy.js +71 -0
  103. package/node_modules/@aws-sdk/protocol-http/dist-es/Field.js +1 -3
  104. package/node_modules/@aws-sdk/protocol-http/dist-es/Fields.js +10 -0
  105. package/node_modules/@aws-sdk/protocol-http/dist-es/headersProxy.js +45 -0
  106. package/node_modules/@aws-sdk/protocol-http/dist-es/httpRequest.js +99 -24
  107. package/node_modules/@aws-sdk/protocol-http/dist-es/queryProxy.js +65 -0
  108. package/node_modules/@aws-sdk/protocol-http/dist-types/Field.d.ts +1 -1
  109. package/node_modules/@aws-sdk/protocol-http/dist-types/Fields.d.ts +18 -1
  110. package/node_modules/@aws-sdk/protocol-http/dist-types/headersProxy.d.ts +39 -0
  111. package/node_modules/@aws-sdk/protocol-http/dist-types/httpRequest.d.ts +50 -7
  112. package/node_modules/@aws-sdk/protocol-http/dist-types/queryProxy.d.ts +29 -0
  113. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/Fields.d.ts +3 -1
  114. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/headersProxy.d.ts +8 -0
  115. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/httpRequest.d.ts +30 -15
  116. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/queryProxy.d.ts +10 -0
  117. package/node_modules/@aws-sdk/protocol-http/package.json +3 -3
  118. package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  119. package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  120. package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  121. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  122. package/node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +18 -1
  123. package/node_modules/@aws-sdk/signature-v4/dist-es/prepareRequest.js +18 -1
  124. package/node_modules/@aws-sdk/signature-v4/package.json +4 -4
  125. package/node_modules/@aws-sdk/smithy-client/dist-types/NoOpLogger.d.ts +3 -0
  126. package/node_modules/@aws-sdk/smithy-client/dist-types/client.d.ts +9 -0
  127. package/node_modules/@aws-sdk/smithy-client/dist-types/command.d.ts +3 -0
  128. package/node_modules/@aws-sdk/smithy-client/dist-types/constants.d.ts +3 -0
  129. package/node_modules/@aws-sdk/smithy-client/dist-types/date-utils.d.ts +10 -0
  130. package/node_modules/@aws-sdk/smithy-client/dist-types/default-error-handler.d.ts +1 -1
  131. package/node_modules/@aws-sdk/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts +2 -0
  132. package/node_modules/@aws-sdk/smithy-client/dist-types/exceptions.d.ts +5 -0
  133. package/node_modules/@aws-sdk/smithy-client/dist-types/extended-encode-uri-component.d.ts +2 -0
  134. package/node_modules/@aws-sdk/smithy-client/dist-types/get-array-if-single-item.d.ts +2 -0
  135. package/node_modules/@aws-sdk/smithy-client/dist-types/get-value-from-text-node.d.ts +2 -0
  136. package/node_modules/@aws-sdk/smithy-client/dist-types/lazy-json.d.ts +5 -0
  137. package/node_modules/@aws-sdk/smithy-client/dist-types/object-mapping.d.ts +35 -3
  138. package/node_modules/@aws-sdk/smithy-client/dist-types/parse-utils.d.ts +50 -0
  139. package/node_modules/@aws-sdk/smithy-client/dist-types/resolve-path.d.ts +3 -0
  140. package/node_modules/@aws-sdk/smithy-client/dist-types/ser-utils.d.ts +2 -0
  141. package/node_modules/@aws-sdk/smithy-client/dist-types/split-every.d.ts +2 -0
  142. package/node_modules/@aws-sdk/smithy-client/package.json +3 -3
  143. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  144. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +6 -0
  145. package/node_modules/@aws-sdk/types/package.json +1 -1
  146. package/node_modules/@aws-sdk/url-parser/package.json +3 -3
  147. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  148. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  149. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  150. package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  151. package/node_modules/@aws-sdk/util-retry/package.json +3 -3
  152. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  153. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  154. package/node_modules/@aws-sdk/util-waiter/dist-types/utils/sleep.d.ts +3 -0
  155. package/node_modules/@aws-sdk/util-waiter/dist-types/utils/validate.d.ts +2 -0
  156. package/node_modules/@aws-sdk/util-waiter/dist-types/waiter.d.ts +13 -2
  157. package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  158. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { Field } from "./Field";
1
+ import { Field, FieldOptions } from "./Field";
2
2
  import { FieldPosition } from "./FieldPosition";
3
3
  export declare type FieldsOptions = {
4
4
  fields?: Field[];
@@ -12,4 +12,6 @@ export declare class Fields {
12
12
  getField(name: string): Field | undefined;
13
13
  removeField(name: string): void;
14
14
  getByType(kind: FieldPosition): Field[];
15
+ getAll(): Field[];
16
+ static from(fieldsToCreate: FieldOptions[], encoding?: string): Fields;
15
17
  }
@@ -0,0 +1,8 @@
1
+ import { HeaderBag } from "@aws-sdk/types";
2
+ import { Fields } from "./Fields";
3
+ export declare const getHeadersProxy: (fields: Fields) => HeaderBag;
4
+ export declare const headersToFields: (headers: HeaderBag) => Fields;
5
+ export declare const fieldsToHeaders: (fields: Fields) => HeaderBag;
6
+ export declare const headerValueToFieldValues: (
7
+ headerValue: string
8
+ ) => string[] | undefined;
@@ -1,26 +1,41 @@
1
- import {
2
- Endpoint,
3
- HeaderBag,
4
- HttpMessage,
5
- HttpRequest as IHttpRequest,
6
- QueryParameterBag,
7
- } from "@aws-sdk/types";
8
- declare type HttpRequestOptions = Partial<HttpMessage> &
9
- Partial<Endpoint> & {
10
- method?: string;
11
- };
12
- export interface HttpRequest extends IHttpRequest {}
13
- export declare class HttpRequest implements HttpMessage, Endpoint {
1
+ import { HeaderBag, QueryParameterBag, Request } from "@aws-sdk/types";
2
+ import { Fields } from "./Fields";
3
+ export interface HttpRequestOptions {
4
+ method?: string;
5
+ protocol?: string;
6
+ hostname?: string;
7
+ port?: number;
8
+ path?: string;
9
+ query?: QueryParameterBag;
10
+ headers?: HeaderBag;
11
+ body?: any;
12
+ }
13
+ export interface HttpRequestFromOptions {
14
+ method?: string;
15
+ destination?: URL;
16
+ fields?: Fields;
17
+ body?: any;
18
+ }
19
+ export interface HttpRequest extends Request {
14
20
  method: string;
21
+ destination: URL;
22
+ fields: Fields;
23
+ body?: any;
24
+ }
25
+ export declare class HttpRequest implements Request {
26
+ method: string;
27
+ destination: URL;
28
+ fields: Fields;
29
+ body?: any;
15
30
  protocol: string;
16
31
  hostname: string;
17
32
  port?: number;
18
33
  path: string;
19
34
  query: QueryParameterBag;
20
35
  headers: HeaderBag;
21
- body?: any;
22
36
  constructor(options: HttpRequestOptions);
37
+ static from(options: HttpRequestFromOptions): HttpRequest;
23
38
  static isInstance(request: unknown): request is HttpRequest;
24
39
  clone(): HttpRequest;
40
+ private static getDefaultDestination;
25
41
  }
26
- export {};
@@ -0,0 +1,10 @@
1
+ import { QueryParameterBag } from "@aws-sdk/types";
2
+ export declare const getQueryProxy: (
3
+ searchParams: URLSearchParams
4
+ ) => QueryParameterBag;
5
+ export declare const queryToSearchParams: (
6
+ query: QueryParameterBag
7
+ ) => URLSearchParams;
8
+ export declare const searchParamsToQuery: (
9
+ searchParams: URLSearchParams
10
+ ) => QueryParameterBag;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/protocol-http",
3
- "version": "3.289.0",
3
+ "version": "3.290.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,7 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
- "test": "jest"
12
+ "test": "jest --coverage"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "module": "./dist-es/index.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.289.0",
24
+ "@aws-sdk/types": "3.290.0",
25
25
  "tslib": "^2.3.1"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-builder",
3
- "version": "3.289.0",
3
+ "version": "3.290.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.289.0",
23
+ "@aws-sdk/types": "3.290.0",
24
24
  "@aws-sdk/util-uri-escape": "3.201.0",
25
25
  "tslib": "^2.3.1"
26
26
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-parser",
3
- "version": "3.289.0",
3
+ "version": "3.290.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.289.0",
23
+ "@aws-sdk/types": "3.290.0",
24
24
  "tslib": "^2.3.1"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/service-error-classification",
3
- "version": "3.289.0",
3
+ "version": "3.290.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "devDependencies": {
23
- "@aws-sdk/types": "3.289.0",
23
+ "@aws-sdk/types": "3.290.0",
24
24
  "@tsconfig/recommended": "1.0.1",
25
25
  "concurrently": "7.0.0",
26
26
  "downlevel-dts": "0.10.1",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aws-sdk/shared-ini-file-loader",
3
- "version": "3.289.0",
3
+ "version": "3.290.0",
4
4
  "dependencies": {
5
- "@aws-sdk/types": "3.289.0",
5
+ "@aws-sdk/types": "3.290.0",
6
6
  "tslib": "^2.3.1"
7
7
  },
8
8
  "devDependencies": {
@@ -10,6 +10,23 @@ const prepareRequest = (request) => {
10
10
  delete request.headers[headerName];
11
11
  }
12
12
  }
13
- return request;
13
+ let path = request.path;
14
+ const url = request === null || request === void 0 ? void 0 : request.destination;
15
+ if (url != null) {
16
+ let decodedPathname;
17
+ try {
18
+ decodedPathname = decodeURIComponent(url.pathname);
19
+ }
20
+ catch (e) {
21
+ decodedPathname = url.pathname;
22
+ }
23
+ if (new URL(decodedPathname, url.origin).pathname !== decodedPathname) {
24
+ path = decodedPathname;
25
+ }
26
+ }
27
+ return {
28
+ ...request,
29
+ path,
30
+ };
14
31
  };
15
32
  exports.prepareRequest = prepareRequest;
@@ -7,5 +7,22 @@ export const prepareRequest = (request) => {
7
7
  delete request.headers[headerName];
8
8
  }
9
9
  }
10
- return request;
10
+ let path = request.path;
11
+ const url = request?.destination;
12
+ if (url != null) {
13
+ let decodedPathname;
14
+ try {
15
+ decodedPathname = decodeURIComponent(url.pathname);
16
+ }
17
+ catch (e) {
18
+ decodedPathname = url.pathname;
19
+ }
20
+ if (new URL(decodedPathname, url.origin).pathname !== decodedPathname) {
21
+ path = decodedPathname;
22
+ }
23
+ }
24
+ return {
25
+ ...request,
26
+ path,
27
+ };
11
28
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4",
3
- "version": "3.289.0",
3
+ "version": "3.290.0",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,16 +22,16 @@
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
24
  "@aws-sdk/is-array-buffer": "3.201.0",
25
- "@aws-sdk/types": "3.289.0",
25
+ "@aws-sdk/types": "3.290.0",
26
26
  "@aws-sdk/util-hex-encoding": "3.201.0",
27
- "@aws-sdk/util-middleware": "3.289.0",
27
+ "@aws-sdk/util-middleware": "3.290.0",
28
28
  "@aws-sdk/util-uri-escape": "3.201.0",
29
29
  "@aws-sdk/util-utf8": "3.254.0",
30
30
  "tslib": "^2.3.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@aws-crypto/sha256-js": "3.0.0",
34
- "@aws-sdk/protocol-http": "3.289.0",
34
+ "@aws-sdk/protocol-http": "3.290.0",
35
35
  "@aws-sdk/util-buffer-from": "3.208.0",
36
36
  "@tsconfig/recommended": "1.0.1",
37
37
  "concurrently": "7.0.0",
@@ -1,4 +1,7 @@
1
1
  import { Logger } from "@aws-sdk/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export declare class NoOpLogger implements Logger {
3
6
  trace(): void;
4
7
  debug(): void;
@@ -1,4 +1,7 @@
1
1
  import { Client as IClient, Command, MetadataBearer, MiddlewareStack, RequestHandler } from "@aws-sdk/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export interface SmithyConfiguration<HandlerOptions> {
3
6
  requestHandler: RequestHandler<any, any, HandlerOptions>;
4
7
  /**
@@ -8,7 +11,13 @@ export interface SmithyConfiguration<HandlerOptions> {
8
11
  */
9
12
  readonly apiVersion: string;
10
13
  }
14
+ /**
15
+ * @internal
16
+ */
11
17
  export declare type SmithyResolvedConfiguration<HandlerOptions> = SmithyConfiguration<HandlerOptions>;
18
+ /**
19
+ * @internal
20
+ */
12
21
  export declare class Client<HandlerOptions, ClientInput extends object, ClientOutput extends MetadataBearer, ResolvedClientConfiguration extends SmithyResolvedConfiguration<HandlerOptions>> implements IClient<ClientInput, ClientOutput, ResolvedClientConfiguration> {
13
22
  middlewareStack: MiddlewareStack<ClientInput, ClientOutput>;
14
23
  readonly config: ResolvedClientConfiguration;
@@ -1,4 +1,7 @@
1
1
  import { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from "@aws-sdk/types";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export declare abstract class Command<Input extends ClientInput, Output extends ClientOutput, ResolvedClientConfiguration, ClientInput extends object = any, ClientOutput extends MetadataBearer = any> implements ICommand<ClientInput, Input, ClientOutput, Output, ResolvedClientConfiguration> {
3
6
  abstract input: Input;
4
7
  readonly middlewareStack: IMiddlewareStack<Input, Output>;
@@ -1 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
1
4
  export declare const SENSITIVE_STRING = "***SensitiveInformation***";
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @internal
3
+ *
2
4
  * Builds a proper UTC HttpDate timestamp from a Date object
3
5
  * since not all environments will have this as the expected
4
6
  * format.
@@ -11,6 +13,8 @@
11
13
  */
12
14
  export declare function dateToUtcString(date: Date): string;
13
15
  /**
16
+ * @internal
17
+ *
14
18
  * Parses a value into a Date. Returns undefined if the input is null or
15
19
  * undefined, throws an error if the input is not a string that can be parsed
16
20
  * as an RFC 3339 date.
@@ -25,6 +29,8 @@ export declare function dateToUtcString(date: Date): string;
25
29
  */
26
30
  export declare const parseRfc3339DateTime: (value: unknown) => Date | undefined;
27
31
  /**
32
+ * @internal
33
+ *
28
34
  * Parses a value into a Date. Returns undefined if the input is null or
29
35
  * undefined, throws an error if the input is not a string that can be parsed
30
36
  * as an RFC 3339 date.
@@ -39,6 +45,8 @@ export declare const parseRfc3339DateTime: (value: unknown) => Date | undefined;
39
45
  */
40
46
  export declare const parseRfc3339DateTimeWithOffset: (value: unknown) => Date | undefined;
41
47
  /**
48
+ * @internal
49
+ *
42
50
  * Parses a value into a Date. Returns undefined if the input is null or
43
51
  * undefined, throws an error if the input is not a string that can be parsed
44
52
  * as an RFC 7231 IMF-fixdate or obs-date.
@@ -52,6 +60,8 @@ export declare const parseRfc3339DateTimeWithOffset: (value: unknown) => Date |
52
60
  */
53
61
  export declare const parseRfc7231DateTime: (value: unknown) => Date | undefined;
54
62
  /**
63
+ * @internal
64
+ *
55
65
  * Parses a value into a Date. Returns undefined if the input is null or
56
66
  * undefined, throws an error if the input is not a number or a parseable string.
57
67
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Always throws an error with the given {@param exceptionCtor} and other arguments.
3
3
  * This is only called from an error handling code path.
4
- * @private
4
+ *
5
5
  * @internal
6
6
  */
7
7
  export declare const throwDefaultError: ({ output, parsedBody, exceptionCtor, errorCode }: any) => never;
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @internal
3
+ *
2
4
  * Emits warning if the provided Node.js version string is pending deprecation.
3
5
  *
4
6
  * @param {string} version - The Node.js version string.
@@ -6,10 +6,15 @@ import { HttpResponse, MetadataBearer, ResponseMetadata, RetryableTrait, SmithyE
6
6
  * @internal
7
7
  */
8
8
  export declare type ExceptionOptionType<ExceptionType extends Error, BaseExceptionType extends Error> = Omit<ExceptionType, Exclude<keyof BaseExceptionType, "$metadata" | "message">>;
9
+ /**
10
+ * @internal
11
+ */
9
12
  export interface ServiceExceptionOptions extends SmithyException, MetadataBearer {
10
13
  message?: string;
11
14
  }
12
15
  /**
16
+ * @internal
17
+ *
13
18
  * Base exception class for the exceptions from the server-side.
14
19
  */
15
20
  export declare class ServiceException extends Error implements SmithyException, MetadataBearer {
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @internal
3
+ *
2
4
  * Function that wraps encodeURIComponent to encode additional characters
3
5
  * to fully adhere to RFC 3986.
4
6
  */
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @internal
3
+ *
2
4
  * The XML parser will set one K:V for a member that could
3
5
  * return multiple entries but only has one.
4
6
  */
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @internal
3
+ *
2
4
  * Recursively parses object and populates value is node from
3
5
  * "#text" key if it's available
4
6
  */
@@ -9,8 +9,13 @@ interface StringWrapper {
9
9
  * TS 'extends' shim doesn't support extending native types like String.
10
10
  * So here we create StringWrapper that duplicate everything from String
11
11
  * class including its prototype chain. So we can extend from here.
12
+ *
13
+ * @internal
12
14
  */
13
15
  export declare const StringWrapper: StringWrapper;
16
+ /**
17
+ * @internal
18
+ */
14
19
  export declare class LazyJsonString extends StringWrapper {
15
20
  deserializeJSON(): any;
16
21
  toJSON(): string;
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @internal
3
+ *
2
4
  * A set of instructions for multiple keys.
3
5
  * The aim is to provide a concise yet readable way to map and filter values
4
6
  * onto a target object.
@@ -44,18 +46,36 @@
44
46
  */
45
47
  export declare type ObjectMappingInstructions = Record<string, ObjectMappingInstruction>;
46
48
  /**
49
+ * @internal
50
+ *
47
51
  * An instruction set for assigning a value to a target object.
48
52
  */
49
53
  export declare type ObjectMappingInstruction = LazyValueInstruction | ConditionalLazyValueInstruction | SimpleValueInstruction | ConditionalValueInstruction | UnfilteredValue;
50
54
  /**
55
+ * @internal
56
+ *
51
57
  * non-array
52
58
  */
53
59
  export declare type UnfilteredValue = any;
60
+ /**
61
+ * @internal
62
+ */
54
63
  export declare type LazyValueInstruction = [FilterStatus, ValueSupplier];
64
+ /**
65
+ * @internal
66
+ */
55
67
  export declare type ConditionalLazyValueInstruction = [FilterStatusSupplier, ValueSupplier];
68
+ /**
69
+ * @internal
70
+ */
56
71
  export declare type SimpleValueInstruction = [FilterStatus, Value];
72
+ /**
73
+ * @internal
74
+ */
57
75
  export declare type ConditionalValueInstruction = [ValueFilteringFunction, Value];
58
76
  /**
77
+ * @internal
78
+ *
59
79
  * Filter is considered passed if
60
80
  * 1. It is a boolean true.
61
81
  * 2. It is not undefined and is itself truthy.
@@ -63,22 +83,31 @@ export declare type ConditionalValueInstruction = [ValueFilteringFunction, Value
63
83
  */
64
84
  export declare type FilterStatus = boolean | unknown | void;
65
85
  /**
86
+ * @internal
87
+ *
66
88
  * Supplies the filter check but not against any value as input.
67
89
  */
68
90
  export declare type FilterStatusSupplier = () => boolean;
69
91
  /**
92
+ * @internal
93
+ *
70
94
  * Filter check with the given value.
71
95
  */
72
96
  export declare type ValueFilteringFunction = (value: any) => boolean;
73
97
  /**
98
+ * @internal
99
+ *
74
100
  * Supplies the value for lazy evaluation.
75
101
  */
76
102
  export declare type ValueSupplier = () => any;
77
103
  /**
104
+ * @internal
105
+ *
78
106
  * A non-function value.
79
107
  */
80
108
  export declare type Value = any;
81
109
  /**
110
+ * @internal
82
111
  * Internal/Private, for codegen use only.
83
112
  *
84
113
  * Transfer a set of keys from [instructions] to [target].
@@ -88,17 +117,20 @@ export declare type Value = any;
88
117
  * The target assigned value will be supplied by the instructions as an evaluable function or non-function value.
89
118
  *
90
119
  * @see ObjectMappingInstructions for an example.
91
- * @private
92
- * @internal
93
120
  */
94
121
  export declare function map(target: any, filter: (value: any) => boolean, instructions: Record<string, ValueSupplier | Value>): typeof target;
122
+ /**
123
+ * @internal
124
+ */
95
125
  export declare function map(instructions: Record<string, ObjectMappingInstruction>): any;
126
+ /**
127
+ * @internal
128
+ */
96
129
  export declare function map(target: any, instructions: Record<string, ObjectMappingInstruction>): typeof target;
97
130
  /**
98
131
  * Convert a regular object { k: v } to { k: [, v] } mapping instruction set with default
99
132
  * filter.
100
133
  *
101
- * @private
102
134
  * @internal
103
135
  */
104
136
  export declare const convertMap: (target: any) => Record<string, any>;