@aws-sdk/client-apigatewaymanagementapi 3.295.0 → 3.297.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.
@@ -4,22 +4,26 @@ import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./c
4
4
  import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
5
5
  import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
6
6
  /**
7
- * <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>
7
+ * @public
8
+ * <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>
8
9
  */
9
10
  export declare class ApiGatewayManagementApi extends ApiGatewayManagementApiClient {
10
11
  /**
12
+ * @public
11
13
  * <p>Delete the connection with the provided id.</p>
12
14
  */
13
15
  deleteConnection(args: DeleteConnectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectionCommandOutput>;
14
16
  deleteConnection(args: DeleteConnectionCommandInput, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
15
17
  deleteConnection(args: DeleteConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
16
18
  /**
19
+ * @public
17
20
  * <p>Get information about the connection with the provided id.</p>
18
21
  */
19
22
  getConnection(args: GetConnectionCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectionCommandOutput>;
20
23
  getConnection(args: GetConnectionCommandInput, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
21
24
  getConnection(args: GetConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
22
25
  /**
26
+ * @public
23
27
  * <p>Sends the provided data to the specified connection.</p>
24
28
  */
25
29
  postToConnection(args: PostToConnectionCommandInput, options?: __HttpHandlerOptions): Promise<PostToConnectionCommandOutput>;
@@ -11,15 +11,24 @@ import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./c
11
11
  import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
12
12
  import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
13
13
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
+ /**
15
+ * @public
16
+ */
14
17
  export type ServiceInputTypes = DeleteConnectionCommandInput | GetConnectionCommandInput | PostToConnectionCommandInput;
18
+ /**
19
+ * @public
20
+ */
15
21
  export type ServiceOutputTypes = DeleteConnectionCommandOutput | GetConnectionCommandOutput | PostToConnectionCommandOutput;
22
+ /**
23
+ * @public
24
+ */
16
25
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
17
26
  /**
18
27
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
19
28
  */
20
29
  requestHandler?: __HttpHandler;
21
30
  /**
22
- * A constructor for a class implementing the {@link __Checksum} interface
31
+ * A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
23
32
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
24
33
  * @internal
25
34
  */
@@ -109,24 +118,35 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
109
118
  */
110
119
  logger?: __Logger;
111
120
  /**
112
- * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
121
+ * The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
113
122
  */
114
123
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
115
124
  }
125
+ /**
126
+ * @public
127
+ */
116
128
  type ApiGatewayManagementApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
117
129
  /**
118
- * The configuration interface of ApiGatewayManagementApiClient class constructor that set the region, credentials and other options.
130
+ * @public
131
+ *
132
+ * The configuration interface of ApiGatewayManagementApiClient class constructor that set the region, credentials and other options.
119
133
  */
120
134
  export interface ApiGatewayManagementApiClientConfig extends ApiGatewayManagementApiClientConfigType {
121
135
  }
136
+ /**
137
+ * @public
138
+ */
122
139
  type ApiGatewayManagementApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
123
140
  /**
124
- * The resolved configuration interface of ApiGatewayManagementApiClient class. This is resolved and normalized from the {@link ApiGatewayManagementApiClientConfig | constructor configuration interface}.
141
+ * @public
142
+ *
143
+ * The resolved configuration interface of ApiGatewayManagementApiClient class. This is resolved and normalized from the {@link ApiGatewayManagementApiClientConfig | constructor configuration interface}.
125
144
  */
126
145
  export interface ApiGatewayManagementApiClientResolvedConfig extends ApiGatewayManagementApiClientResolvedConfigType {
127
146
  }
128
147
  /**
129
- * <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>
148
+ * @public
149
+ * <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>
130
150
  */
131
151
  export declare class ApiGatewayManagementApiClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ApiGatewayManagementApiClientResolvedConfig> {
132
152
  /**
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
5
5
  import { DeleteConnectionRequest } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link DeleteConnectionCommand}.
8
10
  */
9
11
  export interface DeleteConnectionCommandInput extends DeleteConnectionRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link DeleteConnectionCommand}.
13
17
  */
14
18
  export interface DeleteConnectionCommandOutput extends __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Delete the connection with the provided id.</p>
18
23
  * @example
19
24
  * Use a bare-bones client and the command you need to make an API call.
@@ -25,6 +30,8 @@ export interface DeleteConnectionCommandOutput extends __MetadataBearer {
25
30
  * const response = await client.send(command);
26
31
  * ```
27
32
  *
33
+ * @param DeleteConnectionCommandInput - {@link DeleteConnectionCommandInput}
34
+ * @returns {@link DeleteConnectionCommandOutput}
28
35
  * @see {@link DeleteConnectionCommandInput} for command's `input` shape.
29
36
  * @see {@link DeleteConnectionCommandOutput} for command's `response` shape.
30
37
  * @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for ApiGatewayManagementApiClient's `config` shape.
@@ -43,11 +50,20 @@ export interface DeleteConnectionCommandOutput extends __MetadataBearer {
43
50
  export declare class DeleteConnectionCommand extends $Command<DeleteConnectionCommandInput, DeleteConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig> {
44
51
  readonly input: DeleteConnectionCommandInput;
45
52
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
53
+ /**
54
+ * @public
55
+ */
46
56
  constructor(input: DeleteConnectionCommandInput);
47
57
  /**
48
58
  * @internal
49
59
  */
50
60
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteConnectionCommandInput, DeleteConnectionCommandOutput>;
61
+ /**
62
+ * @internal
63
+ */
51
64
  private serialize;
65
+ /**
66
+ * @internal
67
+ */
52
68
  private deserialize;
53
69
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
5
5
  import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link GetConnectionCommand}.
8
10
  */
9
11
  export interface GetConnectionCommandInput extends GetConnectionRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link GetConnectionCommand}.
13
17
  */
14
18
  export interface GetConnectionCommandOutput extends GetConnectionResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Get information about the connection with the provided id.</p>
18
23
  * @example
19
24
  * Use a bare-bones client and the command you need to make an API call.
@@ -25,6 +30,8 @@ export interface GetConnectionCommandOutput extends GetConnectionResponse, __Met
25
30
  * const response = await client.send(command);
26
31
  * ```
27
32
  *
33
+ * @param GetConnectionCommandInput - {@link GetConnectionCommandInput}
34
+ * @returns {@link GetConnectionCommandOutput}
28
35
  * @see {@link GetConnectionCommandInput} for command's `input` shape.
29
36
  * @see {@link GetConnectionCommandOutput} for command's `response` shape.
30
37
  * @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for ApiGatewayManagementApiClient's `config` shape.
@@ -43,11 +50,20 @@ export interface GetConnectionCommandOutput extends GetConnectionResponse, __Met
43
50
  export declare class GetConnectionCommand extends $Command<GetConnectionCommandInput, GetConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig> {
44
51
  readonly input: GetConnectionCommandInput;
45
52
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
53
+ /**
54
+ * @public
55
+ */
46
56
  constructor(input: GetConnectionCommandInput);
47
57
  /**
48
58
  * @internal
49
59
  */
50
60
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetConnectionCommandInput, GetConnectionCommandOutput>;
61
+ /**
62
+ * @internal
63
+ */
51
64
  private serialize;
65
+ /**
66
+ * @internal
67
+ */
52
68
  private deserialize;
53
69
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApiGatewayManagementApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayManagementApiClient";
5
5
  import { PostToConnectionRequest } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link PostToConnectionCommand}.
8
10
  */
9
11
  export interface PostToConnectionCommandInput extends PostToConnectionRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link PostToConnectionCommand}.
13
17
  */
14
18
  export interface PostToConnectionCommandOutput extends __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Sends the provided data to the specified connection.</p>
18
23
  * @example
19
24
  * Use a bare-bones client and the command you need to make an API call.
@@ -25,6 +30,8 @@ export interface PostToConnectionCommandOutput extends __MetadataBearer {
25
30
  * const response = await client.send(command);
26
31
  * ```
27
32
  *
33
+ * @param PostToConnectionCommandInput - {@link PostToConnectionCommandInput}
34
+ * @returns {@link PostToConnectionCommandOutput}
28
35
  * @see {@link PostToConnectionCommandInput} for command's `input` shape.
29
36
  * @see {@link PostToConnectionCommandOutput} for command's `response` shape.
30
37
  * @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for ApiGatewayManagementApiClient's `config` shape.
@@ -46,11 +53,20 @@ export interface PostToConnectionCommandOutput extends __MetadataBearer {
46
53
  export declare class PostToConnectionCommand extends $Command<PostToConnectionCommandInput, PostToConnectionCommandOutput, ApiGatewayManagementApiClientResolvedConfig> {
47
54
  readonly input: PostToConnectionCommandInput;
48
55
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
56
+ /**
57
+ * @public
58
+ */
49
59
  constructor(input: PostToConnectionCommandInput);
50
60
  /**
51
61
  * @internal
52
62
  */
53
63
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApiGatewayManagementApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PostToConnectionCommandInput, PostToConnectionCommandOutput>;
64
+ /**
65
+ * @internal
66
+ */
54
67
  private serialize;
68
+ /**
69
+ * @internal
70
+ */
55
71
  private deserialize;
56
72
  }
@@ -1,5 +1,7 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
2
  /**
3
+ * @public
4
+ *
3
5
  * Base exception class for all service exceptions from ApiGatewayManagementApi service.
4
6
  */
5
7
  export declare class ApiGatewayManagementApiServiceException extends __ServiceException {
@@ -1,9 +1,13 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { ApiGatewayManagementApiServiceException as __BaseException } from "./ApiGatewayManagementApiServiceException";
3
+ /**
4
+ * @public
5
+ */
3
6
  export interface DeleteConnectionRequest {
4
7
  ConnectionId: string | undefined;
5
8
  }
6
9
  /**
10
+ * @public
7
11
  * <p>The caller is not authorized to invoke this operation.</p>
8
12
  */
9
13
  export declare class ForbiddenException extends __BaseException {
@@ -15,6 +19,7 @@ export declare class ForbiddenException extends __BaseException {
15
19
  constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
16
20
  }
17
21
  /**
22
+ * @public
18
23
  * <p>The connection with the provided id no longer exists.</p>
19
24
  */
20
25
  export declare class GoneException extends __BaseException {
@@ -26,6 +31,7 @@ export declare class GoneException extends __BaseException {
26
31
  constructor(opts: __ExceptionOptionType<GoneException, __BaseException>);
27
32
  }
28
33
  /**
34
+ * @public
29
35
  * <p>The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.</p>
30
36
  */
31
37
  export declare class LimitExceededException extends __BaseException {
@@ -36,9 +42,15 @@ export declare class LimitExceededException extends __BaseException {
36
42
  */
37
43
  constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
38
44
  }
45
+ /**
46
+ * @public
47
+ */
39
48
  export interface GetConnectionRequest {
40
49
  ConnectionId: string | undefined;
41
50
  }
51
+ /**
52
+ * @public
53
+ */
42
54
  export interface Identity {
43
55
  /**
44
56
  * <p>The source IP address of the TCP connection making the request to API Gateway.</p>
@@ -49,6 +61,9 @@ export interface Identity {
49
61
  */
50
62
  UserAgent: string | undefined;
51
63
  }
64
+ /**
65
+ * @public
66
+ */
52
67
  export interface GetConnectionResponse {
53
68
  /**
54
69
  * <p>The time in ISO 8601 format for when the connection was established.</p>
@@ -61,6 +76,7 @@ export interface GetConnectionResponse {
61
76
  LastActiveAt?: Date;
62
77
  }
63
78
  /**
79
+ * @public
64
80
  * <p>The data has exceeded the maximum size allowed.</p>
65
81
  */
66
82
  export declare class PayloadTooLargeException extends __BaseException {
@@ -72,6 +88,9 @@ export declare class PayloadTooLargeException extends __BaseException {
72
88
  */
73
89
  constructor(opts: __ExceptionOptionType<PayloadTooLargeException, __BaseException>);
74
90
  }
91
+ /**
92
+ * @public
93
+ */
75
94
  export interface PostToConnectionRequest {
76
95
  /**
77
96
  * <p>The data to be sent to the client specified by its connection id.</p>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewaymanagementapi",
3
3
  "description": "AWS SDK for JavaScript Apigatewaymanagementapi Client for Node.js, Browser and React Native",
4
- "version": "3.295.0",
4
+ "version": "3.297.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.295.0",
24
- "@aws-sdk/config-resolver": "3.295.0",
25
- "@aws-sdk/credential-provider-node": "3.295.0",
26
- "@aws-sdk/fetch-http-handler": "3.295.0",
27
- "@aws-sdk/hash-node": "3.295.0",
28
- "@aws-sdk/invalid-dependency": "3.295.0",
29
- "@aws-sdk/middleware-content-length": "3.295.0",
30
- "@aws-sdk/middleware-endpoint": "3.295.0",
31
- "@aws-sdk/middleware-host-header": "3.295.0",
32
- "@aws-sdk/middleware-logger": "3.295.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.295.0",
34
- "@aws-sdk/middleware-retry": "3.295.0",
35
- "@aws-sdk/middleware-serde": "3.295.0",
36
- "@aws-sdk/middleware-signing": "3.295.0",
37
- "@aws-sdk/middleware-stack": "3.295.0",
38
- "@aws-sdk/middleware-user-agent": "3.295.0",
39
- "@aws-sdk/node-config-provider": "3.295.0",
40
- "@aws-sdk/node-http-handler": "3.295.0",
41
- "@aws-sdk/protocol-http": "3.295.0",
42
- "@aws-sdk/smithy-client": "3.295.0",
43
- "@aws-sdk/types": "3.295.0",
44
- "@aws-sdk/url-parser": "3.295.0",
23
+ "@aws-sdk/client-sts": "3.297.0",
24
+ "@aws-sdk/config-resolver": "3.296.0",
25
+ "@aws-sdk/credential-provider-node": "3.297.0",
26
+ "@aws-sdk/fetch-http-handler": "3.296.0",
27
+ "@aws-sdk/hash-node": "3.296.0",
28
+ "@aws-sdk/invalid-dependency": "3.296.0",
29
+ "@aws-sdk/middleware-content-length": "3.296.0",
30
+ "@aws-sdk/middleware-endpoint": "3.296.0",
31
+ "@aws-sdk/middleware-host-header": "3.296.0",
32
+ "@aws-sdk/middleware-logger": "3.296.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.296.0",
34
+ "@aws-sdk/middleware-retry": "3.296.0",
35
+ "@aws-sdk/middleware-serde": "3.296.0",
36
+ "@aws-sdk/middleware-signing": "3.296.0",
37
+ "@aws-sdk/middleware-stack": "3.296.0",
38
+ "@aws-sdk/middleware-user-agent": "3.296.0",
39
+ "@aws-sdk/node-config-provider": "3.296.0",
40
+ "@aws-sdk/node-http-handler": "3.296.0",
41
+ "@aws-sdk/protocol-http": "3.296.0",
42
+ "@aws-sdk/smithy-client": "3.296.0",
43
+ "@aws-sdk/types": "3.296.0",
44
+ "@aws-sdk/url-parser": "3.296.0",
45
45
  "@aws-sdk/util-base64": "3.295.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.295.0",
47
47
  "@aws-sdk/util-body-length-node": "3.295.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.295.0",
50
- "@aws-sdk/util-endpoints": "3.295.0",
51
- "@aws-sdk/util-retry": "3.295.0",
52
- "@aws-sdk/util-user-agent-browser": "3.295.0",
53
- "@aws-sdk/util-user-agent-node": "3.295.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.296.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.296.0",
50
+ "@aws-sdk/util-endpoints": "3.296.0",
51
+ "@aws-sdk/util-retry": "3.296.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.296.0",
53
+ "@aws-sdk/util-user-agent-node": "3.296.0",
54
54
  "@aws-sdk/util-utf8": "3.295.0",
55
55
  "tslib": "^2.5.0"
56
56
  },