@aws-sdk/client-apigatewayv2 3.52.0 → 3.53.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.
@@ -2,3 +2,4 @@ export * from "./ApiGatewayV2";
2
2
  export * from "./ApiGatewayV2Client";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { ApiGatewayV2ServiceException } from "./models/ApiGatewayV2ServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from ApiGatewayV2 service.
4
+ */
5
+ export declare class ApiGatewayV2ServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ApiGatewayV2ServiceException as __BaseException } from "./ApiGatewayV2ServiceException";
2
3
  /**
3
4
  * <p>Represents a CORS configuration. Supported only for HTTP APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html">Configuring CORS</a> for more information.</p>
4
5
  */
@@ -899,32 +900,44 @@ export declare namespace VpcLink {
899
900
  */
900
901
  const filterSensitiveLog: (obj: VpcLink) => any;
901
902
  }
902
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
903
- name: "AccessDeniedException";
904
- $fault: "client";
903
+ export declare class AccessDeniedException extends __BaseException {
904
+ readonly name: "AccessDeniedException";
905
+ readonly $fault: "client";
905
906
  Message?: string;
907
+ /**
908
+ * @internal
909
+ */
910
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
906
911
  }
907
912
  /**
908
913
  * <p>The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.</p>
909
914
  */
910
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
911
- name: "BadRequestException";
912
- $fault: "client";
915
+ export declare class BadRequestException extends __BaseException {
916
+ readonly name: "BadRequestException";
917
+ readonly $fault: "client";
913
918
  /**
914
919
  * <p>Describes the error encountered.</p>
915
920
  */
916
921
  Message?: string;
922
+ /**
923
+ * @internal
924
+ */
925
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
917
926
  }
918
927
  /**
919
928
  * <p>The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.</p>
920
929
  */
921
- export interface ConflictException extends __SmithyException, $MetadataBearer {
922
- name: "ConflictException";
923
- $fault: "client";
930
+ export declare class ConflictException extends __BaseException {
931
+ readonly name: "ConflictException";
932
+ readonly $fault: "client";
924
933
  /**
925
934
  * <p>Describes the error encountered.</p>
926
935
  */
927
936
  Message?: string;
937
+ /**
938
+ * @internal
939
+ */
940
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
928
941
  }
929
942
  /**
930
943
  * <p>Creates a new Api resource to represent an API.</p>
@@ -1068,9 +1081,9 @@ export declare namespace CreateApiResponse {
1068
1081
  /**
1069
1082
  * <p>The resource specified in the request was not found. See the message field for more information.</p>
1070
1083
  */
1071
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
1072
- name: "NotFoundException";
1073
- $fault: "client";
1084
+ export declare class NotFoundException extends __BaseException {
1085
+ readonly name: "NotFoundException";
1086
+ readonly $fault: "client";
1074
1087
  /**
1075
1088
  * <p>Describes the error encountered.</p>
1076
1089
  */
@@ -1079,13 +1092,17 @@ export interface NotFoundException extends __SmithyException, $MetadataBearer {
1079
1092
  * <p>The resource type.</p>
1080
1093
  */
1081
1094
  ResourceType?: string;
1095
+ /**
1096
+ * @internal
1097
+ */
1098
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
1082
1099
  }
1083
1100
  /**
1084
1101
  * <p>A limit has been exceeded. See the accompanying error message for details.</p>
1085
1102
  */
1086
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
1087
- name: "TooManyRequestsException";
1088
- $fault: "client";
1103
+ export declare class TooManyRequestsException extends __BaseException {
1104
+ readonly name: "TooManyRequestsException";
1105
+ readonly $fault: "client";
1089
1106
  /**
1090
1107
  * <p>The limit type.</p>
1091
1108
  */
@@ -1094,6 +1111,10 @@ export interface TooManyRequestsException extends __SmithyException, $MetadataBe
1094
1111
  * <p>Describes the error encountered.</p>
1095
1112
  */
1096
1113
  Message?: string;
1114
+ /**
1115
+ * @internal
1116
+ */
1117
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
1097
1118
  }
1098
1119
  /**
1099
1120
  * <p>Creates a new ApiMapping resource to represent an API mapping.</p>
@@ -2,3 +2,4 @@ export * from "./ApiGatewayV2";
2
2
  export * from "./ApiGatewayV2Client";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { ApiGatewayV2ServiceException } from "./models/ApiGatewayV2ServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ApiGatewayV2ServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ApiGatewayV2ServiceException as __BaseException } from "./ApiGatewayV2ServiceException";
2
3
 
3
4
  export interface Cors {
4
5
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewayv2",
3
3
  "description": "AWS SDK for JavaScript Apigatewayv2 Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.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",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"