@aws-sdk/client-apigatewaymanagementapi 3.1137.0 → 3.1138.0

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/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -221,10 +221,10 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.apigatewaymanagementapi";
221
221
  const _sI = "sourceIp";
222
222
  const _uA = "userAgent";
223
223
  const n0 = "com.amazonaws.apigatewaymanagementapi";
224
- const _s_registry = TypeRegistry.for(_s);
224
+ const _s_registry = new TypeRegistry(_s);
225
225
  var ApiGatewayManagementApiServiceException$ = [-3, _s, "ApiGatewayManagementApiServiceException", 0, [], []];
226
226
  _s_registry.registerError(ApiGatewayManagementApiServiceException$, ApiGatewayManagementApiServiceException);
227
- const n0_registry = TypeRegistry.for(n0);
227
+ const n0_registry = new TypeRegistry(n0);
228
228
  var ForbiddenException$ = [-3, n0, _FE,
229
229
  { [_e]: _c, [_hE]: 403 },
230
230
  [],
@@ -33,10 +33,10 @@ const n0 = "com.amazonaws.apigatewaymanagementapi";
33
33
  import { TypeRegistry } from "@smithy/core/schema";
34
34
  import { ApiGatewayManagementApiServiceException } from "../models/ApiGatewayManagementApiServiceException";
35
35
  import { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException } from "../models/errors";
36
- const _s_registry = TypeRegistry.for(_s);
36
+ const _s_registry = new TypeRegistry(_s);
37
37
  export var ApiGatewayManagementApiServiceException$ = [-3, _s, "ApiGatewayManagementApiServiceException", 0, [], []];
38
38
  _s_registry.registerError(ApiGatewayManagementApiServiceException$, ApiGatewayManagementApiServiceException);
39
- const n0_registry = TypeRegistry.for(n0);
39
+ const n0_registry = new TypeRegistry(n0);
40
40
  export var ForbiddenException$ = [-3, n0, _FE,
41
41
  { [_e]: _c, [_hE]: 403 },
42
42
  [],
@@ -1,27 +1,33 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
3
3
  import { type DeleteConnectionCommandInput, type DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
4
4
  import { type GetConnectionCommandInput, type GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
5
5
  import { type PostToConnectionCommandInput, type PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
6
+ /**
7
+ * @public
8
+ */
9
+ export interface ApiGatewayManagementApiRequestOptions extends __HttpHandlerOptions {
10
+ metricsRecorder?: __MetricsRecorder<unknown>;
11
+ }
6
12
  export interface ApiGatewayManagementApi {
7
13
  /**
8
14
  * @see {@link DeleteConnectionCommand}
9
15
  */
10
- deleteConnection(args: DeleteConnectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectionCommandOutput>;
16
+ deleteConnection(args: DeleteConnectionCommandInput, options?: ApiGatewayManagementApiRequestOptions): Promise<DeleteConnectionCommandOutput>;
11
17
  deleteConnection(args: DeleteConnectionCommandInput, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
12
- deleteConnection(args: DeleteConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
18
+ deleteConnection(args: DeleteConnectionCommandInput, options: ApiGatewayManagementApiRequestOptions, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
13
19
  /**
14
20
  * @see {@link GetConnectionCommand}
15
21
  */
16
- getConnection(args: GetConnectionCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectionCommandOutput>;
22
+ getConnection(args: GetConnectionCommandInput, options?: ApiGatewayManagementApiRequestOptions): Promise<GetConnectionCommandOutput>;
17
23
  getConnection(args: GetConnectionCommandInput, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
18
- getConnection(args: GetConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
24
+ getConnection(args: GetConnectionCommandInput, options: ApiGatewayManagementApiRequestOptions, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
19
25
  /**
20
26
  * @see {@link PostToConnectionCommand}
21
27
  */
22
- postToConnection(args: PostToConnectionCommandInput, options?: __HttpHandlerOptions): Promise<PostToConnectionCommandOutput>;
28
+ postToConnection(args: PostToConnectionCommandInput, options?: ApiGatewayManagementApiRequestOptions): Promise<PostToConnectionCommandOutput>;
23
29
  postToConnection(args: PostToConnectionCommandInput, cb: (err: any, data?: PostToConnectionCommandOutput) => void): void;
24
- postToConnection(args: PostToConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PostToConnectionCommandOutput) => void): void;
30
+ postToConnection(args: PostToConnectionCommandInput, options: ApiGatewayManagementApiRequestOptions, cb: (err: any, data?: PostToConnectionCommandOutput) => void): void;
25
31
  }
26
32
  /**
27
33
  * <p>The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://\{api-id\}.execute-api.\{region\}.amazonaws.com/\{stage\}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.</p>
@@ -1,4 +1,7 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
3
6
  import {
4
7
  DeleteConnectionCommandInput,
@@ -12,10 +15,13 @@ import {
12
15
  PostToConnectionCommandInput,
13
16
  PostToConnectionCommandOutput,
14
17
  } from "./commands/PostToConnectionCommand";
18
+ export interface ApiGatewayManagementApiRequestOptions extends __HttpHandlerOptions {
19
+ metricsRecorder?: __MetricsRecorder<unknown>;
20
+ }
15
21
  export interface ApiGatewayManagementApi {
16
22
  deleteConnection(
17
23
  args: DeleteConnectionCommandInput,
18
- options?: __HttpHandlerOptions,
24
+ options?: ApiGatewayManagementApiRequestOptions,
19
25
  ): Promise<DeleteConnectionCommandOutput>;
20
26
  deleteConnection(
21
27
  args: DeleteConnectionCommandInput,
@@ -23,12 +29,12 @@ export interface ApiGatewayManagementApi {
23
29
  ): void;
24
30
  deleteConnection(
25
31
  args: DeleteConnectionCommandInput,
26
- options: __HttpHandlerOptions,
32
+ options: ApiGatewayManagementApiRequestOptions,
27
33
  cb: (err: any, data?: DeleteConnectionCommandOutput) => void,
28
34
  ): void;
29
35
  getConnection(
30
36
  args: GetConnectionCommandInput,
31
- options?: __HttpHandlerOptions,
37
+ options?: ApiGatewayManagementApiRequestOptions,
32
38
  ): Promise<GetConnectionCommandOutput>;
33
39
  getConnection(
34
40
  args: GetConnectionCommandInput,
@@ -36,12 +42,12 @@ export interface ApiGatewayManagementApi {
36
42
  ): void;
37
43
  getConnection(
38
44
  args: GetConnectionCommandInput,
39
- options: __HttpHandlerOptions,
45
+ options: ApiGatewayManagementApiRequestOptions,
40
46
  cb: (err: any, data?: GetConnectionCommandOutput) => void,
41
47
  ): void;
42
48
  postToConnection(
43
49
  args: PostToConnectionCommandInput,
44
- options?: __HttpHandlerOptions,
50
+ options?: ApiGatewayManagementApiRequestOptions,
45
51
  ): Promise<PostToConnectionCommandOutput>;
46
52
  postToConnection(
47
53
  args: PostToConnectionCommandInput,
@@ -49,7 +55,7 @@ export interface ApiGatewayManagementApi {
49
55
  ): void;
50
56
  postToConnection(
51
57
  args: PostToConnectionCommandInput,
52
- options: __HttpHandlerOptions,
58
+ options: ApiGatewayManagementApiRequestOptions,
53
59
  cb: (err: any, data?: PostToConnectionCommandOutput) => void,
54
60
  ): void;
55
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewaymanagementapi",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Apigatewaymanagementapi Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-apigatewaymanagementapi",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {